April 2020
Intermediate to advanced
438 pages
12h 2m
English
Perform the following steps to implement object detection with the Mask R-CNN pretrained model using opencv-python functions:
conf_threshold = 0.5 # Confidence thresholdmask_threshold = 0.3 # Mask threshold
def draw_box(img, class_id, conf, left, top, right, bottom, class_mask): cv2.rectangle(img, (left, top), (right, bottom), \ (255, 178, 50), 3) label = '%.2f' % conf if classes: assert(class_id < len(classes)) label ...
Read now
Unlock full access