Paddle.js is a web project for Baidu PaddlePaddle, which is an open source deep learning framework running in the browser. Paddle.js can either load a pre-trained model, or transforming a model from paddle-hub with model transforming tools provided by Paddle.js. It could run in every browser with WebGL/WebGPU/WebAssembly supported. It could also run in Baidu Smartprogram and WX miniprogram.
opencv_ocr.js:46 Uncaught ReferenceError: Module is not defined
at opencv_ocr.js:46:5
at opencv_ocr.js:11:22
at node_modules/@paddlejs-mediapipe/opencv/library/opencv_ocr.js (opencv_ocr.js:22:1)
at __require (chunk-RSJERJUL.js?v=aa02e290:3:50)
at dep:@paddlejs-mediapipe_opencv_library_opencv_ocr:1:16
使用vite时会有针对 opencv_ocr.js 的报错