Skip to content

Commit d08c58e

Browse files
committed
feat(paddlejs-examples): add ocr detect xcx opencv wasm
1 parent 1b5c3aa commit d08c58e

5 files changed

Lines changed: 7115 additions & 6 deletions

File tree

packages/paddlejs-examples/ocrdetectXcx/pages/index/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import { divide, enableBoundaryChecking, plus } from 'number-precision';
66
// eslint-disable-next-line no-undef
77
const plugin = requirePlugin('paddlejs-plugin');
88
const Polygon = require('d3-polygon');
9-
const CV = require('./opencv');
9+
10+
global.wasm_url = 'pages/index/wasm/opencv_js.wasm.br';
11+
const CV = require('./wasm/opencv.js');
1012

1113
plugin.register(paddlejs, wx);
1214

packages/paddlejs-examples/ocrdetectXcx/pages/index/opencv.js

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)