Questions tagged as 'cv2'

0
answers

Get coordinates of a pixel with OpenCV - Python [closed]

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?     
asked by 10.07.2017 / 21:50
3
answers

Define correctly a variable to be read in all parts of the code

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....
asked by 24.08.2018 / 12:11
1
answer

Why does not my python code work?

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...
asked by 02.07.2017 / 02:16