1 | initial version |
recently i learned the reason from the book OpenCV 3 Blueprints
lets look parameters of detectMultiScale
CV_WRAP void detectMultiScale( InputArray image,
CV_OUT std::vector<Rect>& objects,
double scaleFactor = 1.1,
int minNeighbors = 3, int flags = 0,
Size minSize = Size(),
Size maxSize = Size() );
minNeighbors
Parameter specifying how many neighbors each candidate rectangle should have
to retain it.
if you set minNeighbors prameter to zero you will get all the candidates
so you should to change your code like
euro2_cascade.detectMultiScale( src_gray, money, 1.1, 3, 0, cv::Size(10, 10),cv::Size(2000, 2000) );
also i think minSize
parameter value is too small
2 | No.2 Revision |
recently i learned the reason from the book OpenCV 3 Blueprints
lets look parameters of detectMultiScale
CV_WRAP void detectMultiScale( InputArray image,
CV_OUT std::vector<Rect>& objects,
double scaleFactor = 1.1,
int minNeighbors = 3, int flags = 0,
Size minSize = Size(),
Size maxSize = Size() );
minNeighbors
Parameter specifying how many neighbors each candidate rectangle should have
to retain it.
if you set minNeighbors minNeighbors
prameter to zero you will get all the candidates
so you should to change your code like
euro2_cascade.detectMultiScale( src_gray, money, 1.1, 3, 0, cv::Size(10, 10),cv::Size(2000, 2000) also i think minSize
parameter value is too small
3 | No.3 Revision |
recently i learned the reason from the book OpenCV 3 Blueprints
lets look parameters of detectMultiScale
CV_WRAP void detectMultiScale( InputArray image,
CV_OUT std::vector<Rect>& objects,
double scaleFactor = 1.1,
int minNeighbors = 3, int flags = 0,
Size minSize = Size(),
Size maxSize = Size() );
minNeighbors
Parameter specifying how many neighbors each candidate rectangle should have
to retain it.
if you set minNeighbors
prameter parameter to zero you will get all the candidates
so you should to change your code like
euro2_cascade.detectMultiScale( src_gray, money, 1.1, 3, 0, cv::Size(10, 10),cv::Size(2000, 2000) );
also i think minSize
parameter value is too small