* * *

Author Topic: Flatbed scanner support on a Mac  (Read 850 times)

WildMan

  • New member
  • *
  • Posts: 11
Flatbed scanner support on a Mac
« on: June 20, 2012, 12:44:32 pm »
I’m looking for any pointers I can get about integrating flatbed scanner support in a Mac application.  Nothing fancy really, I just want to be able to be able to grab an image from a flatbed scanner and load it into a bitmap.  I tried PascalSane but didn’t have any luck with that. When I added it to my USES clause I couldn’t compile; it generated a slew of stub errors.

BigChimp

  • Hero Member
  • *****
  • Posts: 3220
    • FPCTwit twitter, CheckRide remote control and other open source projects
Re: Flatbed scanner support on a Mac
« Reply #1 on: June 21, 2012, 08:00:05 am »
Hi Wildman,

I'm interested in scanner support in FPC/Lazarus, too. Had a quick look at PascalSane earlier... which might be written for an older version of sane. If you ever get further with it, could you share your updates?

Though it's shelved right now, I'd like to write an application that connects to a remote sane server (probably using the sane network protocol), scan an image, and run that image through (perhaps post processing such as unpaper and) OCR (e.g. Tesseract), then save it as a searchable PDF (i.e. the image with the OCR text overlaid).
Finally, it should store the file name and metadata in a (Firebird) database, preferably the OCR text as well. It should allow querying the db and showing the resulting PDF/text/image.
Voila, poor man's document management system ;)

I know there are some programs for the latter parts (e.g. OCRFeeder) on Linux which I might use and I haven't written actual code for this, but I'm still interested.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including twitter/Oauth library:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads