Ask Your Question

Revision history [back]

click to hide/show revision 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

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

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