5.16.1 api lpr licenseplate
The api/lpr/licenseplate function is used for access control by license plate recognition.
Service and Privileges Groups
Service group is API Access Control.
Privileges group is Access Control.
Methods
POST
Request
The request contains parameters in the application/json format.
Key Name | Mandatory | Expected Values | Default Value | Description |
---|---|---|---|---|
lprUuid | Yes | uuid string | – | Uuid of the licence plate recognition event generated by the License Plate Recognition system. |
lprID | Yes | ID number | – | Internally unique identifier designating one license plate in one recorded car arrival. One and the same license plate can be recognized multiple times within one arrival. In case the camera obtains more details from another recognition, the plateText will be specified while the lprID will remain the same. Each recognition event generates a lprUuid of its own. |
accessPoint | Yes | 0 or 1 | - | Indicates whether a vehicle with the detected license plate is entering (0) or exiting (1) – this is important for Access Rules that are applied to the event in the 2N device. |
plateText | Yes | license plate string | – | Text of the recognized license plate that is used to identify a user in the 2N device directory. |
lprDir | No | 0 to 3 | – | Defines the detected car/license plate motion direction according to the camera direction setting. Options:
|
plateImage | No | image encoded in base64 | No image | The image in which the license plate was recognized. The size of the image data is limited to 256 kB. |
Example of Request
URL: https://192.168.1.1/api/lpr/licenseplate JSON: { "lprUuid": "bc4baad9-d2cd-4706-986f-b942963bfa9f", "lprID": 143289, "accessPoint": 0, "plateText": "ABC123456", "plateImage": "/9j/4AAQSkZJRgABAQEASABIAAD//gATQ3JlYXRlZCB3aXRoIEdJTVD/4gKwSUNDX1BST0ZJTEUAAQEAAAKgbGNtcwQwAABtbnRyUkdCIFhZWiAH5AAMABIACgAHAA5hY3NwTVNGVAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA1kZXNjAAABIAAAAEBjcHJ0AAABYAAAADZ3dHB0AAABmAAAABRjaGFkAAABrAAAACxyWFlaAAAB2AAAABRiWFlaAAAB7AAAABRnWFlaAAACAAAAABRyVFJDAAACFAAAACBnVFJDAAACFAAAACBiVFJDAAACFAAAACBjaHJ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SOcg5JkphItLB5NF3talYIF7YDt/vzRjaqHY9+9GR+DEnnoaB/VgRJ1+1XuoKZAASIIAMzlNHPYwFDwu+yKFxWCL4bDo+C72tSoAM8q0Rkd69iV/et3wGJPPQ0AVC+OQH2VALyIviwDfMmYi0/BQbv25MCRwi2InfRd7GqYDYMDAnx6VM6aFCqgdmHNEQRAApKMhKCTEULN5LyMdqGrxgLwXMnZ+nROGk4SraSZUFElukB8DBh4kHcnG3o3HEs80g20tA0SmwTqpYMLE4EMW2o/4k4UYR2aHLyzhYSR5IJ4NEgtSnXdIiACDAyErpZAE8WZKDr/AEqKgE4iMnhFI2W9LL4JIH1fMdw/lYQIX4dIuVCg674kgSWwA+pyumSPjX0J+UGDBgwYMGDBgwYMiFYNegNP/9k=" }
Response
The response is in the application/json format.
Key | Typical Returned Values | Description |
---|---|---|
success |
| The value is |
Example of Response
{ "success": true }
There may occur various errors (e.g. missing mandatory parameter). When Error code 13 (parameter data are too big) is returned, the request was not processed and it is necessary to send the request again with a smaller image or without an image.
Subsequently received duplicate valid requests are ignored (the last ten successful requests are held in the memory). It is possible to attempt at resending a request when there is no reply from a 2N device without the risk of a duplicate barrier opening or duplicate event logging.