opencv python convert rgb to hsv 1

opencv python convert rgb to hsv

hsv = cv2.cvtColor(frame, cv2.COLOR_BGR2HSV)

Here is what the above code is Doing:
1. We’re creating a variable called hsv and setting it equal to cv2.cvtColor(frame, cv2.COLOR_BGR2HSV).
2. cv2.cvtColor(frame, cv2.COLOR_BGR2HSV) converts the frame from BGR to HSV.
3. We’re storing the converted frame in the variable hsv.

Similar Posts