Good, I'm trying to get the coordinate in X (the column number) for the pixel / s that meet a given condition (example RGB = 255,0,0 ) and for a value of Y (row) given.
Is there any way to do it in Python using OpenCV?
Good I have this code and I am not clear what parameters I have to pass to the function or which to return.
It returns an error that "grayFrame" is not defined. I do not understand if I have to declare it in another way or in another place....
import numpy as np
import cv2
import time
# Cargamos el vídeo
camara = cv2.VideoCapture(0)
# Inicializamos el primer frame a vacío.
# Nos servirá para obtener el fondo
fondo = None
# Recorremos todos los frames
while True:
# Obtenemos el frame...