All Projects β†’ vasilysinitsin β†’ Faces

vasilysinitsin / Faces

Licence: MIT license
A Python wrapper around FaceApp πŸ˜” β†’ πŸ˜€

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Faces

visage
Add virtual makeup to picture of a face.
Stars: ✭ 97 (+22.78%)
Mutual labels:  face
R-MTCNN
No description or website provided.
Stars: ✭ 11 (-86.08%)
Mutual labels:  face
python-face-relighting
A python implementation of portrait lighting transfer using a mass transport approach.
Stars: ✭ 25 (-68.35%)
Mutual labels:  face
ml-ai
ML-AI Community | Open Source | Built in Bharat for the World | Data science problem statements and solutions
Stars: ✭ 32 (-59.49%)
Mutual labels:  neural
ARFaceFilter
Javascript/WebGL lightweight face tracking library designed for augmented reality webcam filters. Features : multiple faces detection, rotation, mouth opening. Various integration examples are provided (Three.js, Babylon.js, FaceSwap, Canvas2D, CSS3D...).
Stars: ✭ 72 (-8.86%)
Mutual labels:  face
multi-task-learning
Multi-task learning smile detection, age and gender classification on GENKI4k, IMDB-Wiki dataset.
Stars: ✭ 154 (+94.94%)
Mutual labels:  face
face-recognition
μ–Όκ΅΄ 인식에 λŒ€ν•œ 기술 동ν–₯ 및 κ΄€λ ¨ λͺ¨λΈ 자료
Stars: ✭ 38 (-51.9%)
Mutual labels:  face
volumentations
Library for 3D augmentations
Stars: ✭ 111 (+40.51%)
Mutual labels:  transformations
RNiftyReg
An R interface to the NiftyReg medical image registration library
Stars: ✭ 32 (-59.49%)
Mutual labels:  transformations
flowage
Easy transformations and filtering for NodeJS object streams.
Stars: ✭ 85 (+7.59%)
Mutual labels:  transformations
morphmorph
😱 Isomorphic transformations. Map, transform, filter, and morph your objects
Stars: ✭ 26 (-67.09%)
Mutual labels:  transformations
idpt
Internet-Delivered Psychological Therapy (IDPT) System.
Stars: ✭ 24 (-69.62%)
Mutual labels:  face
S3FD
S3FD_Mxnet
Stars: ✭ 22 (-72.15%)
Mutual labels:  face
Cat-Face-Detector-with-OpenCV-and-JavaFX
πŸ“Ή A Small OpenCV (Open Source Computer Vision) Example, who has the ability to detect multiple cat faces at the same time 🐱
Stars: ✭ 24 (-69.62%)
Mutual labels:  face
butterfly
Application transformation tool
Stars: ✭ 35 (-55.7%)
Mutual labels:  transformations
polliwog
2D and 3D computational geometry library
Stars: ✭ 22 (-72.15%)
Mutual labels:  transformations
jeelizGlanceTracker
JavaScript/WebGL lib: detect if the user is looking at the screen or not from the webcam video feed. Lightweight and robust to all lighting conditions. Great for play/pause videos if the user is looking or not, or for person detection. Link to live demo.
Stars: ✭ 68 (-13.92%)
Mutual labels:  face
facetool
Command line utility to manipulate faces in videos and images
Stars: ✭ 38 (-51.9%)
Mutual labels:  face
faceapp.js
JavaScript API wrapper for the FaceApp tool for Android and iOS
Stars: ✭ 59 (-25.32%)
Mutual labels:  faceapp
face
[deprecated] πŸ‘½ Face Recognition package for Laravel
Stars: ✭ 37 (-53.16%)
Mutual labels:  face

Faces

πŸ˜” β†’ πŸ˜€

A Python wrapper around FaceApp .

Build Status Python version

Installation

$ pip install git+https://github.com/vasilysinitsin/Faces.git or manually clone this repo.

Basic Usage

With file,

import faces

sad = open('sad.jpg', 'rb')
image = faces.FaceAppImage(file=sad)
happy = image.apply_filter('smile', cropped=True)

with URL

import faces

old_rockfeller = 'https://upload.wikimedia.org/wikipedia/commons/6/6f/John_D._Rockefeller_1885.jpg'
image = faces.FaceAppImage(url=old_rockfeller)
young_rockfeller = image.apply_filter('young')

or with FaceApp code and device id

import faces

code_of_me_uploaded = '20170517181457gflf'
my_device_id = '12345678'
image = faces.FaceAppImage(code=code_of_me_uploaded, device_id=my_device_id)
brad_pitt = image.apply_filter('hot')

Filter list

Can be obtained using filters property.

>>> image = faces.FaceAppImage(...)
>>> image.filters
['no-filter', 'smile', 'smile_2', 'hot', 'old', 'young', 'hollywood', 'fun_glasses', 'hitman',
'mustache_free', 'pan', 'heisenberg', 'female', 'female_2', 'male', 'no-filter', 'impression',
'goatee', 'mustache', 'hipster', 'lion', 'bangs', 'glasses', 'wave', 'makeup']

You can track which of them works on Travis CI latest build info. It is scheduled to be updated daily.

Handling Exceptions

try:
    image = faces.FaceAppImage(...)
except faces.ImageHasNoFaces:
    print('Your face is not recognized. Are you an alien?')
except faces.BadImageType:
    print('This image is not valid. Get some good bytes.')
except faces.BaseFacesException:
    print('Some unknown wrong things happened.')

try:
    result = image.apply_filter('young, rich and powerful')
except faces.BadFilterID:
    print('Too cool filter to exist.')

Advanced features

Dumping and rebuilding class from json

# It is handy when you have uploader-worker application and have to pass data between.

image = faces.FaceAppImage(...)
json_string = image.to_json() # type(json_string) == str

"""
...pass to different machine
"""

rebuilt_image = faces.FaceAppImage.from_json(json_string) # type(rebuilt_image) == faces.FaceAppImage

Tests and API status

This module hardly relies on undocumented FaceApp API. Tests are scheduled to run daily on Travis CI to ensure API works as expected.

Yes, it's that easy. Now create something cool!

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