Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Benchmark performance #155

Open
Nook2007 opened this issue Jun 16, 2021 · 8 comments
Open

Benchmark performance #155

Nook2007 opened this issue Jun 16, 2021 · 8 comments
Labels
bug Something isn't working to be investigated We have to investigate and will come back later

Comments

@Nook2007
Copy link

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

@DoubangoTelecom
Copy link
Owner

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

@Nook2007
Copy link
Author

recognizer.zip
Tested on x86-64
sequential mode

@DoubangoTelecom
Copy link
Owner

Please attach both logs (c++ and java)

@Nook2007
Copy link
Author

Nook2007 commented Sep 2, 2021

java.txt
c++.txt

@Nook2007
Copy link
Author

Nook2007 commented Sep 2, 2021

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

@DoubangoTelecom
Copy link
Owner

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 DoubangoTelecom added bug Something isn't working to be investigated We have to investigate and will come back later labels Sep 3, 2021
@Nook2007
Copy link
Author

Nook2007 commented Sep 3, 2021

java.txt
nothing changed for rgb24

@Nook2007
Copy link
Author

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working to be investigated We have to investigate and will come back later
Projects
None yet
Development

No branches or pull requests

2 participants