SlideShare a Scribd company logo
OpenCV and Python
Industrial image processing application for IEEE Region 5 Robotics
Competition.
By Rohan Kotwani
IEEE Region 5 Robotics Competition
• The goal was to navigate to a color block & place that block into a bin
corresponding to the color.
• A pi camera with OpenCV installed was used for object detection,
navigation to object, and color detection.
Information Gathered & associated problems
• Color – The color detection was an issue different lighting conditions
effect the intensity of the color.
• Distance – The distance of the robot to the object primary depended
on the algorithm’s ability filter out noise & correct detect the
perimeter of the image
• Angle from center of camera – The angle was calculated using the
distance in pixels from the center of the image & the camera focal
length.
Parts List
• Raspberry Pi 2
• OpenCV
• Python 3
• Arduino Mega
How it was made
• Image processing was done on the R-Pi2, then the information was
sent via serial communication to the Arduino Mega.
• A “hand-shake” method was used to confirm the data transfer.
Exploratory threshold analysis
• A taxonomy of colors was created with a K-mean clustering algorithm.
Object detection
1. Color threshold filter
2. Contour detection
3. Algorithm to find contours of the right dimension
Distance detection
• The red points are the actual distances, the red line is the curve fitted
interpolation, and the blue points are the distance calculated with
triangle similarity.
Color detection
• The color was calculated by finding the average color inside contours.
The End

More Related Content

PPTX
Summer Research Project. Final Presentation 2013
PPTX
Home automation using MATLAB image processing
PDF
Introduction to OpenCV with python (at taichung.py)
PPTX
Introduction to OpenCV
PPTX
Getting started with open cv in raspberry pi
PPTX
Using openCV on Raspberry Pi
PDF
Introduction to intel galileo board gen2
Summer Research Project. Final Presentation 2013
Home automation using MATLAB image processing
Introduction to OpenCV with python (at taichung.py)
Introduction to OpenCV
Getting started with open cv in raspberry pi
Using openCV on Raspberry Pi
Introduction to intel galileo board gen2

Similar to Robotics competition 2016 (20)

PDF
Machine vision Application
PDF
Machine Vision On Embedded Platform
PPTX
Law cost portable machine vision system
PDF
The mag pi-issue-28-en
PDF
IoT-based Autonomously Driven Vehicle by using Machine Learning & Image Proce...
PPTX
PYTHON-OOOOOOOOOOPPPPPPEEEEEEEEN-CV.pptx
PPTX
PYTHON-OPEEEEEEEEEEEEEEN-CV (1) kgjkg.pptx
PDF
Implementation of Computer Vision Applications using OpenCV in C++
PPTX
01 foundations
PDF
Practical Digital Image Processing 1
PDF
Machine Vision On Embedded Platform -Report
PDF
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
PPTX
502021435-12345678Minor-Project-Ppt.pptx
PDF
Computer Vision Introduction and Basic OpenCV.pdf
PDF
Introduction to OpenCV
PDF
Web-Based Online Embedded Security System And Alertness Via Social Media
ODP
Computer vision for your projects
DOCX
16 OpenCV Functions to Start your Computer Vision journey.docx
PDF
Colour tracking robot.pdf
Machine vision Application
Machine Vision On Embedded Platform
Law cost portable machine vision system
The mag pi-issue-28-en
IoT-based Autonomously Driven Vehicle by using Machine Learning & Image Proce...
PYTHON-OOOOOOOOOOPPPPPPEEEEEEEEN-CV.pptx
PYTHON-OPEEEEEEEEEEEEEEN-CV (1) kgjkg.pptx
Implementation of Computer Vision Applications using OpenCV in C++
01 foundations
Practical Digital Image Processing 1
Machine Vision On Embedded Platform -Report
Ijaems apr-2016-17 Raspberry PI Based Artificial Vision Assisting System for ...
502021435-12345678Minor-Project-Ppt.pptx
Computer Vision Introduction and Basic OpenCV.pdf
Introduction to OpenCV
Web-Based Online Embedded Security System And Alertness Via Social Media
Computer vision for your projects
16 OpenCV Functions to Start your Computer Vision journey.docx
Colour tracking robot.pdf
Ad

Recently uploaded (20)

