Spaces:
Sleeping
Sleeping
Update pilecaps_adr.py
Browse files- pilecaps_adr.py +4 -4
pilecaps_adr.py
CHANGED
|
@@ -837,10 +837,10 @@ def drawAllContours(img,number,finalColorArray,ratioarea,ratioperim,flag , path,
|
|
| 837 |
if height>width:
|
| 838 |
lengthShape = height
|
| 839 |
|
| 840 |
-
widthMin= width-
|
| 841 |
-
widthMax= width+
|
| 842 |
-
heightMin=height-
|
| 843 |
-
heightMax= height+
|
| 844 |
|
| 845 |
if ratioarea !=0 and ratioperim!=0:
|
| 846 |
areaa=area1* ratioarea # true value of area of any shape/ area px value of same shape
|
|
|
|
| 837 |
if height>width:
|
| 838 |
lengthShape = height
|
| 839 |
|
| 840 |
+
widthMin= width-15
|
| 841 |
+
widthMax= width+15
|
| 842 |
+
heightMin=height-15
|
| 843 |
+
heightMax= height+15
|
| 844 |
|
| 845 |
if ratioarea !=0 and ratioperim!=0:
|
| 846 |
areaa=area1* ratioarea # true value of area of any shape/ area px value of same shape
|