Jun-07-2021, 12:56 PM
This is a bug in Python or a library. The whole point of Python is to avoid any possibility of getting a segmentation fault. If you get one, you have discovered a bug. Python cannot generate seg faults based on your program; if there is one, it is a mistake in the implementation of Python or the library that you are calling, which may have been written in C for performance. Not your problem. The bug appears to be in sift.detectAndCompute() based on the output produced. It failed between lines 13 (successful printout) and 16 so the only possibility is line 15. File a bug report. Probably for the cv2 library.