Understanding ANPR accuracy: Metrics that matter
26 February 2025
Understanding ANPR accuracy

Table of Contents

As a manufacturer of ANPR camera system we often get questions about the accuracy levels of our recognition software. This question seems easy enough, but we can assure you there is more to it.

In the context of ANPR, accuracy is not merely a beneficial attribute—it’s indispensable for reliable traffic management, security, and access control. But what exactly does accuracy entail, and how do we assess its significance?

This article will delve into the concept of accuracy in ANPR systems, explaining how it is defined, measured, and interpreted in various contexts. We will discuss the fundamental metrics used to evaluate accuracy, such as precision and recall, and explain the significance of these metrics in ensuring the effectiveness of ANPR systems. Additionally, we will explore how accuracy percentages are utilized in marketing these systems and provide guidance on how to assess these claims.

By the end of this article, readers will have a clearer understanding of the technical aspects of accuracy in ANPR technology, empowering them to better evaluate the capabilities and limitations of these systems. This introduction aims to set the stage for a detailed exploration of accuracy that is both informative and accessible to a broad audience.

Accuracy defined

Accuracy is defined differently based on the context. In a general sense, it is the degree to which the result of a measurement conforms to the correct value. In recognition tasks in machine learning, accuracy is often calculated as the ratio of correct predictions to the total number of predictions.

ANPR accuracy defined

In real life, it’s easily said that an ANPR system isn’t performing well or is highly accurate. But what does that really mean? Are we looking at how many license plates were correctly recognized, or are we counting the number of plates that were completely missed? Simply stating that a system is (in)accurate doesn’t give the full picture. This is why there’s a more scientific approach to measuring accuracy, one that considers all possible scenarios, including correct identifications, missed plates, and false detections. This method provides a clearer and more comprehensive evaluation of the system’s true performance.

In the context of Automatic Number Plate Recognition (ANPR) systems, accuracy is defined as the proportion of correct identifications made by the system, including both correctly identified license plates and correctly rejected non-plates. It quantifies the system’s overall effectiveness in correctly analyzing and interpreting license plates from vehicle images.

However, in the specific case of ANPR systems, some of these metrics are more commonly used than others. While True Positives (TP) and False Positives (FP) are central to measuring the system’s performance, True Negatives (TN) is less frequently applied since the primary goal of ANPR is to detect license plates rather than to confirm their absence.

Where

  • True Positives (TP) are correctly recognized license plates.
  • True Negatives (TN) are instances where the system correctly identifies that no license plate is present. Although TN is theoretically relevant, it is rarely emphasized in ANPR since the system’s focus is on recognizing plates rather than ignoring non-plates.
  • False Positives (FP) are cases where the system incorrectly recognizes a plate or detects a non-existent plate as valid.
  • False Negatives (FN) are actual license plates that the system fails to recognize.

Fundamental metrics: TP, TN, FP and FN explained

To better understand how accuracy in ANPR systems is measured, it’s essential to break down the components that contribute to it. These components are evaluated using specific metrics: True Positives (TP), True Negatives (TN), False Positives (FP), and False Negatives (FN). Each of these metrics plays a crucial role in determining how well the system performs in real-world scenarios. Let’s explore these metrics in detail to see how they impact the accuracy of ANPR recognition.

This transition helps guide the reader smoothly from the general concept of accuracy to a more detailed analysis of the fundamental metrics that define it, setting the stage for the next section in a logical way.

True Positive (TP)

This occurs when the ANPR system correctly identifies and recognizes a license plate. For example, if a car’s license plate reads “ABC123,” and the ANPR system reads and reports “ABC123,” this is a true positive.

True Negative (TN)

This term isn’t typically used in the context of license plate recognition because the system’s objective is to detect plates rather than ignore non-plates. However, theoretically, a true negative would occur if the system correctly identifies that no license plate is present when there truly is none. This scenario is more relevant in systems designed to detect objects only some of the time or to differentiate between different kinds of objects.

False Positive (FP)

This happens when the ANPR system incorrectly identifies and recognizes a license plate that is not present or reads a plate incorrectly. For example, if there is no plate, but the system reports seeing “XYZ789,” or if it misreads “ABC123” as “ABC128,” those are false positives. This is particularly problematic as it could lead to wrongful fines or charges in practical applications.

False Negative (FN)

This occurs when the ANPR system fails to recognize a license plate that is present. For instance, if a car with the plate “DEF456” passes by the ANPR camera and the system fails to detect and report the plate, this is a false negative. This error can be critical, especially in scenarios like law enforcement where failing to detect a vehicle could mean missing a significant security threat.

Interpretating TP, FN, FP and FN

Accuracy in this context is generally defined by how well the system can correctly identify true positives and true negatives while minimizing false positives and false negatives. In practical terms, for ANPR systems:

Reducing false positives is crucial to prevent incorrect penalties or mistaken identity scenarios.

Minimizing false negatives is essential for ensuring all vehicles are accounted for, which is especially important in security-sensitive environments.

