Python OpenCV FLANN crash
Jul. 28th, 2016 01:22 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Pytyhon OpenCV FLANN may crash with message:
"OpenCV Error: Assertion failed (The data should normally be NULL!) in allocate, file /home/old-ufo/opencv/modules/python/src2/cv2.cpp, line 163
Traceback (most recent call last):
File "kd.py", line 120, in <module>
flann.add( [ descs ] )
cv2.error: /home/old-ufo/opencv/modules/python/src2/cv2.cpp:163: error: (-215) The data should normally be NULL! in function allocate"
To heal this, use following commit: https://github.com/opencv/opencv/commit/05cfe28612fd8dc8fb0ccb876df945c7b435dd26