Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blundell/facedetectiontutorialwithpreview
Simple Android front camera face detection with a preview of the camera for the user
https://github.com/blundell/facedetectiontutorialwithpreview
Last synced: 2 months ago
JSON representation
Simple Android front camera face detection with a preview of the camera for the user
- Host: GitHub
- URL: https://github.com/blundell/facedetectiontutorialwithpreview
- Owner: blundell
- Created: 2014-10-10T12:28:17.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T07:57:55.000Z (over 7 years ago)
- Last Synced: 2023-03-24T03:42:47.256Z (almost 2 years ago)
- Language: Java
- Homepage: http://blog.blundell-apps.com/tut-front-camera-face-detection-with-preview/
- Size: 106 KB
- Stars: 6
- Watchers: 1
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
FaceDetectionTutorial
=====================Explanatory tutorial can be found here: http://blog.blundell-apps.com/tut-front-camera-face-detection-with-preview/
Load your front facing camera like this
`FrontCameraRetriever.retrieveFor(context);`
Add a preview to your activity layout
```java
SurfaceView cameraSurface = new CameraSurfaceView(context, camera, this);
((FrameLayout) findViewById(R.id.helloWorldCameraPreview)).addView(cameraSurface);
```Listen for face detection like this
```java
@Override
public void onFaceDetected() {
}@Override
public void onFaceTimedOut() {}
@Override
public void onFaceDetectionNonRecoverableError() {}
```