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

paddle lite 推理预处理图片时,是否直接调用paddle_image_preprocess.h处理的方法,不再引用单独的opencv库?我看的demo里是单独引用了一个opencv库,这样的话打包出来就会多2M,能否提供一个使用paddle_image_preprocess.h预处理图片的demo? #10609

Open
orq518 opened this issue Dec 6, 2024 · 1 comment
Assignees

Comments

@orq518
Copy link

orq518 commented Dec 6, 2024

您好,请教一下,使用with_cv=ON编译的paddle lite so库,如果想用opencv处理图片是不是就不用单独再引用一份opencv的so库了,直接使用paddle lite里的paddle_image_preprocess.h方法处理图片这个就行?
WechatIMG9937
WechatIMG9938

@orq518 orq518 changed the title paddle lite 使用opencv预处理图片时,是否直接用paddle_image_preprocess.h处理,不再引用单独的opencv库 paddle lite 推理预处理图片时,是否直接调用paddle_image_preprocess.h处理的方法,不再引用单独的opencv库?我看的demo里是单独引用了一个opencv库,这样的话打包出来就会多2M Dec 6, 2024
@orq518 orq518 changed the title paddle lite 推理预处理图片时,是否直接调用paddle_image_preprocess.h处理的方法,不再引用单独的opencv库?我看的demo里是单独引用了一个opencv库,这样的话打包出来就会多2M paddle lite 推理预处理图片时,是否直接调用paddle_image_preprocess.h处理的方法,不再引用单独的opencv库?我看的demo里是单独引用了一个opencv库,这样的话打包出来就会多2M,能否提供一个使用paddle_image_preprocess.h预处理图片的demo? Dec 6, 2024
@ddchenhao66
Copy link
Collaborator

ddchenhao66 commented Dec 10, 2024

查看了paddle_image_preprocess.h的接口及其实现,确实提供了部分图片处理的api(https://www.paddlepaddle.org.cn/lite/v2.12/api_reference/cv.html), 并且使用到了arm neon指令集。但是如果对处理图片有更通用和广泛的需求,还是建议使用opencv库。

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

2 participants