Select Timeout error in Ubuntu - Opencv

前端 未结 3 877
生来不讨喜
生来不讨喜 2020-12-15 00:54

I am trying to set OpenCv up for my final year project and have run into a couple of problems. I successfully got it set up in Ubuntu following this tutorial.

The pr

3条回答
  •  执笔经年
    2020-12-15 01:29

    It can be resolved if we add the following lines to the code:

    VideoCapture capture();
    capture.set(CV_CAP_PROP_FRAME_WIDTH , 352);
    capture.set(CV_CAP_PROP_FRAME_HEIGHT , 288);
    

    Following is a good link where the solution is explained in detail: http://derekmolloy.ie/beaglebone/beaglebone-video-capture-and-image-processing-on-embedded-linux-using-opencv/

提交回复
热议问题