Hi There!
I am trying to use the OpenCV and SIFT method on ROS. When I try to use the SIFT I get an error "Segmentation fault (core dumped)"
The example code snippet is shown below.
img = cv2.imread("messi5.jpg")
gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)
sift = cv2.FeatureDetector_create("SIFT")
sift.detect(gray,None)
cv2.imshow("window",gray)
If I delete the "sift.detect(gray,None)" line it works, but doesn't answer the purpose of the work.
I tried to find similar SOLVED questions but none of them suits for my problem. So, any recommendation?
↧