Template matching using single template from multiple images
cout << "Size of Template image =" << Img_Templ.size() << endl; Img_Result = Img_Scene.clone();//img_Scene is huge image Mat img1 = Img_Result(Rect(0, 0, 1000, 1000)); Mat img2 =...
View ArticleCan anyone let me know how can I use CvLevMarq class for 11 number of parameter?
I want to implement Levenberg-Marquardt Algorithm on a set of 11 number of parameters. Has anyone used CvLevMarq which can be used for non-linear square approximation? Any literature regarding the...
View ArticleHow to overload a class
HI, I want to overload two methods (SimpleBlobDetectorImpl::detect and SimpleBlobDetectorImpl::findBlobs) and in the file features2d.hpp I have: CV_WRAP virtual void detect( InputArray image, CV_OUT...
View Articlecascade classifier training troubles
Hello, every time I try to enter> C:\opencv\build\x86\vc12\bin\opencv_traincascade.exe> -data C:\opencv\build\x86\vc12\bin\LETTER_TRAIN> -vec C:\opencv\build\x86\vc12\bin\LETTER.vec> -bg...
View Articleknn for image classification in openCV 3.4.9
i want to train knn classifier for facial emotion recognition on the basis of SIFT features but unable to train knn classifier using: Ptr knn(ml::KNearest::create()); error is value followed by ml::...
View ArticleWriting a Video with OpenCV on Ubuntu
I'm trying to save a displayed video from my camera with OpenCV, but none of the codes I use are working. I'm using Ubuntu 14.04 and Qt as my IDE. What could you guys recommend me? The camera is Zed...
View ArticleVideoCapture::read() hangs
I have noticed that there are rare situations where VideoCapture::read() can hang indefinitely. I can't reproduce 100% (yet) but this has happened to me when reading from an HTTP stream where the...
View ArticleTrouble accessing the intensity value of a CV_U8 gray image in C++
In a larger context, I'd like to perform a sweep on detected circle object in a image, but cannot get a reasonable intensity value or I guess access the pixel correctly. I expect a uchar pixel type...
View ArticleHow to use train_HOG.cpp
Hello, I am using openCV since 2 weeks and I am having trouble getting along with train_HOG.cpp to train a human detector (https://github.com/Itseez/opencv/blob/master/samples/cpp/train_HOG.cpp). The...
View ArticleOpenCV Image frames not stabilizing
I am trying to perform a video stabilization technique using OpenCV and c++. This techniques involves the SURF detection and description, calculating homography and warping perspective based on the...
View ArticleHow does the Transcascade collect negative samples?
Hi all, e.g. **-numPos** 2000 **-numNeg** 1000 **-numStages** 10 **-w** 20 **-h** 20 **-minHitRate** 0.995, **-maxFalseAlarmRate** 0.2 I have some questions about collecting neg samples....
View ArticleOpenCV 3.1.0 Insufficient Memory
I'm using OpenCV 3.1.0, Python 3.5.1, and Windows 7. I'm trying to process 55 images, each about 4.5 MB, but every time I try to process/modify more than about 10 of them I get an insufficient memory...
View ArticleDrawing contours detected in image quickly turns into an all-black screen
Hi, I've been reading tutorials and I'm trying to detect rectangles from my webcam using OpenCV. When I run this code, I see white specs on parts of the screen for a few frames. These white areas...
View ArticleDraw line using mouse click function
Hi, I want to draw line between mouse clicked point 1 and point 2, then point 2 and point 3, like this till the close loop completion I want to draw line between two consecutive points. could you...
View ArticleHow to get raw data using OpenCV APIs
Hi all When I am using cvCaptureFromCAM and cvQueryFrame(), it creates image frames in RGB24 format. My Logitech camera generates YUV image. My query is How to disable this YUV to RGB conversion in...
View ArticlePrinting precise AR markers
Hi all, I'm trying to implement a class that automatically generates markers to locate and identify specific objects by means of a label. The markers are going to be printed and it is mandatory that...
View ArticleOpencv IP Camera Error
I am using andriod app (IP webcam) as ip camera. i'm running below code in separate thread. because if i run in main thread it crashes the program. VideoCapture cap; Mat img;...
View ArticleHaving problem with opencv_traincascade.exe crashing /w exception
Good day, I've got some project in University running wild with this problem. What I'm trying to do is to get these console-called functions like opencv_createsamples and opencv_traincascade executing...
View ArticlefindEssentialMat or decomposeEssentialMat do not work correctly
I ganerated 3d points, projected them to 2 cameras (dst and src) with known positions and tryed to recover camera positions. dst camera have no rotarions and translations, so one of rotations returned...
View Articlegood samples for opencv_traincascade?
Hi all, I'm a newbie of opencv and recently I've done a project using opencv_traincascade with LBP feature. I have around 2000 pos samples and also around 2000 neg samples. And with these, I tried to...
View Article