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.