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.23.tar.gz (4.7 MB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for what_the_face_classification-0.0.23.tar.gz
Algorithm Hash digest
SHA256 17ab430733db27e6e5d9f7d4b308e33a1e1fa6bc0d1d3ce1f2f2204f5dca3f95
MD5 04abd3f134c76f42967b219871e94153
BLAKE2b-256 1b67b3a9ca0c763066fa87370d742c9212d631a601175e547c08a09819e8cc13

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for what_the_face_classification-0.0.23-py3-none-any.whl
Algorithm Hash digest
SHA256 f21f0df6167ef97a395b13a4d4600b58a9723db3342ead9931b177543263774d
MD5 621365435653b908226b70b4d656da48
BLAKE2b-256 ebf9879c386f961a9e203563f73b91fb833c69ddaf26bb2826bfd241fb3e5b00

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