Marthee commited on
Commit
9c7814b
·
verified ·
1 Parent(s): 44ba218

Update pilecaps_adr.py

Browse files
Files changed (1) hide show
  1. 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 , 2) # 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
 
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