FindContours support only 8uC1 and 32sC1 images

后端 未结 4 1130
独厮守ぢ
独厮守ぢ 2021-02-14 05:42

i hava problem in fire detection my code is :

ret, frame = cap.read()
lab_image = cv2.cvtColor(frame, cv2.COLOR_BGR2LAB)
L , a , b = cv2.split(lab_image)
ret,t         


        
4条回答
  •  醉酒成梦
    2021-02-14 05:49

    The documention of findContours is clearly saying that it can afford to take single channel images as inputs(i.e 8uc1 and 32sc1) But you are sending 3 channel image.here is the documentation of findcontours http://docs.opencv.org/2.4/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html#findcontours

提交回复
热议问题