Skip to content

GSNcodes1502/Color-code-SALLY

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ESP32 Camera Module for Color Detection

Items Required for Setup

  1. ESP32 Camera Module
  2. FTDI Transmitter
  3. Connecting Wires
  4. USB Cable - A-Male to Mini-B

Steps for Hardware Setup

  1. Connect the ESP32 Camera with the FTDI Transmitter in the following way image

  2. Use the USB Cable to connect the Transmitter with your PC

Steps for Software Setup

  1. Open Arduino IDE and open the ColorDetectionTest file.
  2. Replace SSID and Password with your network ID.
  3. Make sure Board is (ESP32 Wrover Kit) and a desirable COM port is selected (The one to which your module is connected)
  4. Hold the reset button on the ESP32 and click Upload. Keep holding the reset button.
  5. When you see Connecting… on the console, release the reset button.
  6. Wait for the console to say Hard Resetting Pin
  7. Now remove the IO0 pin from ESP32 and press Reset button again
  8. Wait for Serial Monitor to say Camera Ok and note down the Local IP (192.168.1.XX)
  9. Open CV2 File, replace IP address with Local IP and run program (F5).

How Each Prototype Works

Prototype 1: CV2_RED

Can detect a single color with full accuracy. (Current configuration is for red). You can change it to use for different color by changing the lower and upper HSV Values in the file.

Prototype 2: CheckHSV(DomColor)

Can detect more than one color. Works on the basis of dominant color detected. Hue values in the code might need updates.

Prototype 3: StoreHSV

Can detect more than one color. Works on the basis of storing a specific moment as an image, then upon intialization, can check for changes. If changes detected, then tells which new color has been spotted. Bugs yet to be fixed.

Rough Sketch of Final Prototype

image

About

ESP32 Camera Module for Color Detection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.6%
  • C++ 20.4%