-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OCR] 识别视频截图导致帧率急剧降低 #499
Comments
请问 ocr改为 web worker有demo可以参考吗? |
测试了下使用OCR的2个模型,喂入类型为Imagebitmap数据或者OffscreenCanvas预测结果都是0. 应该是不兼容 |
const detModelPath = 'https://paddlejs.cdn.bcebos.com/models/fuse/ocr/ch_PP-OCRv2_det_fuse_activation/model.json'; |
尝试了下用webworker demo里的方式对ocr库进行改造,detectRunner.predict(image); image是Imagebitmap类型 这里返回的结果全是0 . |
不使用web worker的前提下,每进行一次识别,帧率都会下降很大,下降后会自动升上来但依然影响用户体验。我这边是直播流,我每5秒进行识别一次 |
使用ocr识别视频里的每张图片,导致帧率下降到3fps,请问有什么解决办法吗?是要改为web worker做吗?
The text was updated successfully, but these errors were encountered: