cv2.findContours fails to detect black rectangle aligned with x-axis

You should reduce your code into just a couple of lines that test findCountours directly from what it returns, and not after lots of further processing, which, as far as we know, might as well - or actually more probably - cause the issue

1 Like