PROJECT: LAGORI DETECTOR

A program that detects Lagori using webcam and OpenCV color detection algorithm and deliver the data via pixel location to the robot's mainboard.

 

 

INTRODUCTION

A program that detects Lagori using a webcam and OpenCV color detection algorithm and delivers the data in term of pixel location to the robot's mainboard via UART communication. Written for UTM Robocon Team Abu ROBOCON 2022 competition.

 

What have I learnt?

I learnt to use OpenCV and most of its library for color detection. I also learnt how to create user interface for tuning and how to do serial communication between x86 and STM32F4. I had also familiarized myself with Linux (Ubuntu) environment which I use for programming during my time in Robocon.

 

Item Used:

1. Intel Device

2. Webcam

3. STM32F4 board

4. Some Cables

 

GitHub: https://github.com/HykalAzr/LaghoriDetectionWebCAM.git

Language: C++

 

Code Section

Include Files and Declaration:

Screenshot 2023-03-14 170703.png

Screenshot 2023-03-14 170710.png

 

Tuning Interface:

Screenshot 2023-03-14 170719.png

 

Serial Communication (UART):

Screenshot 2023-03-14 170726.png

 

Main Program:

Screenshot 2023-03-14 170735.png

Screenshot 2023-03-14 170742.png

Screenshot 2023-03-14 170756.png

Screenshot 2023-03-14 170808.png