UNPKG

mindee

Version:

Mindee Client Library for Node.js

21 lines (20 loc) 578 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MvisionV1 = void 0; const ocrPage_1 = require("./ocrPage"); class MvisionV1 { constructor(rawPrediction) { /** List of words found on the page. */ this.pages = []; rawPrediction["pages"].map((page) => { this.pages.push(new ocrPage_1.OcrPage(page)); }); } /** * Default string representation. */ toString() { return this.pages.map((page) => page.toString()).join("\n") + "\n"; } } exports.MvisionV1 = MvisionV1;