Cerebro
Cerebro is a python package for Facial Expression Detection, we provide a trained model with accuracy around 98% of 8 emotions [Happy, surprise, contempt, sad ,angry,disgust,Neutral,Fear], with a very simple interface for detection from image,video with any rotation and Real time streaming.
Documentation
Example In this Example we get an image , predict an emotion then save it with the emotion.
from interface import video_stream as vs
from interface import process_image as pi
def main():
im = cv2.imread("interface/7.jpg")
items =pi.extract_faces_emotions(im)
im =pi.mark_faces_emotions(im)
cv2.imwrite("interface/77.jpg",im)
cv2.imshow("detected emotions",im)
cv2.waitKey(0)
if __name__ == '__main__': main()
Installition Cerebro depends on some python packages, once you install Cerebro any missing Module will be automatically installed, for FFmpeg use this link.
Installation by hand: download the sources, either from PyPI or, if you want the development version, from GitHub, clone the project then use this command in terminal to setup.
$ (sudo) python setup.py install
Installation with pip: if you have pip installed, just type this in a terminal:
$ (sudo) pip install CEREBRO8
Using Model : once You install Cerebro You have to dowenload our trained model from this link and full model link then add them to new foldercalled saved-models
Using Landmark : if you want to use Landmark feature extractor you have to dowenload this file landmarks with 68 point using this link in this path
saved-models/face-landmarks "create new folder called landmarks in saved-models"
Video demo
Real Time demo
Maintainers
Metadata
Release files for CEREBRO8 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| CEREBRO8-0.0.1.tar.gz | 14.0 kB | Without provenance | Details for CEREBRO8-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CEREBRO8-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for CEREBRO8-0.0.1-py3-none-any.whl |
Total release size: 45.8 kB
Release files / CEREBRO8-0.0.1.tar.gz
| Download URL | CEREBRO8-0.0.1.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
823187a2beea405dc49553528d6dcaa50d7f6e22d7d8b5c7a35977760bb88a8a
|
|
BLAKE2b-256 checksum How to use checksums |
21df7a588c5d6de116ad78f2ad84bc85898a4dbfabb38ca14ebfe51d44816cdd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Release files / CEREBRO8-0.0.1-py3-none-any.whl
| Download URL | CEREBRO8-0.0.1-py3-none-any.whl |
|---|---|
| Size | 31.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d1ed548924bd1ff54f34ea447ba91610cc9eb6d7bae344c6571dcd8dd19d8677
|
|
BLAKE2b-256 checksum How to use checksums |
b3e8f12e6685b8a7e2dfa04b4f0865711f0391ed8eb6d16c53fe695fd817513f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for CEREBRO8 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.