how to install Automatic License Plate Recognition (ALPR/ANPR) Cameras
- Administrator A
- 7 hours ago
- 4 min read

Installing a Hikvision Automatic Number Plate Recognition (ANPR / ALPR) camera requires extreme precision. Because license plates are highly reflective and occupy a very small percentage of the overall video frame, standard security camera positioning will completely fail here.
If the camera's angle relative to the plate is too sharp, the characters look compressed to the internal Optical Character Recognition (OCR) engine, causing misreads (like confusing an O with a D, or an I with a 1).
ANPR installations generally fall into two categories: Entrance/Gate Applications (low speed, controlling barriers) and Road Traffic Surveillance (high speed, multi-lane tracking).
🏗️ Phase 1: The Geometry Rules (Crucial)
Before tightening any bolts, you must adhere to the Rule of 30s and the Pixel Threshold formulas dictated by Hikvision.
The Vertical (Pitch) Angle: The angle between the camera lens and the flat road surface must be less than $30^\circ$ (ideally between $15^\circ$ and $25^\circ$).
The Horizontal (Pan) Angle: The angle between the lens direction and the line of vehicle movement must be less than $30^\circ$.
The Tilt Angle: The license plate must appear as perfectly level horizontally as possible within the video frame. A tilt angle exceeding $\pm 5^\circ$ will drastically lower recognition accuracy.
Determining Installation Height ($H$) and Distance ($L$)
The distance from the camera pole to the target capture zone ($L$) is directly dependent on your mounting height ($H$). Use this handy baseline reference table for clean positioning:
Scenario | Mounting Height (H) | Optimal Capture Distance (L) | Target Vehicle Speed |
Entrance / Gate | 1.5m – 2.0m | 4.0m – 6.0m | Low (< 30 km/h) |
Main Road / Street | 3.5m – 4.0m | 6.0m – 10.0m | Medium (30 – 60 km/h) |
High-Speed Highway | 5.0m – 6.0m | 15.0m – 25.0m | High (> 60 km/h) |
🛠️ Phase 2: Hardware Mounting & Physical Focusing
1.Mount the Camera Enclosure:Secure structural rigidity.
Attach the bullet or housing camera securely to the pole or gantry bracket. Ensure there is zero mechanical sway. Wind vibration will cause pixel blur, which ruins OCR processing at night.
2.Adjust the Zoom and Optical Focus:Frame the target window.
Manually zoom the motorized varifocal lens onto the specific strip of road where the vehicles will cross.
The Character Pixel Rule: Zoom in until a standard license plate fills at least 20 to 30 vertical pixels (for a 2MP camera) or 27 to 40 vertical pixels (for a 4MP camera) inside your test frame snapshot.
3.Wire the I/O Relay Terminals:Optional: For Gate Barrier Control.
If the camera is opening an automatic security gate directly: Run a 2-core alarm wire from the camera’s internal physical block terminals Relay Out (COM / NO) straight into the Open/Trigger terminals of the automatic gate barrier controller card.
💻 Phase 3: Software Configuration & Virtual Lane Mapping
Once online, use the SADP Tool to discover the camera, activate it with a strong password, log into the Web GUI via an internet browser, and navigate to Configuration.
1. Enable the VCA Resource
Go to System > VCA Resource.
Change the operating mode from Smart Event to Vehicle Detection or Road Traffic. Click Save and allow the camera to reboot.
2. Draw the Recognition Detection Zone
Navigate to Road Traffic > Detection Configuration.
Select the Detection Type dropdown as Vehicle Detection. Check the Enable box.
Select the number of lanes you are actively tracking (Max 1 lane for high speeds, up to 2 lanes for slow entrance gates).
On the live video preview screen, draw your virtual tracking boundaries (represented by yellow lines). Position the lines so that a vehicle plate is completely inside this bounding area when it reaches its maximum pixel clarity.
🌙 Phase 4: Critical Shutter Adjustments for Night Tracking
Leaving an ANPR camera on "Auto" exposure will result in massive headlights or taillights blinding the sensor at night, causing total plate washout. You must override the camera's shutter variables.
Navigate to Image > Display Settings.
Change the Mounting Scenario dropdown from Normal to Road or Entrance. This automatically locks in baseline parameters.
Manually adjust your Exposure Time (Shutter Speed) based on your environment:
Gate / Parking Lot (Slow): Set shutter strictly between 1/150 and 1/250.
Urban Street (Medium): Set shutter strictly between 1/250 and 1/500.
Highway Enforcement (Fast): Set shutter strictly between 1/500 and 1/1000.
💡 Why this looks strange: In the daytime, your image will look completely normal. At night, your image will look pitch black except for highly retroreflective surfaces like license plates and vehicle markers. This is exactly what you want for perfect tracking.
📋 Phase 5: Managing the Plate Database (Allowlists / Blocklists)
If you are running this system standalone without a central server or NVR, you can store actions right on an internal MicroSD card:
Go to Road Traffic > Blocklist & Allowlist.
Click Export to download the factory .xls template to your computer.
Fill out the Excel sheet with your target plate numbers. In the Group column, label them as 0 (Allowlist) or 1 (Blocklist).
Save the file and click Import to upload it back to the camera.
Go to Linkage Method and select Trigger Alarm Output for the Allowlist group. This commands the physical relay wire we installed in Phase 2 to open the gate automatically whenever an approved vehicle rolls up.
Comments