SCN(1) — NEWS-OS Programmer’s Manual
NAME
scn − image reader drive program
SYNOPSIS
scn [ options... ] [ > outfile ]
DESCRIPSION
scn is a command to read images from image readers NWP-534, NWP-540, NWP-544, NWP-548, NWP-5601+NWP-5602 according to the specified mode and to write on the standard output.
OPTIONS
−ar[ea] N
specifies the area of image. N should be selected from the list below. Default is A4 size. (NWP-544’s default is A3.) Non standard size can be used by specifying 0 here and use −wi option.
Nsize
0with −wi option
1A4
2A5∗3
3B5
4B6∗1
5Envelope∗1
6Postcard∗1
7A6∗1
10Mini∗1
11Letter
12Letter Landscape ∗2
13Ledger∗2
14Legal∗2
15A3∗2
16A4 Landscape ∗2
17B4∗2
18B5 Landscape ∗2
99Not specified (initial size)
∗1 Not supported with NWP-540.
∗2 Valid only with NWP-544.
∗3 Not supported with NWP-544.
−wi[ndow] sx sy wd ht
specify the positions and sizes of the image to be read in. It is used with −ar 0 option.
sxstart opint X coordinate
systart opint Y coordinate
wdwidth
htheight
−res[olution] res
specifies the resolution of image reading. res is either 400, 300(default), 200, 150, 100 or 75 (dpi.) 400 is invalid for NWP-534.
−mo[de] N
specifies the mode of image reading.
N function
0B/W (initial setting)
1dither pattern No.1∗4∗7
2dither pattern No.2∗4∗7
3dither pattern No.3∗4∗7
4dither pattern No.4∗1∗4∗7
5dither pattern No.5∗1∗4∗7
6dither pattern No.6∗1∗4∗7
7dither pattern No.7∗1∗2∗4∗6∗7
9gray scale(4 bits)∗2∗4∗7
10full color(24 bits)∗3
12gray scale(8 bits)∗3
13photo fine(dither)∗5
14high contrast∗5
∗1 Not supported with NWP-548.
∗2 Not supported with NWP-540.
∗3 Valid only with NWP-548//5601+5602.
∗4 Not supported with NWP-544.
∗5 Valid only with NWP-544.
∗6 Test pattern for NWP-534.
∗7 Not supported with NWP-5601+5602.
−noae Inhibits AE (Automatic Exposure) function. For monochrome image readers (NWP-534/540/544), −li option is invalid unless −noae is used. −noae is invalid for a color
−li[ght] num
specifies the brightness of read image. Default brightness is 0. For monochrome image readers (NWP-534/540/544), this option is invalid unless −noae is used. num should be selected from the list below.
B/Wdithergrayscalecolor
NWP-534−7 - 7−2,0,2no adjustmentno reading
NWP-540−7 - 7−1,0,1no readingno reading
NWP-544−8 - 8−8 - 8no readingno reading
NWP-548−3 - 3−3 - 3−3 - 3−3 - 3
NWP-5601no readingno reading−5 - 5−5 - 5
−sc[ale] num
specifies magnification ratio if it should be changed. It should be 50% - 200%. Default value is 100% (no size change.)
−Sc[ale] sx sy
specify magnification ratios if they are to be changed. They should be 50% - 200%. Default value is 100% (no size change.)
−mi[rror]
Mirror mode image reading.
−rev[erse]
Reverse mode image reading.
−fo[rmat] type
specifies the format of output file. It should be either xwd, scn, tiff or cdff. The default format is the raw data format without any header.
−h[eader]
Output image data is in scn format.
This option will not be supported by next version of scn. Use −format scn.
−v[erbose]
Displays messages.
−dev[ice] dev_file
specifies the device file of the image reader. The default device file for monochrome image readers NWP-534/540 is /dev/ir. The default device file for color image reader NWP-548/5601+5602 is /dev/scsi06. The default device file for A3 image reader NWP-544 is /dev/ib.
−help Writes description of usage on the standard error output.
The options below are for segment. They are not supported for color image reader (NWP-548) and A3 image reader (NWP-544.)
−se[gment] sx sy wd ht
specify the positions and sizes of the segment.
sxX coordinate
syY coordinate
wdwidth of segment
htheight of segment
−Mo[de] imode omode
specify reading mode of inside and outside of the segment. imode and omode are selected from the list below.
imode omode function
0B/W (default)
1dither pattern No.1
2dither pattern No.2
3dither pattern No.3
4dither pattern No.4
5dither pattern No.5
6dither pattern No.6
7dither pattern No.7 ∗1
11White
∗1 Not supported with NWP-540.
−Rev[erse] irev orev
specify positive/negative mode of inside or outside of the segment. irev and orev are either 0 (positive) or 1 (negative.)
EXIT CODE
The exit codes of scn are listed below.
EXIT CODE definition
0Normal.
1Image reader malfunction.
2Image data is too large.
3Specified option(s) not supported.
4Image reader is busy.
NOTES
The color image reader NWP-548 timeouts, if there is no access for a while during image reading. This may be avoided by reducing the load of the host.
When scanning is stopped on color printer image reader NWP-5601 + NWP-5602, rescan the image after confirming onL light on NWP-5601 is turned off.
For monochrome image readers, there are some limitations of the image data size which can be read: 2 Mbytes for NWP-534 and 3 Mbytes for NWP-540.
FILES
/dev/scsi06
/dev/ir
/dev/ib
SEE ALSO
COPYRIGHT
Copyright (c) 1990, 1991, 1992, 1993 Sony Corporation
NEWS-OSRelease 4.2.1R