- OpenCV 3 Computer Vision with Python Cookbook
- Alexey Spizhevoy Aleksandr Rybnikov
- 64字
- 2021-08-27 19:47:41
How it works...
To change the color space of an image with OpenCV, you should use the cvtColor function. It takes the source image and the special value, which encodes the source and targets the color spaces. The return value of the function is the converted image. OpenCV supports over 200 conversion types. The results of the code execution should be as follows: