Spaces:
Runtime error
Runtime error
SuperPunk2077
commited on
Commit
·
f4ddd94
1
Parent(s):
1fc9b3a
Update app.py
Browse files
app.py
CHANGED
@@ -48,11 +48,10 @@ def main(argv):
|
|
48 |
cv_he = cv2.equalizeHist(gray)
|
49 |
#cv2.imshow('HE', cv_he)
|
50 |
|
51 |
-
ualized image
|
52 |
|
53 |
_, contours, hierarchy = cv2.findContours(cv_he, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
|
54 |
|
55 |
-
|
56 |
|
57 |
# sort contours by contour area
|
58 |
# keep only contours that are larger than 10% of the image area
|
|
|
48 |
cv_he = cv2.equalizeHist(gray)
|
49 |
#cv2.imshow('HE', cv_he)
|
50 |
|
|
|
51 |
|
52 |
_, contours, hierarchy = cv2.findContours(cv_he, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
|
53 |
|
54 |
+
ContourSeparation=(20,20))
|
55 |
|
56 |
# sort contours by contour area
|
57 |
# keep only contours that are larger than 10% of the image area
|