Professional Documents
Culture Documents
4. PROPOSED SYSTEM
a. The proposed system consists of three stages. Fig.1. The Architecture Of The Proposed System
1. System Initialization: In this stage, the system is set up and 4.1 GREYSCALE IMAGE GENERATION AND
initialized. A constant stream of video is recorded by the IMAGE ENHANCEMENT
camera and manually the video stream is transferred for The vehicle detection technique should be applied to the
processing.
grayscale picture images for better results. Hence, each video
2. Background Subtraction: At this stage, a set of frames is frame undergoes RGB to grayscale conversion.
brought into focus, and background subtraction is Each frame should be brought in contrast to the background to
performed on the frames that have been received from the produce an adequate threshold level and then convert the input
video using openCV. image. The power-law approach was utilized in this study as one of
several grayscale conversions. The function cv2.cvtColor (input
3. Vehicle Detection: At this stage, all moving
image, flag) for color conversion is used, where flag indicates the
vehicles/objects may be tracked and counted using the
type of conversion. The parameter cv2.COLOR BGR2GRAY is
removed background image. The proposed system works used to convert to grayscale.[1]
in two modes: pre-recorded video mode and real-time
camera mode.