All Projects → aryarohit07 → Glidefacedetectiontransformation

aryarohit07 / Glidefacedetectiontransformation

A memory efficient Android image transformation library providing cropping above Face Detection (Face Centering) for Glide.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Glidefacedetectiontransformation

Pyramidbox
A Context-assisted Single Shot Face Detector in TensorFlow
Stars: ✭ 271 (-22.13%)
Mutual labels:  face-detection
Workattendancesystem
一个基于opencv、dilb的员工人脸识别考勤系统
Stars: ✭ 299 (-14.08%)
Mutual labels:  face-detection
Gather Deployment
Gathers scalable tensorflow and infrastructure deployment
Stars: ✭ 326 (-6.32%)
Mutual labels:  face-detection
Arcface Caffe
insightface-caffe
Stars: ✭ 275 (-20.98%)
Mutual labels:  face-detection
Spedittool
An efficient and scalable library for inputing and displaying gif or @mention on graph-text mixed TextView/EditText
Stars: ✭ 292 (-16.09%)
Mutual labels:  glide
Jetpack github
基于Kotlin + Jetpack全家桶 + Coroutines(协程) + Flutter等架构实现的一款精简版Github客户端项目,望与广大小伙伴一起成长,欢迎start or fork!
Stars: ✭ 314 (-9.77%)
Mutual labels:  glide
Kotlinwanandroid
Kotlin+模块化+响应式+MVVM 实现的风格简约、代码优雅的WanAndroid客户端
Stars: ✭ 265 (-23.85%)
Mutual labels:  glide
Laravel Glide
Easily convert images with Glide
Stars: ✭ 333 (-4.31%)
Mutual labels:  glide
Tensorflow Mtcnn
人脸检测MTCNN算法,采用tensorflow框架编写,从理解到训练,中文注释完全,含测试和训练,支持摄像头
Stars: ✭ 302 (-13.22%)
Mutual labels:  face-detection
Autocrop
😌 Automatically detects and crops faces from batches of pictures.
Stars: ✭ 320 (-8.05%)
Mutual labels:  face-detection
Faceaware
An extension that gives UIImageView the ability to focus on faces within an image.
Stars: ✭ 3,004 (+763.22%)
Mutual labels:  face-detection
Deepvideoanalytics
A distributed visual search and visual data analytics platform.
Stars: ✭ 2,973 (+754.31%)
Mutual labels:  face-detection
Face Tracking With Anime Characters
Hello! I have made a Python project where YURI from the game doki doki literature club accesses the webcam and stares directly into the players soul. Hope you enjoy!
Stars: ✭ 320 (-8.05%)
Mutual labels:  face-detection
Vggface2 Pytorch
PyTorch Face Recognizer based on 'VGGFace2: A dataset for recognising faces across pose and age'
Stars: ✭ 271 (-22.13%)
Mutual labels:  face-detection
Drishti
Real time eye tracking for embedded and mobile devices.
Stars: ✭ 325 (-6.61%)
Mutual labels:  face-detection
Rustface
Face detection library for the Rust programming language
Stars: ✭ 269 (-22.7%)
Mutual labels:  face-detection
Pigo
Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go.
Stars: ✭ 3,542 (+917.82%)
Mutual labels:  face-detection
Yoloface
Deep learning-based Face detection using the YOLOv3 algorithm (https://github.com/sthanhng/yoloface)
Stars: ✭ 339 (-2.59%)
Mutual labels:  face-detection
Face recognition
🍎 My own face recognition with deep neural networks.
Stars: ✭ 328 (-5.75%)
Mutual labels:  face-detection
Facemoji
😆 A voice chatbot that can imitate your expression. OpenCV+Dlib+Live2D+Moments Recorder+Turing Robot+Iflytek IAT+Iflytek TTS
Stars: ✭ 320 (-8.05%)
Mutual labels:  face-detection

Glide face detection transformation

Download Android Arsenal

An Android image transformation library providing cropping above Face Detection for Glide

Are you using Picasso? PicassoFaceDetectionTransformation.

Are you using Fresco? FrescoFaceDetectionProcessor.

Results

Original Image

original image 1

Results after cropping

resulting image 1

Original Image

original image 2

Results after cropping

resulting image 2

Original Image

original image 3

Results after cropping

resulting image 3

Original Image

original image 4

Results after cropping

resulting image 4

You can read more on my Medium article.

How to use it?

STEP 1:

Grab via Gradle

repositories {
    jcenter()
}
dependencies {
    compile 'com.github.aryarohit07:glide-facedetection-transformation:0.3.0'
}

Or via Maven

<dependency>
  <groupId>com.github.aryarohit07</groupId>
  <artifactId>glide-facedetection-transformation</artifactId>
  <version>0.3.0</version>
</dependency>

STEP 2:

Initialize the detector (May be in onCreate() method)

GlideFaceDetector.initialize(context);

STEP 3:

Set glide transform

Glide.with(yourFragment)
    .load(yourUrl)
    .transform(new FaceCenterCrop())
    .into(yourView);

STEP 4:

The face detector uses native resources in order to do detection. For this reason, it is necessary to release the detector instance once it is no longer needed (May be in onDestory() method)

GlideFaceDetector.releaseDetector();

Note: If no face is detected, it will fallback to CENTER CROP.

Library dependencies:

com.google.android.gms:play-services-vision:9.4.0
com.github.bumptech.glide:glide:3.7.0

If you liked it, please Star it.

TODO

  • Making it generic for any point.

Performance: Time taken to detect faces in the original image.

width height time taken(ms)
640 360 60-150
900 600 100-200
1280 720 250-350
1920 1080 350-400
2048 1536 500-550

License

Copyright 2016 Rohit Arya

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].