SUREILLANCE IN THE DEPARTMENT THROUGH IMAGE PROCESSING
F.Y.P. PRESENTATIONBY
AHMAD IJAZ & UFUK INCE
SUPERVISOR: ASSOC. PROF. ERHAN INCE
AIM OF THE PROJECT AIM OF THE PROJECT TECHNIQUES INVOLVED TECHNIQUES INVOLVED
*MEDIAN FILTERING*BACKGROUND SUBTRACTION*DILATION*CONNECTED COMPONENT ANALYSIS
RECORDED AND DETECTED VIDEOSRECORDED AND DETECTED VIDEOS
CODESCODES
OUTLINE
AIMIn this project we will be processing images taken by a wirelesscamera. Video acquired from the camera will be transferred to thesecurity workstation where the frames extracted from the videosequence will be processed through ‘MALTLAB’.
The main purposes are to process the video and performbackground subtraction on every frame and do connected component analysis for foreground extraction.
WIRELESS CAMERAUSED IN OUR FYP
*High powered (1500 ft. range)*2.4Ghz wireless weatherproof video/audio security IR installed allows 60 ft. viewing in total darkness.*4-channel receiver and included software allows for direct USB connection to computer. *36 high power IR illuminators
and Sony 1/3” CCD, 430 LOR *Features auto scan mode for sequencing up to 4 cameras.
Median filtering according to is a nonlinear operation in image processing to reduce "salt and pepper" noise.
Each output pixel contains the median value in the m-by-n neighborhood around the corresponding pixel in the input image. medfilt2 pads the image with 0's on the edges, so the median values for the points within [m n]/2 of the edges might appear distorted.
MEDIAN FILTERING
EFFECT OF MEDIAN FILTERING
BACKGROUND SUBTRACTION
One of the most important concepts in our project is background subtraction. Background subtraction, takes each frame in the video and subtracts it from a static background that is known prior to the extraction process.
Z = imsubtract (X,Y) subtracts each element in array Y from the corresponding element in array X and returns the difference in the corresponding element of the output array Z. X and Y are real.
BACKGROUND We have taken first 5 frames without any person and added all
those 5 frames and found out the average by dividing it by 5. Now this resultant frame will be considered our background frame from which we will subtract all other coming frames to find out the foreground objects
BACKGROUND SUBTRACTION
BBIINNAARRYY IMAGE ( IMAGE (THRESHOLD GRAY IMAGETHRESHOLD GRAY IMAGE))
RGB IMAGE GRAYSCALE IMAGE AFTER BACKGROUND SUBTRACTION
Apply a Apply a structuring elementstructuring element to an input image, creating an to an input image, creating an output image of the same size.output image of the same size.
CONCEPTS INVOLVED IN DILATIONCONCEPTS INVOLVED IN DILATION
**Structuring Element Structuring Element **Comparing Pixels with its neighborhood in input image Comparing Pixels with its neighborhood in input image **Center Pixel - OriginCenter Pixel - Origin**Size and Shape of the Neighborhood (1’s & 0’s) of Size and Shape of the Neighborhood (1’s & 0’s) of Structuring Element Structuring Element**Padding BehaviorPadding Behavior
DILATION
MORPHOLOGICAL DILATION MORPHOLOGICAL DILATION OF OF BBIINNAARRYY IMAGE IMAGE
Rule in Dilation: Rule in Dilation: Value of the output pixel is the Value of the output pixel is the maximummaximum value value
of all the pixels in the input pixel's of all the pixels in the input pixel's neighborhoodneighborhood
MORPHOLOGICAL DILATION MORPHOLOGICAL DILATION OF OF
GRGRAYAYSCSCALE ALE IMAGEIMAGE
EFFECT OF DILATION EFFECT OF DILATION (1)(1)
EFFECT OF DILATION EFFECT OF DILATION (2)(2)
CONNECTED COMPONENT CONNECTED COMPONENT ANALYSISANALYSIS
Connected components labeling scans a BINARY image and groups its pixels into components based on pixel connectivity
PIXEL CONNECTIVITY
TO TO VISUALIZEVISUALIZE LABELING LABELING PROCESSPROCESS
RETRIEVE THE COORDINATES (ROWS,COLUMN)
EXTRACT (MINR, MINC, MAXR, MAXC) (HEIGHT , WIDTH )
BOX THE PERSON AS LONG AS THE PERSON IS STANDING
OR MOVING INSIDE OUR REGION
MISSION ACCOMPLISHED !!MISSION ACCOMPLISHED !!PERSON HAS BEEN PERSON HAS BEEN
END OF PRESENTATION !!END OF PRESENTATION !!
THANKING ALL OUR HONORABLE INSTRUCTORS
SPECIALLY
OUR SUPERVISOR: ASSOC. PROF. DR. ERHAN INCE THE CHAIR: ASSOC. PROF. DR. AYKUT HOCANIN
LET’S SEE THE LET’S SEE THE RESULTS !! RESULTS !!