Skip to content

Commit

Permalink
4.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
xushengfeng committed Jun 16, 2024
1 parent 4b8020a commit e3fc5a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esearch-ocr",
"version": "4.2.2",
"version": "4.2.3",
"description": "paddleocr models run on onnx",
"main": "./dist/esearch-ocr.umd.cjs",
"module": "./dist/esearch-ocr.js",
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ let createImageData = (data: Uint8ClampedArray, w: number, h: number) => {
};

export { init, x as ocr, Det as det, Rec as rec };
export type initType = AsyncType<ReturnType<typeof init>>;

var dev = true;
var det: SessionType, rec: SessionType, layout: SessionType, dic: string[];
Expand Down Expand Up @@ -81,7 +82,7 @@ async function init(op: {
if (op.cv) cv = op.cv;
// @ts-ignore
else if (require) cv = require("opencv.js");
return { ocr: x };
return { ocr: x, det: Det, rec: Rec };
}

/** 主要操作 */
Expand Down

0 comments on commit e3fc5a9

Please sign in to comment.