How to Use Dahua People Counting Correctly
Complete Setup Guide for Maximum Accuracy
1. Overview
Dahua People Counting is an AI-powered intelligent analytics function built into Dahua AI cameras, PTZs, and NVRs. It uses deep learning algorithms to accurately detect, track, and count people entering, exiting, or staying inside a designated area in real time. It is widely used in retail stores, shopping malls, office buildings, libraries, factories, museums, bus stations, airports, and other public or commercial spaces to support business analysis, crowd management, security monitoring, and operational optimization.
However, many users experience low accuracy, missed counts, double counts, or false alarms because of wrong installation height, improper angle, poor lighting, incorrect rule drawing, or misconfigured parameters.
In this full guide, we explain how to use Dahua People Counting correctly — including professional installation standards, step-by-step configuration on both Dahua IP cameras and NVRs, best calibration practices, and troubleshooting for all common issues. When set up properly, Dahua People Counting delivers up to 95%–99% counting accuracy in real-world environments.
2. Prerequisites Before Configuration
Before you start configuring People Counting, make sure your system meets these essential requirements:
Supported Hardware
- Dahua AI network camera (IPC) with People Counting / IVS / Smart Function support
- Dahua AI NVR with smart analytics function (if configuring from the recorder side)
- Camera lens and sensor suitable for low-light and wide-angle monitoring
Software & Firmware
- Upgrade your camera firmware to the latest official version
- Upgrade your NVR firmware to the latest version (if using NVR-based configuration)
- Ensure the device supports the latest AI algorithm models
Environment Requirements
- No strong backlight, glare, reflection, or overexposure in the detection area
- No frequent occlusion from shelves, pillars, glass, decorations, or trees
- Stable lighting conditions (avoid frequent light changes)
- Pedestrians appear complete in the frame: head, shoulders, and torso must be visible
- No overlapping crowds beyond the camera’s processing capability
Scene Restrictions
- Not suitable for scenes with fast-running crowds
- Not suitable for extremely narrow or ultra-wide passages without proper planning
- Not suitable for areas with frequent object movement that may block the view
3. Correct Installation Standards (Critical for Counting Accuracy)
Installation is the most important factor for Dahua People Counting accuracy. Even the best AI camera will perform poorly if mounted incorrectly.
3.1 Recommended Mounting Height
- Ideal height: 2.8 meters – 4 meters
- Below 2.8m: People’s heads appear too large; the AI may miss counts or detect incorrectly
- Above 4m: Human targets become too small; detection sensitivity drops sharply
3.2 Recommended Mounting Angle
- Ceiling mounting (vertical downward angle) → BEST FOR ACCURACY
- Wall mounting allowed, but tilt angle ≤ 30° from horizontal
- Camera must face pedestrian flow directly
- Avoid excessive upward or downward tilting
- Avoid side-angle installation, which causes missed counts
3.3 Coverage Width Control
- Single camera: max passage width ≤ 3 meters
- If entrance or passage > 3 meters, use multiple cameras to cover separately
- Ultra-wide areas require multi-channel stitching or multi-camera collaboration
3.4 Lens Selection
- For most entrances: 2.8mm or 3.6mm fixed lens
- For narrow corridors: 2.8mm recommended
- For wider areas: 3.6mm recommended
- Avoid using long-focus lenses (6mm, 8mm, 12mm) for people counting
3.5 Scene Environment Requirements
- Keep the lens clean and free of dust, water, or oil stains
- Avoid strong backlight; use WDR (Wide Dynamic Range) if needed
- Avoid glass reflection, direct sunlight, or strong light sources
- Ensure no obstacles block the detection line or area
- Keep the background stable (no moving curtains, plants, or screens)
4. Step-by-Step Setup via Dahua Camera Web Interface
Follow these steps precisely to configure People Counting correctly on a Dahua AI camera.
Step 1: Enable the Correct Smart Plan
- Open a browser and log into your Dahua camera’s web interface
- Go to: Setting > Event > Smart Plan
- Select People Counting from the smart plan list
- Click Enable
- Click Apply to save
Note: If Smart Plan is not enabled, People Counting will NOT work.
Step 2: Enable People Counting Function

