Professional Documents
Culture Documents
MODULE –vI
SYLLABUS
Module –VI
Robotic vision system - Image acquisition: Vidicon, charge coupled device (CCD)
and charge injection device (CID) cameras. Image processing techniques:
histogram processing: sliding, stretching, equalization and thresholding.
Case studies of Mechatronics systems: Automatic camera, bar code reader, pick
and place robot, automatic car park barrier system, automobile engine
management system.
ROBOTIC VISION
• Robot vision may be defined as the process of extracting, characterizing, and
interpreting information from images of a three dimensional world. Four
steps to General Purpose Robot Vision are
Image formation
Processing of image in a form suitable for analysis by computer
Defining and analyzing the characteristics of image
Interpretation of image and decision making.
• The image of the object is sensed using any image sensing devices like camera.
This image is send to memory as frames .After acquiring the image it is
processed in computer to improve the quality which includes adjusting of
brightness, contrast, sharpness, etc. Final processed image is taken to output
device.
IMAGE ACQUISITION
• The basic structure of the vidicon camera tube is shown in the figure. The
optical image is formed on the glass faceplate coated with a thin
photosensitive layer composed of a large number of tiny photo resistive
elements. The resistance of the element decreases with increasing
illumination. Once the image forms on the faceplate, a charge is
accumulated, which is function of the intensity of the impinging the light
over a specified time, from which an electrical video signal is derived.
• The charge built up is read by scanning the photo sensitive layer by
focused electron beam produced by electron gun at the rear of the tube.
The scanning is controlled by a deflection coil mounted along the length of
the tube. The electron beam is made to scan the entire surface, typically ,
30 times per second per line
WORKING
• This camera tube based on the photo conductive properties of semiconductors i.e., decrease
in resistance with the amount of incident light. The tube is shown in figure. It consists of –
• (a). Signal Plate: Which is a conducting metallic film very thin so as to be transparent. The
side of this film facing cathode is coated with a very thin layer of photoconductive material
(amorphous selenium). This side is scanned by electron beam. The optical image is focused
on the other side of this film.
• White portions of the object will project more light on the film and make it
more conductive. This charge leaked to photoconductive side of the film
will vary according to illumination of the object. As a result, potential at
every point on the photoconductive side will vary. Now the electron beam
again starts scanning the photoconductive side of the film but this time the
charge deposited by the beam in order to reduce its potential towards zero
(cathode potential) will vary with time. Therefore current through RL (and
hence the output voltage) will follow the changes in potential difference
between two surfaces of the film and hence follows the variations of light
intensity of successive points in the optical image.
CHARGE COUPLED DEVICE (CCD)
• A charge injection device uses an image sensor in which the image points
are accessed with reference to their horizontal and vertical coordinates.
• After the camera is initiated, the camera's lens focuses reflected light
through the camera aperture, light filters and onto the electronic image
sensor. The image sensor is arranged in a grid pattern, with each individual
square called a pixel. The image sensor cannot determine the color of light
recorded, only the intensity. Color is typically identified by the use of a
color filter which will only allow one color of light from the visible
spectrum into each pixel.
• Each pixel of the CID image sensor is arranged over two intersecting
capacitors. After the intensity of the light is read, it is stored on the sensor
until the pixel is ground or 'injected' into the substrate. Since the image
stays on the sensor, a displacement current equal to the signal on the
sensor is created. The displacement current is read when the charge is
shifted between capacitors, and is then amplified and converted to a
voltage. This voltage is the camera output which is created as a video
signal.
• Since the image is still on the CID image sensor, this image is non-
destructive and allows for an accurate exposure, even in low-light
scenarios. If the charge injection is interrupted, a CID can offer an
excellent time-lapse exposure. Blooming and smearing is greatly reduced
in CID cameras because the charge is held in the pixel, and there are no
opaque areas between pixels. This makes CID sensors apt for pattern
recognition, target tracking, image processing, and precision
measurement.
IMAGE PROCESSING
• An image is an array or a matrix of square pixels (picture elements)
arranged in columns and rows. Images are obtained using various image
acquisition devices like cameras. After acquiring these images they are
stored in computer memory as digitized image. These acquired images will
be having errors during their acquisition. lf we remove these errors we will
get clear images. The removal of errors for making the image more bright
and clear is done by image processing.
• Image processing is a method to convert an image into digital form and
Perform some operations on it, in order to get an enhanced image or to
extract some useful information from it. lt is a type of Signal dispensation in
which input is image, like video frame or photograph and output may be image
or characteristics associated with that image. Usually Image Processing system
includes treating images as two dimensional signals while applying already set
signal processing methods to them. There are two processing objectives:
– To extract the spatial parameter of the objects
– To recognize the objects in the image
• The various image processing techniques includes connectivity method,
Thresholding, histogram analysis etc.
THRESHOLDING TECHNIQUE
• In a low contrast image the pixel clusters in a two specific gray scale
values. This reduces the clarity. But in order to obtain high contrast image
the pixels should be distributed uniformly across all over to get high
contrast image. This is done through histogram analysis
Histogram
• A histogram is a graph that shows frequency of anything. Usually
histogram has bars that represent frequency of occurring of data in the
whole data set. A Histogram has two axes the x axis contains event
whose frequency you have to count and y axis contains frequency. The
different heights of bar shows different frequency of occurrence data.
• An image Histogram is a type of histogram that acts as a graphical
representation of the lightness/color distribution in a digital image. It
plots the number of pixels for each value. Histogram analysis is used to
improve the contrast and brightness of the image.
Histogram sliding
• ln histogram sliding, we just shift a complete histogram rightwards or
leftwards. Due to shifting or sliding of histogram towards right or left, a
clear change can be seen in the image. A histogram of an image is shown
below. For increasing brightness using histogram sliding:
• On the y axis of this histogram is the frequency or count. And on the x axis, we
have gray level values. As you can see from the above histogram, that those gray
level intensities whose count is more than 700, lies in the first half portion, means
towards blacker portion. That's why we got an image that is a bit darker.
• ln order to bright it, we will slide its histogram towards right, or towards whiter
portion. In order to do we need to add at least a value of 50 to this image. Because
we can see from the histogram above, that this image also have 0 pixel intensities,
that are pure black. So if we add 0 to 50, we will shift all the values lies at 0
intensity to 50 intensity and all the rest of the values will be shifted accordingly.
• For decreasing brightness using histogram sliding: We have to decrease
brightness of this new image to such an extent that the old image looks
brighter; for that we need to subtract some value all the matrix of the new
image
Histogram stretching
• A histogram of an image is shown below . ln order to do histogram
stretching first we need to calculate contrast from this image
• Now we will increase the contrast of the image. The formula for stretching
the histogram of the image to increase the contrast is:
• The formula requires finding the minimum and maximum pixel intensity
multiply by levels of gray. in our case the image is 8 bpp, (8 bits per pixel is
selected) so levels of gray are 256. The minimum value is 0 and the
maximum value is 225. So the formula in our case is
• Where f(x , y) denotes the value of each pixel intensity. For each f(x ,y ) in
an image, we will calculate a value using this formula. After doing this we
will be able to enhance our contrast by adding more values.
• The following image appears more contrast after applying histogram stretching.
The stretched histogram of image is shown below. The histogram is now stretched
or expanded.
Histogram Equalization
• Eg. In traditional design of the temperature control for a central AC system involves a
bimetallic thermostat in a closed loop control system. The basic principle behind this
system is that the bending of the bimetallic strip changes as the temperature change and is
used to operate an ON/OFF switch for the temperature control of the AC system. The
bimetallic thermostat is less sensitive compared since the temperature is not accurately
controlled and it is not suitable for having different temperature at different time of the
day because it is very difficult to achieve.
• The same system can be modified by mechatronics approach, which uses a
microprocessor controlled thermocouple as the sensor. Such a system has may advantages
over traditional system. The microprocessor controlled thermo diode system can
overcome above said difficulties and is giving precision and programmed control. This
system is much more flexible.
SL NO. TRADITIONAL APPROACH MECHATRONICS APPROACH
1 Bulky system Compact
It is a complex process involving It is the basic integration of various
2 interactions between many skills and emerging technologies with mechanical
disciplines engineering.
The control is accomplished manually A microprocessor is used as a controller
3
by programming it
Complex mechanisms Simplified mechanisms that can be
4
transferred to software through programs
5 Non adjustable movements Programmed movements
6 Constant speed drives Variable speed drives
7 Mechanical synchronization Electronic synchronization
Accuracy determined by tolerance of Accuracy achieved by feedback – more
8
mechanism – less accurate accurate
9 Flexibility is less Flexibility is more
It consists more components and moving It involves less components and moving
10
parts parts
11 Less cost High cost
CASE STUDIES OF MECHATRONICS
SYSTEMS
The following case studies of mechatronic systems are explained :
• When the current flows through the solenoid A & the piston in the cylinder
extends to move upward and causes the barrier to rotate about its pivot and thus
the barrier raises to allow the car inside. When the current flows through the
solenoid A ceases, the spring on the solenoid valve makes the contacts to open
and thus moves the valve back to its original position.
• When the current flows through solenoid B, the piston in the cylinder moves
downward end causes the barrier to get down.
• Limit switches are used to detect when the barrier is down and also when fully
up, which can be controlled by a PLC.
ENGINE MANAGEMENT SYSTEM
• Engine management system is now-a-days, used in many of the modem cars,
which includes many electronic control systems such as microcontrollers for the
control of various engine factors.
• The main objective of the system is to ensure that the engine is operated at its
optimum settings, managing the ignition and fuelling requirements of the
engine,
• The power and speed of the engine can by varying the ignition timing and the
Air fuel mixture.
• The system consists of number of sensor for observing vehicle speed, Engine
temperature, oil and fuel pressure, air flow etc. These sensors supplies input
signals to the microprocessor after suitable signal conditioning and provides
output signals via drivers to actuate corresponding actuators.
• [Actuators - Actuators are devices used for producing the required output .
They include solenoid valves , electromagnetic components , stepper motors,
indication lamps etc.]
• The engine speed sensor is an inductive sensor while temperature sensor is
usually a thermistor. The air flow rate sensor may be a hot wire anemometer; as
the air passes over a heated wire it will be cooled and the amount of cooling
depends upon mass flow rate.
• To control the ignition delay, the crank shaft drives a distribution which makes
electrical contacts for each spark plug in turn and a timing wheel. This timing
wheel generates pulses - to indicate the crankshaft position. The microprocessor
then adjusts the timing at which high voltage pulses are sent to the distributor so
that they occur at right moments of time (firing order).
• To control the amount of air-fuel mixture entering into a cylinder during the
suction stroke, the microprocessor varies the time for which a solenoid is
activated at the inlet valve on the basis of inputs received by the engine
temperature and the throttle position.
• The amount of fuel to be injected into the air stream can be determined on input
from a sensor for the mass rate of air, or computed from other measurements.
The microprocessor then gives as output to control of fuel inject valve.
AUTOMATIC CAMERA
• The modern camera is likely to have automatic focusing and exposure.
• When the switch is operated to activate the system and the camera pointed at the
object being photographed, the microprocessor takes the input from the range
sensor and sends an output to the lens position drive to move the lens to achieve
focusing.
• The lens position is fed back to the microprocessor so that the feedback signal
can be used to modify the lens position with the inputs from the range sensor.
• The light sensor gives an input to the microprocessor which then gives an output
to determine, if the photographer has selected the shutter controlled rather than
aperture controlled mode ie the time for which the shutter will be opened.
• When the photograph has been taken, the microprocessor gives an output to the
motor drive to advance the film ready for the next photograph.
• The programming of the microprocessor consists of logic decisions with the
input and output signals either being low or high to give on-off states.
• A few steps of the program for the automatic camera might be of the form:
BAR CODE READER
• A barcode reader (or barcode scanner) is an electronic device that can read
and output printed barcodes to a computer.
• Like a flatbed scanner, it consists of a light source, a lens and a light sensor
translating optical impulses into electrical ones. Additionally, nearly all barcode
readers contain decoder circuitry analyzing the barcode's image data provided
by the sensor and sending the barcode's content to the scanner's output port.
• A product purchased from the market generally bears coded black and white
bars on the product packet.
• This coded bar, that is, a barcode, is read by exposing it to a laser light beam
from a hand-held wand, which is held over the product.
• By reading the barcode, the output of the computer produces the name of the
product and its cost, hence, a barcode is used to indicate the nature of the
product and its cost.
• A barcode is composed of a series of black and white lines on the packaging;
sometimes, it also bears the code of the company, that is, a product of LG, Tata,
Bata, and any other company.
• The following two schemes are used in barcoding: