Skip to content

Commit de5ca99

Browse files
committed
fix indentation
1 parent 8f3d6a2 commit de5ca99

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MTM/__init__.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,9 @@ def drawBoxesOnRGB(image, listHit, boxThickness=2, boxColor=(255, 255, 00), show
206206

207207

208208
def drawBoxesOnGray(image, listHit, boxThickness=2, boxColor=255, showLabel=False, labelColor=255, labelScale=0.5):
209-
'''
209+
'''
210210
Same as drawBoxesOnRGB but with Graylevel.
211-
If a RGB image is provided, the output image will be a grayscale image
211+
If a RGB image is provided, the output image will be a grayscale image
212212
Parameters
213213
----------
214214
- image : image in which the search was performed
@@ -227,7 +227,7 @@ def drawBoxesOnGray(image, listHit, boxThickness=2, boxColor=255, showLabel=Fals
227227
outImage: Single channel grayscale image
228228
original image with predicted template locations depicted as bounding boxes
229229
'''
230-
# Convert RGB to grayscale
230+
# Convert RGB to grayscale
231231
if image.ndim == 3: outImage = cv2.cvtColor(image, cv2.COLOR_RGB2GRAY) # convert to RGB to be able to show detections as color box on grayscale image
232232
else: outImage = image.copy()
233233

@@ -237,8 +237,8 @@ def drawBoxesOnGray(image, listHit, boxThickness=2, boxColor=255, showLabel=Fals
237237
if showLabel: cv2.putText(outImage, text=hit['TemplateName'], org=(x, y), fontFace=cv2.FONT_HERSHEY_SIMPLEX, fontScale=labelScale, color=labelColor, lineType=cv2.LINE_AA)
238238

239239
return outImage
240-
241-
240+
241+
242242
if __name__ == '__main__':
243243

244244
from skimage.data import coins

0 commit comments

Comments
 (0)