Open lihongchun2007 opened 9 years ago
Are you sure about OpenCV version? Current version on master branch is 3.0 now
Sorry, it's my mistake. I actually have two versions of opencv installed my machine. Still trying to solve the problem.
So you are using 3.0?
I have tried only with 2.4 (few tags), never tried with OpenCV 3. Which version are you using?
i think it's using opencv 3.
Ok, I do not know whether the python wrapping would work the same in OpenCV 3. Let me know if you figure out.
Successfully compile the source code in another machine, ubuntu 14.04 and opencv.24.
Ok, thank you. Now I know it is not compatible with OpenCV 3.
When making the code, i get several errors about
NumpyAlloctor
andcvMat.refcount
. My machine is running on ubuntu 14.04.1, and opencv is from official repository, maybe opencv 2.4.I think is problem is caused by wrong version of opencv. What version of opencv you are using?
The first kind of error is
Parent class of
NumpyAllocator
isMatAllocator
, which is an abstract class. I check the source code of my opencv, NumpyAllocator has not implement several virtual function of MatAllocator. So NumAllocator is still an abstract class, can not be instantiated.The second kind of error is
In source code of my opencv,
refcount
is not a member ofcv::Mat
. It is wrapped inUMatData* u
, which is member ofcv::Mat
.