OpenCV Error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'CvtHelper'

后端 未结 4 1992
攒了一身酷
攒了一身酷 2020-12-20 13:02
Traceback (most recent call last):
File \"demo.py\", line 132, in 
     `result = find_strawberry(image)`
File \"demo.py\", line 63, in find_strawberry
`image = cv2.         


        
4条回答
  •  無奈伤痛
    2020-12-20 13:21

    get the same error while using trackbar in opencv but this method resolved it:

    img = np.full((512,512,3), 12, np.uint8)
    

    where img is your image

提交回复
热议问题