Ask Your Question

vbopencv's profile - activity

2014-06-14 08:46:00 -0600 asked a question Opencv and traincascade.exe

Looking for a simple/small example of creating the cascade.xml using the opencv_traincascade.exe and a corresponding vc++ example that will test the results.

I would need the positive, negative, and a few test images and create_sample and open_traincasde command to generate the cascade.

I tried may example from online but can't seem to get it all working together

I currently use the below I found on the web: c:\opencv2.2\bin\opencv_createsamples -data C:\working_haar_car\CarDataExt -info cars_info.txt -num 550 -vec cars.vec -w 48 -h 24

c:\opencv2.2\bin\opencv_traincascade.exe -data C:\working_haar_car\CarDataExt -vec cars.vec -bg bg.txt -numPos 500 -numNeg 500 -numStages 2 -w 48 -h 24 -featureType LBP

it generate the cascade.xml

but when I use the sample program:

C:\OpenCV2.2\samples\c\facedetect.exe --cascade=cascade.xml test_non1.jpg

the images show but the detection is all over the place.

2014-05-24 20:55:02 -0600 asked a question Read frame by frame VC++

How do read a particular frame from a capute file

Current Code:

cvSetCaptureProperty(capture,CV_CAP_PROP_POS_FRAMES, trackBar2); // set to value of trackBar
frame =  cvQueryFrame(capture); 
label8->Text = "Frame No.: " + (int)cvGetCaptureProperty(capture,CV_CAP_PROP_POS_FRAMES) + " trackBar2->value: " + trackBar2->Value ;

It seems the (int(cvGetCaptureProperty(capture, CV_CAP_PROP_POS_Frames) doesn't give the next or prior frame when I adjust the trackBar2 which step back or forward by 1. It seems the trackBar2-Value increment correctly by 1 or -1 (depending on the scroll) but the CV_CAP_PROP_POS_Frames a random value.

2014-05-23 19:22:20 -0600 asked a question multiple webcams VC++

Need simple code in Visual Studio C++ to list multiple webcam attached to pc so to be able to select a particular webcam. Thanks

2014-05-22 19:13:03 -0600 asked a question VC++ Capture CAM to file

Need a simple vc++ using opencv to capture webcam to file, don't want to use Emgu. Thanks

2014-05-22 18:59:31 -0600 received badge  Student (source)
2014-05-22 18:31:19 -0600 asked a question Using Visual C++ to write webcam to file

Need simple code to wirte webcam to file using VC++ and OPencv - no Emgu. Thanks

2014-05-22 18:28:22 -0600 asked a question Size VideoWriter

I am getting a build error with the following:

Size frameSize(static_cast<int>(dWidth), static_cast<int>(dHeight)); VideoWriter oVideoWriter("c://aaaa_ret/MyVideo.avi", CV_FOURCC('P','I','M','1'), 20, frameSize, true);

Error: Form1.h(307): error C2146: syntax error : missing ';' before identifier 'frameSize'

Form1.h(307): error C3861: 'frameSize': identifier not found

Form1.h(309): error C2065: 'frameSize' : undeclared identifier

I am trying to use Visual Studio C++ and Opencv

2014-05-18 18:48:48 -0600 asked a question OPENCV and Window FORMs

Does someone have a simple example of OPECV using VC++ and windows FORMS. thanks

2014-05-13 07:38:22 -0600 received badge  Editor (source)
2014-05-13 06:40:00 -0600 asked a question visual basic 2010 and traincascade cascade.xml

I have a VB code that can use the haartraining.exe created cascade.xml

Current sample:

Dim hcEyeDetector As HaarCascade hcEye Detector = New HaarCascade("C:\aaaa_ret\working_haar_car\CarDataExt\cascade.xml")

What changes are needed to use the new traincascade.exe created cascade.xml format for VB2010

I am using the EMGU support layer which works fine with OPENCV but it use the "Dim ... as HaarCasacde" with works with cascade.xml file from the opencv haartraining.exe.