![](/img/trans.png)
[英]How can I change the color of the lip that got its landmarks without disturbing its texture? in opencv python
[英]How to change the color in python but retain its shade
我想为用户提供一个选项来更改特定像素的颜色。 如果特定像素为浅蓝色,而用户选择它为绿色。 我应该如何执行更改以表示浅绿色? 在反之亦然的情况下,如果像素的颜色是深蓝色,我想强制它现在代表深绿色。 这可以在 HSV 规模上完成吗?
我有每个像素的 RGB 值
最简单的方法是将图像转换为 HSV,更改值,然后再将其转换回 RGB。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.