Click here to Skip to main content
15,887,676 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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++.
Posted
Comments
Dave Kreskowiak 27-Nov-17 10:38am    
Since nobody but yourself can see your code, it's impossible to tell you what you're doing wrong.
KarstenK 27-Nov-17 11:58am    
You must debug the code and look for optimization chances. I guess that you will need some more powerful hardware.

1 solution

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.
Quote:
How to reduce scanning time in QR code using opencv C++?

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900