mindee
Version:
Mindee Client Library for Node.js
16 lines (15 loc) • 544 B
JavaScript
import { BaseInference } from "../../../v2/parsing/inference/baseInference.js";
import { OcrResult } from "../../../v2/product/ocr/ocrResult.js";
export class OcrInference extends BaseInference {
constructor(serverResponse) {
super(serverResponse);
this.result = new OcrResult(serverResponse["result"]);
}
toString() {
return ("Inference\n" +
"#########\n" +
this.model.toString() + "\n" +
this.file.toString() + "\n" +
this.result.toString() + "\n");
}
}