March 2018
Beginner to intermediate
306 pages
9h 54m
English
To get the result, it's necessary to go through a few steps:
import cv2, numpy as np
image = np.full((480, 640, 3), 255, np.uint8)cv2.imshow('white', image)cv2.waitKey()cv2.destroyAllWindows()
image = np.full((480, 640, 3), (0, 0, 255), np.uint8)cv2.imshow('red', image)cv2.waitKey()cv2.destroyAllWindows()
image.fill(0)cv2.imshow('black', image)cv2.waitKey()cv2.destroyAllWindows()
image[240, 160] ...
Read now
Unlock full access