How paraggarg969/car-parking-system works
Purpose
A small computer-vision parking-occupancy project. It appears to analyze parking-lot video, define parking-space rectangles, and render/count available spaces.
Entry Points
• final_carparking.py is the likely runtime application entry point for video-based parking detection.
• draw_rectangle.py likely provides an interactive/manual workflow for marking parking bays.
• position_finder.py likely supports determining or persisting parking-space positions.
No README is present, so invocation commands and dependencies are not documented.
Video Input Boundary
The repository includes two MP4 assets:
• Image_Video/video.mp4
• parking system.mp4
These files are the probable local input sources for the detection pipeline. The design appears file/video-stream oriented rather than web-service based.
Parking-Space Definition Stage
Parking-space geometry is likely established before or alongside detection:
• draw_rectangle.py
• position_finder.py
• carparkpos
carparkpos is likely a serialized parking-position dataset consumed by the runtime detector. This separates manual calibration of lot-specific bays from frame-by-frame occupancy evaluation.
Occupancy Detection and Visualization
final_carparking.py likely coordinates the main control flow: read video frames, inspect each configured parking region, classify it as occupied or free, and draw status overlays/counts. draw_rectangle.py is likely responsible for visual rectangle annotation used to produce the region definitions.
Runtime and External Dependencies
The code is Python-based, as indicated by the .py scripts. The presence of local MP4 processing and rectangle drawing strongly suggests an image-processing runtime such as OpenCV, though no dependency manifest is available to confirm package names or versions. There are no visible cloud services, databases, APIs, containers, or deployment infrastructure in the repository tree.
Main entry points: final_carparking.py Parking detector · carparkpos Parking positions · draw_rectangle.py Rectangle annotation · position_finder.py Position finder
Components 10
Parking-space calibration
Manual setup of lot-specific parking bays.
- Rectangle annotation · Interactive workflow for marking parking bays.
draw_rectangle.py - Position finder · Supports determining or persisting parking-space positions.
position_finder.py - Parking positions · Lot-specific parking-space geometry.
carparkpos
Video occupancy runtime
Frame-based parking availability analysis.
- Parking video · Local video source for occupancy analysis.
Image_Video/video.mp4 - Alternate parking video · Alternate local parking video source.
parking system.mp4 - Parking detector · Coordinates video processing, occupancy classification, and display.
final_carparking.py - Frame processing · Reads video frames and evaluates configured parking regions.
- Space occupancy · Free or occupied status per parking space.
- Availability display · Renders parking-space status and available-space count.
Other components
- Image-processing runtime · Likely local vision and drawing capability; dependency is not documented.
Connections 11
- Rectangle annotation → Parking positions: creates
- Position finder → Parking positions: determines or saves
- Parking positions → Parking detector: loads bay geometry
- Parking video → Parking detector: video input
- Alternate parking video → Parking detector: alternate input
- Parking detector → Frame processing: orchestrates
- Frame processing → Space occupancy: classifies regions
- Space occupancy → Availability display: renders statuses and count
- Parking detector → Availability display: displays
- Rectangle annotation → Image-processing runtime: uses
- Parking detector → Image-processing runtime: likely uses