<< Click to Display Table of Contents >> Navigation: Plate Recognition > Configuring LPR lists > Masks |
The purpose of the masks is to consider all plates that satisfy the mask syntax as part of the list, at the time of recognition, even if they are not registered in the system:
•The mask consists of character literals, sets, and wildcards.
•Each literal character must match a single character in the string. Comparison of literal characters is case-insensitive.
•Each set begins with an opening bracket ([) and ends with a closing bracket (]). Between the brackets are the elements of the set. Each element is a literal character or range.
•Ranges are specified using a start value, a hyphen (-), and an end value. Do not use spaces or commas to separate the elements of the set.
•A set must match a single character in the string.
•Characters match the set if it is the same as some literal character in the set, or if it is in one of the ranges in the set.
•A character is in a range if it matches the start value, end value, or is in between the two values.
•If the first character after the opening bracket of a set is an exclamation mark (!), then the set will match any character that is not in the set (Negation).
•Wildcards are asterisks (*) or question marks (?). An asterisk matches any number of characters and any character. A question mark matches any single character.
Examples:
Mask: ABC*
Result: Returns all records that begin with ABC
Examples: ABCD, ABC123, ABCXYZ
Mask: ABC*123
Result: Returns all records that start with ABC and end with 123
Examples: ABCD123, ABC123, ABCXYZ123
Mask: ABC?123
Result: Returns all records that start with ABC, have any character and end with 123
Examples: ABCD123, ABCX123, ABCY123
Mask: ABC??23
Result: Returns all records that start with ABC, have any two characters and end with 23
Examples: ABCD123, ABCXR23, ABCY923
Mask: ABC[XYZ]123
Result: Returns all records that start with ABC, have a character from the set (X, Y or Z) and end with 123
Examples: ABCX123, ABCY123, ABCZ123
Máscara: ABC[!XYZ]123
Result: Returns all records that begin with ABC, have a character outside the set (other than X, Y or Z) and end with 123
Examples: ABCD123, ABCE123, ABCF123
Mask: ABC[D-G1-3]
Result: Returns all records that start with ABC and have a character from the sets (D to G) or (1 to 3)
Examples: ABCD, ABC3, ABCF
Mask: ABC[D-G1-3]??[!ABC1-3]XYZ*
Result: Returns all records that begin with ABC, have a character from the sets (D to G) or (1 to 3), have any two characters, have a character outside the set (other than ABC and outside the range 1 to 3), have the literal characters XYZ and end with any character string
Examples: ABCD12UXYZ, ABC2Y1UXYZ12345: ABC*