Skip to content

sorl-facerecognition offers engine for sorl-thumbnail, which crop image to face

Notifications You must be signed in to change notification settings

hoffmannkrzysztof/solr-facerecognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Solr-facerecognition module for Solr thumbnail
This module is trying to find a face on given picture and then crop to this face. If it will fail, the default crop will be used.

Installation:
pip install -e git://https://github.com/hoffmannkrzysztof/solr-facerecognition.git#egg=solr_facerecognition

Required:
* django
* solr-thumbnail
* cv2 ( opencv2 ) - python binding

Using:
1. Override `THUMBNAIL_ENGINE` variable in settings.py and set: `solr_facerecognition.engines.FaceRecognitionEngine`
2. Use a template tag from solr-thumbnail `{% thumbnail %}` by adding a `facerecognition=1` eg. `{% thumbnail movie.image "100x100" crop="top" facerecognition=1 as im %}`

About

sorl-facerecognition offers engine for sorl-thumbnail, which crop image to face

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages