Skip to content

Is it legal to count people with cameras? What the GDPR says

Quick answer

Yes, as long as you comply with the GDPR. While the camera captures images of identifiable people, personal data is being processed, even if nothing is recorded: you have to inform people (usually with a sign), document it and limit the data. What reduces the risk most is counting on a device on the premises themselves, without recording or analysing faces, so that only numbers leave the premises.

You want to know how many people come into your library, your shop or a local festival, and someone suggests doing it with cameras. Questions come up straight away: Is it legal? Am I filming people? Do I need a sign? The short answer is yes, it can be done, but not all systems are the same. This article explains what the rules say, what options there are and what to ask before you sign up.

This article is for information only and is not a substitute for legal advice. For your specific case, consult your adviser or your data protection officer.

Counting, identifying and video surveillance are not the same

Three things that often get mixed up:

  • Counting is knowing how many people pass through an entrance or are inside. The result is a number.
  • Identifying is knowing who a person is: from their face, from a number plate or by cross-referencing data.
  • Video surveillance is using cameras for the security of people, property or premises, usually recording the images so they can be reviewed.

The European Data Protection Board’s guidelines on video devices already distinguish between more intrusive video analysis techniques, such as biometric ones, and less intrusive ones, such as “simple counting algorithms” (Guidelines 3/2019, paragraph 3). The rules are the same, but the specific obligations and the risk vary a great deal from one case to another.

When an image is personal data

The General Data Protection Regulation (GDPR) defines personal data as “any information relating to an identified or identifiable natural person” (Article 4(1)). An image in which someone can be recognised is personal data. And “processing” is almost any operation on that data, including collection or consultation (Article 4(2)).

Two important ideas follow from this:

  1. Even if nothing is recorded, there is processing. The Spanish Data Protection Agency (AEPD) says so explicitly for cameras that only allow real-time viewing: under the GDPR, they must also be included in the record of processing activities, “since processing takes place” (Guide on the use of video cameras for security and other purposes).
  2. The final number can be anonymous. The GDPR doesn’t apply to anonymous information, including information used for statistical purposes (Recital 26). A figure like “342 entries between 10:00 and 11:00” says nothing about anyone.

In other words: the risk lies in the images, not in the number. The less time they exist, the fewer people see them and the fewer places they travel to, the better.

What about biometric data? It’s a special category (Article 9 of the GDPR) when it allows a person to be uniquely identified, as in facial recognition. The EDPB makes clear that when the purpose is to distinguish people, but not to uniquely identify them, the processing doesn’t fall under Article 9 (Guidelines 3/2019, paragraph 80).

Ways of counting with cameras, from most to least data

1. Security cameras that record, and someone counts afterwards

The video surveillance recordings are reused for counting, by hand or with software.

2. Video sent to an external server that counts

The camera sends the video to a server (in the cloud) where the analysis is done.

  • What it involves: the images leave the premises. You need to know where they’re processed (inside or outside the EU), how they travel, who can access them and whether they’re stored, even temporarily.

3. Analysis on a device on the premises, only numbers leave

A unit installed in situ analyses the image on the spot, counts the people crossing a line and sends only figures to the dashboard.

  • What it involves: images are still being captured, so the obligations to inform and document don’t go away. But the images neither leave the premises nor are stored: only aggregate data is stored and consulted.
  • It’s the option that best fits the data protection by design and by default required by Article 25 of the GDPR: by default, processing only the data necessary for each purpose, including in terms of amount, storage period and accessibility.

4. Without cameras

Manual clickers, infrared beams or turnstiles count without capturing images. They have other limitations in accuracy and cost, which we go through in how to prove the number of attendees at your event. The EDPB points out that video surveillance is not necessary by default when there are other means of achieving the same purpose (paragraph 5), so it’s worth asking yourself whether you need cameras at all.

Quick comparison

Option Are images recorded? Do images leave the premises? What’s stored Data exposure
Security recordings Yes Depends on the system Video (max. one month, by law) High
Analysis on an external server Depends on the supplier Yes Depends on the supplier Medium or high
Analysis on the device No No Figures only Low
Without cameras There are no images No Figures Minimal

The information sign: what the AEPD says

