hololens_facial_recognition icon indicating copy to clipboard operation
hololens_facial_recognition copied to clipboard

Built the app but nothing happened

Open k3nnywilliam opened this issue 8 years ago • 6 comments

Hi,

I was attempting to build the facial recognition app but I couldn't get the app to work. Just to be sure if the build steps are correct, this is what I did:

  1. I've replaced the API keys just like you've suggested
  2. Git cloned your project and load it into Unity
  3. Opened the 'Main' scene
  4. Changed the build settings: SDK--> windows 10, UWP build type --> D3D, Debugging -- >Unity c# project
  5. Build it
  6. Open up the sln file
  7. Edited the package.appxmanifest, basically changing the TargetDeviceFamily and MaxVersionTested entries
  8. Changed the deployment target entries
  9. Build the project, deployed,
  10. Hololens shows the unity splash screen, point my hololens toward a picture of someone's face on my monitor screen but nothing happened.

My question is what went wrong?

-Ken

k3nnywilliam avatar Oct 25 '16 15:10 k3nnywilliam

It should take a photo the first time it runs, and you should see red floating text saying "photo captured, processing". After that, air tap or click with the clicker to take another photo. If that doesn't work, check that you've granted the camera permission - see https://developer.microsoft.com/en-us/windows/holographic/holograms_101e#chapter_1_-_.22holo.22_world

Additionally, there's a section for Capabilities in Package.appxmanifest - I had to enable Internet (Client), Microphone and Webcam. Not sure why Microphone is necessary.

Also, if there were some error while you're in an attached debugging session in visual studio you should see the error messages in the Output tab

Thanks for being the first (that I know of) to test this!

neon-ninja avatar Oct 25 '16 22:10 neon-ninja

k3nnywilliam,

Did you have to run your own version of https://github.com/UoA-eResearch/openface_mass_compare/blob/master/compare.py?

LukeStephen avatar Nov 12 '16 18:11 LukeStephen

@LukeStephen - because https://github.com/UoA-eResearch/hololens_facial_recognition/blob/master/Assets/Scripts/GazeGestureManager.cs#L126 is wrapped in a try block, if the OpenFaceUrl isn't set to something valid or if the server is down, the app will still work fine for gender/age detection, just not individual recognition. OpenFaceUrl is optional.

neon-ninja avatar Nov 12 '16 21:11 neon-ninja

@k3nnywilliam @neon-ninja enabling Microphone in VS capabilities fixed the issue, it then worked, very cool demo!!

LukeStephen avatar Nov 13 '16 04:11 LukeStephen

@neon-ninja , sorry for the late reply. It works, awesome stuff! I'm wondering if you have any plans for real-time facial recognition?

k3nnywilliam avatar Nov 13 '16 10:11 k3nnywilliam

@k3nnywilliam I hadn't planned on it, but it wouldn't be hard to do. Just add a coroutine that calls PhotoCapture.CreateAsync(false, OnPhotoCaptureCreated); every second or so. Feel free to submit a PR with that (configurable ideally).

neon-ninja avatar Nov 13 '16 20:11 neon-ninja