tesseract icon indicating copy to clipboard operation
tesseract copied to clipboard

Failed to initialise Tessearct Engine when multiple initializations performed

Open esraince1 opened this issue 3 years ago • 2 comments

I try to initialize tesseract ocr in a custom exe. When I start exe instance and initialize Tesseract it works well. However, when I open another exe and initialize Tesseract again I got the error message below. Is there a limitation for number of Tesseract instances initialized ?

image

esraince1 avatar Nov 01 '21 09:11 esraince1

No there's no limit like this that I'm aware of.

On Mon, 1 Nov 2021, 20:23 esraince1, @.***> wrote:

I try to initialize tesseract ocr in a custom exe. When I start exe instance and initialize Tesseract it works well. However, when I open another exe and initialize Tesseract again I got the error message below. Is there a limitation for number of Tesseract instances initialized ?

[image: image] https://user-images.githubusercontent.com/17276798/139650273-06080228-2b1f-4637-b48e-fb85c92308a2.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/charlesw/tesseract/issues/578, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7HSDBT6Y45GJUFPJ4SCLUJZL7ZANCNFSM5HDSX62A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

charlesw avatar Nov 02 '21 09:11 charlesw

Hi, Thank you for your response. I call Tesseract .Net wrapper from an exe. Within that exe, there is a dll which has a reference to Tesseract. I added

<system.diagnostics> <source name="Tesseract" switchValue="Verbose">

			<add name="file" />
			
		</listeners>
	</source>
</sources>
<sharedListeners>
	<!--<add name="console" type="System.Diagnostics.ConsoleTraceListener" />-->

	<add name="file"
	   type="System.Diagnostics.TextWriterTraceListener"
	   initializeData="D:\Log\tesseract.log.txt" />
	
</sharedListeners>

</system.diagnostics>

to the exe config. However, there is no log info about the reason of why tesseract is not initialized. Also, I do not get that initialization error all the time. Am I missing something ?

esraince1 avatar Dec 24 '21 12:12 esraince1