{"repo":"hfahrudin/facex","free":true,"listed":false,"github":"https://github.com/hfahrudin/facex","clone":"git clone https://github.com/hfahrudin/facex.git","description":"Python library for detecting faces and classifying emotions in images lightweight, efficient threading and object pooling for concurrent processing.","language":"Python","stars":17,"topics":["computer-vision","deep-learning","machine-learning","opencv","python","raspberry-pi","tensorflow"],"license":"MIT","category":"machine-learning","readme_excerpt":"Facex: Lightweight, High-Performance Facial Expression Classifier facex is a Python library for detecting faces and classifying emotions in images lightweight, efficient threading and object pooling for concurrent processing making it suitable for high-performance applications. NOTE: The model was trained some time ago. While it performs well, newer advancements in the field may offer improved results Features - Face Detection : Uses Haar cascades to detect faces in images. - Emotion Classification : Predicts emotions like anger, happiness, sadness, and more. - Thread-Safe Pooling : Manages multiple classifiers through a thread-safe object pool. - Dedicated Worker Allocation : Assign dedicated classifiers for specific tasks or users. NOTE: The model was trained some time ago. While it performs well, newer advancements in the field may offer improved results. Testing on RaspberryPi Installation Install the library via pip: Prerequisites Make sure you have the following: - Python 3.7 or higher - Required dependencies (installed automatically with pip): - numpy - opencv-python - tensorflow Additionally, ensure the assets directory contains the following files: - haarcascade frontalface default.xml - model optimized.tflite Usage Example Code Key Classes and Methods facex.EmotionClassifier A class responsible for detecting faces and classifying emotions in images. - init (model path, category=None) : Initializes the emotion classifier with the provided TensorFlow Lite model and op","default_branch":null,"files":null,"tree":[],"storefront":"/r/hfahrudin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hfahrudin/facex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}