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
cv2.cvtColor(img, cv2.COLOR_BGR2GRAY);
Use this line on the image you wish to find contours on and it should work, because it will convert your image to 8UC1 format (grayscale).