For video surveillance for security purposes, the LOPDGDD spells out the duty to inform: an information notice placed somewhere sufficiently visible is enough, identifying at least the existence of the processing, the identity of the controller and the possibility of exercising the rights in Articles 15 to 22 of the GDPR, and it may include a web address with more information (Article 22(4)). The AEPD asks for it to be placed somewhere visible and, at a minimum, at the entrances to the monitored area, and offers a model sign in its guide.

Counting people isn’t, in principle, a security purpose, so that article isn’t the one that applies directly. But the AEPD points out that when cameras are used for other purposes, the obligations and principles of the GDPR must also be met (guide cited above, section 4.1), including informing people (Article 13). The EDPB recommends doing this in two layers (Guidelines 3/2019, paragraphs 114 to 117):

  • First layer, the sign: purpose (for example, “occupancy counting”), who the controller is, that rights exist and where to find the full information. It should be visible before entering the area.
  • Second layer: the rest of the information in Article 13, somewhere easy to consult (reception, a website, a QR code), also without having to enter.

If the cameras count and don’t record, say so on the sign: it avoids misunderstandings.

How long the data can be kept

  • Video surveillance images: one month at most, with the exception already mentioned (Article 22(3) of the LOPDGDD). The EDPB adds that, in general, they should be deleted within a few days and that the longer they’re kept (especially beyond 72 hours), the more it needs to be justified (paragraph 121).
  • Images processed for counting: ideally, they’re never stored at any point.
  • Aggregate figures: if they’re truly anonymous, the GDPR doesn’t apply and you can keep them for your reports. Make sure they don’t include anything that would allow someone to be re-identified.

Other obligations not to forget

  • Record of processing activities, even if nothing is recorded, as the AEPD indicates.
  • Data processing contract with the supplier if they process data on your behalf (Article 28 of the GDPR).
  • Impact assessment: the GDPR requires one, among other cases, for systematic monitoring of a publicly accessible area on a large scale (Article 35(3)(c)). Check with your adviser whether this applies to you.
  • Employees: if the cameras also capture staff, there are specific rules (Article 89 of the LOPDGDD), such as informing them beforehand in an explicit, clear and concise way.

What to ask the supplier

Ask for the answers in writing:

  1. Where is the image analysed? On a unit on the premises or on an external server? If external, in which country?
  2. Is any image recorded or stored? Not even temporarily, for testing or to improve the system?
  3. What data leaves the premises? Only figures, or also images, crops or identifiers?
  4. Does the system analyse faces or generate any kind of biometric template?
  5. Who can view the cameras live, and how is that access controlled?
  6. Will you sign a data processing contract?
  7. What documentation will you give me for the record of processing activities, the information for people and, if needed, the impact assessment?
  8. How long are the figures kept, and where?

You can read the details on our privacy page.

In short

Counting people with cameras is legal if you comply with the GDPR. While the camera captures images there is processing of personal data, even if nothing is recorded, so inform people with a sign, document the processing and sign a data processing contract with the supplier. What really reduces the risk is the design: counting on the premises themselves, without recording or analysing faces, and keeping only the numbers.

Frequently asked questions

Do I need to put up a sign if the cameras only count?

To be safe, yes. While the camera captures images of identifiable people, personal data is being processed, and the GDPR requires you to inform people. The usual way is a visible sign at the entrances saying what the cameras are used for, who the controller is and where to find more information. Check the wording with your adviser.

Is the number of people coming in personal data?

An aggregate figure (for example, “342 entries between 10:00 and 11:00”) doesn't allow anyone to be identified, and the GDPR doesn't apply to anonymous information. The personal data is the image the number is derived from, while it is being processed.

Is counting people with cameras facial recognition?

It doesn't have to be. Counting means detecting that a person crosses a line, not knowing who they are. According to the guidelines of the European Data Protection Board (EDPB), if a system doesn't uniquely identify people, it isn't processing special category biometric data. Ask the supplier whether their system analyses faces.

Can I use my security cameras for counting?

Using the same cameras for another purpose means checking whether that new purpose is compatible, and updating the information given to people and the record of processing activities. Security footage also has its own rules, such as being deleted within one month at most. Talk it over with your adviser before you do it.

Who is the data controller: me or the supplier?

Normally, whoever decides to count people (the local council, the shop, the organiser) is the controller, and the supplier that processes the data on their behalf is the processor. In that case, the GDPR requires a data processing contract (or other legal act) between the two.

Your project

Want to see it working for you?

We’ll show you a demo and look at what you need, with no commitment.