Can anyone explain why does the call to recognizeWithCountryRegionNConfig return after 2.3 seconds even though the actual "processing time" the results return with is 0.66 seconds?
I tried with multiple images and the result always comes about 1.5 seconds or more later than the actual "processing time" that you can find in the result. Is the JNI call slow?
You can see that the time between the two logs is 2.433s and the processing time is 0.678s.
How can this be avoided so real-time recognition actually becomes possible?
EDIT: I guess it might be the config initialization. But how do I use this library without supplying the config every time I want to recognize an image? Why not supply the config once when creating the AlprJNIWrapper object? It's what all openalpr bindings do as seen here.
Can anyone explain why does the call to
recognizeWithCountryRegionNConfig
return after 2.3 seconds even though the actual "processing time" the results return with is 0.66 seconds?I tried with multiple images and the result always comes about 1.5 seconds or more later than the actual "processing time" that you can find in the result. Is the JNI call slow?
Here's an example of what I'm talking about:
prints out:
You can see that the time between the two logs is 2.433s and the processing time is 0.678s.
How can this be avoided so real-time recognition actually becomes possible?
EDIT: I guess it might be the config initialization. But how do I use this library without supplying the config every time I want to recognize an image? Why not supply the config once when creating the
AlprJNIWrapper
object? It's what all openalpr bindings do as seen here.