[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2019-06-12 Thread Justin Minnaar
Hi Vipin

Did you ever come right with Tesseract 4 under C#? I've been using version 
3 but would like to move to version 4. 

Justin

On Tuesday, September 25, 2018 at 7:03:19 PM UTC+2, Vipin Tom Varghese 
wrote:
>
> Hi James, my apologies to hit you up so randomly, but I had no ther 
> options left. Ive been trying to get Tesseract 4 working using 
> tesseract.net wrapper following the wiki here 
> ,
>  
> but i'm unable to build from source. Could share how you got it working ?
>
> Thanks
> Vipin
>
> On Monday, 8 January 2018 15:33:50 UTC+5:30, James Q wrote:
>>
>> By the way I do have the Tesseract.net nuget package working ( 
>> https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with 
>> this:
>> 1.) I need to write a separate Bitmap -> Pix converter in C#
>> 2.) I haven't yet got whitelists/blacklists working
>>
>> Neither of these were issues with the tesseract 3 Charles Weld wrapper, 
>> hence my reason for trying to get the tdhintz one working (as this is based 
>> on Charles Weld's 3 wrapper).
>> Thanks
>> James
>>
>> On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>>>
>>> I have the same problem 
>>>
>>>
>>> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:

 I'm trying to use this wrapper:
 https://github.com/tdhintz/tesseract4win64

 It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two 
 dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with 
 I'm just trying to get a Visual Studio console app running. I've added 
 Tesseract.dll in as a reference but it fails to recognize the dependency 
 DLLs, throwing a runtime DllNotFoundException: "Failed to find library 
 "liblept1741.dll" for platform x64.".

 I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere 
 along the project structure but no luck! I've tried manually adding them 
 to 
 an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've 
 also tried setting TesseractEnviornment.CustomSearchPath in my Main class, 
 but although the runtime searches in the correct folders, it still doesn't 
 find the DLLs. My app is for x64 so the image type should match. I can't 
 think of what else to try.

 If anyone has this working I would greatly appreciate any advice.

 Thanks in advance
 James




-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/9b7bbf4b-701d-4484-a017-bf7d7ad727f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-09-26 Thread THintz
I assume you mean the charlesw/tesseract wrapper on Github.  Questions are 
more directly answered there.  What steps did you perform and what is the 
symptom?

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/87e323ca-ac0a-4063-8adb-09a428178acf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-09-26 Thread James Q
Hi Vipin
I didn't get much further with that wrapper I'm afraid. In the end, I went 
for building tesseract from the C++ source code.

On Tuesday, September 25, 2018 at 6:03:19 PM UTC+1, Vipin Tom Varghese 
wrote:
>
> Hi James, my apologies to hit you up so randomly, but I had no ther 
> options left. Ive been trying to get Tesseract 4 working using 
> tesseract.net wrapper following the wiki here 
> ,
>  
> but i'm unable to build from source. Could share how you got it working ?
>
> Thanks
> Vipin
>
> On Monday, 8 January 2018 15:33:50 UTC+5:30, James Q wrote:
>>
>> By the way I do have the Tesseract.net nuget package working ( 
>> https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with 
>> this:
>> 1.) I need to write a separate Bitmap -> Pix converter in C#
>> 2.) I haven't yet got whitelists/blacklists working
>>
>> Neither of these were issues with the tesseract 3 Charles Weld wrapper, 
>> hence my reason for trying to get the tdhintz one working (as this is based 
>> on Charles Weld's 3 wrapper).
>> Thanks
>> James
>>
>> On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>>>
>>> I have the same problem 
>>>
>>>
>>> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:

 I'm trying to use this wrapper:
 https://github.com/tdhintz/tesseract4win64

 It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two 
 dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with 
 I'm just trying to get a Visual Studio console app running. I've added 
 Tesseract.dll in as a reference but it fails to recognize the dependency 
 DLLs, throwing a runtime DllNotFoundException: "Failed to find library 
 "liblept1741.dll" for platform x64.".

 I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere 
 along the project structure but no luck! I've tried manually adding them 
 to 
 an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've 
 also tried setting TesseractEnviornment.CustomSearchPath in my Main class, 
 but although the runtime searches in the correct folders, it still doesn't 
 find the DLLs. My app is for x64 so the image type should match. I can't 
 think of what else to try.

 If anyone has this working I would greatly appreciate any advice.

 Thanks in advance
 James




-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/8b41f8d0-7526-44f0-b2ac-f3b62e164e4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-09-25 Thread Vipin Tom Varghese
Hi James, my apologies to hit you up so randomly, but I had no ther options 
left. Ive been trying to get Tesseract 4 working using tesseract.net 
wrapper following the wiki here 
,
 
but i'm unable to build from source. Could share how you got it working ?

Thanks
Vipin

On Monday, 8 January 2018 15:33:50 UTC+5:30, James Q wrote:
>
> By the way I do have the Tesseract.net nuget package working ( 
> https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with 
> this:
> 1.) I need to write a separate Bitmap -> Pix converter in C#
> 2.) I haven't yet got whitelists/blacklists working
>
> Neither of these were issues with the tesseract 3 Charles Weld wrapper, 
> hence my reason for trying to get the tdhintz one working (as this is based 
> on Charles Weld's 3 wrapper).
> Thanks
> James
>
> On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>>
>> I have the same problem 
>>
>>
>> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:
>>>
>>> I'm trying to use this wrapper:
>>> https://github.com/tdhintz/tesseract4win64
>>>
>>> It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two 
>>> dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with 
>>> I'm just trying to get a Visual Studio console app running. I've added 
>>> Tesseract.dll in as a reference but it fails to recognize the dependency 
>>> DLLs, throwing a runtime DllNotFoundException: "Failed to find library 
>>> "liblept1741.dll" for platform x64.".
>>>
>>> I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere 
>>> along the project structure but no luck! I've tried manually adding them to 
>>> an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've 
>>> also tried setting TesseractEnviornment.CustomSearchPath in my Main class, 
>>> but although the runtime searches in the correct folders, it still doesn't 
>>> find the DLLs. My app is for x64 so the image type should match. I can't 
>>> think of what else to try.
>>>
>>> If anyone has this working I would greatly appreciate any advice.
>>>
>>> Thanks in advance
>>> James
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/61562e30-aa99-4225-9071-f9466051e387%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-15 Thread James Q
You are correct, the runtime version is 140. That doesn't appear to be my 
problem though as x64 Dependency Walker finds this DLL. It fails to find 
several DLLs though which begin 'API-MS-WIN-CORE...'. I would have expected 
these to be present by way of the Win10 SDK but they are not. I tried 
Charles Weld's newer version from Git and got the same issues with that but 
I haven't tried the trace feature in Charles' version yet so will try that.

Thanks for responding to this - much appreciated.
James

On Friday, January 12, 2018 at 2:45:06 PM UTC, THintz wrote:
>
> I built those DLLs with VS 2017.  I think the run-time lib version is 140.
>
> There are 3 main reasons the libs fail to load.
>
> 1. The DLLs are in the wrong folders.  The correct folders are:
>  The .Net wrapper DLL assembly is placed in the exact same folder you 
> run your app from, and the other 2 are placed in a folder x86 or x64 
> located in the app's folder.  The DLLs I created are only x64.
>
> 2. You are missing a dependency.  See 
> https://github.com/charlesw/tesseract/issues/363 for examples tracing 
> this.  If you must resort to procmon to figure this out then you need to be 
> prepared to read tea leaves.
>
> 3. The wrong .Net wrapper is used.  Mr. Weld's wrapper has a trace feature 
> that enables you see mismatch between the wrapper and the DLLs.  A mismatch 
> occurs when the wrapper tries to bind to the public interface of Leptonica 
> and the two differ.
>
> The DLLs I created have been superseded in a branch of charlesw/tesseract 
> on github.  There is actually not much functional difference between the 
> two, at this time, but you might find it easier to work with the newer 
> branch. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/81dcb485-146e-46b0-a5ad-fc5c858a0e78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-12 Thread THintz
I built those DLLs with VS 2017.  I think the run-time lib version is 140.

There are 3 main reasons the libs fail to load.

1. The DLLs are in the wrong folders.  The correct folders are:
 The .Net wrapper DLL assembly is placed in the exact same folder you 
run your app from, and the other 2 are placed in a folder x86 or x64 
located in the app's folder.  The DLLs I created are only x64.

2. You are missing a dependency.  
See https://github.com/charlesw/tesseract/issues/363 for examples tracing 
this.  If you must resort to procmon to figure this out then you need to be 
prepared to read tea leaves.

3. The wrong .Net wrapper is used.  Mr. Weld's wrapper has a trace feature 
that enables you see mismatch between the wrapper and the DLLs.  A mismatch 
occurs when the wrapper tries to bind to the public interface of Leptonica 
and the two differ.

The DLLs I created have been superseded in a branch of charlesw/tesseract 
on github.  There is actually not much functional difference between the 
two, at this time, but you might find it easier to work with the newer 
branch. 

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/de6acb45-c474-458a-8179-8bcb00f776d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-12 Thread James Q
Thanks for the reply, In my project I have tried all 3 DLLs in all 
potential folders as follows:

D:\csharp\repos\cwtess4
|__ D:\csharp\repos\cwtess4\cwtess4
|__ liblept1741.dll
|__ libtesseract400.dll
|__ Tesseract.dll
|__ D:\csharp\repos\cwtess4\cwtess4\bin
|__ liblept1741.dll
|__ libtesseract400.dll
|__ Tesseract.dll
|__ D:\csharp\repos\cwtess4\cwtess4\bin\x64
|__ liblept1741.dll
|__ libtesseract400.dll
|__ Tesseract.dll
|__ D:\csharp\repos\cwtess4\cwtess4\bin\x64\Release
|__ liblept1741.dll
|__ libtesseract400.dll
|__ Tesseract.dll
|__ D:\csharp\repos\cwtess4\cwtess4\bin\x64\Debug
|__ liblept1741.dll
|__ libtesseract400.dll
|__ Tesseract.dll

This exception appears at runtime:
System.Reflection.TargetInvocationException: 'Exception has been thrown by 
the target of an invocation.'
Inner Exception
DllNotFoundException: Failed to find library "liblept1741.dll" for platform 
x64.

I see on the page you mention that a common reason might be "The Visual 
Studio 2015 C++ runtime" not being installed, but I am using Visual Studio 
2017 which doesn't allow me to install the earlier version of the runtime.


On Thursday, January 11, 2018 at 8:54:19 PM UTC, THintz wrote:
>
> See https://github.com/charlesw/tesseract/wiki/Error-2
>>>
>>
>  The Tesseract.dll goes in the folder with your binary and the other two 
> dlls go in either an x64 or an x86 folder below that.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/9e923af7-d81c-4e7a-8424-dc0dfe3539e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-11 Thread THintz

>
> See https://github.com/charlesw/tesseract/wiki/Error-2
>>
>
 The Tesseract.dll goes in the folder with your binary and the other two 
dlls go in either an x64 or an x86 folder below that.

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/ff61fc82-6cd5-4ace-84b7-a35d6243f80a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-08 Thread ShreeDevi Kumar
I don't think the code has been updated to show which options are supported
in 4.00alpha.

You can see https://github.com/tesseract-ocr/tesseract/issues/751 regarding
whitelist issue.

ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Mon, Jan 8, 2018 at 5:15 PM, James Q  wrote:

> Thanks for the reply ShreeDevi, I haven't found much in the way of
> documentation to say which options are supported in 4.0alpha compared to
> 3.0x. I ran "tesseract.exe --print-parameters" and both
> "tessedit_char_whitelist" / "tessedit_char_blacklist" were still in the
> list. I therefore assumed they were still supported.
>
> Could you please let me know how to find out which options are still
> supported in 4.0?
>
> Is there an alternative option to tell tesseract to exclude certain
> characters (in my case I have a number format which has numbers and letters
> but never capital O).
>
> Thanks
> James
>
> On Monday, January 8, 2018 at 11:26:56 AM UTC, shree wrote:
>>
>> tesseract 4 alpha does not support whitelist/blacklist.
>>
>> ShreeDevi
>> 
>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
>>
>> On Mon, Jan 8, 2018 at 4:52 PM, ShreeDevi Kumar 
>> wrote:
>>
>>> please see https://github.com/charlesw/tesseract/issues/306
>>>
>>> maybe the fix there will help.
>>>
>>> ShreeDevi
>>> 
>>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
>>>
>>> On Mon, Jan 8, 2018 at 3:33 PM, James Q  wrote:
>>>
 By the way I do have the Tesseract.net nuget package working (
 https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues
 with this:
 1.) I need to write a separate Bitmap -> Pix converter in C#
 2.) I haven't yet got whitelists/blacklists working

 Neither of these were issues with the tesseract 3 Charles Weld wrapper,
 hence my reason for trying to get the tdhintz one working (as this is based
 on Charles Weld's 3 wrapper).
 Thanks
 James

 On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>
> I have the same problem
>
>
> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:
>>
>> I'm trying to use this wrapper:
>> https://github.com/tdhintz/tesseract4win64
>>
>> It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two
>> dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with
>> I'm just trying to get a Visual Studio console app running. I've added
>> Tesseract.dll in as a reference but it fails to recognize the dependency
>> DLLs, throwing a runtime DllNotFoundException: "Failed to find library
>> "liblept1741.dll" for platform x64.".
>>
>> I've tried placing the DLLs in the .\bin\x64\Debug folder and
>> elsewhere along the project structure but no luck! I've tried manually
>> adding them to an ItemGroup in the csproj file with 
>> 'CopyToOutputDirectory
>> Always'. I've also tried setting TesseractEnviornment.CustomSearchPath
>> in my Main class, but although the runtime searches in the correct 
>> folders,
>> it still doesn't find the DLLs. My app is for x64 so the image type 
>> should
>> match. I can't think of what else to try.
>>
>> If anyone has this working I would greatly appreciate any advice.
>>
>> Thanks in advance
>> James
>>
>>
>> --
 You received this message because you are subscribed to the Google
 Groups "tesseract-ocr" group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to tesseract-oc...@googlegroups.com.
 To post to this group, send email to tesser...@googlegroups.com.
 Visit this group at https://groups.google.com/group/tesseract-ocr.
 To view this discussion on the web visit https://groups.google.com/d/ms
 gid/tesseract-ocr/13d63957-ecfc-4451-833f-ad6d23b76b01%40goo
 glegroups.com
 
 .

 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tesseract-ocr+unsubscr...@googlegroups.com.
> To post to this group, send email to tesseract-ocr@googlegroups.com.
> Visit this group at https://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tesseract-ocr/2f27ffd6-b3e5-4e56-bd35-58741e924c27%
> 40googlegroups.com
> 

Re: [tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-08 Thread James Q
Thanks for the reply ShreeDevi, I haven't found much in the way of 
documentation to say which options are supported in 4.0alpha compared to 
3.0x. I ran "tesseract.exe --print-parameters" and both 
"tessedit_char_whitelist" / "tessedit_char_blacklist" were still in the 
list. I therefore assumed they were still supported. 

Could you please let me know how to find out which options are still 
supported in 4.0?

Is there an alternative option to tell tesseract to exclude certain 
characters (in my case I have a number format which has numbers and letters 
but never capital O).

Thanks
James

On Monday, January 8, 2018 at 11:26:56 AM UTC, shree wrote:
>
> tesseract 4 alpha does not support whitelist/blacklist.
>
> ShreeDevi
> 
> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
>
> On Mon, Jan 8, 2018 at 4:52 PM, ShreeDevi Kumar  > wrote:
>
>> please see https://github.com/charlesw/tesseract/issues/306
>>
>> maybe the fix there will help.
>>
>> ShreeDevi
>> 
>> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
>>
>> On Mon, Jan 8, 2018 at 3:33 PM, James Q > > wrote:
>>
>>> By the way I do have the Tesseract.net nuget package working ( 
>>> https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with 
>>> this:
>>> 1.) I need to write a separate Bitmap -> Pix converter in C#
>>> 2.) I haven't yet got whitelists/blacklists working
>>>
>>> Neither of these were issues with the tesseract 3 Charles Weld wrapper, 
>>> hence my reason for trying to get the tdhintz one working (as this is based 
>>> on Charles Weld's 3 wrapper).
>>> Thanks
>>> James
>>>
>>> On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:

 I have the same problem 


 On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:
>
> I'm trying to use this wrapper:
> https://github.com/tdhintz/tesseract4win64
>
> It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two 
> dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with 
> I'm just trying to get a Visual Studio console app running. I've added 
> Tesseract.dll in as a reference but it fails to recognize the dependency 
> DLLs, throwing a runtime DllNotFoundException: "Failed to find library 
> "liblept1741.dll" for platform x64.".
>
> I've tried placing the DLLs in the .\bin\x64\Debug folder and 
> elsewhere along the project structure but no luck! I've tried manually 
> adding them to an ItemGroup in the csproj file with 
> 'CopyToOutputDirectory 
> Always'. I've also tried setting TesseractEnviornment.CustomSearchPath in 
> my Main class, but although the runtime searches in the correct folders, 
> it 
> still doesn't find the DLLs. My app is for x64 so the image type should 
> match. I can't think of what else to try.
>
> If anyone has this working I would greatly appreciate any advice.
>
> Thanks in advance
> James
>
>
> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "tesseract-ocr" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to tesseract-oc...@googlegroups.com .
>>> To post to this group, send email to tesser...@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/tesseract-ocr.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tesseract-ocr/13d63957-ecfc-4451-833f-ad6d23b76b01%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/2f27ffd6-b3e5-4e56-bd35-58741e924c27%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-08 Thread ShreeDevi Kumar
tesseract 4 alpha does not support whitelist/blacklist.

ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Mon, Jan 8, 2018 at 4:52 PM, ShreeDevi Kumar 
wrote:

> please see https://github.com/charlesw/tesseract/issues/306
>
> maybe the fix there will help.
>
> ShreeDevi
> 
> भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com
>
> On Mon, Jan 8, 2018 at 3:33 PM, James Q 
> wrote:
>
>> By the way I do have the Tesseract.net nuget package working (
>> https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with
>> this:
>> 1.) I need to write a separate Bitmap -> Pix converter in C#
>> 2.) I haven't yet got whitelists/blacklists working
>>
>> Neither of these were issues with the tesseract 3 Charles Weld wrapper,
>> hence my reason for trying to get the tdhintz one working (as this is based
>> on Charles Weld's 3 wrapper).
>> Thanks
>> James
>>
>> On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>>>
>>> I have the same problem
>>>
>>>
>>> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:

 I'm trying to use this wrapper:
 https://github.com/tdhintz/tesseract4win64

 It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two
 dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with
 I'm just trying to get a Visual Studio console app running. I've added
 Tesseract.dll in as a reference but it fails to recognize the dependency
 DLLs, throwing a runtime DllNotFoundException: "Failed to find library
 "liblept1741.dll" for platform x64.".

 I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere
 along the project structure but no luck! I've tried manually adding them to
 an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've
 also tried setting TesseractEnviornment.CustomSearchPath in my Main
 class, but although the runtime searches in the correct folders, it still
 doesn't find the DLLs. My app is for x64 so the image type should match. I
 can't think of what else to try.

 If anyone has this working I would greatly appreciate any advice.

 Thanks in advance
 James


 --
>> You received this message because you are subscribed to the Google Groups
>> "tesseract-ocr" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to tesseract-ocr+unsubscr...@googlegroups.com.
>> To post to this group, send email to tesseract-ocr@googlegroups.com.
>> Visit this group at https://groups.google.com/group/tesseract-ocr.
>> To view this discussion on the web visit https://groups.google.com/d/ms
>> gid/tesseract-ocr/13d63957-ecfc-4451-833f-ad6d23b76b01%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduXk1DwMDDVje2pBZ3QkV-NqkhT9g86QEpsNt4obch8pCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-08 Thread ShreeDevi Kumar
please see https://github.com/charlesw/tesseract/issues/306

maybe the fix there will help.

ShreeDevi

भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Mon, Jan 8, 2018 at 3:33 PM, James Q  wrote:

> By the way I do have the Tesseract.net nuget package working (
> https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with
> this:
> 1.) I need to write a separate Bitmap -> Pix converter in C#
> 2.) I haven't yet got whitelists/blacklists working
>
> Neither of these were issues with the tesseract 3 Charles Weld wrapper,
> hence my reason for trying to get the tdhintz one working (as this is based
> on Charles Weld's 3 wrapper).
> Thanks
> James
>
> On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>>
>> I have the same problem
>>
>>
>> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:
>>>
>>> I'm trying to use this wrapper:
>>> https://github.com/tdhintz/tesseract4win64
>>>
>>> It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two
>>> dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with
>>> I'm just trying to get a Visual Studio console app running. I've added
>>> Tesseract.dll in as a reference but it fails to recognize the dependency
>>> DLLs, throwing a runtime DllNotFoundException: "Failed to find library
>>> "liblept1741.dll" for platform x64.".
>>>
>>> I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere
>>> along the project structure but no luck! I've tried manually adding them to
>>> an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've
>>> also tried setting TesseractEnviornment.CustomSearchPath in my Main
>>> class, but although the runtime searches in the correct folders, it still
>>> doesn't find the DLLs. My app is for x64 so the image type should match. I
>>> can't think of what else to try.
>>>
>>> If anyone has this working I would greatly appreciate any advice.
>>>
>>> Thanks in advance
>>> James
>>>
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "tesseract-ocr" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tesseract-ocr+unsubscr...@googlegroups.com.
> To post to this group, send email to tesseract-ocr@googlegroups.com.
> Visit this group at https://groups.google.com/group/tesseract-ocr.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/tesseract-ocr/13d63957-ecfc-4451-833f-ad6d23b76b01%
> 40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduX%3DBVdm8F_3o74iFkD6FZD2ZHANOEX--H9RsTfdq1CLsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-08 Thread James Q
By the way I do have the Tesseract.net nuget package working ( 
https://www.nuget.org/packages/tesseract.net/ ), but have 2 issues with 
this:
1.) I need to write a separate Bitmap -> Pix converter in C#
2.) I haven't yet got whitelists/blacklists working

Neither of these were issues with the tesseract 3 Charles Weld wrapper, 
hence my reason for trying to get the tdhintz one working (as this is based 
on Charles Weld's 3 wrapper).
Thanks
James

On Monday, January 8, 2018 at 7:49:43 AM UTC, Mohammad Mahdizadeh wrote:
>
> I have the same problem 
>
>
> On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:
>>
>> I'm trying to use this wrapper:
>> https://github.com/tdhintz/tesseract4win64
>>
>> It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two 
>> dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with 
>> I'm just trying to get a Visual Studio console app running. I've added 
>> Tesseract.dll in as a reference but it fails to recognize the dependency 
>> DLLs, throwing a runtime DllNotFoundException: "Failed to find library 
>> "liblept1741.dll" for platform x64.".
>>
>> I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere 
>> along the project structure but no luck! I've tried manually adding them to 
>> an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've 
>> also tried setting TesseractEnviornment.CustomSearchPath in my Main class, 
>> but although the runtime searches in the correct folders, it still doesn't 
>> find the DLLs. My app is for x64 so the image type should match. I can't 
>> think of what else to try.
>>
>> If anyone has this working I would greatly appreciate any advice.
>>
>> Thanks in advance
>> James
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/13d63957-ecfc-4451-833f-ad6d23b76b01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: I Need help getting Tesseract 4.0 C# .Net Wrapper working please!

2018-01-07 Thread Mohammad Mahdizadeh
I have the same problem 


On Friday, January 5, 2018 at 8:38:08 PM UTC+3:30, James Q wrote:
>
> I'm trying to use this wrapper:
> https://github.com/tdhintz/tesseract4win64
>
> It's an x64 .Net assembly with one main DLL (Tesseract.dll) and two 
> dependency DLLs (liblept1741.dll and libtesseract400.dll). To start with 
> I'm just trying to get a Visual Studio console app running. I've added 
> Tesseract.dll in as a reference but it fails to recognize the dependency 
> DLLs, throwing a runtime DllNotFoundException: "Failed to find library 
> "liblept1741.dll" for platform x64.".
>
> I've tried placing the DLLs in the .\bin\x64\Debug folder and elsewhere 
> along the project structure but no luck! I've tried manually adding them to 
> an ItemGroup in the csproj file with 'CopyToOutputDirectory Always'. I've 
> also tried setting TesseractEnviornment.CustomSearchPath in my Main class, 
> but although the runtime searches in the correct folders, it still doesn't 
> find the DLLs. My app is for x64 so the image type should match. I can't 
> think of what else to try.
>
> If anyone has this working I would greatly appreciate any advice.
>
> Thanks in advance
> James
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tesseract-ocr+unsubscr...@googlegroups.com.
To post to this group, send email to tesseract-ocr@googlegroups.com.
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/fdf38171-80aa-4bf4-814f-3c4da8c94061%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.