Блогът на Фил

Nothing to see here, move along
  • rss
  • Home
  • About
  • profiles

OCR в Linux на PDF

felipe

Бях писал за OCR и Линукс, но сега ми се наложи да разпозная pdf, който съдържа картинки на текст. Тъй като tesseract разпознава отделни tif-ове, как да направим магията?
Отговорът намерих след 5 секунди в Google –

http://www.linuxforums.org/forum/art-imaging-linux/58248-pdf-tiff-any-other-image-type.html

Където четем следното:
try using gs. I do this quite a bit and on a large scale. the command I use is:
gs -SDEVICE=tiffg4 -r600x600 -sPAPERSIZE=letter -sOutputFile={output folder}/{basename}_%04d.tif -dNOPAUSE -dBATCH — {pdf filename}

you can change the -SDEVICE to jpeg if you are dealing with color, the -r is resolution ( I think default is 72dpi) the %04d.tiff appends the tifs with a 4 digit sequence starting with 0001. the -dNOPAUSE -dBATCH are the options that you use for multipage pdf to a batch of tiffs. (i.e. a 100 page pdf will get you 100 tif files)
За мен сработи. Гениално!

Share
Categories
Uncategorized
Tags
Linux
Comments rss
Comments rss
Trackback
Trackback

« Къде живеем? ББ и СС »

Leave a Reply

Click here to cancel reply.

Opportunity's Selfie

 
NASA's Mars Rover Opportunity catches its own late-afternoon shadow in this dramatically lit view eastward across Endeavour Crater on Mars. The rover used the panoramic camera (Pancam) between about 4:30 and 5:00 p.m. local Mars time to record images taken through different filters and combined into this mosaic view. Most of the component images were recorded during the 2,888th Martian day, or sol, of Opportunity's work on Mars (March 9, 2012). At that time, Opportunity was spending low-solar-energy weeks of the Martian winter at the Greeley Haven outcrop on the Cape York segment of Endeavour's western rim. In order to give the mosaic a rectangular aspect, some small parts of the edges of the mosaic and sky were filled in with parts of an image acquired earlier as part of a 360-degree panorama from the same location. Opportunity has been studying the western rim of Endeavour Crater since arriving there in August 2011. This crater spans 14 miles (22 kilometers) in diameter, or about the same area as the city of Seattle. This is more than 20 times wider than Victoria Crater, the largest impact crater that Opportunity had previously examined. The interior basin of Endeavour is in the upper half of this view. The mosaic combines about a dozen images taken through Pancam filters centered on wavelengths of 753 nanometers (near infrared), 535 nanometers (green) and 432 nanometers (violet). The view is presented in false color to make some differences between materials easier to see, such as the dark sandy ripples and dunes on the crater's distant floor. Image credit: NASA/JPL-Caltech/Cornell/Arizona State Univ.
Read More

Случаен цитат

The dog is the only animal that has seen his god.

I am reading now

Cryptonomicon
635 / Pages
Cryptonomicon

 

September 2008
M T W T F S S
« Aug   Oct »
1234567
891011121314
15161718192021
22232425262728
2930  

чурулик

  • Писна ми от тия земетресения. Това последното го усетих (4.3) http://t.co/dWPgP0om
  • Абе каква е тая буря, снощи земетресение, сега потоп със светкавици... Подготовката за извънземното нашествие протича нормално :-)
  • more shaking

Blogroll

  • Блогът на Дино
  • Блогът на Камен
  • Блогът на Краси
  • Търсене в интернет

User-submitted Links

No recommended links yet. Add one?

  • Newest
  • Hot
  • Current
  • Top ranked

Spam

7,816
SPAM BLOCKED
rss Comments rss valid xhtml 1.1 design by jide powered by Wordpress get firefox