Ask Your Question

keyvan's profile - activity

2014-08-20 22:44:07 -0500 received badge  Editor (source)
2014-08-20 22:24:38 -0500 answered a question Video Recording is too fast

I have buffer a few frame in ram and after an event occurred write 3 second buffered images and continue to 10 seconds write in a single file . but buffered image play backing is too fast of other part of video . the length of video is true but playback isn't true.

        writer->open(RecordPath , CV_FOURCC('M', '4', 'S', '2'), Fps, Width, Height, true);

        int delay = 1000 / Fps;
        for (int i = 0; i != buffer.Count-1; i++)
        {
            writer << (buffer[i]);
        }

        int frame_counter = 0;
        while (frame_counter < Recoerd_frame_size)
        {  
            WaitKey(delay);//wait for get new frame
            writer << (frame);
            frame_counter++;
        }
2014-06-30 07:54:17 -0500 answered a question Cascade Training Error OpenCV 2.4.4 - Train dataset for temp stage can not filled. Branch training terminated. Cascade Classifier can't be trained. check the used training parameters

I this get this error , too. I try with older version of haartraning.exe and worked but with traincascade.exe in opencv 2.4.6 dont work . plz help i want lbp classifiction. any body know what this problem occured ???

haartraining.exe -data data -vec pos.vec -bg bg.txt -npos 500 -nneg 500 -w 48 -h 24 older traincascade.exe -data data -vec pos.vec -bg bg.txt -numPos 500 -numNeg 500 -w 48 -h 24 newer