Giter Site home page Giter Site logo

ryanmasondavies / facedetection Goto Github PK

View Code? Open in Web Editor NEW
134.0 10.0 34.0 243 KB

iPhone app for detecting faces from a live camera feed using Swift and iOS 13 API's.

License: MIT License

Swift 100.00%
swift face-detection core-image detect-faces detecting-faces

facedetection's People

Contributors

iotize avatar kkebo avatar ryanmasondavies avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

facedetection's Issues

Crashes on launch (iOS 9.3)

Swift error:

Video started.
Features: []
fatal error: unexpectedly found nil while unwrapping an Optional value

Should be easy to fix.

Very slow on older devices

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! ๐Ÿ‘

Update to Swift 2

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.

Continuous Integration

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.

Working but live capture is pixelated.

Thanks for your work. Updated to Swift 3 / iOS 10 and all is working.

The pixelation is coming from FaceObscurationFilter but is this all the app is meant to do? Anything you point the camera at is pixelated so where does the Face Detector come into play?

img_1231

Update README

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.

Recording ?

What's the best way we can go about recording a video from this? Including the layers that are being tracked onto the face?

It doesn't build with latest swift changes

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 ?

How can I test the face detection program on Xcode?

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 ?

Benchmark detection performance

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 #3
  • Any others? We could possibly check OpenCV if neither of the above are satisfactory, but that's a big dependency to include if the SDK already provides a good enough solution.

It'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!

unrecognized selector sent to class

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) 

Ios 10 crash

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

Update to Xcode 8

Xcode 8 has new compiler settings we should enable, and uses automatic code signing.

Ask for camera permissions nicely

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.

  • Improve UI for asking for camera permission
  • Add interface for when the user denies camera permission

logo for FaceDetection

Hello,
Good Day, i make a logo icon for your project.I make a 3 logo for you.Which logo do you like? If you want to use this logo in your project, then comment below, I will give you the source file. And if you want a change, then tell me I will change.It's totally free for open source project.

facedetection-01

Update to Swift 3

Swift 3 is publicly released now. We should update to the latest Swift syntax.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.