User:Artemis gryllaki/PrototypingIII: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
Line 21: Line 21:
== OCR ==
== OCR ==


'''simple tesseract:'''<br>
'''tesseract:'''<br>
tesseract nameofpicture.png outputbase<br><br>
In command line: tesseract nameofpicture.png outputbase<br><br>


[[File:scan_source.png | 600px | thumbnail | left | Scanning a book page]]
[[File:scan_source.png | 600px | thumbnail | left | Scanning a book page]]
<br clear=all>
<br clear=all>
[[File:ocr_output.png | 600px | thumbnail | left | Output: character recognition with tesseract-ocr / styled with javascript ]]
[[File:ocr_output.png | 600px | thumbnail | left | Output: character recognition with tesseract-ocr / styled with javascript ]]
<br clear=all>
[[File:Screenshot2.png | 600px | thumbnail | left ]]
<br clear=all>
<br clear=all>

Revision as of 22:02, 8 July 2019

Publishing an “image gallery”

Imagemagick’s suite of tools includes montage which is quite flexible and useful for making a quick overview page of image.

  • mogrify
  • identify
  • convert
  • Sizing down a bunch of images

Warning: MOGRIFY MODIES THE IMAGES – ERASING THE ORIGINAL – make a copy of the images before you do this!!!

mogrify -resize 1024x *.JPG
Fixing the orientation of images
mogrify -auto-orient *.JPG
Using Montage
montage -label "%f" *.JPG \

   -shadow 
-geometry 1000x1000+100+100
-montage.caption.jpg

Using pdftk to put things together


OCR

tesseract:
In command line: tesseract nameofpicture.png outputbase

Scanning a book page


Output: character recognition with tesseract-ocr / styled with javascript


Screenshot2.png