Draw image
Create black background
$ np.zeros(shape, dtype="uint8")import cv2
import numpy as np
canvas = np.zeros((300, 300, 3), dtype="uint8")
Line
$ cv2.line(image, start_point, end_point, color, thickness)
Circle
Example:

Rectangle

Text

Last updated
Was this helpful?