A Computer Vision Based Framework For Visual Gun Detection Using SURF
A Computer Vision Based Framework For Visual Gun Detection Using SURF
A Computer Vision Based Framework For Visual Gun Detection Using SURF
discussions, stats, and author profiles for this publication at: https://www.researchgate.net/publication/281776103
READS
12
1 AUTHOR:
Gyanendra Kumar Verma
National Institute of Technology, Kurukshetra
21 PUBLICATIONS 28 CITATIONS
SEE PROFILE
Gyanendra K. Verma
I.
INTRODUCTION
CHALLANGES
RELATED WORK
(a)
(d)
(b)
(c)
(e)
(f)
METHODOLOGY
System Initialization
Preprocessing
Input Image
Blob Extraction
Yes
Is there more
Blobs?
No
Similarity > 50 %
Yes
No
Insert Rectangle for each stored
bounding in input Image
-iminates color or objects which do not resemble gun. kmeans clustering algorithm takes image and number of cluster
k as input and then quickly approximates k clusters of image
color such that the sum of the squared distances between
each point and its closest cluster center is minimized. After
performing algorithm on the input image system takes a
cluster of those colors which are similar to that of gun.
Referenced image and color based segmentation result are as
shown in Fig.3 (b) and Fig.3 (c) respectively, where green
colored part shows the black colored part of the original
image.
D. Blob Extraction
This step extracts a blob from the segmented image that is
of area greater than 1000 pixels because many blobs of small
area arises during segmentation due to noises. A blob is a
connected component of pixel where some properties are
constant or varies lightly. There are three blobs of area greater
than 1000 pixels in the segmented image shown in Fig.3 (c).
E. Morphological Closing and Boundary Extraction
Morphological closing is performed to eliminate the
presence of small gaps in the blob. Then boundary of blob is
extracted. The boundary of object is used for matching process
because inner texture varies from object to object of same
kind, but their outline remains constant or varies lightly. The
concept of using boundary for matching is taken from the
human visual system as it can recognize any object from its
boundary structure. Morphological closing is achieved by
erosion of image with structuring element followed by dilation
with structuring element as shown in (1). Boundary is
obtained by subtracting the result of erosion of image from the
original image as shown in (2).
Ic = ( I
SE )
SE
(1)
B = I- ( I SE )
(2)
Where I is the original image, Ic is the output of closing,
SE is the structuring element, B represents the boundary of
image.
F. SURF Feature Extraction
SURF features are being used in our methodology because
these are invariant to scale, rotation and affine up to some
extent and faster than other interest point detectors like SIFT,
Harris [16] etc. SURF is scale variant because it identifies
interest point at different scale. It is rotation invariant due to
its descriptor property which is extracted by considering the
neighboring pixels around each interest point. It is faster than
any other point detector since it uses the concept of integral
image for identifying interest points and creating their
descriptor. SURF is three times faster than SIFT point
detector. SURF feature extraction involves two stepsidentification of interest points and creation of descriptor for
each interest point. Interest points are the points like corners,
blobs etc. in the image which are invariant to scale, rotation
and affine changes. SURF interest points are identified using
Hessian matrix as follow:
Lxx( X , ) Lxy ( X , )
H(X, ) =
Lxy ( X , ) Lyy ( X , )
(3)
SSD = (x i y i ) 2
(4)
i =1
EXPERIMENTAL SETUP
V.
(c)
(b)
(a)
(d)
(e)
Figure 3. (a) SURF Descriptor of visual gun (b) Referenced Image (c) Color
based segmentation of referenced image (d) Matching result of each blob of
image. (e) Final gun detection result.
Number of correctly
detected positive
images
13
VI.
Number of images in
negative dataset
10
86.67 %.
Number of wrongly
detected negative
images
0
(a)
(c)
(b)
(f)
(e)
(g)
(d)
(h)
Figure 4. Result of visual gun detection (a) Different viewing angle detection (b) and (c) scale invariant detection (d) rotation invaraint detection
(e) Detection of multiple guns (f),(g) and (h) partialy occluded gun detection
[5]
[6]
[7]
[8]
VII. CONCLUSION
In this paper, we have proposed a method for detection visual
guns in images using color based segmentation and SURF
interest point detector. Color based segmentation is used to
eliminate unrelated color or objects which are not of interest.
Then SURF features are used to find out similarity of each
segmented object with the gun descriptor. If more than 50% of
features of gun descriptor are matching with the SURF
features of object then that object is labeled as gun. The
novelty of our approach is that it is robust to partial occlusion,
scale, rotation, affine variation and can detect the presence of
multiple guns in an image. However, we believe that there are
many possible ways to improve the performance of our system
like making it robust to illumination change and minimizing
its real-time processing requirement like time and space
complexity.
[9]
[10]
[11]
[12]
[13]
[14]
REFERENCES
[1]
[2]
[3]
[4]
Y.M. Liang, S.W. Shih, A.C. Shih, "Human action segmentation and
classification based on the isomap algorithm," Multimedia Tools and
Applications pp. 1 20, 2011. Springer
A. Maalouf, M.C. Larabi, D. Nicholson, "Offline quality monitoring for
legal evidence images in video-surveillance applications,". Multimedia
Tools and Applications, pp. 1-30, 2012. Springer
Andrzej Glowacz, Marcin Kmiec and Andrzej Dziech "Visual detection
of knives in security applications using active appearance model,
Multimedia Tools Applications, Springer, 2013.
Global impact of gun violence.
[Online], Available at
http://www.gunpolicy.org/firearms/region/.
[15]
[16]