Additional Information Only:
The "center" parameter of the OpenCV cv2.circle () drawing function accepts a tuple of two integers. The first is the location of the width, and the second is the location of the height. This ordering is different from regular array indexing. The following example demonstrates the problem.
import numpy as np import cv2 height, width = 150, 200 img = np.zeros((height, width, 3), np.uint8) img[:, :] = [255, 255, 255]

yang5 source share