Ask Your Question

navderm's profile - activity

2017-11-07 22:19:52 -0500 received badge  Notable Question (source)
2017-04-18 11:51:31 -0500 received badge  Popular Question (source)
2014-11-05 23:15:02 -0500 received badge  Critic (source)
2014-10-26 21:08:37 -0500 asked a question Cannot find python libraries for CMake in Opencv3.0.0

Trying to build Opencv3.0.0 (dev), cmake finds the binary and python 2 locations but isn't able to include python libraries.

I use cmake-gui for makefile generation. While configuring cmake, it gives this piece of info along with other various :

-- Python 2:

-- Interpreter: /usr/bin/python2.7 (ver 2.7.6)

-- Libraries: NO

-- numpy: /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.8.2)

-- packages path: lib/python2.7/dist-packages

-- Python 3:

-- Interpreter: /usr/bin/python3.4 (ver 3.4)

I have cross checked and the input for python2 I provide are all correct (included as attachment): enter image description here (Please take a look at the image before reading further)

So, now I am wondering whether this is architecture problem or version problem (compatibility with different versions of opencv, python, cmake)

Versions I am currently using are : opencv : 3.0.0-dev

python2 : 2.7.6

python3 : 3.4.0

cmake :

System : ubuntu 14.04 (amd architecture, 64 bit)

Linux Kernel version : Linux version 3.13.0-27-generic (buildd@akateko) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #50-Ubuntu SMP Thu May 15 18:06:16 UTC 2014

I am, at this point stuck as to what to do . Can someone nudge me in right direction please.

P.S. Guys working on opencv. I absolutely hate what you've done with 3.0.0 !!

2014-10-24 11:51:10 -0500 received badge  Supporter (source)
2014-10-24 08:38:59 -0500 received badge  Nice Question (source)
2014-10-23 15:47:59 -0500 received badge  Editor (source)
2014-10-23 15:35:25 -0500 asked a question Why opencv changed its API for feature detection in 3.0.0

I understand that this is more of a rant than question but is also being posted out of curiosity. Why on earth did opencv change APIs for a perfectly stable module (features2d and nonfree (sift and surf) ). Are they really that jobless or is there a specific reason for this ?

Also, cv::Ptr changed too ! I can understand this might introduce safety but should constructors not have been explicit in the first design itself !

It's broken quite a bit of my code and now I have spent about 5 hours fixing it and will be here all night. Thanks for that !!

2014-10-15 02:01:10 -0500 answered a question HOW TO: mser constructor with algorithm parameters (python)
mser = cv2.MSER(1, 0, 94400, 0.05, 0.02, 200, 1.01, 0.003, 5)
regions = mser.detect(gray, None)
hulls = [cv2.convexHull(p.reshape(-1, 1, 2)) for p in regions]
cv2.polylines(vis, hulls, 1, (0, 255, 0))
cv2.putText(vis, str(change), (20, 20), cv2.FONT_HERSHEY_SIMPLEX, 2, (255, 0, 0))

This worked perfectly fine for me.

2014-10-13 21:01:17 -0500 commented question Installing 2.4.9 with one module of 3.0.0

In that case, I think I'll try to go ahead and upgrade from opencv 2.4.9 to 3.0.0 . But if cv::Ptr<> is changed, is 3.0.0 backward compatible ?

2014-10-08 08:24:45 -0500 asked a question Installing 2.4.9 with one module of 3.0.0

Company-wide use is of opencv 2.4.9 but I wanted to add "shape" module available in 3.0.0 in 2.4.9 and reinstall it.

I looked at the code of sources and declarations in shape module and didn't seem like there would be any complicated dependencies and it seems like the module is self contained.

Simply copying header and source files, obviously doesn't work.

How do I accomplish this. Simply copying shape module into module folder doesn't work. I need to add something in CMake somewhere !

2012-12-05 02:22:28 -0500 received badge  Student (source)
2012-12-04 10:18:12 -0500 asked a question clone fails with a static library

Hi All,

I have a problem where a colleague of mine wrote a modified background subtraction . The load image in that library is something like

bool loadImg(Mat& a) { member_var_mat = a.clone(); return true; }

This gives me a segmentation fault. I can't figure out what the problem is. the matrix coming in (a ) is alright with r.t. size and emptiness. But when i clone, it segfaults . Any help appreciated.