License plates OCR Node.js
The Node.js OCR SDK supports the API Licenses plate OCR for extracting data from pictures.
Using this sample photo below, we are going to illustrate how to extract the data that we want using the OCR SDK.
Quick Start
const mindee = require("mindee");
// for TS or modules:
// import * as mindee from "mindee";
// Init a new client
const mindeeClient = new mindee.Client({ apiKey: "my-api-key" });
// Load a file from disk and parse it
const doc = mindeeClient.docFromPath("/path/to/the/file.ext");
const respPromise = doc.parse(mindee.eu.LicensePlateV1);
// Print a summary of the parsed data
respPromise.then((resp) => {
if (resp.document === undefined) return;
console.log(resp.document.toString());
});
Output:
----- EU License plate V1 -----
Licence plates: BY323YB
----------------------
Questions?
Join our Slack
Updated 6 months ago