Real Time Object Detection and Measurement
Real Time Object Detection and Measurement
Prof. Dr A. A Bhadre
---------------------------------------------------------------------***---------------------------------------------------------------------
ABSTRACT – a. The execution of this procedure has a high
computation rate and it is dependent on the resolution
In these days, real-time object detection and of frames. The achievement of identifying objects and
dimensioning of objects is an important issue from separate these objects from the background is perfect
[1-4]. To calculate the size of each object, firstly we
many areas of industry. This is a vital topic of computer
need to determine the reference object. After that, the
vision problems. This study presents an enhanced dimensions of the reference objects will be used to
technique for detecting objects and computing their calculate the size of other objects. We calibrate the
measurements in real time from video streams. We camera according to the reference Object. The
suggested an object measurement and Detection reference object always is the left-most object in the
image. Also, to calibrate your pixels per metric
technique for real-time video by utilizing Open CV variable, the reference object can be utilized and from
libraries and includes the canny edge detection, there calculate the size of other objects in all frames
dilation, and erosion algorithms. The suggested [5]. Completely computational procedures are
technique comprises of four stages: (1) identifying an assessed through a operating system using a running
object to be measured by using canny edge detection with a frequency of 1.3 GHz [6-10]. Every processes
utilize the libraries of Open CV [11]. We have found
algorithm, (2) using morphological operators includes various papers attached to a measurement system.
dilation and erosion algorithm to close gaps between Each measurement applications are utilized for various
edges, (3) find and sort contours, (4) measuring the purposes. Real-Time Object Measurement” is a
dimensions of objects. In the implementation of the program that can be used to detect real-time object’s
proposed technique, we designed a system that used dimensions. There are not many real-time object
measurement models and this prototype can be used
Open CV software library. enormously further. This is an essential topic of
computer vision problems. As stated, this project
presents a technique for computing the measurements
in real-time from images. Some advantages of using
Key Words: Object Detection, Object Dimension this methodology are that it is very useful in the
Measurement, Computer Vision, Open CV, Canny industrial field, it simplifies human work, and many
more which are noted below in the advantages and
Edge Detection.
disadvantages section. To calculate the size of each
object, the prerequisite is that we need to determine the
reference object. In this case, it is, plain white paper.
After that, the dimension of the objects inside the
reference are measured or it will be calculated and
1. INTRODUCTION hence the size of the object is displayed
Real-time object detection and measurement systems I. PROPOSED METHODOLOGY FOR REAL TIME OBJECT
are very vital tasks in the industrial process. Object DETECTION AND MEASUREMENT
detection is often used in product quality stages in the The system consists of two parts which are object
industry. The proposed system can be applied to an detection and object measurement. In the first part,
industrial quality control system. Likewise, it can be laptop camera used to achieve the frames. In the
utilized for various industrial systems or for security second part, computer vision module will be applied
purposes. Generally, it is identifying objects in public to the captured frames to determine the objects, then,
area and measure dimensions of each of them. The we will measure each object. The detected object of
competence of the proposed system has been the current frame immediately will be processed to
confirmed through utilizing real videos that taken from extract dimensions of objects. In the proposed system,
firstly, we need to preprocess our image. The camera In the compute gradient stage, we detect the edge
will capture a frame and the frame will convert to gradient and direction for each pixel. For The define
grayscale to increase quickness and accuracy. Objects the gradient at every pixel of smoothened frame, Sobel
are detected via canny edge detector algorithm. It is operator utilized.
used to detect only one object or multiple objects. By
A complete scan of frame will be done afterward
the help of canny edge detector, the converted image
receiving gradient magnitude and direction, to
will be processed. The canny edge algorithm scans the
eliminate any undesirable pixels which might not
entire image. After that, execute dilation and erosion
establish the edge. In this stage, just local maxima must
algorithm to close holes among edges in the edge
be considered as edges through applying Non-
frame [16-18]. Figure 1, shows that the flow chart for
maximum suppression. Non-maximum suppression
the recommended system.
exchanges the smoothed edges in the frame of the
gradient magnitudes to sharp edges. Non-maximum
suppression is carried out to keep every local
maximum in the gradient picture, and removing the
whole thing else. Figure 4, shows that the frame after
apply non-maximum suppression.
The final stage of canny edge detector algorithm is
hysteresis thresholding. This stage selects which are
every edges are surely edges and which aren’t edges.
The two threshold values are empirically selected and
their definition will upon on the content of a given
frame. This is achieved via choosing big and small
threshold values. If Edge pixels stronger than the big
threshold, it is marked such as sturdy. Strong edges
will be measured as the last edges. Also, edge pixel
will be suppressed If an edge pixels weaker than the
small threshold, and it is marked as weak edge if an
edge pixel among the big and small thresholds.
To obtain the better result and more accurate object
detection, the canny edge detection procedure has
Figure 2, shows the input frame that used for canny
been improved with some Morphological operations
edge detection. First stage in canny edge detector
algorithm is delete the noise in the frames by applying [19]. These procedures are commonly a combination
a Gaussian filter. The frame after converting to gray of nonlinear procedures performed relatively on the
scale and apply Gaussian filter is appeared in Figure 3 preparation of pixels without changing their numeral
values. Erosion and dilation are the keys for
morphological operations.
Figure 2. Input frame
In this study, a morphological process is performed
such as a mixture of dilation and erosion. The opening
is the initial procedure in which erosion is followed
through dilation. Closing is the second operation in
which dilation is followed through erosion. As a
mixture of these processes we are capable to acquire
superior determination for discovery edges in-depth
frame. Figure 5 shows that the frame after applying
erosion and dilation operation.
Figure 7, illustrates the object detection and Nevertheless, not every results are perfect, since this
measurements. The size of each object in the frame is due to the seeing angle and lens deformation. By
which are calculated. calibrate the camera and set good width parameter,
accuracy will be increase.
In the second experiment, we set the camera above the
objects. Figure 7, shows that the results of the object
detection and measurement for another objects. And
the Table II, demonstrations the accuracy values
among actual measure andsystem measure.
CONCLUSION: REFERENCES:
In this study, an powerful real time object measurement [1] Muthukrishnan.R and M.Radha “Edge
method is proposed for industrial systems. In the
offered system, Computer Vision used to detect and Detection Techniques for image Segmentation”
measure objects. The system can detect and measure International Journal of Computer Science &
objects in a real time video. After the object has been
detected by using canny edge detector, the size is Information Technology (IJCSIT) Vol3, No 6, Dec
obtained for each object by using Open CV functions. 2011. [2]Geng Xing, Chen ken, Hu Xiaoguang
We enhanced the canny edge detector algorithm
through utilizing Morphological operations. This “An improved Canny edge detection algorithm for
procedure benefits to eliminate extra noises.
color image” IEEE TRANSATION, 2012 978-1-
Furthermore, whereas eliminating the extra noises it
likewise smoothens the shape and keeps the outline and 4673-0311-8/12/$31.00 ©2012 IEEE.
size of each object. Thus, the outlines of the different
objects in the scene were kept.
[2] Chen.W, Yue.H, Wang.J, Wu.X. An improved
edge detection algorithm for depth map in
FUTURE SCOPE:
painting. Optics and Lasers in Engineering 2014;