Skip to main content

OCRAnalysis

This is the data collected during the ocr analysis of an image.

Properties

NameType
schemaEmbeddedModelSchema
idstring
rawFormat
hocrFormat
imagestring
modelModel

Example

import { OCRAnalysis } from '@pieces.app/pieces-os-client'

// TODO: Update the object below with actual values
const example: OCRAnalysis = {
"schema": null,
"id": null,
"raw": null,
"hocr": null,
"image": null,
"model": null,
}

console.log(example)

// Convert the instance to a JSON string
const exampleJSON: string = JSON.stringify(example)
console.log(exampleJSON)

// Parse the JSON string back to an object
const exampleParsed = JSON.parse(exampleJSON) as OCRAnalysis
console.log(exampleParsed)