FindContours support only 8uC1 and 32sC1 images

后端 未结 4 1121
独厮守ぢ
独厮守ぢ 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 06:08

    For completion, the 8UC1 format is 8 byte, unsigned, single channel. In addition to cv2 grayscale, single-channel uint8 format will also be valid, in case anyone is building the image outside of cv2 functions and encounters this error.

提交回复
热议问题