Shiping containers OCR Node.js
The Node.js OCR SDK supports the API Shipping containers OCR for extracting data from pictures of containers identification.
Using this sample 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.ShippingContainerV1);
// Print a summary of the parsed data
respPromise.then((resp) => {
if (resp.document === undefined) return;
console.log(resp.document.toString());
});
Output:
----- Shipping Container V1 -----
Owner: MMAU
Serial number: 1193249
Size and type: 45R1
----------------------
Questions?
Join our Slack
Updated 6 months ago