Skip to content
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

Open
TonyZPW opened this issue May 18, 2023 · 5 comments
Open

[OCR] 识别视频截图导致帧率急剧降低 #499

TonyZPW opened this issue May 18, 2023 · 5 comments

Comments

@TonyZPW
Copy link

TonyZPW commented May 18, 2023

使用ocr识别视频里的每张图片,导致帧率下降到3fps,请问有什么解决办法吗?是要改为web worker做吗?

@TonyZPW
Copy link
Author

TonyZPW commented May 18, 2023

请问 ocr改为 web worker有demo可以参考吗?

@TonyZPW
Copy link
Author

TonyZPW commented May 19, 2023

测试了下使用OCR的2个模型,喂入类型为Imagebitmap数据或者OffscreenCanvas预测结果都是0. 应该是不兼容

@TonyZPW TonyZPW closed this as completed May 19, 2023
@TonyZPW
Copy link
Author

TonyZPW commented May 25, 2023

尝试了下用webworker demo里的方式对ocr库进行改造,detectRunner.predict(image); image是Imagebitmap类型 这里返回的结果全是0 .

@TonyZPW TonyZPW reopened this May 25, 2023
@TonyZPW
Copy link
Author

TonyZPW commented May 25, 2023

不使用web worker的前提下,每进行一次识别,帧率都会下降很大,下降后会自动升上来但依然影响用户体验。我这边是直播流,我每5秒进行识别一次

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant