Skip to content

Commit

Permalink
contours updated
Browse files Browse the repository at this point in the history
  • Loading branch information
alirezaahmadi committed May 18, 2022
1 parent d6393eb commit c60ede8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/contours.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np
from geometric import *

def getCCenter(contours):
def getContourCenter(contours):
"""function to compute the center points of the contours
Args:
Expand Down
2 changes: 1 addition & 1 deletion scripts/imageProc.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ def processRGBImage(self, rgbImg):
plantObjects = getPlantMasks(
mask, self.contourParams["minContourArea"], bushy=False)
# get center of contours
contCenterPTS = getCCenter(plantObjects)
contCenterPTS = getContourCenter(plantObjects)
x = contCenterPTS[:, 1]
y = contCenterPTS[:, 0]
# cv.imshow("RGB image",mask.astype('uint8'))
Expand Down

0 comments on commit c60ede8

Please sign in to comment.