Skip to content

Commit

Permalink
ocr-engine style (#47)
Browse files Browse the repository at this point in the history
Preparing for use of biome.
  • Loading branch information
wydengyre authored Jun 15, 2024
1 parent a170b3f commit 6c02392
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ocr-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export class OCREngine {
// Tesseract
const engineImage = new this._tesseractLib.Image(
imageData.width,
imageData.height
imageData.height,
);
const engineImageBuf = engineImage.data();
engineImageBuf.set(new Uint32Array(imageData.data.buffer));
Expand Down Expand Up @@ -262,7 +262,7 @@ export class OCREngine {
this._engine.getTextBoxes(textUnit, (progress: number) => {
onProgress?.(progress);
this._progressChannel?.postMessage({ progress });
})
}),
);
}

Expand Down Expand Up @@ -380,7 +380,7 @@ export type CreateOCREngineOptions = {
* used to create the tesseract module. Possible options are documented here:
* https://github.com/emscripten-core/emscripten/blob/1e7472362a7f5844c5bd23214d725b7a3fd18775/src/settings.js#L876
*/
emscriptenModuleOptions?: {wasmBinary: ArrayBuffer};
emscriptenModuleOptions?: { wasmBinary: ArrayBuffer };
};

/**
Expand Down

0 comments on commit 6c02392

Please sign in to comment.