Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
panelIconId803ee26c-b61d-4bd6-89ca-ecfd9325facf
panelIcon:anyline:
panelIconText:anyline:
bgColor#E6FCFF

minConfidence is a parameter available for the plugin Config that sets a minimum confidence which has to be reached in order to trigger a scan result.

Depending on the use-case, the minConfidence value can be adjusted to meet the needs of the end-user. This article will outline reasons why any company/developer/end-user might wish to make such adjustments to the minConfidence parameter.

Table of Contents
minLevel1
maxLevel6
outlinefalse
styledefault
typelist
printablefalse

...

Understanding the minConfidence Parameter

The minConfidence is something that changes for each end-user, as it depends on the scanning environment. Changing the minConfidence value changes the precision and recall of the whole scanning script.

...

Code Block
breakoutModewide
languagejson
"viewPlugin": {
                  "plugin": {
                      "id": "DRIVING_LICENSE",
                      "idPlugin": {
                          "universalIdConfig": {
                              "allowedLayouts": {
                                  "drivingLicense": []
                              },
                              "drivingLicense": {
                                  "lastName": {"scanOption": 0, "minConfidence": 40},
                                  "firstName": {"scanOption": 0, "minConfidence": 40},
                                  "fullName": {"scanOption": 0, "minConfidence": 40},
                                  "dateOfBirth": {"scanOption": 0, "minConfidence": 50},
                                  "placeOfBirth": {"scanOption": 1, "minConfidence": 50},
                                  "dateOfIssue": {"scanOption": 0, "minConfidence": 50},
                                  "dateOfExpiry": {"scanOption": 1, "minConfidence": 50},
                                  "authority": {"scanOption": 1, "minConfidence": 30},
                                  "documentNumber": {"scanOption": 0, "minConfidence": 40},
                                  "licenseClass": {"scanOption": 1, "minConfidence": 30},
                                  "address": {"scanOption": 0},
                                  "sex": {"scanOption": 1,"minConfidence": 60},
                                  "personalNumber": {"scanOption": 1,"minConfidence": 60}
                              },
                          }
                      }
                  },

...

Examples of Different Industries requiring Different Confidence Values

Info

Some end-users might require a high confidence to avoid wrong readings, whereas others might wish to lower the confidence to gain more speed.

Speed over Accuracy

One example of an industry that would require speed over accuracy is the Logistics and Supply Chain Industry that uses barcode or QR Code scanning Event Management Industry.

In this scenario, workers during any event, staff often need to quickly scan barcodes or QR codes on packages to track their movement through various stages of the supply chainIDs of thousands of attendees to verify their identities. Given the high volume of packages that need to be processed in a short amount of time, speed is often more important than accuracy.

While accuracy is still a priority, speed is crucial to prevent long queues and ensure a smooth entry process, so there can be room for tolerating a slight margin of error. If the barcode or QR code of a package is not scanned correctly, it can be rescanned later or manually entered into the system. HoweverWhile the decision to lower minConfidence should be made carefully, considering the potential trade-offs, trying to achieve a much higher accuracy on the first scan could result in delays and inefficiencies in the supply chainand longer queues and waiting times.

Accuracy over Speed

One example of an industry where the opposite would be the case is the pharmaceutical industry that uses scanning for Quality Control in the production line.

In a pharmaceutical company, barcodes or QR codes on individual packages of medication are scanned. These codes may contain important metadata such as the batch number, expiry date, and other details.

Banking and Finance Industry.

When a bank is developing a mobile app for its customers, one certain feature would be the ability to open a new account using a scanned ID (Driver’s License, Passport, etc.) for identity verification. A higher accuracy in this context would be much more vital as any misread or inaccurate scan ID could lead to incorrect information being associated with a package, leading to a number of serious consequencespotentially increasing the risk of identity theft and fraud.

It would therefore be more beneficial to adjust the minConfidence to prioritise accuracy over speed. Even if this means the production line moves it takes a bit slowerlonger to process a new account, the trade-off for ensuring patient client safety and maintaining regulatory compliance and lowering the potential cost and risk associated with incorrect identification would be worth it.

...

Finding the Right Value for your needs

Tip

PLEASE NOTE:

The examples provided above might vary depending on the company and the requirements of said company.

Ultimately, we would recommend trying a variety of different values for minConfidence until you find the right value that best suits your needs.

...