facex-1.0.0
توضیحات
Facial Expression Classifier API powered by Tensorflow
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | facex-1.0.0 |
| نام | facex |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Hasby Fahrudin |
| ایمیل نویسنده | fahrudinhasby12@gmail.com |
| آدرس صفحه اصلی | https://github.com/hfahrudin/facex |
| آدرس اینترنتی | https://pypi.org/project/facex/ |
| مجوز | - |
## Facex : Facial Expression Classifier API powered by Tensorflow
Before use, you need to install :
- Tensorflow >= 2.0.0
- Python >= 3.6
Usage example :
```python
import cv2
import facex
clasifier = facex
im = cv2.imread("try.jpeg")
gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
res = clasifier.predict(gray)
```
Result example:
```python
({'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.
نیازمندی
| مقدار | نام |
|---|---|
| >=0.16.2 | scikit-image |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl facex-1.0.0:
pip install facex-1.0.0.whl
نصب پکیج tar.gz facex-1.0.0:
pip install facex-1.0.0.tar.gz