Closed izengpan closed 5 years ago
Hi, I haven't tried. I think it should should work. You can post here if you meet problems.
/root/catkin_ws/src/pop_up_image/numpy_opencv/src/utils/conversion.cpp:182:16: error: cannot declare variable ‘g_numpyAllocator’ to be of abstract type ‘NumpyAllocator’ NumpyAllocator g_numpyAllocator;
have you ever encountered this problem?
/root/catkin_ws/src/pop_up_image/numpy_opencv/src/utils/conversion.cpp:280:16: error: ‘class cv::Mat’ has no member named ‘refcount’ m.refcount() = refcountFromPyObject(o);
This is another problem when running the codes. Please have a look. thanks
Hi, numpy_opencv is an external package, I used it just to convert numpy array between opencv mat as there is some small python function I could not find replacement in c++. I looked at their original repo and found similar problem due to opencv3 as yours: https://github.com/spillai/numpy-opencv-converter/issues/9 seems people provided solution at the end. So maybe you should look at that.
Thanks for your quick reply! And I have solved my problem with the suggestions.
Hello, your codes were ran in ubuntu14.04+ROS indigo. Have you ever tried them on ubuntu16.04+ROS? Thanks for your reply.