draw_bounding_box¶
-
seas.rois.draw_bounding_box(image: numpy.ndarray, required: bool = True) → List[List[int]][source]¶ Draw a bounding box on a two dimensional image. Image should already be scaled to 0-255 in uint8.
- Parameters
image – A numpy array to draw the bounding box on.
required – Whether to raise an error if the process is exited without a valid bounding box.
- Returns
An ROI bounding box with shape [[x0,x1],[y0,y1]].
- Return type
ref_coord