1 | initial version |
i might be missing something, but it looks like your 1st line of code:
h, s, v = cv2.split(frame)
is just "whishful thinking"
it only would be HSV IF you had a corresponding:
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
h, s, v = cv2.split(hsv) # NOTframe, here
2 | No.2 Revision |
i might be missing something, but it looks like your 1st line of code:
h, s, v = cv2.split(frame)
is just "whishful thinking"
it only would be HSV IF you had a corresponding:
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
h, s, v = cv2.split(hsv) # NOTframe, NOT frame, here
3 | No.3 Revision |
i might be missing something, but it looks like your 1st line of code:
h, s, v = cv2.split(frame)
is just "whishful thinking"
it only would be HSV IF you had a corresponding:
hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)
h, s, v = cv2.split(hsv) # NOT frame, here
here, which is still BGR, not HSV