Balancing these factors is key to refining the precision and recall of the system, thereby enhancing its overall accuracy.

Beyond the basics: Precision, recall and their balance

Precision

Precision measures how accurate the ANPR system is when it identifies a license plate. It tells the proportion of correct license plate recognitions out of all the recognitions the system made. In simpler terms, precision answers the question: “Of all the plates the system said it recognized, how many were actually correct?”

  • High Precision means that most of the license plates the system recognizes are indeed correct.
  • Low Precision means that the system is identifying a lot of plates, but many of them are wrong.

Definition: Precision is the proportion of true positive identifications (correctly read license plates) to all positive identifications (all detected plates, correctly or incorrectly read).

Recall

Recall measures how good the ANPR system is at finding all the license plates that are actually present in the scene. It answers the question: “Of all the actual license plates in the scene, how many did the system recognize?”

  • High Recall means the system is detecting almost all the license plates, even if a few of them are wrong.
  • Low Recall means the system is missing a lot of the plates that are actually there.

Definition: Recall is the proportion of true positives detected by the system compared to the total number of actual positives (all real plates present in the images).

Balancing Precision and recall

In practice, there is often a trade-off between precision and recall:

Improving precision typically reduces recall because the system becomes more conservative about what it identifies as a positive instance, thereby missing more actual positives.

Improving recall usually decreases precision, as the system tries to identify more positives but at the risk of increasing false positives.

The ideal balance depends on the specific requirements of the application. For instance:

In a security-sensitive setting, high recall might be prioritized to ensure no plate goes unnoticed.

In a legal or billing context, high precision might be more critical to avoid incorrect charges or accusations.

F1 score

To balance these two metrics, the F1 Score is often used:

Definition: The F1 Score is the harmonic mean of precision and recall, providing a single measure of the system’s accuracy that balances both metrics.

Interpretation: A high F1 Score indicates that both precision and recall are high, suggesting a balanced and effective system.

Understanding and optimizing these metrics are key to enhancing the effectiveness and reliability of an ANPR system, ensuring it performs well across various real-world conditions.

Field example: ANPR system at a parking lot

The difference between precision and recall can be nuanced and challenging to grasp. A field example illustrating how these metrics perform in a real-world parking scenario can help clarify these concepts.

Imagine an ANPR system is installed at the entrance of a company parking lot. Its job is to identify vehicles that are registered in the company’s employee database and automatically open the gate for them.

Scenario Details:

  • 100 cars attempt to enter the parking lot.
  • Out of these, 80 cars are registered in the employee database (authorized cars).
  • 20 cars are not registered (unauthorized cars).

The ANPR system identifies:

  • 65 registered cars correctly recognized as authorized (True Positives).
  • 15 registered cars that the system failed to recognize (False Negatives).
  • 10 unregistered cars incorrectly recognized as authorized (False Positives).
  • 10 unregistered cars correctly identified as unauthorized (True Negatives).

Precision Calculation

Precision measures how many of the cars identified as authorized by the system were actually registered.

  • True Positives (TP) = 65 cars (correctly identified as registered)
  • False Positives (FP) = 10 cars (incorrectly identified as registered)
  • Total Positives (TP + FP) = 65 + 10 = 75 cars

Precision = TP / (TP + FP) = 65 / 75 = 86.7%

What this means:

  • The system is correct 86.7% of the time when it identifies a car as registered. This means that 13.3% of the cars it identified as authorized were actually unauthorized.

Recall Calculation

Recall measures how well the system identifies all authorized vehicles, focusing on the proportion of correctly identified registered cars out of all the registered cars that tried to enter.

  • True Positives (TP) = 65 cars (correctly identified as registered)
  • False Negatives (FN) = 15 cars (registered cars that were not identified)
  • Total Actual Positives (TP + FN) = 65 + 15 = 80 cars

Recall = TP / (TP + FN) = 65 / 80 = 81.25%

What this means:

  • The system successfully recognized 81.25% of the authorized cars that attempted to enter. This means that 18.75% of the authorized cars were not correctly identified, which lead to legitimate users being denied access.

Explanation of the Difference

  • Precision focuses on the accuracy of the system’s positive identifications (how many cars it said were authorized actually were), and in this example, it’s 86.7%.
  • Recall focuses on how well the system captures all the actual authorized cars that should be allowed entry, and in this example, it’s 81.25%.

Key Takeaway

  • Precision is high if the system is good at avoiding false positives (letting unauthorized cars in).
  • Recall is high if the system is good at minimizing false negatives (missing authorized cars).

This example with different values for False Negatives and False Positives makes it clearer how precision and recall represent different aspects of the system’s performance.

Key factors to consider when interpreting ANPR accuracy scores

With a basic understanding of the different methods for calculating accuracy and its complexity, let’s shift our focus to interpreting these accuracy statements. When evaluating ANPR accuracy as claimed by manufacturers, it’s crucial to consider the conditions under which those measurements were taken.

