April 2020
Intermediate to advanced
438 pages
12h 2m
English
Go through the following steps to implement deep instance segmentation using opencv-python functions:
def random_colors(N, bright=True): brightness = 1.0 if bright else 0.7 hsv = [(i / N, 1, brightness) for i in range(N)] colors = list(map(lambda c: colorsys.hsv_to_rgb(*c), hsv)) random.shuffle(colors) return 256*np.array(colors)
model_path = 'models\\'conf = 0.5thresh = 0.3
labels_path = os.path.sep.join([model_path, "object_detection_classes_coco.txt"])labels ...
Read now
Unlock full access