Facial Expression Classifier API powered by Tensorflow
Project description
Facex : Facial Expression Classifier API powered by Tensorflow
Before use, you need to install :
- Tensorflow >= 2.0.0
- Python >= 3.6
Usage example :
import cv2
import facex
clasifier = facex
im = cv2.imread("try.jpeg")
gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
res = clasifier.predict(gray)
Result example:
({'anger': 0.998833, 'disgust': 0.00052476715, 'fear': 2.7101655e-06, 'happy': 1.9320699e-15, 'neutral': 2.370802e-06, 'sadness': 0.00063713803, 'surprised': 1.0851344e-09}, 'anger')
The result will a tuple of probability of each category and the highest probability category.
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
facex-1.0.0.tar.gz
(2.0 MB
view details)
Built Distribution
facex-1.0.0-py3-none-any.whl
(2.0 MB
view details)
File details
Details for the file facex-1.0.0.tar.gz
.
File metadata
- Download URL: facex-1.0.0.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8bbf8d0ae5a463231e3b2b01a9f98637c3b1d948391669a8104ff219a5c77033 |
|
MD5 | cb94364a4e97e83ceb123bc5bf66e6dd |
|
BLAKE2b-256 | af9d81cb7e45b8b3e5e20bb9180923d17a0db3bf1bb39d55c425783eba47c0e3 |
File details
Details for the file facex-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: facex-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1.post20200604 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7226694a7b77343ab88e05b31a959acfadc928a1301206282f2a63a804b174e9 |
|
MD5 | 99cf8e4f02ec7889a4e65440a8df472d |
|
BLAKE2b-256 | 4b6c9ce1ce31d79e8310ef468200cd92a7496623cfc6f2c7837f7fcbadc3ce19 |