Ask Your Question

jbeale's profile - activity

2017-06-14 18:26:19 -0600 answered a question Compile OpenCV3.2 with Python2 on Windows 7

Thanks for the comments. I was able to get a python3 64-bit build after installing python3 with: 1) Run installer: https://www.python.org/ftp/python/3.6... Change default to install location C:\Python36

2) Then running C:\Python36\Scripts\pip3.exe install "package_amd64.whl" for these packages: http://www.lfd.uci.edu/~gohlke/python... http://www.lfd.uci.edu/~gohlke/python...

2017-06-12 14:03:39 -0600 asked a question Compile OpenCV3.2 with Python2 on Windows 7

I am able to run cmake-gui with the default settings and compile and install OpenCV 3.2.0 with Visual Studio 14 2015 Win64 on Windows 7, if I don't use Python 2 or 3. The C++ samples programs work as expected.

I am now trying to compile, including WITH_PYTHON2 and WITH_XIMEA (I don't have Python 3 installed). Cmake finds the Python2.7 (64bit) files as follows:

PYTHON2_EXECUTABLE  C:/Python27/python.exe
PYTHON2_INCLUDE_DIR  C:/Python27/include
PYTHON2_INCLUDE_DIR2 
PYTHON2_LIBRARY C:/Python27/libs/python27.lib
PYTHON2_LIBRARY_DEBUG  PYTHON_DEBUG_LIBRARY-NOTFOUND
PYTHON2_PACKAGES_PATH  C:/Python27/Lib/site-packages

but then concludes that both the python2 and python3 modules will be "Unavailable":`

 OpenCV modules:
    To be built:                 cudev core cudaarithm flann imgproc ml objdetect video cudabgsegm cudafilters cudaimgproc cudawarping imgcodecs photo shape videoio cudacodec highgui ts features2d calib3d cudafeatures2d cudalegacy cudaobjdetect cudaoptflow cudastereo stitching superres videostab
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 java python2 python3 viz`

What is missing? Do I need some PYTHON2_LIBRARY_DEBUG for this to work, if so where do I get that? Thanks for any hints!

2017-06-11 12:01:27 -0600 answered a question createERFilterNM1 - Parameter

Thanks for posting this comment. I had the same experience. The example using thresholdDelta = 16 does not work very well, unless you have already cropped out just a small region of interest. If you make that value much smaller, for example thresholdDelta = 4 then the algorithm can find many more text regions, with only slightly more runtime.

2015-07-12 15:34:04 -0600 received badge  Teacher (source)
2015-06-29 07:00:25 -0600 received badge  Necromancer (source)
2015-06-28 12:55:21 -0600 answered a question 'module' object has no attribute 'SimpleBlobDetector'

Same problem here. Did the syntax change from all the examples? I find it strange that the line params = cv2.SimpleBlobDetector_Params() does not cause an error. In my case, the error is only with detector = cv2.SimpleBlobDetector(params) I have cv2.__version__ '3.0.0' running on Windows 7.

SOLVED Ok, syntax changed to SimpleBlobDetector_create() without notice. With my 3.0.0 version, this works:

detector = cv2.SimpleBlobDetector_create(params)
2015-06-28 09:25:13 -0600 commented answer Background Subtractiom

This answer worked for me, using OpenCV 3.0.0 / Python 2.7.5 on Windows 7

2015-06-28 09:13:54 -0600 received badge  Supporter (source)