Indian Food Recognition Using YOLOv8 on BrainyPI
by prathameshdalal in Circuits > Raspberry Pi
141 Views, 0 Favorites, 0 Comments
Indian Food Recognition Using YOLOv8 on BrainyPI
![intro-1645057933.jpg](/proxy/?url=https://content.instructables.com/F1A/CHNP/LUZJECYR/F1ACHNPLUZJECYR.jpg&filename=intro-1645057933.jpg)
In a world where technology continues to revolutionize various aspects of our lives, it comes as no surprise that even the art of recognizing and appreciating food has found its digital counterpart.
In this blog, we unveil an innovative Indian food recognition system powered by YOLOv8, a state-of-the-art object detection algorithm. With the ability to identify a diverse range of dishes, from the aromatic Paneer Butter Masala to the rich and flavorful Biryani, this system opens doors to a new dimension of culinary exploration.
In this project we have implemented an Indian Food Recognition Model using YOLOv8 algorithm on Brainy Pi.
Supplies
![brainypi-interfaces-1.gif](/proxy/?url=https://content.instructables.com/F5T/RKDP/LUZJE5J1/F5TRKDPLUZJE5J1.gif&filename=brainypi-interfaces-1.gif)
- BrainyPI
- ShunyaOS
Connecting to BrainyPi
![Capture.PNG](/proxy/?url=https://content.instructables.com/FUS/I3HS/LUZJE5ML/FUSI3HSLUZJE5ML.png&filename=Capture.PNG)
Connect to the BrainyPi Remotely by SSH
ssh -X pi@auth.iotiot.in -p 65532
Enter password to establish the connection.
Transferring Files From Local Directory to BrainyPi
![WhatsApp Image 2024-04-11 at 19.00.42.jpeg](/proxy/?url=https://content.instructables.com/FW3/WWQA/LUZJE7D2/FW3WWQALUZJE7D2.jpg&filename=WhatsApp Image 2024-04-11 at 19.00.42.jpeg)
Transfer the model weights, test images and inference script from local pc to brainypi
rsync -avz -e "ssh -p 65532" /home/jignesh/brainy/IFR/* pi@auth.iotiot.in:/home/pi/IFR
Enter the password to transfer the files into Brainypi
Inference on BrainyPi
![lfmaf.PNG](/proxy/?url=https://content.instructables.com/FJT/T3ZA/LUZJE88Y/FJTT3ZALUZJE88Y.png&filename=lfmaf.PNG)
![1.jpg](/proxy/?url=https://content.instructables.com/FT4/6ZJZ/LUZJE8QE/FT46ZJZLUZJE8QE.jpg&filename=1.jpg)
![2.jpg](/proxy/?url=https://content.instructables.com/FHQ/S6CS/LUZJE8QM/FHQS6CSLUZJE8QM.jpg&filename=2.jpg)
Change working directory to IFR/demo
cd IFR/demo/
Run the inference script
python3 main.py
Inferences are saved in the output folder in current working directory.
- The Detected Class from the image is printed on the terminal
- The Image with bounding boxes around the predicted class along with the confidence of predictions are saved in the output directory
Re-Transferring the Output Folder to the Local PC
![dsfs.PNG](/proxy/?url=https://content.instructables.com/FJ7/1SGA/LUZJE9J0/FJ71SGALUZJE9J0.png&filename=dsfs.PNG)
Use the same rsync command to retransfer the output folder back to the localpc
rsync -avz -e "ssh -p 65532" pi@auth.iotiot.in:/home/pi/IFR/demo/output/* home/jignesh/brainy/output