You can find white dot by numpy.where
. You can try this way:
import numpy as np
import cv2
img = cv2.imread('XXWck.png')
x, y, z = np.where(img==(255,255,255))
points = zip(x,y)
print(points)
1
solved Get X and Y coordinates of white dot in a black screen python [closed]