Skip to content

ghandic/facial_analysis_api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Facial Analysis - Quality checking

Querying the API

The API currently has one URL available to it, namely /api/v1/face which requires the use of the POST method. The image needs to be supplied during the request inside a form.

How to run

docker-compose up -d
open web/index.html

Example of calling the API from python

import requests
import json

image_path = "path/to/image.jpg"
api_url = "http://localhost:8686/api/v1/face"

# Send image to receive facial analysis
response = requests.post('', files={'image': open(image_path, 'rb')})

# Pretty print the response
print(json.loads(response.text, indent=2, sort_keys=True))

About

A full implementation of a facial analysis api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published