omarmhaimdat / face_ai

Face Recognition and Detection on iOS Using Native Swift Code, Core ML, and ARKit
https://heartbeat.fritz.ai/face-recognition-and-detection-on-ios-using-native-swift-code-core-ml-and-arkit-feed10c468da
MIT License
123 stars 32 forks source link

Does this needs special permissions in the simulator to access the camera? #3

Open SethPaulM opened 3 years ago

SethPaulM commented 3 years ago

I am trying to run this code using the simulator and after clicking Face Mask, another window pops up and just sits there. There are no errors, but nothing else shows up. Not sure if it is that I am on a newer version than what this was previously built on or not.

omarmhaimdat commented 3 years ago

The camera feature doesn't work on the emulator, you need to build it on a real phone

Sent with GitHawk

SethPaulM commented 3 years ago

I was able to get the app showing on a real phone. I also didn't know I needed to add the NSCameraUsageDescription key and string to the Info.plist. Once I added that, I was able to get the app working. Thank you!