如何隔离和重新着色特定的颜色范围? [英] How can I isolate and recolor specific color range?

查看:24
本文介绍了如何隔离和重新着色特定的颜色范围?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定包含嘴唇和其他噪声"的区域的图像(牙齿,皮肤),我们如何仅隔离和重新着色嘴唇(模拟口红"效果)?附上一张描述嘴唇/嘴巴状态的照片.

到目前为止我们所尝试的是一个由三部分组成的过程:

  1. 使用嘴唇上的稳定点对嘴唇进行颜色匹配(由内部 API 提供).
  2. 使用此颜色作为唇部隔离的基色.
  3. 重新着色嘴唇(口红行为)

在将它们转换为 CIE 色彩空间后,我们尝试了几种算法,如色调差异、HSV 差异、Δ 和 E.不幸的是,由于皮肤与嘴唇的颜色相对相似,以及鼻子和嘴巴投射的阴影会导致变色,因此没有任何效果或产生伪影.

我们错过了什么?有没有更好的方法来处理它?<​​/p>

解决方案

你应该尝试语义分割技术,它肯定会给你带来很好的结果,而且这将是一个广义的概念.

Given an image of the region containing the lips and other "noise" (teeth, skin), how can we isolate and recolor only the lips (simulating a "lipstick" effect)? Attached is a photo describing the lips/mouth states.

What we have tried so far is a three-part process:

  1. Color matching the lips using a stable point on the lips (provided by internal API).
  2. Use this color as the base color for the lips isolation.
  3. Recolor the lips (lipstick behavior)

We tried a few algorithms like hue difference, HSV difference, ∆and E after converting them to CIE color space. Unfortunately, nothing has panned out or has produced artifacts due to the skin's relative similarity in color to the lips and the discoloration from shadows cast by the nose and mouth.

What are we missing? Is there a better way to approach it?

解决方案

You should try semantic segmentation techniques that would definitely give you very good results and it would be a generalized concept.

这篇关于如何隔离和重新着色特定的颜色范围?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