Marthee commited on
Commit
6b00cec
·
1 Parent(s): 6c9bd43

Update pilecaps_adr.py

Browse files
Files changed (1) hide show
  1. 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-10
841
- widthMax= width+10
842
- heightMin=height-10
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
 
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