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

opencv resize函数导致cpu占用率过高 #36

Closed
lblbk opened this issue Nov 14, 2022 · 0 comments
Closed

opencv resize函数导致cpu占用率过高 #36

lblbk opened this issue Nov 14, 2022 · 0 comments

Comments

@lblbk
Copy link

lblbk commented Nov 14, 2022

nihui 大大,最近在搞项目的时候,用了你的 ncnnopencv-mobile ,大体是依据这个大佬的项目修改的,其他环境是

ncnn-20210720-android-vulkan
opencv-mobile-3.4.16-android

我在运行的时候发现 resize 函数cpu占用率特别高,处理器是骁龙865,手机是find x
image
后面我想自己编译一下是否也一样,就用了其他人编译好的应该是官方库,链接在这, 结果占用率直接降下来了,当然这过程也会有一个 ncnn 的编译问题,我是按照你在ncnn issue中的回答编译的, 我换完库后cpu占用立马下来了
image
所以 nihui 大大如果有时间可以看下 opencv-mobile 中的 resize 是否有问题,哈哈哈

大大,我刚又去测了一下,官方版本的 android 版本 3 和 4 都不会出现问题,所以可能是 opencv-mobile 库的问题

@lblbk lblbk closed this as completed Oct 11, 2023
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