A clear operator view
Separate camera panels, live occupancy, daily statistics and searchable records keep the current garage state visible.
گەراجی زیرەک
From a number plate to a complete parking workflow.
A Python desktop system connecting number-plate recognition, entry and exit records, garage capacity, gate control and receipts in one operator interface.
A 90-second narrated demonstration: the field setup, access controller, entry receipts and exit workflow. Spoken explanation in Kurdish Sorani.
Music: Electric Dreams by Scott Buckley · CC BY 4.0 · Edited excerpt and voice mix.
Reading a plate is only one step in managing a garage. Operators also need to know whether a car may enter, how much capacity remains, when it leaves and whether its event reached the server.
Bring the workflow into a single desktop control panel. Separate entry and exit scanning, retain records locally and provide manual plate entry when camera recognition is unreliable.
Separate camera panels, live occupancy, daily statistics and searchable records keep the current garage state visible.
Capacity checks and VIP or banned plate lists inform the entry workflow. A ZKTeco C3/inBio integration can pulse the configured gate relay.
Events can produce local PDF receipts. Server responses provide fee information and receipt links, while failed synchronization is queued for retry.

Design choices become useful when the system underneath supports them.
OpenCV frames feed the plate reader in a background thread. Repeated readings are confirmed in a time window, with a cooldown to reduce duplicate events.
SQLite stores entry and exit timestamps, status and evidence-photo paths. A separate pending queue supports synchronization when connectivity returns.
The relay controller speaks the panel’s TCP protocol. Camera events return to Tkinter through scheduled UI updates, and hourly local backups protect the database and evidence photos.
An entry or exit camera supplies OpenCV frames to a background OCR worker. The scanner normalizes plate readings, requires two matching votes within an eight-second window and applies a 30-second cooldown to reduce repeated events.
The shared event handler checks the local plate list and configured capacity. Banned vehicles are refused on entry; VIP plates can bypass a full garage. Banned status does not block an exit. Operators can submit a plate manually through the same rules when recognition is unreliable.
SQLite stores the plate, entry timestamp, current status and optional evidence-photo path. On exit, the matching open visit is closed and its duration is computed. The dashboard refreshes occupancy, available spaces and daily entry/exit counts.
The door controller integrates directly with ZKTeco C3/inBio panels over TCP port 4370. Configurable door outputs and a timed relay pulse connect the software decision to compatible access hardware. The desktop also exposes manual door controls for the operator.
The event is synchronized to the remote parking service, which can return a fee and a per-visit receipt URL. The desktop displays a QR receipt and generates a local PDF. A failed connection leaves the event in a pending queue for retry instead of silently discarding it.
The application includes local hourly backups of the parking database and evidence photos, retaining up to 168 backup folders. Local records, the pending synchronization queue and operator fallbacks reduce dependence on a continuous network connection.