All Projects → aryarohit07 → Picassofacedetectiontransformation

aryarohit07 / Picassofacedetectiontransformation

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

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Picassofacedetectiontransformation

Pythoncode Tutorials
The Python Code Tutorials
Stars: ✭ 544 (-36.3%)
Mutual labels:  face-detection
Human Detection And Tracking
Human-detection-and-Tracking
Stars: ✭ 753 (-11.83%)
Mutual labels:  face-detection
Mocr
Meaningful Optical Character Recognition from identity cards with Deep Learning.
Stars: ✭ 19 (-97.78%)
Mutual labels:  face-detection
Mobileface
A face recognition solution on mobile device.
Stars: ✭ 669 (-21.66%)
Mutual labels:  face-detection
Awesome Face
😎 face releated algorithm, dataset and paper
Stars: ✭ 739 (-13.47%)
Mutual labels:  face-detection
Flyimg
Dockerized PHP7 application runs as a Microservice to resize and crop images on the fly. Get optimised images with MozJPEG, WebP or PNG using ImageMagick. Includes face detection, cropping, face blurring, image rotation and many other options. Abstract storage based on FlySystem in order to store images on any provider (local, AWS S3...).
Stars: ✭ 762 (-10.77%)
Mutual labels:  face-detection
Mtcnn Pytorch
Joint Face Detection and Alignment using Multi-task Cascaded Convolutional Networks
Stars: ✭ 531 (-37.82%)
Mutual labels:  face-detection
Brfv4 mac examples
macOS C++ examples utilizing OpenCV for camera access and drawing the face tracking results.
Stars: ✭ 25 (-97.07%)
Mutual labels:  face-detection
Getting Things Done With Pytorch
Jupyter Notebook tutorials on solving real-world problems with Machine Learning & Deep Learning using PyTorch. Topics: Face detection with Detectron 2, Time Series anomaly detection with LSTM Autoencoders, Object Detection with YOLO v5, Build your first Neural Network, Time Series forecasting for Coronavirus daily cases, Sentiment Analysis with BERT.
Stars: ✭ 738 (-13.58%)
Mutual labels:  face-detection
Jeelizweboji
JavaScript/WebGL real-time face tracking and expression detection library. Build your own emoticons animated in real time in the browser! SVG and THREE.js integration demos are provided.
Stars: ✭ 835 (-2.22%)
Mutual labels:  face-detection
Facerecognitiondotnet
The world's simplest facial recognition api for .NET on Windows, MacOS and Linux
Stars: ✭ 672 (-21.31%)
Mutual labels:  face-detection
Faceboxes.pytorch
A PyTorch Implementation of FaceBoxes
Stars: ✭ 690 (-19.2%)
Mutual labels:  face-detection
Stealing Ur Feelings
Winner of Mozilla's $50,000 prize for art and advocacy exploring AI
Stars: ✭ 784 (-8.2%)
Mutual labels:  face-detection
Simplecvreproduction
Reproduce simple cv project including attention module, classification, object detection, segmentation, keypoint detection, tracking 😄 etc.
Stars: ✭ 602 (-29.51%)
Mutual labels:  face-detection
Helloface
An awesome face technology repository.
Stars: ✭ 905 (+5.97%)
Mutual labels:  face-detection
Face Alignment
🔥 2D and 3D Face alignment library build using pytorch
Stars: ✭ 5,417 (+534.31%)
Mutual labels:  face-detection
Deepcamera
Open source face recognition on Raspberry Pi. SharpAI is open source stack for machine learning engineering with private deployment and AutoML for edge computing. DeepCamera is application of SharpAI designed for connecting computer vision model to surveillance camera. Developers can run same code on Raspberry Pi/Android/PC/AWS to boost your AI production development.
Stars: ✭ 757 (-11.36%)
Mutual labels:  face-detection
Chatapp
Chat App with all functionality private chat, contacts, friends request, find friends,for profile settings image cropper functionality, settings, logout also send text, image and all type of files, delete your files for you and everyone , login with email and mobile number and real time database firebase and for notification purpose Node Js used.
Stars: ✭ 25 (-97.07%)
Mutual labels:  picasso
Gallery
图片缩放以及相册的实现
Stars: ✭ 24 (-97.19%)
Mutual labels:  picasso
Facepixeler
A simple C# program that can automatically detect and blur faces in images. Uses OpenCV and EmguCV.
Stars: ✭ 5 (-99.41%)
Mutual labels:  face-detection

Picasso face detection transformation

Download Android Arsenal

An Android image transformation library providing cropping above Face Detection (Face Centering) for Picasso

Are you using Glide? GlideFaceDetectionTransformation.

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:picasso-facedetection-transformation:0.3.0'
}

Or via Maven

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

STEP 2:

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

PicassoFaceDetector.initialize(context);

STEP 3: Set picasso transform

Picasso
  .with(context)
  .load(url)
  .fit() // use fit() and centerInside() for making it memory efficient.
  .centerInside()
  .transform(new FaceCenterCrop(100, 100)) //in pixels. You can also use FaceCenterCrop(width, height, unit) to provide width, height in DP.
  .into(imageView);

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)

PicassoFaceDetector.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.squareup.picasso:picasso:2.5.2

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].