Spaces:
Sleeping
Sleeping
Update pilecaps_adr.py
Browse files- pilecaps_adr.py +1 -1
pilecaps_adr.py
CHANGED
|
@@ -728,7 +728,7 @@ def getAreasPerimeter(img,ratioarea,ratioperim,contourssP,contourssA):
|
|
| 728 |
height=heightR
|
| 729 |
if (area1 > 2000 ): #check perimeter kman fl condition -- 2800
|
| 730 |
if ratioarea!=0 and ratioperim!=0:
|
| 731 |
-
areaa=round(area1* ratioarea ,
|
| 732 |
appended.append([areaa,width,height])
|
| 733 |
return appended
|
| 734 |
#fill dictionary with areas and perimeters and occurences
|
|
|
|
| 728 |
height=heightR
|
| 729 |
if (area1 > 2000 ): #check perimeter kman fl condition -- 2800
|
| 730 |
if ratioarea!=0 and ratioperim!=0:
|
| 731 |
+
areaa=round(area1* ratioarea , 3) # true value of area of any shape/ area px value of same shape
|
| 732 |
appended.append([areaa,width,height])
|
| 733 |
return appended
|
| 734 |
#fill dictionary with areas and perimeters and occurences
|