Laboratory or field measurements

Accuracy measurement for ANPR systems can differ greatly depending on whether it’s conducted in a lab or in the field.

In a lab environment, accuracy is tested under controlled conditions. Factors such as lighting, camera angles, and plate positioning are standardized, creating a consistent and repeatable testing setup. Typically, this includes the use of labelled images where the correct license plate data is already known. The recognition results are then directly compared to these labels, providing a clear and precise evaluation of accuracy. This controlled approach is essential for fine-tuning the ANPR algorithm to achieve peak performance.

Field accuracy assessment, however, presents a different set of challenges. In real-world conditions, ANPR systems must handle unpredictable variables like changing weather, fluctuating lighting, varying angles, and even dirty or obstructed plates. Unlike lab tests, there are no pre-labelled images to reference, making direct accuracy measurement more difficult. To tackle this, manual validation is often necessary, where a human operator checks the recognition results against the actual license plates to assess the system’s performance.

While lab-measured accuracy provides a benchmark for optimal conditions, it raises the question: how much does this controlled accuracy reflect the system’s effectiveness in real-life scenarios? Field conditions often reveal the true capabilities of an ANPR system, highlighting the importance of adapting the technology to handle diverse and unpredictable environments.

Using a threshold

When measuring the accuracy of an ANPR system, it’s important to know whether the accuracy score is based on the license plate being recognized multiple times (e.g., five times) to confirm a match, or if a single recognition is sufficient. Using a threshold means that accuracy is calculated based on the consistent detection of the same plate several times before it is counted as a successful read, which generally improves reliability. In contrast, if only a single recognition is used, the reported accuracy reflects a more straightforward measurement. Understanding what method is used is crucial for accurately interpreting ANPR accuracy scores.

N or N-1

Another key factor to consider when interpreting the accuracy of an ANPR system is whether the measurement is based on the “N” or “N-1” method.

The “N” method requires all characters on the license plate to be correctly recognized for the read to be counted as accurate. In contrast, the “N-1” method allows for one character to be incorrect while still considering the recognition a success.

The “N-1” method is used in scenarios where “fuzzy” matching is acceptable, such as in access control, where a recognized license plate is compared to a whitelist, and the likelihood of identical license plates is minimal. It can be a beneficial approach in challenging conditions, such as when the recognition angle is large or license plates are frequently only partially visible. Understanding which method is used is crucial for accurately interpreting the system’s accuracy scores, as it can significantly impact the evaluation of its performance.

Accuracy per character or as a whole license plate

A less known factor to consider when interpreting ANPR accuracy is whether the measurement is calculated per character or for the entire license plate as a whole. Accuracy per character evaluates each character individually, providing a more detailed view of the system’s performance by highlighting specific errors. In contrast, measuring accuracy for the entire license plate requires every character to be correctly identified for the read to be considered accurate. Knowing which approach is used helps to set realistic expectations and provides a clearer understanding of the ANPR system’s reported accuracy.

The potential for automated accuracy measurement

Manual accuracy checks involve visually comparing the ANPR recognition result to the actual license plate in the image. A step toward automation is to match the recognition result with a pre-assigned label. However, in real-world conditions, ANPR cameras operate without human oversight, and the images they process are usually unlabelled. So, how can this process be automated?

Each time the ANPR algorithm processes a plate, it generates a confidence level for the result. It assesses the accuracy of the entire plate’s detection and provides individual confidence scores for each character. These confidence scores are then combined to evaluate the overall “accuracy” of the recognition. This approach enables the system to make informed decisions about the reliability of its results, even without human input. This approach can serve as a metric for comparing different locations, where the same ANPR system is installed. If the confidence level is significantly lower at one installation than another, it may indicate a need to reconfigure or reposition the camera systems to enhance accuracy.

More to uncover and future articles

This article provides a broad overview, but there’s so much more to discuss when it comes to ANPR accuracy. As an ANPR specialist we find it a fascinating topic with many layers to explore. We could delve deeper into areas like the impact of environmental conditions on accuracy or the role of image quality and how different ANPR algorithms influence performance. Each of these topics offers valuable insights and will be covered in their own dedicated articles later this year. So, stay tuned and stay informed!

Straight to your inbox

Sign up to our newsletter for industry insights, product news, partner updates and more.

Name
E-mail *

You can unsubscribe from these communications at any time.

Latest updates

Similar articles

AVUTEC ANPR for recycling centre

Using ANPR to manage vehicle capacity at a recycling centre

At most vehicle entrances, the question is usually whether a vehicle may come in or not. For a r...
AVUTEC ANPR for automated vehicle access 1920x1080

The benefits of cloud-to-camera whitelist synchronization

Picture a barrier that only opens after checking each recognized license plate against a whiteli...
AVUTEC Gatekeeper 410X ANPR camera for garage access

An AVUTEC Partner’s own warehouse becomes a reference installation

From test installation to customer showcase Before recommending a new solution to customers, ...