update color and encode

This commit is contained in:
weijian 2022-12-21 16:46:38 +08:00
parent f34f0b1a5a
commit 48d613b8fd

View file

@ -69,8 +69,8 @@ class Object_detect(Movement):
self.cache_x = self.cache_y = 0
# set color HSV
self.HSV = {
# "yellow": [np.array([11, 85, 70]), np.array([59, 255, 245])],
"yellow": [np.array([22, 93, 0]), np.array([45, 255, 245])],
"yellow": [np.array([11, 85, 70]), np.array([59, 255, 245])],
# "yellow": [np.array([22, 93, 0]), np.array([45, 255, 245])],
"red": [np.array([0, 43, 46]), np.array([8, 255, 255])],
"green": [np.array([35, 43, 35]), np.array([90, 255, 255])],
"blue": [np.array([100, 43, 46]), np.array([124, 255, 255])],