• Head Tracking 3D 1
  • Head Tracking 3D 2

Head Tracking 3D

Read this first!
* Please make sure the lighting on your face is good enough
* Please make sure your face is more or less straight, not rotated too much, not tilted too much
* Try the debug mode to check whether the face detection works or not
* If one of the implementation fails, please report it and try the other one
Head Tracking 3D demonstrates the ability of the front facing camera on Android devices to detect the face of the user to provide a head-tracking virtual reality display. The application has been developed and tested with Asus Transformer, Samsung Galaxy Tab 10.1 & Notion Ink Adam because of their fast processing speed. The 3D rendering part of the App is based on my previous Android application "3D Depth Cues Demo" and the face detection is based on the Google Code project JavaCV and the OpenCV Android port.

The App can however still be used with other Android devices, using the rear facing camera and inverting the X-axis, together with a mirror to reflect yourself or a photo of a human face.

Community project by Yap Wen Jiun (http://wenjiun.blogspot.com) from CodeAndroid Malaysia (http://www.codeandroid.my).

Credits:
* OpenCV at http://opencv.willowgarage.com/wiki/Android for the face detection
* JavaCV at http://code.google.com/p/javacv/ for the face detection using OpenCV
* Android API Demos at http://developer.android.com/resources/samples/ApiDemos/index.html for the general OpenGL rendering into a SurfaceView and the rendering of camera preview
* akjava-android-project at http://code.google.com/p/akjava-android-project/ for the generation of 3D solids
* Wii Projects by Johnny Chung Lee Wii at http://johnnylee.net/projects/wii/ for the inspiration of headtracking

Category : Libraries & Demo

Related searches

Reviews (30)

Dan. U. Mar 30, 2013     

Doesn't work at all, even though the Dev said it was tested on the Transformer. It say I have no front facing camera.

Wha. Jan 29, 2016     

It's stupid in one mode it says no front facing camera the other has a squashed camera

Ans. M. Sep 2, 2015     

When running this in JavaCV mode (OpenCV didn't work when I tried it), the screen shows only the camera output, as in debug mode except without the reticule.

Abd. M. Sep 4, 2013     

Stupid app. Says that my phone doesn't have a front camera

Iva. P. Jun 11, 2014     

The opencv version does not detect my front camera. The java version does, but it's too slow. The idea is interesting, it just needs a substantial amount of work.

Pra. W. Dec 5, 2013     

In the Open CV mode, it says that my phone doesn't have a front facing camera, despite my phone running on JB. But the concept is really nice. I hope they integrage something like this in actual apps or games.

A. G. u. May 20, 2014     

OpenCV does not find any camera. And JavaCV is way too slow.

Car. B. Jun 22, 2014     

Tried several options. Never worked.

Col. T. Jan 3, 2018     

Didn't work Galaxy J3 Prime just shows front facing camera view

Kir. J. Nov 26, 2013     

Great start man. Keep it up, I can see this being huge with the video game industry.

A. G. u. Jun 10, 2012     

Worked on my S2. A bit slow however.

A. G. u. Oct 16, 2015     

It says there is no camera, lame!

Sil. Feb 12, 2016     

Couldn't detect camera, so wouldn't display. A shame, as it's an interesting idea I would have liked to test.

Mik. O. Mar 2, 2014     

Unfortunately it does not work on the nexus 5.

A. G. u. Apr 15, 2012     

. Can't wait to see what comes next

A. G. u. Aug 14, 2012     

But the "Faster" mode doesn't work with the LG Lucid. I get a "No Camera" Error. Still, as it is, the 3.5FPS slow mode is good looking, but really isn't fast enough make for convincing 3D.

Dra. H. Nov 12, 2014     

Does not function on my phone, but wish it did!

A. G. u. Mar 7, 2012     

Works well in Asus EEE Pad Transformer and Samsung Galaxy Note

Chr. L. Nov 28, 2012     

Lots of lash, little instruction. It works, though.

A. G. u. Sep 29, 2012     

Why is the app compatible with my HTC desire which doesn't have a front-facing camera, but is not with my Nexus 7 which has one?

Jef. J. Aug 8, 2014     

Can't do the target or box test. Xperia z1s on kitkat

A. G. u. Mar 30, 2015     

Not working sir,plz fix this

A. G. u. Mar 24, 2012     

Slow on asus transformer

Lar. M. Sep 8, 2013     

3 devices and fails on all

A. G. u. May 11, 2012     

Limited demo but shows concept. My gnex runs it OK but camera seems very zoomed in.

Dav. :. Feb 22, 2015     

I have 2 cameras! And guss what? No camera it says...poor app

A. G. u. Sep 4, 2011     

It does work, contrary to what the others say. You need a fast processor and a very good light source so the camera can detect your face. Try to hold it roughly at arms length that helps sometimes too.

A. G. u. Dec 2, 2011     

Says it doesn't detect face. I cab see my face for a second before it loads and I have w front facing camera. Motorola photon Tegra 2

A. G. u. Nov 5, 2011     

I'm not sure if this app was copied from i3D, but it doesnt work well on my EVO 3D as it did on my friends iPhone.

A. G. u. Jul 25, 2011     

I tried in HTC MyTouch 4G without luck. It does nothing but showing the flat image