How-to

How to count people with an IP camera

A step-by-step guide to turning an ordinary security camera into an accurate entrance counter: camera placement, counting lines and accuracy checks.

Updated · 3 min read

Most shops, offices and public buildings already have a camera at the door. With video analytics software, the same camera can count everyone who walks in and out, with no extra sensors to buy or install. This guide shows how to set it up so the numbers can be trusted.

What you need

  • An IP camera that gives an RTSP or ONVIF stream, or a USB webcam for a small entrance
  • A Windows, Linux or Mac computer on the same network as the camera
  • People counting software such as CountVue

A dedicated graphics card is not required. A normal office PC can analyze several camera streams at once.

Where to put the camera

Placement matters more than anything else. The software can only count people it can see clearly and separately.

  • Overhead is best for busy doors. A camera looking straight down at the entrance sees every head separately, even when people walk side by side.
  • An angled view works for most shops. Mount the camera high, about 3 metres or more, and point it along the path people walk, so they cross the frame instead of walking straight at the lens.
  • Avoid strong backlight. A glass door with bright daylight behind it turns people into dark silhouettes. Move the camera or use one with WDR (wide dynamic range).
  • Keep the whole doorway in view. People should be visible for a few steps before and after the line you will draw.
Tip. Before mounting a camera permanently, hold it in place and record a minute of video at a busy time. Watch it back: if you can easily count the people yourself, the software can too.

Connect the camera

In CountVue, open Add camera and press Search the network. Cameras that support ONVIF appear in the list; enter the camera's user name and password and pick a stream. If your camera does not support ONVIF, choose its brand and model, and CountVue fills in the RTSP address for you, or paste the address yourself.

Use the camera's main stream when people are small in the picture, and the lighter sub-stream when they are large. A lower resolution is processed faster and is often just as accurate.

Drawing the counting line

Choose a preset that matches the view: Overhead for a top-down camera or People & vehicles for an angled one. Then draw a line across the doorway.

  • Place the line where people are fully visible, not at the very edge of the picture.
  • Draw it across the whole passage, so nobody can walk around it.
  • Set the direction: one side of the line counts as in, the other as out.

If you also want to know how many people are inside, add a zone over the room. The occupancy is then calculated from the people currently tracked in the zone.

Checking accuracy

Do a simple test before relying on the data. At a busy time, count people by hand for 15 minutes while the software runs, then compare the two numbers. If the software counts fewer people than you did, the usual causes are people walking too close together (move the camera higher or more overhead) or the line being too close to the edge of the picture. If it counts more, look for reflections in glass or people hovering right on the line.

What about privacy?

People counting does not need to identify anyone. CountVue analyzes the video on your own computer and sends only anonymous counts to the cloud. Snapshots of events are off unless you turn them on. Check the rules in your country and put up a notice about camera use where required.

FAQ

Do I need a special camera?

No. Any IP camera with an RTSP or ONVIF stream works, as do USB webcams. Placement and image quality matter more than the brand.

Can one computer handle several entrances?

Yes. Each camera runs in its own process, and CountVue lowers the analysis rate automatically when the processor is busy.

Does the video leave my network?

No. Video is analyzed locally. Only counts, and snapshots if you enable them, are sent to CountVue Cloud.

Cookie settings

Choose which cookies we may use. Strictly necessary cookies are always on because the site does not work without them. See the cookie policy for the full list.

Strictly necessary Always on

Security, spam protection of forms (Google reCAPTCHA), admin sign-in and remembering your cookie choice.

Google Analytics 4: which pages are visited, how visitors arrive and how long they stay. IP addresses are not stored. No advertising or personalisation.