This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, July 6, 2012 6:17:23 AM(UTC)
Groups: Registered
Posts: 9
Hello, I want a webservice to host my OCR process so it is done on a server. At this time it works, but every call I'm creating the engine object which takes a lot of time. So I thought I could store the engine object in my class and re-use it, but that seems to cause problems when multiple calls are fired at once.
So now I was wondering: what are the best practices on this, and how can I make sure the performance is optimal vs a stable solution? Thanks.
#2
Posted
:
Sunday, July 8, 2012 5:31:26 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The time-consuming part is usually the recognition process and not creating the engine.
If you're using the Advantage OCR engine, it should work properly in a multi-threaded environment.
However, if you use the Plus or Professional OCR engines, they will need you to enable the thunk layer.
For details, see our OCR Multi-Threading demo shipped with the toolkit.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.