I have a image that processed to find edges with canny edges algorithm, now i need to draw bounding boxes around this shapes. The problem is that when i use
cv2.findContours
i get this error
error: OpenCV(4.1.2) /io/opencv/modules/imgproc/src/contours.cpp:197: error: (-210:Unsupported format or combination of formats) [Start]FindContours supports only CV_8UC1 images when mode != CV_RETR_FLOODFILL otherwise supports CV_32SC1 images only in function 'cvStartFindContours_Impl'
the image is the shape of a pig.
How can i accomplish this?