ultimateALPR-SDK icon indicating copy to clipboard operation
ultimateALPR-SDK copied to clipboard

Benchmark performance

Open Nook2007 opened this issue 3 years ago • 8 comments

c++ 2x faster than java on linux x64, with same machine/rate/config/images

Nook2007 avatar Jun 16 '21 06:06 Nook2007

X86-64 or ARM64? Both (Java and C++) are using parallel (or sequential) mode? Please share sample code you're using.

DoubangoTelecom avatar Aug 26 '21 23:08 DoubangoTelecom

recognizer.zip Tested on x86-64 sequential mode

Nook2007 avatar Aug 27 '21 08:08 Nook2007

Please attach both logs (c++ and java)

DoubangoTelecom avatar Sep 02 '21 19:09 DoubangoTelecom

java.txt c++.txt

Nook2007 avatar Sep 02 '21 20:09 Nook2007

c++.txt java.txt updated logs with same config

Nook2007 avatar Sep 02 '21 20:09 Nook2007

The only difference I see is the input: C++ uses RGB while Java uses BGR. In your Java code change ULTALPR_SDK_IMAGE_TYPE_BGRA32 to ULTALPR_SDK_IMAGE_TYPE_RGBA32 and ULTALPR_SDK_IMAGE_TYPE_BGR24 to ULTALPR_SDK_IMAGE_TYPE_RGB24 and share the Java logs again.

The change I'm asking to do isn't correct in production, so revert the change after collecting the logs.

DoubangoTelecom avatar Sep 03 '21 06:09 DoubangoTelecom

java.txt nothing changed for rgb24

Nook2007 avatar Sep 03 '21 06:09 Nook2007

Any updates?

Nook2007 avatar Jan 27 '22 13:01 Nook2007