[tesseract-ocr] Re: How to install tesseract

2021-02-22 Thread David Praise
Mac: brew install tesseract
Ubuntu: sudo apt install tesseract-ocr

Then: 

pip install pytesseract


On Tuesday, December 1, 2020 at 7:52:54 AM UTC+1 YOPLAYER 1 Tech and Game 
wrote:

>
> Hi all,
> I wanted to install tesseract so that I can use it in my Python project 
> but I can't find any official download links. I have installed the module 
> so can I use it without the app because in the video I saw he gave path to 
> the executable.Please help me.
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/94af3e81-57d3-4e1a-acdd-4d501d65202bn%40googlegroups.com.


Re: [tesseract-ocr] Re: How to install tesseract in MAC?

2018-09-21 Thread Kurniawan
as the error said, it seem there is a path that does not exists in your
system

i would suggests to check all your path especially in line 13

Caused by: java.io.IOException: error=2, No such file or directory

On Fri, Sep 21, 2018, 6:25 AM Rakesh Kumar 
wrote:

> Great thank you it worked, i have one more stopper which i need you to
> address.
>
> I am trying to execute below program with error in my MAC.
>
> package com.chillyfacts.com;
>
> import java.io.PrintWriter;
>
> public class my_main {
>
> public static void main(String[] args) {
>
> String input_file="/usr/local/Cellar/tesseract/PCH app.png";
>
> String output_file="/usr/local/Cellar/pchapp";
>
> String tesseract_install_path="/usr/local/Cellar/tesseract/";
>
> String[] command = { "cmd" };
>
>
> Process p;
>
> try {
>
> p = Runtime.getRuntime().exec(command);
>
> new Thread(new SyncPipe(p.getErrorStream(), System.err)).start();
>
> new Thread(new SyncPipe(p.getInputStream(), System.out
> )).start();
>
> PrintWriter stdin = new PrintWriter(p.getOutputStream());
>
> stdin.println("\""+tesseract_install_path+"\" \""+
> input_file+"\" \""+output_file+"\" -l eng");
>
> stdin.close();
>
> p.waitFor();
>
> System.out.println();
>
> System.out.println();
>
> System.out.println();
>
> System.out.println();
>
> System.out.println(Read_File.read_a_file(output_file+
> ".txt"));
>
> } catch (Exception e) {
>
> e.printStackTrace();
>
> }
>
> }
>
> }
>
>
> Error:
>
>
> java.io.IOException: Cannot run program "cmd": error=2, No such file or
> directory
>
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
>
> at java.lang.Runtime.exec(Runtime.java:620)
>
> at java.lang.Runtime.exec(Runtime.java:485)
>
> at com.chillyfacts.com.my_main.main(my_main.java:13)
>
> Caused by: java.io.IOException: error=2, No such file or directory
>
> at java.lang.UNIXProcess.forkAndExec(Native Method)
>
> at java.lang.UNIXProcess.(UNIXProcess.java:247)
>
> at java.lang.ProcessImpl.start(ProcessImpl.java:134)
>
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
>
> ... 3 more
> On Friday, 21 September 2018 00:43:50 UTC-4, Kurniawan Kurniawan wrote:
>>
>> Mac should be the easiest to install.
>>
>> you can use brew install https://github.com/tesseract-ocr/tesseract/wiki
>>
>>
>> On Thursday, 20 September 2018 13:04:09 UTC-7, Rakesh Kumar wrote:
>>>
>>> Can any one please give steps to install tesseract in MAC machine?
>>>
>> --
> 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/6a127d27-2a25-4c57-8e79-b9dcb4cf91c7%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/CAMhk_mRd4%2Ba0B2yt6d3yDK%2BT_B8WfkhHNCZxt-HEUN2anfrowA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: How to install tesseract in MAC?

2018-09-21 Thread Rakesh Kumar
Great thank you it worked, i have one more stopper which i need you to 
address.

I am trying to execute below program with error in my MAC.

package com.chillyfacts.com;

import java.io.PrintWriter;

public class my_main {

public static void main(String[] args) {

String input_file="/usr/local/Cellar/tesseract/PCH app.png";

String output_file="/usr/local/Cellar/pchapp"; 

String tesseract_install_path="/usr/local/Cellar/tesseract/";

String[] command = { "cmd" };


Process p;

try {

p = Runtime.getRuntime().exec(command);

new Thread(new SyncPipe(p.getErrorStream(), System.err)).start();

new Thread(new SyncPipe(p.getInputStream(), System.out
)).start();

PrintWriter stdin = new PrintWriter(p.getOutputStream());

stdin.println("\""+tesseract_install_path+"\" \""+input_file
+"\" \""+output_file+"\" -l eng");

stdin.close();

p.waitFor();

System.out.println();

System.out.println();

System.out.println();

System.out.println();

System.out.println(Read_File.read_a_file(output_file+".txt"
));

} catch (Exception e) {

e.printStackTrace();

}

} 

} 


Error:


java.io.IOException: Cannot run program "cmd": error=2, No such file or 
directory

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)

at java.lang.Runtime.exec(Runtime.java:620)

at java.lang.Runtime.exec(Runtime.java:485)

at com.chillyfacts.com.my_main.main(my_main.java:13)

