ryanmasondavies / facedetection Goto Github PK
View Code? Open in Web Editor NEWiPhone app for detecting faces from a live camera feed using Swift and iOS 13 API's.
License: MIT License
iPhone app for detecting faces from a live camera feed using Swift and iOS 13 API's.
License: MIT License
Swift error:
Video started.
Features: []
fatal error: unexpectedly found nil while unwrapping an Optional value
Should be easy to fix.
Easiest way to accomplish this is by adding a launch screen if we're only targeting iOS 8+.
The frame rate is very low, around 0.5 fps on iPhone 4S and the app receives memory warning in about 8 seconds. Hope that helps! ๐
Have gone through the basic migration process to support Swift 2, but haven't fully embraced the improvements. Code should be refactored to use newer syntax such as guard
, defer
, where needed, and use struct
and protocols in place of classes where possible.
We should set up a Travis build server to compile this repo and check for build errors - and, in future, to run our tests.
http://next.travis-ci.com indicates that iOS 9 and Swift 2 are supported.
I haven't done this before, but there's a great summary of setting up a build server in Objective-C here and one for setting one up with Swift 1.2 here. With both of those, it shouldn't be hard to figure out Swift 2.
It's outdated, and needs rewriting - preferably with more of an explanation as to what's going on with regards to the camera input, CIDetector
, etc.
What's the best way we can go about recording a video from this? Including the layers that are being tracked onto the face?
hello,
il pulled it and tried to launch it but It doesn't build with latest swift changes.
I tried the migration tool they provided but it still doen't work.
can i have help please ?
Instead of covering with black.
Hi , I am a new xcode developer, now I am trying to build a face counting program on ios.
I saw your code on github and tried to run it , but the error appeared "Can not record", I guess that is because the program can not get access to the camera in the iphone simulator, is there any solution to this ?
We don't need to be super thorough about this, as we can assume Apple have done testing of their implementations themselves. However, we need to find out which API performs best in general out of the following:
CIDetector
AVCaptureMetadataOutput
as mentioned by @D-Link13 in #3It's also possible both of these implementations are backed by the same algorithm, so performance might be identical. It would be interesting to find out!
I tried to run the example on my iOS7.1 iPhone5 and got the following error on start:
Video started.
Features: []
2015-04-16 13:39:00.946 FaceDetection[2445:1803] +[CIFilter filterWithName:withInputParameters:]: unrecognized selector sent to class 0x38906070
2015-04-16 13:39:00.951 FaceDetection[2445:1803] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[CIFilter filterWithName:withInputParameters:]: unrecognized selector sent to class 0x38906070'
*** First throw call stack:
(0x2d962ecb 0x380fdce7 0x2d966703 0x2d9650f7 0x2d8b4058 0x44d68 0x3e8e4 0x41e38 0x42a30 0x3ccc8 0x3ce70 0x2c854c41 0x385e6d53 0x385ebcbd 0x385e8c6f 0x385ec5f1 0x385ec8dd 0x38717c17 0x38717adc)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
hi with ios 10 it crash at start
2016-11-17 17:43:11.092619 FaceDetection[4651:1307406] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.
but NSCameraUsageDescription was added
Xcode 8 has new compiler settings we should enable, and uses automatic code signing.
At the moment, first launch demands camera access with no context. This is just a demo app, but it should still ask nicely - that means including something to display if the user declines access, too. Right now that would result in a black screen.
Swift 3 is publicly released now. We should update to the latest Swift syntax.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.