Ask Your Question

Terry's profile - activity

2018-10-16 06:12:27 -0600 received badge  Popular Question (source)
2016-01-13 22:33:57 -0600 asked a question A raw format for testing purposes?

Hi, For adding some unit tests, I would like to create some image files in raw format. So, that I can load them later from for use in a test harness. imwrite can't save in raw format. what format do I save in? Is this ppm ok for that purpose? Or should you store a numpy array and read it back?

2016-01-05 02:37:39 -0600 commented question Interactive debugging with cvv debug

Oh! Thanks for the info.
And that seems to require us to download some 10gb and rebuild. Enough building now.

2016-01-05 01:11:15 -0600 asked a question Interactive debugging with cvv debug

Hi, I saw this tutorial on this debugging module called cvv debug. I built opencv3 and my install folder's include directory does not have the folder "opencv2/cvv". The cvv module didnt get built when I built contrib.

http://docs.opencv.org/master/d7/dcf/...

I provided the path to extra modules while building and I can see many contrib modules (aruco, bioinspired, dnn) have been built.

Could you tell me if how to build cvv module and do cvv interactive debugging? Thanks

2015-12-27 21:11:14 -0600 commented question Intel IPP Asynchronous C/C++

Hi, I downloaded a community edition of IPP. I am about to read the docs. However, it appears IPP Asynchronous is a part of something called IPP preview. No one here has built opencv with IPP Asynchronous?

2015-12-27 08:34:59 -0600 asked a question Intel IPP Asynchronous C/C++

Hi, Where do I get "Intel IPP Asynchronous C/C++ "? Sorry, Can't seem to find a link to the download. Could you help please T

2015-12-26 09:06:01 -0600 commented question opencv python build error

Hi, I have no solution for you just more questions. For python extensions like cv2.pyd aren't you supposed to use the same compiler as the python executable? Since your is python27 it would be VS2008. (The python interpreter would says so at startup). you should build using VS2008 then I would think. This is a question I raised here but nobody answered - http://answers.opencv.org/question/80...

2015-12-23 12:31:28 -0600 received badge  Editor (source)
2015-12-23 12:30:12 -0600 asked a question Python extensions and compiler

Hi, Can I build opencv-python3 bindings using visual studio 2013 for python3.4?

Normally, the python executable and the python extension dlls are supposed to be binary compatible. Since, python3 uses visual studio 2010, all extensions have to be in VS 2010. (I am correct?)

I use Anaconda python3.4 . It looks like this :

*Python 3.4.3 |Continuum Analytics, Inc.| (default, Dec 1 2015, 11:39:45) [MSC v.1600 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information.

*

However, I just saw that opencv python bindings are being generated with some macro magic and stub code that includes python3 header files. So, perhaps I have missed something here.

My question is - Can I build opencv python3 bindings with vs2013?

2015-12-22 10:00:25 -0600 commented answer Win Build error cv::sqrt ambiguous call

Oh I see. will do that.

2015-12-21 08:39:34 -0600 asked a question Win Build error cv::sqrt ambiguous call

Hi, I downloaded opencv for windows from here - http://opencv.org/downloads.html

I did cmake. And then building with visual studio 2010. I get a build error in opencv_text

........\opencv_contrib\modules\text\src\ocr_beamsearch_decoder.cpp(569): error C2668: 'cv::sqrt' : ambiguous call to overloaded function

Is this a known problem.Have I got the wrong source? Or is there some compiler setting I should specify?.

2015-12-20 21:37:56 -0600 commented question Anyone built opencv3 with py2.7 and py3?

Are there any threads that talk about building for both python versions? Do people simply move to python3 with all their legacy code?

2015-12-20 20:31:22 -0600 asked a question Anyone built opencv3 with py2.7 and py3?

Doing a build with SHARED_LIBS OFF created under <build-directory> lib/cv2.so and lib/python3/cv2.cpython-34m.so. Are these the final ones and can I just pick them up?

Or Do you need separate builds like it is mentioned here - http://www.pyimagesearch.com/2015/07/...

Thanks for all the wonderful help here.

2015-12-20 09:30:01 -0600 asked a question opencv with python2.7 and python 3

Hi, I am trying to build both opencv3 for python2.7 and python3.

I was inside a virtualenv for python2.7 and then called cmake & make as static libs. These files got created lib/cv2.so lib/python3/cv2.cpython-34m.so

Both python3 and python2.7 cv2.so files have been built.

My questions are -

1) It seems to build cv2.so for both python2 and python3. Does it matter which python environment I am in? Can I just pick these up? Or Create another virtualenv for python3 and do a build? like it is mentioned here. http://www.pyimagesearch.com/2015/07/...

2) Can I just copy these two files. I don't want to do any make install.

Thanks T

2015-12-19 06:19:16 -0600 commented question cv2.so with python2.7 and 3.4

Thanks. Will do so in the future. Mean time I went ahead with /usr/local as install prefix.

I discovered somethings strange. I built opencv under python2.7 virtual env. (Basically virtualenv -p /usr/bin/python2.7 )