Caused by: java.io.IOException: error=2, No such file or directory

at java.lang.UNIXProcess.forkAndExec(Native Method)

at java.lang.UNIXProcess.(UNIXProcess.java:247)

at java.lang.ProcessImpl.start(ProcessImpl.java:134)

at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)

... 3 more
On Friday, 21 September 2018 00:43:50 UTC-4, Kurniawan Kurniawan wrote:
>
> Mac should be the easiest to install.
>
> you can use brew install https://github.com/tesseract-ocr/tesseract/wiki
>
>
> On Thursday, 20 September 2018 13:04:09 UTC-7, Rakesh Kumar wrote:
>>
>> Can any one please give steps to install tesseract in MAC machine?
>>
>

-- 
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/6a127d27-2a25-4c57-8e79-b9dcb4cf91c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: How to install tesseract in MAC?

2018-09-20 Thread Kurniawan Kurniawan
Mac should be the easiest to install.

you can use brew install https://github.com/tesseract-ocr/tesseract/wiki


On Thursday, 20 September 2018 13:04:09 UTC-7, Rakesh Kumar wrote:
>
> Can any one please give steps to install tesseract in MAC machine?
>

-- 
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/c0a083af-4a5a-4181-add8-24ed02d6a88a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: How to install Tesseract

2014-10-29 Thread Wes Fowlks
It looks like you may have to build some of the other libraries that the 
script overlooks because I was not concerned with training. But those extra 
libraries can be found: 

sudo apt-get install libicu-dev  # (if you plan to make the training tools)
sudo apt-get install libpango1.0-dev # (if you plan to make the training tools)
sudo apt-get install libcairo2-dev   # (if you plan to make the training tools


Which can be found: https://code.google.com/p/tesseract-ocr/wiki/Compiling


On Wednesday, October 29, 2014 6:11:49 AM UTC-4, iram akbar wrote:
>
> Hi,
>
>  I just need to know how to solve this JIT  error in the  
> Serak Tesseract Trainer while pressing Testing Tesseract
> i have box file and tif file But still having this error. check the 
> attached Image.
>
>
>
> On Monday, 20 October 2014 18:01:11 UTC+5, whitepur...@gmail.com wrote:
>>
>> I wonder if someone have instructions on how to install Tesseract? I have 
>> OS X Yosemite.I just installed it, so my laptop is very clean.
>>
>> I have found some instructions for both MacPorts and Homebrew, and both 
>> fails with a series of errors. I tried compile it from source, using this:
>>
>>   http://www.ultrasaurus.com/2013/07/building-tesseract-from-source/ 
>> 
>>
>> but it fails with new errors when I try to run it. Especially this comes:
>>
>>  Error in pixReadMemJp2k: function not present
>>
>> It would be very nice if it could be a step by step how to install it. I 
>> see that most step by step omits to much steps, so I get lost.
>>
>>
>>
>>

-- 
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/2fcef411-c247-4430-8d67-403bba992274%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: How to install Tesseract

2014-10-29 Thread iram akbar
Hi,

 I just need to know how to solve this JIT  error in the  
Serak Tesseract Trainer while pressing Testing Tesseract
i have box file and tif file But still having this error. check the 
attached Image.



On Monday, 20 October 2014 18:01:11 UTC+5, whitepur...@gmail.com wrote:
>
> I wonder if someone have instructions on how to install Tesseract? I have 
> OS X Yosemite.I just installed it, so my laptop is very clean.
>
> I have found some instructions for both MacPorts and Homebrew, and both 
> fails with a series of errors. I tried compile it from source, using this:
>
>   http://www.ultrasaurus.com/2013/07/building-tesseract-from-source/ 
> 
>
> but it fails with new errors when I try to run it. Especially this comes:
>
>  Error in pixReadMemJp2k: function not present
>
> It would be very nice if it could be a step by step how to install it. I 
> see that most step by step omits to much steps, so I get lost.
>
>
>
>

-- 
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/a75d5f96-5db7-4602-b299-4e910ac9a863%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: How to install Tesseract

2014-10-27 Thread Wes Fowlks
Here is a basic build script to get you started, it handles all the 
dependencies, etc. You can modify it as needed. The script is meant for 
someone who does not have root privs.

https://groups.google.com/d/msg/tesseract-ocr/1mYSKfRs0jA/avZUrHb_gKwJ

On Monday, October 20, 2014 9:01:11 AM UTC-4, whitepur...@gmail.com wrote:
>
> I wonder if someone have instructions on how to install Tesseract? I have 
> OS X Yosemite.I just installed it, so my laptop is very clean.
>
> I have found some instructions for both MacPorts and Homebrew, and both 
> fails with a series of errors. I tried compile it from source, using this:
>
>   http://www.ultrasaurus.com/2013/07/building-tesseract-from-source/ 
> 
>
> but it fails with new errors when I try to run it. Especially this comes:
>
>  Error in pixReadMemJp2k: function not present
>
> It would be very nice if it could be a step by step how to install it. I 
> see that most step by step omits to much steps, so I get lost.
>
>
>
>

-- 
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 http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tesseract-ocr/f3b68263-a14f-4247-bdbc-d2d4cd774501%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.