@@ -296,7 +296,7 @@ def matchTemplates(listTemplates:List[TemplateTuple], image:NDArray, method:int
296296 return NMS (listHits , score_threshold , sortAscending , N_object , maxOverlap )
297297
298298
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 :
300300 """
301301 Return a copy of the image with predicted template locations as bounding boxes overlaid on the image
302302 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
343343 return outImage
344344
345345
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 :
347347 """
348348 Same as drawBoxesOnRGB but with Graylevel.
349349 If a RGB image is provided, the output image will be a grayscale image
0 commit comments