[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-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.


[tesseract-ocr] Re: How can I install without admin rights?

2014-10-08 Thread Wes Fowlks
When Running the configure script add the two parameters:
./configure --prefix=/path/to/files --disable-tessdata-prefix
the --prefix allows you to set an install directory
--disable-tessdata-prefix allows you to put the tessdata folder in the same 
folder as the executable.

as for the converting japanese to english, you will probably have to run 
the output from the extractor through a translator.

On Wednesday, October 8, 2014 7:15:54 AM UTC-4, Ashok Vardhan wrote:
>
> Hi All,
>
> I am planning to use this for the first time.
>
> I want to have all the files after installation in folder so that I can 
> use it directly without installation. 
>
> Also, Can I convert Japanese Powerpoint to English (It has both text and 
> Images)? Does the conversion use cloud server/any data server to store and 
> run algorithm?
>
> Kindly let me know ASAP.
>
> Thank you very much in advance and appreciate any help!
>
> Thanks
> Ashok
>

-- 
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/ee4b978a-7021-4c92-82f8-4ff791f1d19b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tesseract-ocr] Re: compiling tesseract on cygwin

2014-10-01 Thread Wes Fowlks
I was able to build it. Do you need it to be from the git repo?

to get the language data, you can use curl and download it from the google 
code site: 
curl -L -o tesseract-ocr-3.02.tar.gz 
https://tesseract-ocr.googlecode.com/files/tesseract-ocr-3.02.eng.tar.gz


I have included a shell script that I have used to build it recently. 

On Wednesday, October 1, 2014 4:53:40 AM UTC-4, simon.ei...@vol.at wrote:
>
> hi all, 
>
> maybe someone could help me with this? 
>
> Can someone give me full instructions how to compile tesseract from 
> the git repo under cygwin? 
> has someone tested that recently? 
>
> i also saw the language data isn't available on the git repo. 
>
> greetings and thanks, 
> simon 
>
> -- 
> Simon Eigeldinger 
> simon.ei...@vol.at  
>

-- 
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/9e0d867e-8ef2-4be5-9014-aa3d5fb0b5e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
#!/bin/bash

#
# Build Script for making standalone version of Tesseract
# Wes Fowlks
# 10/01/2014
#

BUILD_ZLIB=1
BUILD_LIBJPEG=1
BUILD_LIBPNG=1
BUILD_LEPTONICA=1
BUILD_TESSERACT=1

# Get the base directory of where the script is
BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
BUILD_DIR=$BASE_DIR/build
ARCHIVE_DIR=$BASE_DIR/archives
SRC_DIR=$BASE_DIR/src
TESSERACT_DIR=$BASE_DIR/tesseract

#Library Versions
ZLIB_VERSION=1.2.8
LIBPNG_VERSION=1.6.13
LIBJPEG_VERSION=9a
LEPTONICA_VERSION=1.71
TESSERACT_VERSION=3.02.02

echo "Base Build Directory: " $BUILD_DIR

# Functions usefull throughtout the script
function setupDirs() {
	if [ ! -d "$ARCHIVE_DIR" ]; then
		mkdir $ARCHIVE_DIR
	fi

	if [ ! -d "$SRC_DIR" ]; then
		mkdir $SRC_DIR
	fi

	if [ ! -d "$BUILD_DIR" ]; then
		mkdir $BUILD_DIR
	fi
}

# First check to see if zlib 
if [ $BUILD_ZLIB = 1 ]
then
	echo "Building ZLIB"
	setupDirs

	# Clean up old files
	rm -rf $SRC_DIR/zlib* $BUILD_DIR/zlib*

	if [ ! -f "$ARCHIVE_DIR/zlib-$ZLIB_VERSION.tar.gz" ]; then
		#Download the file
		curl -o $ARCHIVE_DIR/zlib-$ZLIB_VERSION.tar.gz http://zlib.net/zlib-$ZLIB_VERSION.tar.gz
	fi

	echo "Extracting archive"
	tar -xzf $ARCHIVE_DIR/zlib-$ZLIB_VERSION.tar.gz -C $SRC_DIR

	cd "$SRC_DIR/zlib-$ZLIB_VERSION"

	echo "Configuring ZLIB for Standalone"
	./configure --solo --static

	echo "Building Zlib and deploying to $BUILD_DIR"
	make install prefix=$BUILD_DIR

	#Check if the build was successful
	if [ -f "$BUILD_DIR/include/zlib.h" ]; then 
		echo "ZLIB Build Successful"
	else
		echo "ZLIB build failed. Exiting."
		exit 1
	fi

else
	echo "Skipping ZLib"
fi

# Build Libjpeg
if [ $BUILD_LIBJPEG = 1 ]
then

	echo "Building Lib Jpeg"
	setupDirs

	# Clean up old files
	rm -rf $SRC_DIR/jpeg* $BUILD_DIR/jpeg*

	if [ ! -f "$ARCHIVE_DIR/jpegsrc.v$LIBJPEG_VERSION.tar.gz" ]; then
		#Download the file
		curl -o $ARCHIVE_DIR/jpeg.v$LIBJPEG_VERSION.tar.gz http://www.ijg.org/files/jpegsrc.v$LIBJPEG_VERSION.tar.gz
	fi

	echo "Extracting archive"
	tar -xzf $ARCHIVE_DIR/jpeg.v$LIBJPEG_VERSION.tar.gz -C $SRC_DIR

	cd "$SRC_DIR/jpeg-$LIBJPEG_VERSION"

	echo "Configuring Lib Jpeg for Standalone"
	./configure --disable-shared --prefix=$BUILD_DIR

	echo "Building LIBJPEG and deploying to $BUILD_DIR"
	make install

	#Check if the build was successful
	if [ -f "$BUILD_DIR/include/jpeglib.h" ]; then 
		echo "LIB JPEG Build Successful"
	else
		echo "LIBJPEG build failed. Exiting."
		exit 1
	fi

else
	echo "Skipping LIBJPEG"
fi

# Build Lib PNG
if [ $BUILD_LIBPNG = 1 ]
then
	echo "Building Lib PNG"
	setupDirs

	# Clean up old files
	rm -rf $SRC_DIR/libpng* $BUILD_DIR/libpng*

	if [ ! -f "$ARCHIVE_DIR/libpng-$LIBPNG_VERSION.tar.gz" ]; then
		#Download the file
		curl -L -o $ARCHIVE_DIR/libpng-$LIBPNG_VERSION.tar.gz http://downloads.sourceforge.net/project/libpng/libpng16/1.6.13/libpng-1.6.13.tar.gz?use_mirror=tcpdiag
	fi

	echo "Extracting archive"
	tar -xzf $ARCHIVE_DIR/libpng-$LIBPNG_VERSION.tar.gz -C $SRC_DIR

	cd "$SRC_DIR/libpng-$LIBPNG_VERSION"

	echo "Copying libz header files to libpng"
	cp $BUILD_DIR/include/zlib.h .
	cp $BUILD_DIR/include/zconf.h .

	echo "Configuring Lib PNG for Standalone"
	./configure --prefix=$BUILD_DIR

	echo "Building LIBPNG and deploying to $BU