Extract a License Plate from an Image #ALPR

ALPR – Or Automatic License Plate Recognition is the process of extracting the textual elements of a License Plate from an image. For example, reading the text FL802FJ from the image shown above.

Here is an API on Rapid API that offers a simple API that reads the license plate from an image of a car when provided via a URL: https://rapidapi.com/appaio/api/license-plate-from-image/

You make a HTTP POST request to the following endpoint:

https://license-plate-from-image.p.rapidapi.com/PlateRecognizerLambda

With the JSON Body;

{“url”:”https://i.ytimg.com/vi/WPXs6vNiSb4/maxresdefault.jpg”}

And the x-rapidapi-key set in the HTTP Headers.

Which results in the following:

{
“processing_time”: 147.311,
“results”: [
{
“box”: {
“xmin”: 896,
“ymin”: 307,
“xmax”: 1067,
“ymax”: 411
},
“plate”: “fl802fj“,
“region”: {
“code”: “fr”,
“score”: 0.621
},
“score”: 0.898,
“candidates”: [
{
“score”: 0.898,
“plate”: “fl802fj”
},
{
“score”: 0.897,
“plate”: “fl8o2fj”
},
{
“score”: 0.777,
“plate”: “flb02fj”
},
{
“score”: 0.775,
“plate”: “flbo2fj”
}
],
“dscore”: 0.729,
“vehicle”: {
“score”: 0.759,
“type”: “Sedan”,
“box”: {
“xmin”: 130,
“ymin”: 3,
“xmax”: 1148,
“ymax”: 690
}
}
}
],
“filename”: “1214_OkT6R_93b5bdbc-09af-47c4-b1a7-14109ed988ae.jpg”,
“version”: 1,
“camera_id”: null,
“timestamp”: “2021-11-25T12:14:00.429055Z”
}

Leave a Reply

Your email address will not be published. Required fields are marked *