![]() |
fScanX Details |
|
|
OverviewThe primary component of the fScanX package is the A TWAIN driver is planned for a future 1.x release. Installation NotesThe software requires at least OS X 10.3.9, but it does not check the OS version and provide a proper error message. If you run it on an older version, it will probably unexpectedly quit. The installer puts the GUI application, fScanX, into the Applications folder. This application is self-contained and can just be dragged to any other location on your hard disk if you wish. The user interface is self-explanatory: a few options for scan type and size, and a scan button that when clicked asks you to choose a location and name for the file. The installer puts the command-line utility The installer installs the The installer does not install the source for the GUI application. That is in the "fScanX project" folder, and if you want to look at it you can copy it where you want it. Please note that it was built with XCode 3.1 and will not work with old versions of Apple's development tools. XCode is available from Apple as a free download. Command-Line UtilityThe command line utility takes a number of options, followed by a file name. The options all have reasonable defaults: monochrome scanning, 300dpi, 8.5x11 inch page with no margins, multi-page TIFF output. So the command: fscanx myfile.tif will scan all the pages on the scanner's document feeder and create
or:
The rest of the examples will assume the utility is on the search path, as is the case with the default location Note that trying the command
Command-Line ExamplesThe output above is a complete list of the options; following are some examples to help you figure out the options. This command is the same as using the default options, they're just spelled out: This command would be good to scan a form with gray backgrounds: This command would be good to scan a form with colored text and/or backgrounds: The threshold option is good for adjusting for light or dark originals when scanning in black and white. For dark originals try lower values and for light originals try higher values. The despeckle option controls how aggressively the software tries to remove "specks", isolated pixels not part of larger groups. A setting of 0 doesn't remove any specks, a setting of 100 removes any pixel that's not completely surrounded by adjacent pixels. These two settings do interact. To deal with problematic originals, try a 2-step process. First adjust the threshold until the density of text is correct, that is until the thickness of strokes of letters is not too thin (look at letters "l" and "t") but small interior spaces (as in "e") are not filled in. Second, adjust the despeckling to reduce specks. Note that for a good quality original on clean paper, the despeckling settings will not make a visible difference. For really bad originals, the best thing to do may be to scan to 2- 3- or 4-bit grayscale. The contrast stretch options, The default reduction of output to 6-bit gray or 6-6-6 rgb works well for forms. This provides enough colors to match form colors well enough, and dropping the less significant bits reduces noise that would otherwise show up as inconsistent shades. It also results in files that compress better. Stretching light and dark grays to white and black and throwing away half the color information produces poor results for photographs. The Fuji scanners are document scanners and documents are the focus of this software, but there are options that won't mess up photos. This would be better to scan a black & white photograph: This would be better to scan a color photograph, and would type the file to be opened by GraphicConverter: This would scan into multiple files, 1 per page, named test1.tiff and so on: The The Printing NotesScaling scanned images by non-integral amounts during printing produces ugly results. In other words scaling a 600dpi image to 50% to print on a 300dpi printer is fine, but scaling an image down by 10% to fit into the printable margins produces an ugly jagged result. The Preview application in OS X will scale scans to "fit" according to its own notions, and there does not seem to be any combination of preference settings that will prevent this. Many other applications have this problem, so if you print scans and they look bad it might be an issue with scaling. GraphicConverter can be made to print a scanned image without scaling, more easily in some versions than others. I use it for my quality checks. Note that with many recent Macs it is included in the software Apple ships. Adobe Reader has an option to not perform any scaling when printing, and this seems to be very reliable about not messing up scanned images. Compression NotesMonochrome scans are compressed using CCITT Group 4 (fax) compression. This offers about as much compression as can be had, and is lossless. Gray and color scans are compressed using lossless compression. The TIFF format only supports LZW and JPEG and compression for gray and color images. JPEG is lossy (using JPEG without loss typically provides very little compression). I don't think it's a good idea for me to discard image data right out of the scanner; if your originals and your application are a good match for high-ratio lossy JPEG compression, you can certainly compress the files but I want to provide the option of keeping all the data--so I use LZW for TIFF files with gray and color scans. The PDF format supports flate (zlib) compression in addition to LZW and JPEG. Flate is lossless and usually provides more compression than LZW, so this is what I use for gray and color images in PDF. For monochrome, I use CCITT Group 4 just as with TIFF so PDF files are very nearly the same size as TIFF, only about 2% larger or less because of some overhead in PDF. (I have discovered that most PDF utilities available use less effective compression options for monochrome scans and thus typically produce files about twice as large.) The PNG format is lossless and often provides good compression ratios on scanned forms (thanks in part to the color reduction), but does not support multiple pages in a single file. Using bzip2 on TIFF files without compression gives even better, still lossless, compression but the output is not a format recognized by graphic programs so you would have to decompress the files before opening them. So in summary, for gray and color scans I give you a fairly large file with all the data, and let you decide whether or not to perform some post-scanning conversion to reduce the file size. FileMaker NotesfScanX can easily be integrated with FileMaker using FileMaker's AppleScript capabilities. There are 2 basic approaches to take, each with its own tradeoffs. You can use the AppleScript You can 4th Dimension NotesIntegration with 4D is very easy. 4D 2004 should be able to use the command-line utility directly with the LAUNCH EXTERNAL PROCESS command. Earlier versions can use the plug-in Scripting Tools from Pluggers Software. Scanned images can be displayed using QPix from Escape. OCR NotesI've done some light testing with Readiris 9.0. I could not find documentation on its AppleScript features, but through inspecting its AppleScript dictionary and a bit of trial and error developed the following example script:
OmniPage Pro X was also pretty easy. The same command to scan the file, with slightly different vocabulary to perform the OCR, and OmniPage automatically names the file:
Notes: Command-line utilities such as Version History2009-10-24 version 1.3.1: Added "Licenses & Scanners" menu item to let users review their registrations. Added --flatbed and --capabilities to the command line in preparation for flatbed support. 2009-10-22 version 1.3: Added ability to append to existing files. Used this to make it easy to scan larger files and to recover from paper feed failures. Added --append to command-line utility, and new return codes for failure to open/create file and paper feed failures. Stopped outputting partial pages in case of paper feed failures. Fixed a bug where some errors from deep inside the scanning code were not reported to the user. 2009-10-21 version 1.2.4: Fixed a bug with activation codes related to Unicode character composition. 2009-09-29 version 1.2.3: Fixed a bug scanning black-and-white PDFs. Fixed behavior of "Detect Paper Length" checkbox. Forced correction of kext privileges installed by earlier versions for compatibility with 10.6. 2009-09-24 version 1.2.2: Fixed a bug that would cause a crash scanning large (about 300 pages) black-and-white PDFs. 2009-09-21 version 1.2.1b: Corrected installer for 10.6. 2009-05-26 version 1.2.1: Fixes for minor glitches with activation codes. 2009-05-26 version 1.2: Support for the fi-5350C2 and fi-6670 scanners. Single build, with activation codes to unlock support for different levels of scanners. Official release of support for the fi-6140. Replacement of confusing "landscape" checkbox with icons for selection of paper orientation. Fixed black point and white point settings to work correctly for both grayscale and color scans. Support for double-feed detection options. Option to automatically open scans in Preview as they are completed. Command-line functions to enumerate all attached scanners, and to select a specific scanner per job. 2008-08-15 version 1.1: Support for the fi-6130 scanner; Universal Binary for native operation on Intel-based Macs; support for length detection; support for oversampling; revised user interface for easier changing of paper sizes & landscape printing, and easy re-scanning. Support for the fi-6140 scanner in the level 2 (more expensive) version. 2006-07-20 version 1.0.8: Support for the fi-5120c scanner. Fix error where choice of PDF format would not be saved across launches. Fix error where metric input of sizes was inappropriately limited. Finally remember to add new scanner models to FujiScannerDontSeize.kext to get rid of the 1-2 second pause at the beginning of scans. Abandon all attemps to support 10.2. Complete move to XCode in preparation for Universal Binary version. 2005-05-20 version 1.0.7: Fix threshold, despeckle black level and white level options. Enable controls correctly at startup after loading saved parameters. Move some of the components from CodeWarrior to XCode in preparation for Universal Binary version. (Distributed only to early adopters; never announced for general release.) 2005-05-17 version 1.0.6: No changes were required for Tiger compatibility, so I believe all versions of fScanX will be compatible, but this is the only one tested and supported under Tiger. Support for long document scanning, using the new 2005-03-12 version 1.0.5: Support for the fi-4120C2 scanner with USB 2. 2005-03-01 version 1.0.4: Support for duplex scanning. Option to output PDF files in addition to TIFF. Compression (lossless, zlib) of grayscale and color scans. Modest improvement in throughput of monochrome scans at 300dpi and lower resolutions. 2004-11-14 version 1.0.3: Added images-per-file option to allow scanning into multiple files. Also added options to GUI utility to display the command line corresponding to the selected options and/or put the command on the clipboard. 2004-09-19 version 1.0.2: Fixed bug that a scan width of exactly 8.5 inches would be reported as out of range. Added section on integration with OCR to this file. 2004-09-18 version 1.0.1: Fixed problem that caused banding in low-resolution (< 300dpi) monochrome scans. Added control over despeckle factor to command-line. Made command line report many errors in options, rather than just silently substituting default values. Added control over threshold, despeckle, black point, and white point to GUI. Added to GUI ability to view or put on clipboard the command built from the options specified. Added brief comment on integration with 4th Dimension to this file. 2004-09-07 version 1.0: First public release. |
© 1996-2010 Scott Ribe. |