Python-OpenCV cv2 OpenCV Error: Assertion failed (scn == 3 || scn == 4) in unknown function, file ..\..\..\modules\imgproc\src\color.cpp

前端 未结 4 1212
半阙折子戏
半阙折子戏 2020-12-09 02:32

I am trying to learn contours in python using cv2.

I tried the following code given in a tutorial guide:

import cv2
import numpy as np
from matplotli         


        
4条回答
  •  醉梦人生
    2020-12-09 03:13

    I had this problem and couldn't find a solution, but on the web, it was working. My solution was almost funny - you can't have two streams. I turned off the web stream and then it was fine!

提交回复
热议问题