Skip to main content

CNN image classification trained on FER2013 for the 7 emotion categories.

Project description

This package was created as a part of Talentsprint and Techwise program by James Rodgers of team "What The Face". It uses a pytorch CNN network trained on FER2013 and CK+ images to classify an image passed into it.

Initialize class and pass a jpg PIL image to the predict() method.

classes: Image_classifier() returns self

functions: predict(image) returns [classified_name: str, probability: double]

Example:

from PIL import Image from what_the_face_classification.inference import Image_classifier

classifier = Image_classifier() image = Image.open(test.jpg)

prediction = classifier(image)

print(prediction)

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

what_the_face_classification-0.0.22.tar.gz (2.4 MB view details)

Uploaded Source

Built Distribution

File details

Details for the file what_the_face_classification-0.0.22.tar.gz.

File metadata

File hashes

Hashes for what_the_face_classification-0.0.22.tar.gz
Algorithm Hash digest
SHA256 808b9e85ffb09f99ae5fc062cfa9c032e1a7d1ff58941a2d5bc441088275120b
MD5 30f85f6dc6896beaa0183886dc763b6b
BLAKE2b-256 99fa67d35c041037e5fbc2240696acb41283828757af5fe8696d961f165d6dc3

See more details on using hashes here.

File details

Details for the file what_the_face_classification-0.0.22-py3-none-any.whl.

File metadata

File hashes

Hashes for what_the_face_classification-0.0.22-py3-none-any.whl
Algorithm Hash digest
SHA256 2bd1473e2973a92591c70911f6facf568ea1fd4d4de27678e69a6beb5fdc18f0
MD5 81e7f9142ff229409a1bc224fa1810d5
BLAKE2b-256 57d9a64697cddd1a94b79c86b9175735c005e1781f3a4da17884cccee856dfbd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page