Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: OCR Concurrent Licenses
Started by Johnny at 05-07-2008 3:48. Topic has 3 replies.

Print Search « Previous Thread Next Thread »
  05-07-2008, 3:48
Johnny is not online. Last active: 5/7/2008 8:36:50 AM Johnny

Not Ranked
Joined on 05-07-2008
Posts 3
OCR Concurrent Licenses
Reply Quote
Hi,

We got a couple of concurrent runtime OCR licenses. Is it possible to have any examples to use OCR concurrent licenses by threads?

Thanks,

Johnny.
   Report 
  05-07-2008, 5:46
Johnny is not online. Last active: 5/7/2008 8:36:50 AM Johnny

Not Ranked
Joined on 05-07-2008
Posts 3
Re: OCR Concurrent Licenses
Reply Quote
I did a simple test as below. But it does not work with the runtime licenses.

Public Class OCR

Private _RasterDocument As RasterDocumentEngine
Private _codecs As RasterCodecs
Public Sub New()
RasterSupport.Unlock(RasterSupportType.Ocr, "XXXXXXXX")
'2 Concurrent Runtime Licenses

RasterCodecs.Startup()
_codecs = New RasterCodecs

_RasterDocument = RasterDocumentEngine.Instance
_RasterDocument.Startup()
End Sub

End Class

Sub Main()
Dim ocr1 As New OCR
Dim ocr2 As New OCR
End Sub


   Report 
  05-07-2008, 8:07
Johnny is not online. Last active: 5/7/2008 8:36:50 AM Johnny

Not Ranked
Joined on 05-07-2008
Posts 3
Re: OCR Concurrent Licenses
Reply Quote
Sorry, the code is missing one line. But it is still not working. Are there any settings required or any way to apply 2 concurrent licenses?

Public Class OCR

Private _RasterDocument As RasterDocumentEngine
Private _codecs As RasterCodecs
Public Sub New()
RasterSupport.Unlock(RasterSupportType.Document, "XXXXXXXX")
RasterSupport.Unlock(RasterSupportType.Ocr, "XXXXXXXX")
'2 Concurrent Runtime Licenses

RasterCodecs.Startup()
_codecs = New RasterCodecs

_RasterDocument = RasterDocumentEngine.Instance
_RasterDocument.Startup()
End Sub

End Class

Sub Main()
Dim ocr1 As New OCR
Dim ocr2 As New OCR
End Sub

   Report 
  05-07-2008, 12:05
Qasem Lubani is not online. Last active: 9/2/2008 11:31:52 AM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,044
Re: OCR Concurrent Licenses
Reply Quote

The OCR engine can only be initialized once at a time, and cannot be accessed from multiple threads in the same process simultaneously.

The only way to use multiple instances of the OCR engine on the same PC is to run completely separate instances of the application (running from separate processes).

 

Also, if you have an OCR session, you cannot access this session from multiple threads. The thread that creates the session and initializes the engine should be the same thread that adds a page and performs recognition, then shuts down the engine.

 

This limitation is from the OCR engine itself and cannot be overridden.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » OCR » Re: OCR Concurrent Licenses

Powered by Community Server, by Telligent Systems