Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Make a layer over an image and adjust its co-ordinates by touch

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.

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

enter image description here

like image 557
2vision2 Avatar asked Mar 15 '13 12:03

2vision2


1 Answers

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.

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

like image 58
abdus.me Avatar answered Sep 29 '22 04:09

abdus.me