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

运行要4s。。哪里不对呢 #75

Open
pudge11 opened this issue Mar 19, 2020 · 9 comments
Open

运行要4s。。哪里不对呢 #75

pudge11 opened this issue Mar 19, 2020 · 9 comments

Comments

@pudge11
Copy link

pudge11 commented Mar 19, 2020

大大你好,运行速度上好像有点问题
MIPP tests

Instr. type: AVX
Instr. full type: AVX2
Instr. version: 2
Instr. size: 256 bits
Instr. lanes: 2
64-bit support: yes
Byte/word support: yes

test img size: 2355200

construct response map
elasped time:2.89429s

templ match
elasped time:0.0515722s

elasped time:3.06314s

matches.size(): 4

match.template_id: 339
match.similarity: 97.5191

@meiqua
Copy link
Owner

meiqua commented Mar 20, 2020

是windows吧,O2优化有打开吗?

@pudge11
Copy link
Author

pudge11 commented Mar 20, 2020

对的,是windows。3个优化都打开了,没有打开之前需要30+s

@meiqua
Copy link
Owner

meiqua commented Mar 20, 2020

可能是opencv没用release模式编译?

@lgx98
Copy link

lgx98 commented Apr 8, 2020

MSVC里面没有-O3选项,改成/O2再试试吧

@ohenrygithub
Copy link

release模式和Debug模式差异很大,创建模板,Debug模式要11s,release模式只要0.4s;匹配测试,debug模式要1s多,release模式0.55s;

@wangyuou
Copy link

对的,是windows。3个优化都打开了,没有打开之前需要30+s

这个问题有解决吗 我也遇到相同情况

@feiyangzc
Copy link

大神,请问下当点数为2~3千个的时候,进行匹配的时候耗时会不会很长,这种问题能够怎样解决啊,谢谢!

@meiqua
Copy link
Owner

meiqua commented Aug 27, 2020

不会,windows上其实也挺快的,可以参考这个issue。一般200个点够了,2000多的话,估计100万像素在200ms吧

@wiekern
Copy link

wiekern commented Apr 8, 2022

QT6.2 debug版本匹配12秒,release版本0.3秒,差异确实大,找到这个issue才发现问题,还以为代码改动导致的。

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

7 participants