Skip to content
05 — Computer vision & access controlPrototype

Smart Garage

گەراجی زیرەک

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.

PythonOpenCVEasyOCRTkinterSQLiteZKTeco
Watch the project

From the desk to the field.

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.

Smart Garage / Product view
Smart Garage desktop control panel with occupancy statistics and separate entry and exit camera controls during a real field test
01 /The real field setup: laptop, live camera feed and connected access controller.
2Entry and exit camera roles
SQLiteLocal parking records
OfflinePending event queue
01 / The idea

A reason to build.

The challenge

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.

The approach

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.

02 / The experience

Made to be explored.

01

A clear operator view

Separate camera panels, live occupancy, daily statistics and searchable records keep the current garage state visible.

02

Access rules at the gate

Capacity checks and VIP or banned plate lists inform the entry workflow. A ZKTeco C3/inBio integration can pulse the configured gate relay.

03

Receipts and continuity

Events can produce local PDF receipts. Server responses provide fee information and receipt links, while failed synchronization is queued for retry.

Smart Garage / Inside the experience
Smart Garage showing a generated QR entry receipt and the live desktop interface
02 /A recorded demonstration of the QR receipt workflow alongside the live operator interface.
03 / Under the surface

The thinking behind
the interface.

Design choices become useful when the system underneath supports them.

01

Recognition with confirmation

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.

02

Local records first

SQLite stores entry and exit timestamps, status and evidence-photo paths. A separate pending queue supports synchronization when connectivity returns.

03

Hardware and desktop boundaries

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.

The complete workflow

How a visit moves
through the system.

Capture and confirm

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.

Decide who can enter

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.

Record the visit

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.

Connect the physical controller

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.

Issue a receipt and synchronize

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.

Keep operations recoverable

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.

Keep exploring / Next project
Gesture interaction

Hand Mouse