From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53330 invoked by alias); 21 Sep 2015 14:14:48 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 53320 invoked by uid 89); 21 Sep 2015 14:14:47 -0000 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 Received: from mail-wi0-f169.google.com (HELO mail-wi0-f169.google.com) (209.85.212.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Mon, 21 Sep 2015 14:14:46 +0000 Received: by wicfx3 with SMTP id fx3so148146467wic.1 for ; Mon, 21 Sep 2015 07:14:43 -0700 (PDT) X-Received: by 10.194.184.136 with SMTP id eu8mr25774990wjc.151.1442844883603; Mon, 21 Sep 2015 07:14:43 -0700 (PDT) Received: from [172.21.188.129] ([62.154.173.198]) by smtp.googlemail.com with ESMTPSA id d8sm13982319wiy.1.2015.09.21.07.14.42 for (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Sep 2015 07:14:43 -0700 (PDT) Subject: Re: Tesseract 3.04 - Cygwin64 - Windows 8.1 - Can't open makebox To: cygwin@cygwin.com References: From: Marco Atzeri Message-ID: <560010D0.4010903@gmail.com> Date: Mon, 21 Sep 2015 14:14:00 -0000 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: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-09/txt/msg00305.txt.bz2 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