3D head tracking on iphone

I want to make an augmented reality application for checking glasses on iphone.

To do this, I need three-dimensional tracking (providing X, Y, Z position and orientation).
something like FaceApi but for iphone.

Can someone suggest me a solution for doing this type of tracking on iphone?

+6
source share
2 answers

I would recommend using OpenCV, which is a computer vision library. Searching the Internet for ways to detect faces using OpenCV will lead to many links, as this is a very common use of this library.

Here's a link related to compiling it on an iPhone .

+3
source

Yes, you can do it easily with OpenCV's built-in Haar classifiers, and you will find many demos and tutorials on the Internet for this. You do not need to find the position of Z, just the size of the face. More important for you will be the position for the eyes - and for this there are Haar classifiers. You can find the area of ​​the face, and then find the areas of the eyes in that region, and you will have a very good basis for positioning the overlay points on this topic. There are many settings to speed up the process, for example, downsampling and instructing the classifier to search for only one face. Good luck.

+1
source

Source: https://habr.com/ru/post/891711/


All Articles