Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
I
The New Beginning
Question # 1
What is a robot??
information action
about the on the
environment environment
• Mechanical Hardware
• Electronics Hardware
• Software
Power Control
ROBOT
Management System
Sensors
Data
Motor 1
Port1
Data Motor 2
Port2
The values for the other coil can be determined by shifting the binary
representation by 4 places left or multiply the decimal values by 2^4=16
• Basics of Matlab
• Image Capturing.
• Image Processing..
• Object Identification…
• Movement Algorithm….
disp('START');tic;
f=getsnapshot(vid);flushdata(vid);
prev_cen=0;
flag=0;
end_y=400;
start_y=40;
while x==0
T=T+1;
f=getsnapshot(vid);
{insert your code}
end
stop(vid);
• frame = getsnapshot(obj);
• delete(obj);
RGB components
• For example, the red, green, and blue
color components of the pixel (10,5) are
stored in RGB(10,5,1), RGB(10,5,2), and
RGB(10,5,3), respectively.
eg
a=imread(‘name.jpg’);
r=a(:,:,1);
g=a(:,:,2);
b=a(:,:,3); copyright© IIT Guwahati Robotics Club
Object identification
• imcrop(image)
• Im2bw(image)
• medfilt2(image)
• bwlabel(image)
Distinguishing the ball, robot, red square.
• regionprops – area,centroid,perimeter
• Ratio of area to sqr of perimeter will be
fixed number for a circular object.