delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/21/10:15:04

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=o+ZaOVGcf/tsAE21
vs5vrYvy0YFMNdSg5lYilqd7WMK82AcHLQNIOR0rmfLMZ/AMLW4cZBDH7oU7SUoV
WSMf6RSBQVdfqzD7kFPFLlKtnooLgzw1pYU5B3NUVAC/N8uyydCYWH3M0s7sTHxw
UdYe3Is36nsdFXFUGnq2W2UJctk=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=CH3u4SuUJaw34GwbgMqSDM
Em6mI=; b=vke8P2ThmRKDNtz+dQ7Zmv5dZ9X/sG7W+uRb3Enr3oB8MrlxMRITHr
4tR6OMdXU9+iiCnqUpWacp9wYRgBue35dxukv6Gcmv8nEKE4qWN9y/+wKL8T6uqP
5XhXBd1CLjFScZSawSyM51SPwnVr0kKp1k0LfZdN8QrdFhgibblZU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f169.google.com
X-Received: by 10.194.184.136 with SMTP id eu8mr25774990wjc.151.1442844883603; Mon, 21 Sep 2015 07:14:43 -0700 (PDT)
Subject: Re: Tesseract 3.04 - Cygwin64 - Windows 8.1 - Can't open makebox
To: cygwin AT cygwin DOT com
References: <D347C6895A0AB142BAA2D2F876C96CAA83360F13 AT ex2010-db01>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <560010D0.4010903@gmail.com>
Date: Mon, 21 Sep 2015 16:14:40 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <D347C6895A0AB142BAA2D2F876C96CAA83360F13@ex2010-db01>
X-IsSubscribed: yes

On 21/09/2015 11:03, Schmitz, Marco wrote:
> I am using Windows 8.1 and Cygwin64 in order to run Tesseract 3.04.
>
> Running the following command:
>
>      tesseract arbeitsunfaehigkeit.hausarzt.exp0.jpg arbeitsunfaehigkeit batch.nochop makebox
>
> results in the following output:
>
>      Tesseract Open Source OCR Engine v3.04.00 with Leptonica
>      read_params_file: Can't open makebox
>
> And this is after I fixed the output:
>
>      Tesseract Open Source OCR Engine v3.04.00 with Leptonica
>      Error opening data file C:\DEV\tesseract\Tesseract-OCR\tessdata/eng.traineddata

Are you defining TESSDATA_PREFIX ? Why ?

>      Please make sure the TESSDATA_PREFIX environment variable is set to the parent directory of your "tessdata" directory.
>      Failed loading language 'eng'
>      Tesseract couldn't load any languages!
>      Could not initialize tesseract.
>
> Using the following line in .bash_profile:
>
>      export TESSDATA_PREFIX="/cygdrive/c/DEV/cygwin64/usr/share/tessdata/"


The default should be

TESSDATA_PREFIX="/usr/share/tessdata/"

Without defining TESSDATA_PREFIX, I have

$ tesseract.exe --list-langs
List of available languages (4):
deu
deu_frak
eng
osd

and the language files are in :

$ ls /usr/share/tessdata/
configs/              eng.cube.fold    eng.cube.size 
osd.traineddata
deu.traineddata       eng.cube.lm      eng.cube.word-freq     pdf.ttf
deu_frak.traineddata  eng.cube.nn      eng.tesseract_cube.nn  tessconfigs/
eng.cube.bigrams      eng.cube.params  eng.traineddata        training/


Regards
Marco




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019