OpenCV Python: Occasionally get segmentation fault when using FlannBasedMatcher

被刻印的时光 ゝ 提交于 2019-12-04 09:59:19

At the point that it fails, there probably is a blank image or an image with very few descriptors. The descriptor matrix is then empty and hence it fails.

It says here in this link the following:

flann.add([descriptors])

http://answers.opencv.org/question/44592/flann-index-in-python-training-fails-with-segfault/

Hope it helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!