anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Reads seven facial emotions from a photo, a snapshot or a live webcam feed, using a small PyTorch model and OpenCV. Has a Gradio web page and a desktop window.
Smilo is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download ktejeshnaidu/Smilo --repo-type space --local-dir Smilo cd Smilo
Smilo classifies a face into one of seven emotions, angry, disgust, fear, happy, neutral, sad and surprise. It works in real time on a webcam feed, and also on photos and snapshots. It uses OpenCV to find faces and a small PyTorch network to name the emotion.
Students and developers who want a small, working emotion detector to run and read, and anyone curious how a webcam model is wired up.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Machine learning | Students | Study a small image classifier end to end | Run the web page and test a photo |
| Software | Developers | Add a face emotion label to a camera demo | Read app.py and main.py |
| Education | Teachers | Show how a computer reads facial expressions | Smile at the webcam and watch the label |
| Research | Hobbyists | Retrain the network on their own prepared data | Open the training notebook that the README names |
Anyone who needs a production-grade or clinical emotion tool can skip it.
It runs in these places.
| Use case | Who | What they get back |
|---|---|---|
| Check a photo | Anyone | The emotion label for each face found |
| Stream the webcam | Developers and students | Live labels drawn on the video |
| Run the desktop window | Developers | A video window with boxes and labels on faces |
Using the Space online needs only a browser. A copy on your own computer needs the following.
pip install -U huggingface_hub hf download ktejeshnaidu/Smilo --repo-type space --local-dir Smilo cd Smilo pip install gradio==5.15.0 pip install -r requirements.txt python app.py
There are two ways to run it. The web page accepts an uploaded photo, a snapshot or a live webcam stream. Gradio prints a local address in the terminal for you to open. The desktop script opens a video window from your webcam, and you press q or close the window to quit.
python app.py python main.py
| Tool | What it does |
|---|---|
| app.py | Starts the Gradio web page |
| main.py | Starts the desktop video window |
| face_classifier.pth | Holds the trained emotion model |
| classes.pkl | Holds the emotion class names |
You run python app.py, open the page and switch on your webcam. The page draws a box around your face and shows a label such as happy or surprise as your expression changes.
Start with the online Space and a clear photo of one face in good light. Facing the camera head on helps the result.
Face finding uses OpenCV's Haar cascades. Emotion recognition is a custom network with three convolution layers, written in PyTorch and trained on 128 by 128 color images. The video path skips frames and works concurrently, which the README says keeps live video above 30 frames a second. The README also points to a training notebook for retraining.
Poor lighting or a turned face lowers the accuracy of the label.
Reads seven facial emotions from a photo, a snapshot or a live webcam feed, using a small PyTorch model and OpenCV. Has a Gradio web page and a desktop window.
Made by ktejeshnaidu on Hugging Face. These notes are Mindket's, written from its Space page and README; the app's own files and license are on Hugging Face.
What it is: Smilo classifies a face into one of seven emotions, angry, disgust, fear, happy, neutral, sad and surprise. It works in real time on a webcam feed, and also on photos and snapshots. It uses OpenCV to find faces and a small PyTorch network to name the emotion.
Who it suits: Students and developers who want a small, working emotion detector to run and read, and anyone curious how a webcam model is wired up.
Industry | Who uses it | How they use it | Example
Machine learning | Students | Study a small image classifier end to end | Run the web page and test a photo
Software | Developers | Add a face emotion label to a camera demo | Read app.py and main.py
Education | Teachers | Show how a computer reads facial expressions | Smile at the webcam and watch the label
Research | Hobbyists | Retrain the network on their own prepared data | Open the training notebook that the README names
Anyone who needs a production-grade or clinical emotion tool can skip it.
Where to use it: It runs in these places.
Use case | Who | What they get back
Check a photo | Anyone | The emotion label for each face found
Stream the webcam | Developers and students | Live labels drawn on the video
Run the desktop window | Developers | A video window with boxes and labels on faces
How to set it up: Using the Space online needs only a browser. A copy on your own computer needs the following.
pip install -U huggingface_hub
hf download ktejeshnaidu/Smilo --repo-type space --local-dir Smilo
cd Smilo
pip install gradio==5.15.0
pip install -r requirements.txt
python app.py
How to use it: There are two ways to run it. The web page accepts an uploaded photo, a snapshot or a live webcam stream. Gradio prints a local address in the terminal for you to open. The desktop script opens a video window from your webcam, and you press q or close the window to quit.
python app.py
python main.py
Tool | What it does
app.py | Starts the Gradio web page
main.py | Starts the desktop video window
face_classifier.pth | Holds the trained emotion model
classes.pkl | Holds the emotion class names
Example: You run python app.py, open the page and switch on your webcam. The page draws a box around your face and shows a label such as happy or surprise as your expression changes.
For newcomers and experts: Start with the online Space and a clear photo of one face in good light. Facing the camera head on helps the result.
Face finding uses OpenCV's Haar cascades. Emotion recognition is a custom network with three convolution layers, written in PyTorch and trained on 128 by 128 color images. The video path skips frames and works concurrently, which the README says keeps live video above 30 frames a second. The README also points to a training notebook for retraining.
A frame comes from a photo or webcam
OpenCV finds the faces
The PyTorch network scores seven emotions
The label is drawn on the image
Good to know: Poor lighting or a turned face lowers the accuracy of the label.
Open the Space in your browser, or copy it to your own Hugging Face account from its page. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face Spaces in the same category that share the most tags with this one.
| Product | Likes | Built with | License | Last change |
|---|---|---|---|---|
| Smilo This page | 3 | gradio | mit | |
| FLUX.1 [dev]Shares gradio | 9,583 | gradio | mit | |
| InstantIDShares gradio | 3,659 | gradio | apache-2.0 | |
| Chat With Janus-Pro-7BShares gradio | 2,036 | gradio | mit | |
| PhotoMakerShares gradio | 1,960 | gradio | apache-2.0 | |
| Z Image TurboShares gradio | 1,940 | gradio | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
alirezarezvani · Skill
Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…
block · Kit
Self-hostable workspace where people and AI agents share the same rooms, built on a Nostr relay that logs every action as a signed event. For teams that want t…
backnotprop · Kit
Opens your AI coding agent's plans, specs and code changes in a browser so you can annotate or comment on them and send the feedback straight back to the agent.