Spaces:
Sleeping
Sleeping
Update pilecaps_adr.py
Browse files- pilecaps_adr.py +1 -1
pilecaps_adr.py
CHANGED
|
@@ -843,7 +843,7 @@ def drawAllContours(img,number,finalColorArray,ratioarea,ratioperim,flag , path,
|
|
| 843 |
heightMax= height+10
|
| 844 |
|
| 845 |
if ratioarea !=0 and ratioperim!=0:
|
| 846 |
-
areaa=
|
| 847 |
perimeterr=round(perimeter1* ratioperim,3)
|
| 848 |
lengthShape=round(lengthShape* ratioperim,3)
|
| 849 |
else:
|
|
|
|
| 843 |
heightMax= height+10
|
| 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
|
| 847 |
perimeterr=round(perimeter1* ratioperim,3)
|
| 848 |
lengthShape=round(lengthShape* ratioperim,3)
|
| 849 |
else:
|