MCPcopy Create free account
hub / github.com/HRNet/HRNet-MaskRCNN-Benchmark / overlay_boxes

Method overlay_boxes

demo/predictor.py:249–270  ·  view source on GitHub ↗

Adds the predicted boxes on top of the image Arguments: image (np.ndarray): an image as returned by OpenCV predictions (BoxList): the result of the computation by the model. It should contain the field `labels`.

(self, image, predictions)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

run_on_opencv_imageMethod · 0.95

Calls 3

get_fieldMethod · 0.80
toMethod · 0.45

Tested by

no test coverage detected