- Go to: Setting > Event > People Counting
- Toggle Enable to activate the function
- Choose your Rule Type:
- People Counting: Counts entry and exit numbers
- In Area No.: Counts real-time occupancy inside a zone
Step 3: Draw Detection Rules Correctly
For Entry / Exit Counting
- Click Draw Rule
- Draw a straight line across the FULL WIDTH of the passage or entrance
- Make sure the line does not leave gaps on left or right
- Set the direction arrow:
- Arrow direction = Entry
- Opposite direction = Exit
- Left-click to finish; right-click to cancel and re-draw
For In-Area Occupancy Counting

- Click Draw Area
- Draw a closed polygon around the area you want to monitor
- Ensure the area does not include walls, pillars, or reflective surfaces
- Right-click to complete the shape
Step 4: Set Key Parameters for High Accuracy
- Min Detect Height: Set according to the shortest person in the scene (cm)
- Max Detect Height: Set according to the tallest person (cm)
- Sensitivity: Adjust to medium or high for most scenes
- Alarm Settings: Set thresholds for entry, exit, stranded people, overcrowding
- OSD Display: Enable Enter Number, Leave Number, Occupancy Overlay
- Schedule: Set time periods when People Counting is active
- Record & Capture: Enable alarm recording or snapshot if needed
Step 5: Save, Calibrate, and Test
- Click Apply to save all settings
- Observe the live view to verify real-time counting
- Test with actual people walking through the scene
- Adjust parameters if counts are missing or duplicated
5. How to Configure Dahua People Counting via NVR
If you prefer to set up People Counting directly from your Dahua NVR, follow this guide:
- Go to Main Menu > AI > Parameters > Smart Plan
- Select the camera channel
- Enable People Counting plan
- Click Apply
- Go to Main Menu > AI > Parameters > People Counting
- Select the channel
- Check Enable
- Draw the counting line or area
- Set entry/exit direction
- Adjust height and sensitivity
- Click Save
- Test in live view

6. Best Practices for 95%+ Counting Accuracy
- Use ceiling downward mounting whenever possible
- Detection line must fully cover the entire passage width
- Avoid backlight; use WDR, Starlight, or supplemental lighting
- Keep the detection zone free of any obstacles
- Calibrate min/max height based on actual user height
- For dual-lens people-counting cameras, calibrate angle and height separately
- Keep firmware updated to improve AI algorithm performance
- Test during peak hours to fine-tune sensitivity
- Avoid scenes with reflective floors or glass
- Use fixed cameras instead of PTZ for stable counting
- Separate incoming and outgoing flows if crossing is heavy
7. Common Issues & Professional Fixes
Issue 1: Inaccurate counting (too many or too few)
- Adjust mounting height to 2.8–4m
- Reduce backlight, glare, and reflection
- Redraw rule to cover full passage width
- Set correct min/max detection height
- Lower or raise sensitivity appropriately
Issue 2: People Counting not working at all
- Enable Smart Plan first
- Confirm People Counting is toggled ON
- Update camera/NVR firmware
- Check that rule line/area is drawn and saved
- Verify the camera supports People Counting
Issue 3: Missed counts or double-counts
- Lower camera or adjust tilt angle
- Avoid dense crossing crowds in one zone
- Use multiple cameras for wide entrances
- Remove obstacles blocking the view
- Improve lighting stability
Issue 4: False triggers from moving objects
- Enable AI human filtering
- Adjust sensitivity to medium
- Redraw area to exclude moving backgrounds
- Use IVS filtering to ignore non-human targets
8. Summary: How to Use Dahua People Counting Correctly
To achieve stable, high-accuracy people counting with Dahua AI cameras and NVRs, you must follow these core principles:
- Follow standard mounting height (2.8–4m) and angle requirements
- Draw detection rules fully across the passage or entrance
- Set correct min/max detection height and sensitivity
- Ensure stable lighting, no backlight, no reflection, no occlusion
- Upgrade firmware regularly for better AI performance
- Test and calibrate in real traffic conditions
- Use ceiling downward mounting for best results
When configured properly, Dahua People Counting provides reliable data for business analysis, security management, crowd control, and facility optimization.
