{"id":13415524,"url":"https://github.com/jkrall/ocropus","last_synced_at":"2025-10-11T19:22:18.850Z","repository":{"id":66471679,"uuid":"581605","full_name":"jkrall/ocropus","owner":"jkrall","description":"OSX-buildable fork of ocropus 0.4","archived":false,"fork":false,"pushed_at":"2011-09-30T15:25:11.000Z","size":15704,"stargazers_count":17,"open_issues_count":3,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-06T07:40:47.008Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jkrall.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-03-27T00:42:28.000Z","updated_at":"2022-06-14T01:17:47.000Z","dependencies_parsed_at":"2023-02-20T05:00:25.385Z","dependency_job_id":null,"html_url":"https://github.com/jkrall/ocropus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jkrall/ocropus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrall%2Focropus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrall%2Focropus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrall%2Focropus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrall%2Focropus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jkrall","download_url":"https://codeload.github.com/jkrall/ocropus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jkrall%2Focropus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008457,"owners_count":26084460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T21:00:50.016Z","updated_at":"2025-10-11T19:22:18.809Z","avatar_url":"https://github.com/jkrall.png","language":"C++","funding_links":[],"categories":["1. \u003ca name='Software'\u003e\u003c/a\u003eSoftware","Software"],"sub_categories":["1.1. \u003ca name='OCRengines'\u003e\u003c/a\u003eOCR engines","OCR engines"],"readme":"h1. Ocropus 0.4 - Fork for OSX 10.6.2\n\nThis repo is a clone of the original ocropus 0.4 source, found here:  http://code.google.com/p/ocropus/downloads/list\n\nI've applied the various patches and fixes describe below, so that the source can be built more easily.\n(why the original tree still hasn't been updated with these fixes... I have no idea.)\n\nThis fork is purely for my own use, and is NOT official.  Please contribute to the original repository, not this one.\n\nh2. Instructions for building this repo\n\n# sudo port install jpeg png tiff\n# cd tesseract\n# make\n# sudo make install\n# sudo cp -r tessdata /usr/local/share/.\n# cd ../iulib\n# make\n# sudo make install\n# cd ../ocropus\n# make\n# sudo make install\n# gunzip data/models/default.fst.gz\n# sudo cp -r data/* /usr/local/share/ocropus/.\n\n\n\nh1. Original instructions for getting original source to build on OSX\n\n\nCompiling ocropus on Mac OS X\n\nThe ocropus code is ready to work under Mac OS X.\n\nSince Linux is the main target platform, Mac OS X support cannot be guaranteed for every svn revision.\n\nPlease report OS X related issues to the list or add a report with patch if possible to the issue tracker.\n\nPlease be aware that cross-platform issues will not have a high priority before the 1.0 Release.\n\n\nExternal software\n\nIf you want to use fink or port for installing some external dependencies, please consider the following:\n\n    * You can use either fink or port to install libpng libjpeg and libtiff\n    * For jam you need to use port, it is not available via fink.\n    * Instead of plain ./configure you might want to run:\n          o  CPPFLAGS='-I/sw/include' LDFLAGS='-L/sw/lib' ./configure\n\n\n0.4 with configure/make on OS X 10.5\n\nI tried using \"configure\" and \"make\" to build and install 0.4 (from the tar file). What's more, I installed it to \"/local\", not \"/usr/local/\", and that's where my prerequisite libraries were (I had libpng, libjpeg, and leptonica installed). Here's what I ran into.\n\nFirst of all, I needed Xcode, so I downloaded 3.1, and installed it. Next, I needed to tell the configure process about my system. I set the following environment variables (I'm using csh, if the syntax looks odd):\n\n% setenv CPPFLAGS -I/local/include\n% setenv LDFLAGS -L/local/lib\n% setenv CXX /usr/bin/g++-4.2\n\nNext step is to install libgsl. I downloaded it, configured it, built it, and installed it in /local.\n\nI then cd'd to the \"iulib\" subdir. The first thing you have to do there is to to run \"aclocal\", to make the automake files compatible with the OS version: % aclocal %\n\nThen, you have to edit genAM.py to add some missing subdirs. Find all instances of\n\n-I$(srcdir)/imglib\n\nand change it to\n\n-I$(srcdir)/imglib -I$(srcdir)/imgbits -I$(srcdir)/vidio -I$(srcdir)/utils\n\nNow, you can run \"build\" to configure your system:\n\n./build --prefix=/local --with-iulib=/local --without-SDL --without-tesseract --without-leptonica\n\nThis says that I want to install in \"/local\", that I don't have SDL installed, that I don't want to try using either tesseract or leptonica (trying to use either tickles various bugs).\n\nNext, you need to patch the sources to remove an issue. See issue 169 for the patch, and apply it.\n\nNow you can build iulib. Type\n\n% make\n% make install\n\nYou may need to say \"sudo make install\", depending on how your prefix directory is configured.\n\nNow for ocropus proper. cd up and over to ../ocropus. Again, run \"aclocal\" to re-build the automake stuff. After that, I configured with\n\n./build --prefix=/local --with-iulib=/local --without-SDL --without-tesseract --without-leptonica --without-OpenMP\n\nmeaning, \"iulib is installed in /local, don't look for SDL, don't try to use tesseract or leptonica or OpenMP\". Using OpenMP seems to cause various crashes.\n\nAgain, you have to apply a fix to the code before building. See issue 158 for the fix.\n\nNow you can build ocropus proper:\n\n% make\n% make install\n\nWe're not quite there yet. Now cd to your installation directory, then to share/ocropus/models. You need to unpack the default fst model:\n\n% gunzip default.fst.gz\n\nAnd you have to add a symlink so that ocropus sees the models:\n\n% ln -s /local/share/ocropus /usr/local/share/ocropus\n\n\nNow you should be in position to run ocropus. cd back to the directory where you built ocropus (not the distribution directory, but the \"ocropus\" subdir of the distribution directory). Try this:\n\n% /local/bin/ocropus page data/testimages/simple.png\n\nYou should see this:\n\nThis is a lot of 1 2 point text to test the\nocr code and see if it works on all types\nof file format.\nThe quick brown dog jumped over the\nlazy fox. The quick brown dog jumped\nover the lazy fox. The quick brown dog\njumped over the lazy fox. The quick\nbrown dog jumped over the lazy fox.\n\n\nThat's it!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkrall%2Focropus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjkrall%2Focropus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjkrall%2Focropus/lists"}