OpenCV Python Error Assertion failed (scn == 3 || scn == 4)

前端 未结 1 441
一向
一向 2021-01-14 19:50

I just started playing around with OpenCV in Python and am running into an assertion error. I copied the following code from a tutorial, but it\'s not working f

1条回答
  •  梦毁少年i
    2021-01-14 20:19

    After ret, frame = cap.read(), add if not ret: continue.

    Some cam-drivers return an invalid first frame.

    0 讨论(0)
提交回复
热议问题