We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a81d86 commit f37d860Copy full SHA for f37d860
examples/ex05_detect_sfe_logo.py
@@ -54,7 +54,7 @@
54
# logo on a light background (or vice versa), but you can modify this to
55
# find specific colors or use other methods if desired
56
gray = cv.cvtColor(frame, cv.COLOR_BGR2GRAY)
57
- thresh = cv.threshold(gray, 0, 255, cv.THRESH_BINARY | cv.THRESH_OTSU)
+ ret, thresh = cv.threshold(gray, 0, 255, cv.THRESH_BINARY | cv.THRESH_OTSU)
58
59
# Find contours in the binary image, which represent the boundaries of
60
# shapes. Contours are a powerful tool in OpenCV for shape analysis and
0 commit comments