@@ -296,7 +296,7 @@ def matchTemplates(listTemplates:List[TemplateTuple], image:NDArray, method:int
296
296
return NMS (listHits , score_threshold , sortAscending , N_object , maxOverlap )
297
297
298
298
299
- def drawBoxesOnRGB (image :NDArray , listHit :Sequence [Hit ], boxThickness :int = 2 , boxColor :Tuple [int ,int ,int ] = (255 , 255 , 00 ), showLabel :bool = False , labelColor = (255 , 255 , 0 ), labelScale = 0.5 ) :
299
+ def drawBoxesOnRGB (image :NDArray , listHit :Sequence [Hit ], boxThickness :int = 2 , boxColor :Tuple [int ,int ,int ] = (255 , 255 , 00 ), showLabel :bool = False , labelColor = (255 , 255 , 0 ), labelScale = 0.5 ) -> NDArray :
300
300
"""
301
301
Return a copy of the image with predicted template locations as bounding boxes overlaid on the image
302
302
The name of the template can also be displayed on top of the bounding box with showLabel=True
@@ -343,7 +343,7 @@ def drawBoxesOnRGB(image:NDArray, listHit:Sequence[Hit], boxThickness:int=2, box
343
343
return outImage
344
344
345
345
346
- def drawBoxesOnGray (image :NDArray , listHit :Sequence [Hit ], boxThickness = 2 , boxColor = 255 , showLabel = False , labelColor = 255 , labelScale = 0.5 ):
346
+ def drawBoxesOnGray (image :NDArray , listHit :Sequence [Hit ], boxThickness = 2 , boxColor = 255 , showLabel = False , labelColor = 255 , labelScale = 0.5 ) -> NDArray :
347
347
"""
348
348
Same as drawBoxesOnRGB but with Graylevel.
349
349
If a RGB image is provided, the output image will be a grayscale image
0 commit comments