Skip to content Skip to sidebar Skip to footer

Opencv Doesn't Come With "external" Libraries

I tried this example from the OpenCV website: import numpy as np import cv2 from matplotlib import pyplot as plt # changed the image names from box* since the sample images were n

Solution 1:

I'm not entirely sure if this is applicable, but at some point they stopped supporting SIFT in the later versions of opencv I believe due to the fact that it is patented or something related (source?), however an alternate is to use ORB which will have a similar effect.

You could try something like this:

from cv2 importORBasSIFT

However in the event that you get an import error this also might work for you:

SIFT = cv2.ORB_create

If you insert those near the top of your file, then likely you can leave "SIFT" as it is throughout the file (well more or less, you get the idea, basically replace the cv2.Sift() with sift = SIFT() and you should be in better shape.)

Post a Comment for "Opencv Doesn't Come With "external" Libraries"