PPTX
Introcution to Microbes Burton's Biology for the Health
PDF
The Land of Punt — A research by Dhani Irwanto
PDF
Is Earendel a Star Cluster?: Metal-poor Globular Cluster Progenitors at z ∼ 6
PPTX
A powerpoint on colorectal cancer with brief background
PPT
THE CELL THEORY AND ITS FUNDAMENTALS AND USE
PPTX
BODY FLUIDS AND CIRCULATION class 11 .pptx
PPTX
endocrine - management of adrenal incidentaloma.pptx
PDF
Worlds Next Door: A Candidate Giant Planet Imaged in the Habitable Zone of ↵ ...
PDF
Worlds Next Door: A Candidate Giant Planet Imaged in the Habitable Zone of ↵ ...
PDF
GROUP 2 ORIGINAL PPT. pdf Hhfiwhwifhww0ojuwoadwsfjofjwsofjw
PPTX
Seminar Hypertension and Kidney diseases.pptx
PPT
Presentation of a Romanian Institutee 2.
PPTX
Welcome-grrewfefweg-students-of-2024.pptx
PDF
Communicating Health Policies to Diverse Populations (www.kiu.ac.ug)
PDF
CHAPTER 3 Cell Structures and Their Functions Lecture Outline.pdf
PDF
Assessment of environmental effects of quarrying in Kitengela subcountyof Kaj...
PPTX
GREEN FIELDS SCHOOL PPT ON HOLIDAY HOMEWORK
PPTX
Hypertension_Training_materials_English_2024[1] (1).pptx
PPTX
gene cloning powerpoint for general biology 2
PDF
Placing the Near-Earth Object Impact Probability in Context
Introcution to Microbes Burton's Biology for the Health
The Land of Punt — A research by Dhani Irwanto
Is Earendel a Star Cluster?: Metal-poor Globular Cluster Progenitors at z ∼ 6
A powerpoint on colorectal cancer with brief background
THE CELL THEORY AND ITS FUNDAMENTALS AND USE
BODY FLUIDS AND CIRCULATION class 11 .pptx
endocrine - management of adrenal incidentaloma.pptx
Worlds Next Door: A Candidate Giant Planet Imaged in the Habitable Zone of ↵ ...
Worlds Next Door: A Candidate Giant Planet Imaged in the Habitable Zone of ↵ ...
GROUP 2 ORIGINAL PPT. pdf Hhfiwhwifhww0ojuwoadwsfjofjwsofjw
Seminar Hypertension and Kidney diseases.pptx
Presentation of a Romanian Institutee 2.
Welcome-grrewfefweg-students-of-2024.pptx
Communicating Health Policies to Diverse Populations (www.kiu.ac.ug)
CHAPTER 3 Cell Structures and Their Functions Lecture Outline.pdf
Assessment of environmental effects of quarrying in Kitengela subcountyof Kaj...
GREEN FIELDS SCHOOL PPT ON HOLIDAY HOMEWORK
Hypertension_Training_materials_English_2024[1] (1).pptx
gene cloning powerpoint for general biology 2
Placing the Near-Earth Object Impact Probability in Context
Ad

Robotics competition 2016

  • 1. OpenCV and Python Industrial image processing application for IEEE Region 5 Robotics Competition. By Rohan Kotwani
  • 2. IEEE Region 5 Robotics Competition • The goal was to navigate to a color block & place that block into a bin corresponding to the color. • A pi camera with OpenCV installed was used for object detection, navigation to object, and color detection.
  • 3. Information Gathered & associated problems • Color – The color detection was an issue different lighting conditions effect the intensity of the color. • Distance – The distance of the robot to the object primary depended on the algorithm’s ability filter out noise & correct detect the perimeter of the image • Angle from center of camera – The angle was calculated using the distance in pixels from the center of the image & the camera focal length.
  • 4. Parts List • Raspberry Pi 2 • OpenCV • Python 3 • Arduino Mega
  • 5. How it was made • Image processing was done on the R-Pi2, then the information was sent via serial communication to the Arduino Mega. • A “hand-shake” method was used to confirm the data transfer.
  • 6. Exploratory threshold analysis • A taxonomy of colors was created with a K-mean clustering algorithm.
  • 7. Object detection 1. Color threshold filter 2. Contour detection 3. Algorithm to find contours of the right dimension
  • 8. Distance detection • The red points are the actual distances, the red line is the curve fitted interpolation, and the blue points are the distance calculated with triangle similarity.
  • 9. Color detection • The color was calculated by finding the average color inside contours.