Skip to main content

Enable thumbor to use AWS rekognition to run face detection

Project description

Enable thumbor to use AWS rekognition to run face detection

Build Status Coverage Status PyPI version

thumbor is a smart imaging service. It enables on-demand crop, resizing and flipping of images. It also features a smart detection of important points in the image for better cropping and resizing, using opencv face detection algorithms.

AWS Rekognition can quickly detect faces in image using sophisticated deep learning-based visual search and image classification.

thumbor_rekognition helps to use AWS Rekognition service to do face detection in thumbor easily.


pip install thumbor_rekognition

Enable detector

Add thumbor_rekognition to your thumbor.conf. Do not include thumbor’s out-of-box face detector.

    # Do not use out-of-box face detector
    # 'thumbor.detectors.face_detector',

    # Include thumbor_rekognition

The above configuration tells thumbor that it should run both the facial detection and the feature detection. These are mutually exclusive, meaning that if a face is detected, the feature detector won’t be run.

AWS Rekognition


Authentication is handled by botocore, see Boto3 documentation.


To set the region to use Rekognition service, add REKOGNITION_REGION to your thumbor.conf. Default is us-east-1.

# AWS region for the Rekognition service

Using it

After installing thumbor_rekognition, you can test it by using the following URL.


If you need to see what thumbor is seeing in your image, prepend /debug to all the parameters.


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thumbor_rekognition-0.1.1.tar.gz (4.5 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page