在图像上创建图层并通过触摸调整其坐标 [英] Make a layer over an image and adjust its co-ordinates by touch

查看:114
本文介绍了在图像上创建图层并通过触摸调整其坐标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在图像上创建一个图层并调整图层以适应图像并获得图层的坐标。

I need to make a layer over an image and adjust the layer to fit to image and get its co-ordinates of the layer.

我需要调整触摸和捏合。

I need to adjust the layer by touch and pinch.

示例图像如下。我需要在ios中做到这一点,我能得到任何想法吗?

The sample image is as below. I need to do this in ios, and can I get any ideas to do this?

推荐答案

使用coreImage的人脸检测API检测人脸绑定,以及左眼,右眼和嘴的CGPoint。如图所示,使用Bezier路径为每个面部特征绘制紫色线路径。

Use coreImage's Face detection API to detect Bound of Face, and CGPoint of Left eye, Right eye and mouth. Use Bezier path to draw a purple line path against each face feature as you have shown in picture.

如果想要更精确地使用openCV来检测每个面部边缘面部特征。

If you want to be more precise better use openCV to detect edges against each face feature.

这篇关于在图像上创建图层并通过触摸调整其坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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