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.23.tar.gz
.
File metadata
- Download URL: what_the_face_classification-0.0.23.tar.gz
- Upload date:
- Size: 4.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 17ab430733db27e6e5d9f7d4b308e33a1e1fa6bc0d1d3ce1f2f2204f5dca3f95 |
|
MD5 | 04abd3f134c76f42967b219871e94153 |
|
BLAKE2b-256 | 1b67b3a9ca0c763066fa87370d742c9212d631a601175e547c08a09819e8cc13 |
File details
Details for the file what_the_face_classification-0.0.23-py3-none-any.whl
.
File metadata
- Download URL: what_the_face_classification-0.0.23-py3-none-any.whl
- Upload date:
- Size: 4.7 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 | f21f0df6167ef97a395b13a4d4600b58a9723db3342ead9931b177543263774d |
|
MD5 | 621365435653b908226b70b4d656da48 |
|
BLAKE2b-256 | ebf9879c386f961a9e203563f73b91fb833c69ddaf26bb2826bfd241fb3e5b00 |