如何使用opencv C ++减少QR码中的扫描时间? [英] How to reduce scanning time in QR code using opencv C++?

查看:90
本文介绍了如何使用opencv C ++减少QR码中的扫描时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的QR代码示例很少。当我试图检测到这些代码时,需要20秒才能完成整个过程。但我需要在10秒内解码这些代码。如何解决这个问题呢 ?如何使用openCv c ++方法解决这个问题。



我尝试过:



在使用opencv c ++检测代码后启动qr代码到qr引擎。

i have few sample QR codes.when i trying to detect this codes will take more than 20 sec to complete process. but i need to decoding this codes within 10 sec . how to solve this problem ? how to use openCv c++ method to solve this problem.

What I have tried:

lode the qr codes to qr engine after staring process to detect codes using opencv c++.

推荐答案

由于没有魔术按钮将运行时减少一半并且没有简单的方法可以做到这一点,你必须依赖别的东西。

Since there is no magic button to cut runtime by half and there is no easy way to do it either, you have to rely on something else.
引用:

如何使用opencv C ++缩短QR码扫描时间?

How to reduce scanning time in QR code using opencv C++?



扫描速度取决于你的算法以及如何将它转换为代码(你知道,您没有向我们展示的代码)。我们不知道你做了什么。



唯一可以帮助你的工具是 profiler ,它会告诉你你的代码在哪里花时间。

分析(计算机编程) - 维基百科 [ ^ ]



减少运行时的动作是优化,它是一种专门的编程活动,几乎是一项工作本身,它需要大量的算法和数据结构知识及其使用。


The speed of scanning depend on your algorithm and how you translated it to code (you know, the code you didn't showed us). We have no idea what you have done.

The only tool that can help you is the profiler, it will show you where your code spend time.
Profiling (computer programming) - Wikipedia[^]

The action of reducing runtime is optimization, it is a specialized programming activity, almost a job by itself, it requires a large knowledge of algorithms and data structures and their usage.


这篇关于如何使用opencv C ++减少QR码中的扫描时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