Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

Update Python bindings cv2.so after changing opencv source

$
0
0
I have modified the opencv cascade classifier's source code for object detection to incorporate new functionality. I made changes to the source code of opencv_createsamples and opencv_traincascade which are responsible for training the classifier. Then I also made similar changes to the cascade classifier's detectMultiScale which is the detector library. While the first two are executables the detector is compiled as an opencv library. Because of the changes to the source code of the library the Python wrapper cv2.so which links the C/C++ library to Python methods seems to be broken. As the set of symbols stored inside cv2.so pointing the sources are no more the same because of the changes I am getting the following error when I do import cv2. > ImportError: /usr/local/lib/python2.7/dist-packages/cv2.so: undefined symbol:_ZN2cv17CascadeClassifier16detectMultiScaleERKNS_11_InputArrayERSt6vectorINS_5Rect_IiEESaIS6_EEdiiNS_5Size_IiEESB_ How do I now update the Python bindings and hence cv2.so to reflect my changes? Any help is appreciated. Thanks.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>