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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file what_the_face_classification-0.0.22.tar.gz
.
File metadata
- Download URL: what_the_face_classification-0.0.22.tar.gz
- Upload date:
- Size: 2.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808b9e85ffb09f99ae5fc062cfa9c032e1a7d1ff58941a2d5bc441088275120b |
|
MD5 | 30f85f6dc6896beaa0183886dc763b6b |
|
BLAKE2b-256 | 99fa67d35c041037e5fbc2240696acb41283828757af5fe8696d961f165d6dc3 |
File details
Details for the file what_the_face_classification-0.0.22-py3-none-any.whl
.
File metadata
- Download URL: what_the_face_classification-0.0.22-py3-none-any.whl
- Upload date:
- Size: 2.4 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bd1473e2973a92591c70911f6facf568ea1fd4d4de27678e69a6beb5fdc18f0 |
|
MD5 | 81e7f9142ff229409a1bc224fa1810d5 |
|
BLAKE2b-256 | 57d9a64697cddd1a94b79c86b9175735c005e1781f3a4da17884cccee856dfbd |