I did an out of source build under the directory buildpy27. This built two files under the build tree : buildpy27/lib/cv2.so AND buildpy27/lib/python3/cv2.cpython-34m.so # why the later one??

Any ideas why both .so files are getting built. Does that mean I don't need a seperate opencv build for the python3.4?.

And doing sudo make install created these : /usr/local/lib/python2.7/site-packages/cv2.so AND /usr/local/lib/python3.4/site-packages/cv2.cpython-34m.so So, why this cv2.cpython-34m.so? Wouldn't this be built and installed only when I build under python3 env?

2015-12-19 02:10:25 -0600 commented question cv2.so with python2.7 and 3.4

Hi, What about CMAKE_INSTALL_PREFIX? Everyone is setting it to /usr/local. Can I set it to my home directory ~/usr/local? Infact I thought the good practice was to install everything in your python virtual environment like ~/py27env , ~/py3env ?

2015-12-17 23:44:19 -0600 commented question cv2.so with python2.7 and 3.4

Hey, is this -DBUILD_SHARED_LIBS=OFF the right way? Oh god. That would have saved so much time. It really ought to be mentioned in the website somewhere.

2015-12-17 23:08:49 -0600 received badge  Enthusiast
2015-12-16 12:38:56 -0600 asked a question Eigen, OpenEXR, OpenNI on Linux

Hi, This is the page I follow for Linux build - http://docs.opencv.org/master/d7/d9f/... It doesnt have the info. Can I build opencv with support for Eigen, OpenEXR, OpenNI in linux(debian)? I am especially interested in openni. Thanks

2015-12-15 10:47:37 -0600 asked a question cv2.so with python2.7 and 3.4

Hi, I built cv2.so for python2.7 and python3.4 in raspbian. They both work and I can do import cv2.

However, when I wanted to understand where all the binaries are installed by cmake, I noticed something strange and I didn't understand.

Both py2.7 and py3.4 cv2.so files are depending on the same shared objects. The following is the ldd output

    $ldd py27cv2.so  #python 2.7 
    linux-vdso.so.1 (0x7ee2d000)
    /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76e66000)
    **libpython2.7.so.1.0 => /usr/lib/arm-linux-gnueabihf/libpython2.7.so.1.0 (0x76b2f000)        **
    libopencv_core.so.3.0 => /lib/libopencv_core.so.3.0 (0x7691c000)
    libopencv_flann.so.3.0 => /lib/libopencv_flann.so.3.0 (0x768c9000)
    libopencv_imgproc.so.3.0 => /lib/libopencv_imgproc.so.3.0 (0x765f8000)
    libopencv_ml.so.3.0 => /lib/libopencv_ml.so.3.0 (0x76561000)


    $ldd py34cv2.so #python 3.4         
    linux-vdso.so.1 (0x7ef97000)
    /usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76dce000)
    **libpython3.4m.so.1.0 => /usr/lib/arm-linux-gnueabihf/libpython3.4m.so.1.0 (0x769fe000)        **
    libopencv_core.so.3.0 => /lib/libopencv_core.so.3.0 (0x767eb000)
    libopencv_flann.so.3.0 => /lib/libopencv_flann.so.3.0 (0x76798000)
    libopencv_imgproc.so.3.0 => /lib/libopencv_imgproc.so.3.0 (0x764c7000)
    libopencv_ml.so.3.0 => /lib/libopencv_ml.so.3.0 (0x76430000)

Do note the offsets in brackets seem to differ between the two versions. Otherwise both py2.7 cv2.so and py34 cv2.so are dependent on the shared objects (libopencv_core.so.3.0 etc).

Is this correct or is something wrong and it may cause problems later. If this right, could you please tell me how this works and why mixing so files is ok here?
Thanks T

2015-12-03 06:51:01 -0600 answered a question Opencv3 introduction documentation

Ok, Thanks. Seems both versions ok. Any observations on Python 3&opencv? Any advantages of moving to Py3? Say performance or some features like threading (with respect to opencv) . Would it be a big switch to move code from Py2.7 to Py3 (in terms of opencv APIs). I hear that most scientific and big data utils have not yet moved to Python3 and will take while. Do teams choose Pythpon3&opencv for commercial development?

2015-11-29 11:41:36 -0600 asked a question Opencv3 introduction documentation

Hi, I would like to use the latest version of opencv. (I believe this is the documentation for opencv3 http://docs.opencv.org/master/index.h...) Could you please tell me where in the opencv documentation, I can find the following information :

1) What versions of python does opencv3 work with?
2) Where is the quick start tutorial for opencv3?

Thanks T

2015-10-10 09:47:18 -0600 received badge  Student (source)
2015-10-10 06:29:51 -0600 asked a question hit and miss transform

I am looking at opencv functions. Could you please tell me how to do hit and miss transform - http://homepages.inf.ed.ac.uk/rbf/HIP...

It appears I can create my structuring element. However, I can only do erode, dilate, open, close, tophat, blackhat, gradient.

Given my own structuring element, how do I (use opencv to efficiently ) perform hitandmiss? Thanks T