Um OCRopus zu Installieren benötigt man drei Dinge: Ein Linuxsystem, OCRopus und eine Pythonumgebung mit den abhängigen Paketen.
Linux
Wenn man als Betriebssystem Windows oder Mac OS nutzt, ist es etwas unverhältnismäßig, allein wegen OCRopus Linux als Zweit- oder sogar Hauptsystem zu installieren. Am besten ist die Verwendung einer VirtualBox und des Linux-Derivats Ubuntu. Somit muss man nicht die ganze Festplattenpartitionierung umbauen und kann sich in einem geschützten Raum austoben. Das Einrichten einer virtuellen Maschine wird hier erklärt.
OCRopus
Am besten man erstellt sich in seinem Home-Verzeichnis einen Ordner build und speichert das Paket darin. OCRopus kann man sich hier von GitHub laden und dann einfach im Ordner build entpacken.
Python-Umgebung
Ocropus nutzt Python 2.7 und ist abhängig von den Paketen scipy, matplotlib und lxml. In der Dokumentation wird auch noch numpy und pil erwähnt, deswegen habe ich die beiden Pakete in die PACKAGES-Datei mit hineingeschrieben.
Jetzt kann man mit strg+alt+t die Konsole öffnen und zum Ocropus-Ordner navigieren. Mit
cd build/ocropy-master/
wechselt man in das Verzeichnis. Man kann die Tabulatortaste benutzen um Verzeichnisnamen automatisch zu vervollständigen. Im Verzeichnis angekommen, folgt man den Installationsanordnungen, also
sudo apt-get install $(cat PACKAGES)
Damit werden die Pakete installiert, die wir vorher in der PACKAGES-Datei geschrieben haben. Die Liste ist vielleicht etwas länger, da auch alle abhängigen Pakete gezogen werden.
Jetzt holt man sich noch zwei Erkennungsmodelle, eins für normale Schrift und eins für Fraktur:
wget -nd http://www.tmbdev.net/en-default.pyrnn.gz
wget -nd http://tmbdev.net/ocropy/fraktur.pyrnn.gz
Und verschiebt sie in das Verzeichnis models/
mv en-default.pyrnn.gz fraktur.pyrnn.gz models/
Jetzt kann man OCRopus installieren.
python setup.py install
Die Erkennungsmodelle aus dem Ordner ~/build/ocropus-master/models/ (die ~ meint das Home-Verzeichnis) werden bei der Installation nach /usr/local/share/ocropus/ kopiert. Entweder man kopiert neue Modelle gleich dahin oder speichert sie im ~/build/ocropus-master/models/ und führt das Setup wieder durch. Dabei wird dann alles neu geschrieben.
Um zu testen, ob alles geklappt hat, kann man den run-test durchführen:
./run-test
Wenn die Warnung von matplotlib stört, kann man diese zwei Befehle ausprobieren:
sudo rm -rf ~/.cache/fontconfig
sudo rm -rf ~/.cache/matplotlib
I’m writing on this topic these days, keonhacai, but I have stopped writing because there is no reference material. Then I accidentally found your article. I can refer to a variety of materials, so I think the work I was preparing will work! Thank you for your efforts.
I was very pleased to find this site.
온라인카지노
„This is a good post.
검증카지노
If you have hepatic insufficiency, the prescribing doctor should carefully consider your individual characteristics and make a decision.비아그라 가격
Great Blog
www vegus168
Which is some inspirational stuff. Never knew that opinions might be this varied. Thank you for all the enthusiasm to provide such helpful information here.베트남 황제투어 It helped me a lot. If you have time, I hope you come to my site and share your opinions. Have a nice day.
I’m very curious about how you write such a good article. Are you an expert on this subject? I think so. Thank you again for allowing me to read these posts, and have a nice day today. Thank you. 호치민 가라오케
I am Duhast MIst. working for PGSLOT as PR consultant. With more than 6 years experience in PR and Digital Industry
helping teams to achieve goals by streamilining the process. Read more PG SLOT
Very nice put up, i certainly love this website, keep on it. 하노이 황제투어 It touched me a lot. I would love to hear your opinion on my site. Please come to the site I run once and leave a comment. Thank you.
Hey, I lately came to this internet site and I’ve visited it daily because that so that you can remain up to date. Maintain up the great function. 다낭 마사지
After I read your article It has a very interesting substance. And I will come and read every day.
Which is some inspirational stuff. Never knew that opinions might be this varied. Thank you for all the enthusiasm to provide such helpful information here. 호치민 황제투어
Great Blog
vegus168 member
Thank you very much. Can I refer to your post on my website? Your post touched me a lot and helped me a lot. If you have any questions, please visit my site and read what kind of posts I am posting. I am sure it will be interesting. 하노이 가라오케
Great Blog. vegus168 member
Everything you bring to the public is amazing.
It’s a pretty interesting post. I happened to read your article and it’s so interesting that I can’t get out of here. Even the other posts you wrote were enough to interest me. I wanted this information. Your blog meets my needs considerably. Thank you for writing a good article. 사설토토
No one would have waited for your post more than me. I’ve been watching your blog with great interest. I read all your posts with great interest. I’m so glad the new article finally came up. I hope to write about my interests. There is a good topic you can write on my blog, so please check it out. 메이저놀이터
I found your blog while searching for the information I need. At first, I thought it was simply interesting, but I changed my mind when I read the other posts you wrote. You have a brilliant idea. I like to read your article. 스포츠토토사이트
I found your blog while searching for the information I need. At first, I thought it was simply interesting, but I changed my mind when I read the other posts you wrote. You have a brilliant idea. I like to read your article. 스포츠토토사이트
it is time to be happy. I’ve read this post and if I could I wish to suggest you few interesting things or advice파워맨