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
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.
8UC1
uint8