License Plate Recognition

FREE
By macgyverapi
Updated 4 months ago
3.8/10
Popularity Score
2460ms
Latency
100%
Success Rate

License Plate Recognition API Documentation

This model takes an image URL as an input and scans for license plates and predicts the alphanumeric values of any detected license plates. This API allows you to automatically recognize license plates from videos and images

Parameters: Image URL - This is a reference to an image URL that may or may not contain a license plate. Country - This refers to the country being scanned. Available options are; us, eu. Number of Candidates - This number dictates how many results will be returned in the API response.

View API Details
POSTPayload
POSTPayload

Payload

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
PayloadJSON_STRING
REQUIREDThis object contains the following list of information. Macgyver API Key: free can be used for low volume and testing purposes. For over 1,000 requests per hour use a Macgyver Public or Private API key. Macgyver Program ID: this identifies the program to query. Program Input Data: the text, image, or video data to be analyzed by the program.
Code Snippet
unirest.post("https://macgyverapi-license-plate-recognition-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "macgyverapi-license-plate-recognition-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"id":"3X5D3d2k","key":"free","data":{"image_url":"https://storage.googleapis.com/marketing-files/program-markdown-assets/license-detection/license-plate.jpg","country":"us","numberCandidates":2}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://macgyverapi-license-plate-recognition-v1.p.rapidapi.com/
Request Method: POST
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.post("https://macgyverapi-license-plate-recognition-v1.p.rapidapi.com/")
.header("X-RapidAPI-Host", "macgyverapi-license-plate-recognition-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/json")
.send({"id":"3X5D3d2k","key":"free","data":{"image_url":"https://storage.googleapis.com/marketing-files/program-markdown-assets/license-detection/license-plate.jpg","country":"us","numberCandidates":2}})
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication