Processing the image with Python

Slides:



Advertisements
Similar presentations
Explanation ACC system
Advertisements

Objectives Define photo editing software
Autonomous Vehicle Pursuit of Target Through Optical Recognition Vision & Image Science Laboratory, Department of Electrical Engineering,Technion Daniel.
Presented by: Doron Brot, Maimon Vanunu, Elia Tzirulnick Supervised by: Johanan Erez, Ina Krinsky, Dror Ouzana Vision & Image Science Laboratory, Department.
Autonomous Vehicle: Navigation by a Line Created By: Noam Brown and Amir Meiri Mentor: Johanan Erez and Ronel Veksler Location: Mayer Building (Electrical.
Color (1) Turtle class contains a method to change the pen color Note: before using Color class, you should add following line in the top of the source.
First Bytes - LabVIEW. Today’s Session Introduction to LabVIEW Colors and computers Lab to create a color picker Lab to manipulate an image Visual ProgrammingImage.
Computer Science 111 Fundamentals of Programming I Introduction to Digital Image Processing.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Conference Room Laser Pointer System Preliminary Design Report Anna Goncharova Brent Hoover Alex Mendes.
How to turn on the robot How to start Bluetooth How to connect to robot How to initialize the robot How to not break the robot Sec Getting Started.
L.
Streaming Twitter. Install pycurl library Use a lab computer From the course website Download the links from pycurl and twitter streamer Extract site-packages.zip,
Topics Introduction Hardware and Software How Computers Store Data
Introduction to Python
Special Project Group 03 Chintan Shah Nisharg Patel Cynthia York.
Pictures Looping through pixels.. Lab Review (1) Objects  Instantiated from Class  Turtle myTut = new Turtle(myWorld);  new operator creates an instance.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Computer Science 111 Fundamentals of Programming I Introduction to Digital Image Processing.
W2D1. HSV colour model Source: Primary colours Red Green Blue Secondary Cyan Magenta.
Adobe Photoshop CS5 – Illustrated Unit A: Getting Started with Photoshop CS5.
Processing Workshop. What is processing? “Processing is an open source programming language and environment for people who want to program images, animation,
` Tracking the Eyes using a Webcam Presented by: Kwesi Ackon Kwesi Ackon Supervisor: Mr. J. Connan.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
Introduction to Python Dr. José M. Reyes Álamo. 2 Three Rules of Programming Rule 1: Think before you program Rule 2: A program is a human-readable set.
Elements of Design 1.02 Investigate Design Principles and Elements.
COMPUTER VISION Larry Wolff MTW Office: 212NEB Office Hours: Wed. 1-2PM.
GROUP SD1501 IOT VISION ADVISORS: BOB WEINMANN, SAMEE KHAN CLIENT: APPAREO Group Members Dale Bromenshenkel James Massey Bradley Hoffmann.
Zack Nemes By: Clemence Larroche. To track and follow a car as it travels along a path.
Intelligent Robotics Today: Vision & Time & Space Complexity.
Screen Basic color – RGB Print Basic Color - CMYK R – Read G – Green B - Blue Total Color combination: 256x256x256=16,777,216 Total Printing Color.
1- How to connect the robot to the pc Sec Getting Started 3- How to move the robot Sec Scribbler movements 4- How to make a turn 11- How to.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Chapter Six. Exercises Clear the screen Write a procedure to show a symbol at (dl, dh). AL stores the symbol. Write a procedure to control a character.
Adobe Photoshop CS4 – Illustrated Unit A: Getting Started with Photoshop CS4.
Photoshop CS6 – Nelson Unit 3: Photoshop CS6. Objectives Define photo editing software Start Photoshop and view the workspace Use the Zoom tool and the.
Simple Image Processing and Object Detection using Matlab Akshar Prabhu Desai.
AP CSP: Pixelation – B&W/Color Images
Sharper Images from a One-Chip Solution:
FINGERSPELLING THE SIGN LANGUAGE TOOL
Freshman project Robotic arm control using webcam
Arduino Uno – controlling LED strips
Development Environment
Introduction to Vivado
Getting Started with Adobe Photoshop CS6
Sampling, Quantization, Color Models & Indexed Color
Enable Talk Prepared By: Alaa Mayyaleh Shurouq Abu salhiah.
Program the robotic arm
Images In Matlab.
Vocabulary byte - The technical term for 8 bits of data.
Color Tracking.
Smart Car Robot Prepared by Supervised by Mai Asem Abushamma
Vocabulary byte - The technical term for 8 bits of data.
Semi-Autonomous Car Prepared by: Sahar Qawariq & Deema Hamdan
Fundamentals of Programming I Introduction to Digital Image Processing
Vocabulary byte - The technical term for 8 bits of data.
A. Vadivel, M. Mohan, Shamik Sural and A. K. Majumdar
How to Analyse a Visual Text
Python Mr. Husch.
Looping through pixels.
Topics Introduction Hardware and Software How Computers Store Data
Chap. 3 Functions Start Python IDLE (Shell) and open a new file.
A Media Computation Cookbook
Arduino Part 4 Let there be more light.
Enable Talk Prepared By: Alaa Mayyaleh Shurouq Abu salhiah.
Python Lesson’S 1 & 2 Mr. Kalmes.
Basic Concepts of Digital Imaging
OU: GEA_I_EU_USD OU Name OU Site Prefix GEA_I_EU_USD 9276 Caledonian
Image segmentation Grey scale image Binary image
Presentation transcript:

Processing the image with Python

Basics Python is a programming language OpenCV is a library used to process the image Tasks Capture images from the webcam Analyze the image to determine color (or other features) Based on the color to control the robotic arm to carry out different operations Example if the object is blue then pick it up and put on the right hand side If the object is red then pick it up and put on the left hand side

Python Start a command prompt by “CMD” Start Python programming environment by “idle”

Python program environment

Test the program to capture images from Webcam To capture images from webcam and other image processing functions need to include the opencv Import cv2 Go to the ftp site and download the sample programs Under File -> New File Paste the file Run the program by pressing F5 or under Run -> run module

Image format An image is composed with many elements called pixels An Iphone 7 has 12MP (Mega Pixel) Each pixel uses 3 components to represent the color Using RED, GREEN, BLUE Other format is available HSV H-hue S – saturation V – value

HSV vs RGB

Communicating with Arduino The Python program will send signal to Arduino so that the arm will perform the action It is also by serial communication Need to import serial Use the COM with the same number as the Arduino Write – to send Read – to receive

Exercise Try to send the character ‘0’ to the arm In the arm side, open the gripper after receiving the ‘0’ then send back the message “OK”

Put things together If input object is Blue then send ‘B’ to arm If input object is Red then send ‘R’ to arm In the arm side, set the arm to a start position If receive a ‘B’ then pick up the object and turn left (turn right for ‘R’) and put down the object Go back to the starting position and send back “OK” to notebook wait for the next signal