Logo recognition in images [closed]

You could try to use local features like SIFT here: http://en.wikipedia.org/wiki/Scale-invariant_feature_transform It should work because logo shape is usually constant, so extracted features shall match well. The workflow will be like this: Detect corners (e.g. Harris corner detector) – for Nike logo they are two sharp ends. Compute descriptors (like SIFT – 128D integer vector) … Read more

Detection of coins (and fit ellipses) on an image

Here’s some C99 source implementing the traditional approach (based on OpenCV doco): #include “cv.h” #include “highgui.h” #include <stdio.h> #ifndef M_PI #define M_PI 3.14159265358979323846 #endif // // We need this to be high enough to get rid of things that are too small too // have a definite shape. Otherwise, they will end up as ellipse … Read more

error: (-215) !empty() in function detectMultiScale

I had the same issue. I didn’t need to download anything else to solve this. CV2 had everything I needed. Instead of trying to figure out where the .xml files are and hard coding the values, I used a property given by cv2. From OP face_cascade = cv2.CascadeClassifier(‘haarcascade_frontalface_default.xml’) eye_cascade = cv2.CascadeClassifier(‘haarcascade_eye.xml’) Becomes face_cascade = cv2.CascadeClassifier(cv2.data.haarcascades … Read more