color-tracking

issue of the recognize people by their clothes color with not severe illumination environments

倾然丶 夕夏残阳落幕 提交于 2020-01-24 20:23:04
问题 I am interested in the human following using a real robot. I'd like to use the color of clothes as a key feature to identify the target person in front of the robot to follow him/ her but I am suffering due to it is a weak feature with a very simple illumination changing. So, I need to alter this algorithm to another or update values (RGB) online in real-time but I don't have enough experience with image processing. this is my full code for color detection: import cv2 import numpy as np from

Tracking white color using python opencv

為{幸葍}努か 提交于 2019-12-03 04:04:12
问题 I would like to track white color using webcam and python opencv. I already have the code to track blue color. _, frame = cap.read() hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) # define range of blue color in HSV lower_blue = np.array([110,100,100]) upper_blue = np.array([130,255,255]) #How to define this range for white color # Threshold the HSV image to get only blue colors mask = cv2.inRange(hsv, lower_blue, upper_blue) # Bitwise-AND mask and original image res = cv2.bitwise_and(frame