Coordinates of specific color in video

I would like to know, how print results, where coordinates of a specific color is matched.

F.e. I have a blue color (BGR defined lower) and when run a webcam, I would like to see, where in the coordinate system it is detected as this color. How to print such a results? Thank you.

I use following:


import numpy as np
import cv2

lower = np.array([90, 50, 50])
upper = np.array([130, 255, 255])

video = cv2.VideoCapture(0)

while True:
    success, img = video.read()
    image = cv2.cvtColor(img, cv2.COLOR_BGR2HSV)
    mask = cv2.inRange(image, lower, upper)
    
    cv2.imshow("mask", mask)
    cv2.imshow("webcam", img)
    
    if cv2.waitKey(1) == ord('q'):
        break
        
cap.release()
cv.destroyAllWindows()

you can use findNonZero() to retrieve the positions of the white pixels in the mask