Microsoft visual studio 2005 project files for ocropus.

135 views
Skip to first unread message

lakshmesha

unread,
Dec 18, 2007, 6:53:45 AM12/18/07
to ocropus
Hi all,
I have uploaded a new zip(ocropus.zip) file to the files section. I
was able to generate the ocrocmd.exe in visual studio.


Building Ocropus in Microsoft Visual Studio
===========================================

1) Download the ocropus from site http://code.google.com/p/ocropus/source
to C:\Ocropus_project\Ocropus.

2)External dependencies of Ocropus are
a> Tessaract -> http://code.google.com/p/tesseract-ocr/source.
b> libpng 1.2.8 -> Download link is
(http://sourceforge.net/project/
showfiles.php?group_id=23617&package_id=16183).
Download the file libpng-1.2.8.exe
c> zlib123 -> Download link is (http://sourceforge.net/project/
showfiles.php?group_id=5624). Download the file
zlib123-dll.zip
d> jpeglib -> Download link is (http://gnuwin32.sourceforge.net/
packages/jpeg.htm). Download the setup file.

3) Installing the external dependencies.
a> Tesseract: Ocropus is linked statically to tesseract. The the
project file to generate the tesseract dll has to
modified accordingly to get a static lib file. Modify the
TessDll project setting so that static library is generated.
Copy the dll and lib file to C:\Ocropus_project\Tesseract-2.01 .
Copy the Tessedata folder contents to
C:\Ocropus_project\Ocropus\Debug.

b> Libpng: Install the libpng using the setup file downloaded. Select
the install path as
C:\Ocropus_project\libpng-1.2.8-lib\. Copy the file libpng13.dll
to folder C:\Ocropus_project\Ocropus\Debug

c> jpeglib: Install the jpeglib using the setup file downloaded.
Select the install path as
C:\Ocropus_project\jpeglib\. Copy the file jpeg62.dll to folder C:
\Ocropus_project\Ocropus\Debug

d> zlib123: Install the jpeglib using the setup file downloaded.
Select the install path as
C:\Ocropus_project\zlib123-dll\. Copy the file zlib1.dll to
folder C:\Ocropus_project\Ocropus\Debug

Note: These files are always relative the to the ocropus directory.
Appropriate changes can be done if user wants
it otherwise.

4) Download the ocropus.zip file from the files section. Copy the zip
file inside to the ocropus diretory.
Extract the zip file to the same directory.

5) Use the Visual Studio project to build the project. There will be
an error regarding the version string while linking
ocrocmd.exe. Make changes to ocrocmd.cc to generate the version
string. (This has to be done manually since
version string is created by shellscript). Sometime visual studio
complains about the debug folder cannot be
created, if that is the case, remove the file named "debug"
created.

The ocrocmd.exe is created in the folder C:\Ocropus_project\Ocropus
\Debug. It is a debug version.

Cheers,
Lakshmesha

74yrs old

unread,
Dec 18, 2007, 7:43:07 AM12/18/07
to ocr...@googlegroups.com
It would be nice if the single complete package is done similar to tesseractOCR-2.01 in VB6 and VB5 so that straight away install and run the OCRPUS

On Dec 18, 2007 5:23 PM, lakshmesha < lakshm...@gmail.com> wrote:

Hi all,
 I have uploaded a new zip(ocropus.zip ) file to the files section. I

was able to generate the ocrocmd.exe in visual studio.


Building Ocropus in Microsoft Visual Studio
===========================================

1) Download the ocropus from site http://code.google.com/p/ocropus/source
to C:\Ocropus_project\Ocropus.

2)External dependencies of Ocropus are
 a> Tessaract    -> http://code.google.com/p/tesseract-ocr/source.
 b> libpng 1.2.8 -> Download link is
                         ( http://sourceforge.net/project/
showfiles.php?group_id=23617&package_id=16183
).
                         Download the file libpng-1.2.8.exe
 c> zlib123      -> Download link is ( http://sourceforge.net/project/
showfiles.php?group_id=5624
). Download the file
                         zlib123-dll.zip
 d> jpeglib      -> Download link is ( http://gnuwin32.sourceforge.net/
packages/jpeg.htm
). Download the setup file.

bright.dna

unread,
Dec 19, 2007, 11:12:10 PM12/19/07
to ocropus
Thanks Lakshmesha for the instructions and upload.
Would you be able to upload the compiled ocrocmd.exe and any compiled
dll needed by it?
I would appreciate it and I'm sure other users would find it useful.

Thanks.

On Dec 18, 6:53 am, lakshmesha <lakshmesh...@gmail.com> wrote:
> Hi all,
> I have uploaded a new zip(ocropus.zip) file to the files section. I
> was able to generate the ocrocmd.exe in visual studio.
>
> Building Ocropus in Microsoft Visual Studio
> ===========================================
>
> 1) Download the ocropus from sitehttp://code.google.com/p/ocropus/source

Christian Kofler

unread,
Dec 27, 2007, 5:22:00 AM12/27/07
to ocropus
Hi Lakshmesha,

could you please change your visual studio project file, so that
optimization is enabled at level -O2?

At the moment the resulting binary is way too slow.

Thanks,

Christian

74yrsold

unread,
Dec 29, 2007, 9:33:19 AM12/29/07
to ocropus
Yes. It would be helpful if uploaded the compiled exe along with
relevant files with commandline to be used.

lakshmesha

unread,
Dec 30, 2007, 7:29:09 PM12/30/07
to ocropus
Hi,

It is difficult to upload the executables because of the size (of the
dependent libraries and exe)
But I have uploaded a new zip(ocropus-0.1.1.zip) file in the files
pages which has optimization(O2) enabled.
I am trying hard to get a release version built (current one is a
debug version) but I have not been able to succeed yet.
Release version requires all the libraries (libpng and tesseract lib)
to be rebuilt in release version.
I am not able to get a valid release library to the tesseract. The
release version on tesseract gives linker error when linked with the
ocropus
saying symbol ntohl is not found.
If someone has any idea how to solve this please help.

Thanks,
Lakshmesha

lakshmesha

unread,
Dec 31, 2007, 11:43:59 AM12/31/07
to ocropus
Hi all,
I have uploaded new zip file, ocropus.zip. This file has to be copied
in to the ocropus folder and extracted inside ocropus folder.
Now it can be built in both debug and release mode. Release mode is
optimized, debug symbols are removed. Release mode is faster than the
debug mode.

Note: I was able to get rid of the problem mentioned previously by
linking the library Ws2_32.lib while building the tesseract.

Cheers,
Lakshmesha

Kim

unread,
Jun 25, 2013, 11:23:37 PM6/25/13
to ocr...@googlegroups.com
I can't find file section. That file is already deleted?

2007년 12월 18일 화요일 오후 8시 53분 45초 UTC+9, lakshmesha 님의 말:
Reply all
Reply to author
Forward
0 new messages