Attention! This forum will be made read-only by Dec-20. Please migrate to https://forum.opencv.org. Most of existing active users should've received invitation by e-mail.
Ask Your Question

Hamid Bazargani's profile - activity

2018-09-13 07:31:55 -0500 received badge  Popular Question (source)
2013-04-12 04:26:11 -0500 received badge  Student (source)
2013-03-17 15:18:18 -0500 commented answer VideoCapture is not working with OpenCV 2.4.3

I almost tested all possible combinations!

2013-03-17 13:57:48 -0500 commented answer VideoCapture is not working with OpenCV 2.4.3

I did the same thing. my specified argument is like : C:\Users\ASUS\my_proj\video.avi But still not working. actually it was working well with OpenCV 2.4.1

2013-03-16 18:31:46 -0500 commented answer VideoCapture is not working with OpenCV 2.4.3

Thanks for suggestion. I did the way you said but I get error on " argv[1].c_str() " . I added the line to my project for multibyte char DEFINES += _MBCS

2013-03-15 19:50:29 -0500 asked a question CreateTrackbar() is awkward in OpenCV 2.4.3

Hi, I want to create a track bar in OpenCV 2.4.3. I write a sample code for that as regular, but the output is not like before.

image description

This is my sample code and I'm using QT creator 5 on windows platform.

 int aa=5;
 cv::namedWindow("Cut histogram edges input image",1);
 cv::createTrackbar("histogram edges clipping limit", "Cut histogram edges input image",&aa,50);
 cv::namedWindow("Retina Parvo", 1);

Does anybody know why my output window is like the image above? Thanks

2013-03-15 19:36:42 -0500 asked a question VideoCapture is not working with OpenCV 2.4.3

Hi everybody, Recently I migrated to OpenCV 2.4.3 from 2.4.1.

My program which worked well with 2.4.1 version now encounters problem with 2.4.3.

The problem is related to VideoCapture that can not open my video file.

I saw similar problem while searching the net but I couldn't find a proper solution for this. Here is my sample code:

VideoCapture video(argv[1]);
while(video.grab())
{
    video.retrieve(imgFrame);
    imshow("Video",ImgFrame);
    waitKey(1);
}

It's worth mentioning that capturing video from webcam device works well but I want to grab stream from file.

I'm using Qt creator 5 and I compiled OpenCV with MingW. I'm on Windows platform either.

I tried several different video formats and I rebuilt opencv with and without ffmpeg. But the problem is still consistent.

Any idea to solve the problem?

Thanks