OpenCv error can't open camera through video capture

后端 未结 6 2029
太阳男子
太阳男子 2021-01-17 20:01

I was using my cam through opencv and suddenly after restarting I ran my code it shows below error:

[ WARN:0] global /io/opencv/modules/videoio/src/cap_v4l.c         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-17 20:53

    I had the same problem, Just change 0 to 1,then to -1 and back again to 0. Don't know why this worked for me.

提交回复
热议问题