B4J Question Bad Response Gui

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi all,

I have a problem with the the Response of the GUI.
What I have is a Java Library.
This I call and it takes about 150 -- nnn Ms to do the Job and Return.
In the meantime the GUI is freezing.
This time is normal with the process in the Library.
I also try to thread this with the Threading Library. but then the GUI is freezing and the app is not Responding anymore.:(
Running the Thread in the Gui Thread is no option I have seen.
Have somebody any idea how I can Thread this and still get the Events fired by the Library in the Main Thread.
I also can send Events back to the Gui in Java. Is this what I need when I thread the Call to the Library??
To Synchronize the calls I use a timer.
When I start the call the Timer Stops and start again when the Call to the Library is finish Event Fire.
The Library Calls are processed in a Loop until a ListView has reach the End from 0 to nnn.
Hope somebody can help.
Many Thanks.
 

Swissmade

Well-Known Member
Licensed User
Longtime User
"Erel, post: 280479, member: 1"Have you written this library?

No the Wrapper for B4J I have written.
This is calling the functions in the library what is doing image processing to read License Plates.
The Library also is making calls to some C++ Dll's.

The Link you send I will try.

Story will be continue.
Many thanks for help.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Reading the Link I understand that the thread code has to go in the Java Library.
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Hi Erel,
Many thanks for helping me out here.
Its working like a charm.
Never to Old to learn.:p
If you like to see it I can make a small Video of it.

Again Many thanks.;);););):):):)
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
Go ahead, show us your creation :)

Here we go.
This App is just a test app to create the B4J Wrapper.
Before somebody ask this will not work in B4A.
The Timing is set to Slow to Show it better.
Also the Second Read part is disabled for this Video.
I make use of a Engine from and ANPR SDK Company so its not mine.
I also know that OpenCV can do this also but not so good as this SDK.
There is also some Hardware needed to Run this.
I think this is the first B4J App reading license plates all over the world.
You can watch the Video on http://anprscan.dyndns.org/B4JAnpr.avi
File is too big to Upload.

I hope you like what you see.
;);)
 
Upvote 0

Swissmade

Well-Known Member
Licensed User
Longtime User
I have forgotten to say, that the Threading Problem is [SOLVED]

This is just the beginning.
The Finish app will make use of blacklist, Open Gates etc. etc.
If this is working well, I go to Replace my old running very fast ANPR-VB6 app with the B4J app.
This way I also can use it with Linux and Windows.
So first create a nice Application and then bug-fixing.
Before I go the replace, there has to be an New Application working 100%.

Story will be Continue.
This has to be a new Thread I think.
 
Last edited:
Upvote 0
Top