|
2 | 2 | 
|
3 | 3 | 
|
4 | 4 |
|
5 |
| -# Instragam Profile Scraper in Flask |
| 5 | +# Realtime Emotion Detector using Python (Google's Teachable Machine Learning) |
6 | 6 |
|
7 | 7 | ## 🛠️ Description
|
8 |
| -This project is about developing a an API in **Flask** using **Instaloader** and **Instagram's GraphQL API's** to scrape the no of likes and comments of all of the post of a public instagram profile. |
| 8 | +This project is about developing a system that can detect the emotions of a person in realtime from the video on the basis of a pre-trained **keras** model. This model was trained using Google's [Teachable Machine Learning](https://teachablemachine.withgoogle.com/). |
| 9 | + |
| 10 | +The project can detect the following emotions:- |
| 11 | +**Angry**, **Happy**, **Sad**, **Smile**, **Surprise** |
| 12 | + |
9 | 13 |
|
10 | 14 | ## ⚙️ Languages or Frameworks Used
|
11 |
| - - Flask |
12 |
| - - Instaloader, Instgram GraphQL APIs |
| 15 | + - Python, Mediapipe, Keras |
| 16 | + - Teachable Machine Learning (For model training) |
13 | 17 |
|
14 | 18 |
|
15 | 19 | ## 🌟 How to run
|
16 | 20 | - ### Install all the requirements
|
17 | 21 | Run `pip install -r requirements.txt` to install all the requirements.
|
18 | 22 |
|
19 |
| -- ### Now Just, Run the project |
20 |
| - - To the run the project, go to the `bash` terminal of VSCode or any other code editor and run `./start_server.sh`. |
21 |
| - - The server would start running on `http://127.0.0.1:{port_number}`.(generally http://127.0.0.1:5000) |
| 23 | +- ### Run the project |
| 24 | + To the run the project, go to the terminal and run `python main.py`. This will popup two windows, one for capturing the `video input` and the other for displyaing the `emotion output.` |
22 | 25 |
|
23 |
| - - ### Explore the API |
24 |
| - Go to the browser/postman/thunderclient and hit the following URL http://127.0.0.1:5000/get_profile/{instagram_username} |
25 |
| - > Note: The Instagram Profile must be **public**. |
| 26 | + > Note: The Model (.h5 file) has been trained using the Teachable Machine Learning which is an esay to use ML Training Platform by **Google**. Do checkout that platform. |
26 | 27 |
|
27 | 28 |
|
28 | 29 | ## 📺 Demo
|
29 |
| -- Main screen of the application. |
30 |
| - |
31 |
| -- Result for my instagram account (**@mbsaiaditya**). |
32 |
| - |
| 30 | +Do checkout the Below Video for Demo of the Project. |
| 31 | + |
| 32 | +[Youtube Link](https://youtu.be/ER4avLksQfU) |
33 | 33 |
|
34 | 34 | ## 🤖 Author
|
35 | 35 | Github - [MBSA-INFINITY](https://github.com/MBSA-INFINITY)
|
|
0 commit comments