Skip to content

Projet d'exploration : détection des distances via une ESPCam

Notifications You must be signed in to change notification settings

Epita-Expert/distance_measurement

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Distance measurement

This is a simple distance measurement project using a ESPCAM and Arduino IDE.

Ball Tracking

This project uses OpenCV to track ball movement and measure the distance. The process for tracking is as follows:

  • Convert color to HSV
  • Create a pixel mask to identify the ball using upper and lower color bounds
  • Erode and dilate the mask to reduce noise
  • Indentify contours and draw a circle around the ball

Prerequisites

Setup

Script

To install the python libraries run this command:

python3 -m pip install -r requirements.txt
or
pip3 install -r requirements.txt

Arduino IDE

In order to install the ESPCAM library, you need to add the following URL to the Arduino IDE: http://arduino.esp8266.com/stable/package_esp8266com_index.json

Getting Started

Run the ball tracking script:

python3 main.py --video name_of_the_video.mp4

About

Projet d'exploration : détection des distances via une ESPCam

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published