Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 14 of 23

PowerScan 7000 2D Imager Product Reference Guide: Imaging Commands

Pages 119 to 130 of 204, from PowerScan 7000 2D Imager Product Reference Guide

The original document is the PDF (3.6 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Datalogic 7000 (P70) and PSC 7000 (P70)

Page 119

Chapter 7

Imaging Commands The imager can be used as a digital camera for capturing, manipulating, and transferring images. Imaging Commands with their modifiers send imaging commands to the imager on a single-use basis, and take effect for the next subsequent image capture. Once that capture is complete, the imager reverts to its imaging default settings. If you wish to change a default setting, you must use the serial default command (see Imaging Default Commands on page 10-24). When the serial default command is used, that selection becomes the new default setting for the imager.

Image Snap - IMGSNP An image is taken whenever the trigger of the imager is pressed, or when the Image Snap (IMGSNP) command is processed. Image Snap is the command processor for image capture, or taking a picture. The image snap command has many different modifiers that can be used to change the look of the image in memory. Modifiers always begin with numbers and end with a letter (case insensitive). Any number of modifiers may be appended to the IMGSNP command. For example, you can use the following command to snap an image, increase the gain, and have the beeper sound once the snap is complete: IMGSNP2G1B

Product Reference Guide

7-1

Page 120

Imaging Commands

IMGSNP Modifiers P - Imaging Style: Sets the Image Snap style. 0P Decoding Style. This is similar to the current format for decoding, however, this processing allows a few frames to be taken until the exposure parameters are met. Then the last frame is available for further use. 1P Photo Style (default). This attempts to mimic a simple digital camera, and results in a visually optimized image. 2P Manual Style. This is an advanced style, and should not normally be used. It allows you the most freedom to set up the imager, and has no auto-exposure. B - Beeper: Causes a beep to sound after an image is snapped. 0B No beep (default) 1B Sounds a beep when the image is captured, notifying the user that the imager can be moved. E - Exposure: This allows you to set the exposure time. Units are 127 microseconds. Exposure is used in Manual Style only. (Default = 7874) nE Range: 0 - 7874 G - Gain: This modifier boosts the signal and multiplies the pixel value. 1G No gain (default) 2G Medium gain 4G Heavy gain 8G Maximum gain D - Delta for Acceptance: This sets the allowable range for the white value setting (see W - Target White Value). Delta is only available when using Photo Style. (Default = 25)

7-2

PowerScan® 7000 2D

Page 121

Image Snap - IMGSNP nD Range: 0 - 255 L - LED State: Determines if the LEDs should be on or off, and when. Ambient illumination (0L) is preferred for taking pictures of color documents, such as ID cards, especially when the imager is in a stand. LED illumination (1L) is preferred when the imager is hand held. LED State is not available when using Decoding Style. 0L LEDs off (default) 1L LEDs on T - Wait for Trigger: Waits for a hardware trigger pull before taking the image. 0T Takes image immediately (default) 1T Waits for a trigger pull, then takes the image U - Update Tries: The maximum number of frames the imager should take to reach the Delta for Acceptance. Update Tries is only available when using Photo Style. (Default = 6) nU Range: 0 - 10 W - Target White Value: Sets the target for the median grayscale value in the captured image. For capturing close-up images of high contrast documents, a lower setting, such as 75, is recommended. Higher settings result in longer exposure times and brighter images, but if the setting is too high, the image may be overexposed. Target White Value is only available when using Photo Style. (Default = 125) nW Range: 0 - 255 % - Target Set Point Percentage: Sets the target point for the light and dark values in the captured image. A setting of 75% means 75% of the pixels are at or below the target white value, and 25% of the pixels are above the target white value. Altering this setting from the default is not recommended under normal circumstances. To alter grayscale values, Target White Value should be used. (Default = 50) n% Range: 1 - 99

Product Reference Guide

7-3

Page 122

Imaging Commands

Image Ship - IMGSHP An image is taken whenever the trigger of the unit is pressed, or when the Image Snap (IMGSNP) command is processed. The last image is always stored in memory. You may “ship” the image by using the IMGSHP command. The image ship command has many different modifiers that can be used to change the look of the image output by the scanner. Modifiers affect the image that is transmitted, but do not affect the image in memory. Modifiers always begin with numbers and end with a letter (case insensitive). Any number of modifiers may be appended to the IMGSHP command. For example, you can use the following command to ship a bitmap image with gamma correction and document image filtering: IMGSHP8F75K26U

IMGSHP Modifiers A - Infinity Filter: Enhances pictures taken from very long distances (greater than 10 feet or 3 m). 0A Infinity filter off (default) 1A Infinity filter on C - Compensation: Flattens the image to account for variations in illumination across the image. 0C Compensation disabled (default) 1C Compensation enabled D - Pixel Depth: Indicates the number of bits per pixel in the transmitted image (KIM or BMP format only). 8D 8 bits per pixel, grayscale image (default) 1D 1 bit per pixel, black and white image

7-4

PowerScan® 7000 2D

Page 123

Image Ship - IMGSHP

E - Edge Sharpen: Causes the transmitted image to be convolved with an edge sharpening filter. Entering a 23E gives the sharpest edges, but also increases noise in the image. 0E Don’t sharpen image (default) 14E Apply edge sharpen for typical image ne

Apply edge sharpen using strength n (n = 1-24)

F - File Format: Indicates the desired format for the image. 0F KIM format 1F TIFF binary 2F TIFF binary group 4, compressed 3F TIFF grayscale 4F Uncompressed binary (upper left to lower right, 1 pixel/bit, 0 padded end of line) 5F Uncompressed grayscale (upper left to lower right, bitmap format) 6F JPEG image (default) 8F BMP format (lower right to upper left, uncompressed) H - Histogram Stretch: Increases the contrast of the transmitted image. Not available with some image formats. 0H No stretch (default) 1H Histogram stretch I - Invert Image: Used to rotate the image around the X or Y axis in fixed mount applications where the imager is mounted upside down. 1

IXInvert around the X axis (flips picture upside down)

1

IYInvert around the Y axis (flips picture left to right)

Product Reference Guide

7-5

Page 124

Imaging Commands

IR - Image Rotate: 1IR Rotate image 90 degrees to the right 2IR Rotate image 180 degrees (upside down) 3IR Rotate image 90 degrees to the left J - JPEG Image Quality: Sets the desired quality when the JPEG image format is selected. Higher numbers result in higher quality, but larger files. Smaller numbers result in greater amounts of lossy compression, faster transmission times, lower quality, but smaller files. (Default = 50) nJ

Image is compressed as much as possible while preserving quality factor of n (n = 0 - 100)

0J worst quality (smallest file)

100J best quality (largest file) K - Gamma Correction: Gamma measures the brightness of midtone values produced by the image. You can brighten or darken an image using gamma correction. A higher gamma correction yields an overall brighter image. The lower the setting, the darker the image. A setting of 100 results in no adjustment to the image. The optimal setting for text images is 50K. 0K Gamma correction off (default) 50K Apply gamma correction for brightening typical document image nK Apply gamma correction factor n (n = 1-255) L, R, T, B, M - Image Cropping: Ships a window of the image by specifying the left, right, top, and bottom pixel coordinates. Device columns are numbered 0 through 640, and device rows are numbered 0 through 480. nL The left edge of the shipped image corresponds to column n of the image in memory. Range: 000 - 640. (Default = 0)

7-6

PowerScan® 7000 2D

Page 125

Image Ship - IMGSHP nR The right edge of the shipped image corresponds to column n - 1 of the image in memory. Range: 000 - 640. (Default = all columns, or 639 for VGA imager) nT The top edge of the shipped image corresponds to row n of the image in memory. Range: 000 - 480. (Default = 0) nB The bottom edge of the shipped image corresponds to row n - 1 of the image in memory. Range: 000 - 480. (Default = all rows, or 479 for VGA imager) Alternately, specify the number of pixels to cut from the outside margin of the image; thus only the center pixels are transmitted. nM Margin: cut n columns from the left, n + 1 columns from the right, n rows from the top, and n + 1 rows from the bottom of the image. Ship the remaining center pixels. Range: 1 - 238. (Default = 0, or full image) P - Protocol: Used for shipping an image. Protocol covers two features of the image data being sent to the host. It addresses the protocol used to send the data (Hmodem, which is an Xmodem 1K variant that has additional header information), and the format of the image data that is sent. 0P None (raw data) 2P None (default for USB) 3P Hmodem uncompressed 4P Hmodem uncompressed (default for RS-232) S - Pixel Ship: Can be used to decimate the image by shipping only certain, regularly spaced pixels. For example, 4S would transmit every fourth pixel from every fourth line. The smaller number of pixels shipped, the smaller the image. However, after a certain point, the image becomes unusable. 1S ship every pixel (default) 2S ship every 2nd pixel, both horizontally and vertically (default)

Product Reference Guide

7-7

Page 126

Imaging Commands

3S ship every 3rd pixel, both horizontally and vertically U - Document Image Filter: Sharpens the edges and smooths the area between the edges of the transmitted text image. The Document Image Filter enhances images of documents such as ID cards and prescriptions. This filter should be used with gamma correction (see page 7-6), with the imager in a stand, and the image captured using the command: IMGSNP1P0L168W90%32D

This filter typically provides better JPEG compression than the standard E - Edge Sharpen command (see page 7-8). This filter also works well when shipping pure black and white images (1 bit per pixel). The optimal setting is 26U. 0U Document image filter off (default) 26U Apply document image filter for typical document image nU Apply document image filter using grayscale threshold n. Use lower numbers when the image contrast is lower. 1U will have a similar effect to 22e. Range: 0-255. V - Blur Image: Smooths transitions by averaging the pixels next to the hard edges of defined lines and shaded areas in an image. 0V Don’t blur (default) 1V Blur W - Histogram Ship: A histogram gives a quick picture of the tonal range of an image, or key type. A low-key image has detail concentrated in the shadows; a high-key image has detail concentrated in the highlights; and an average-key image has detail concentrated in the midtones. This modifier ships the histogram for an image. 0W Don’t ship histogram (default) 1W Ship histogram

7-8

PowerScan® 7000 2D

Page 127

Intelligent Signature Capture - IMGBOX

Intelligent Signature Capture IMGBOX Intelligent signature capture ships only part of an image to the host application. This method reduces transfer time and file size, while simplifying signature capture. Below is an example of an intelligent signature capture application. In this example, the operator reads the bar code, which is then transmitted to the host application. Upon the receipt of the bar code data, the host application sends the IMGBOX command, which tells the scanner to output only the area of the image corresponding to the signature capture box. The scanner also automatically adjusts for aspect ratio and distortion, issues that arise due to scanner skew with respect to the bar code. Align the aimers with the signature area (not with the bar code), then pull the trigger. Send the IMGBOX command string after the trigger pull. negative positive

0123456789

An important aspect of intelligent signature capture is that all dimensions used in the application are measured as multiples of the minimum element size of the bar code. Using this method, intelligent signature capture always outputs the correct image size and resolution, no matter the distance at which the scanner is held from the bar code, assuming that the entire signature capture area is within the scanner’s field of view. The intelligent signature capture command string for this application is: IMGBOX40S0X70Y190W100H1R0F

Product Reference Guide

7-9

Page 128

Imaging Commands

IMGBOX Modifiers D - Pixel Depth: Indicates the number of bits per pixel in the transmitted image. 8D 8 bits per pixel, grayscale image 1D 1 bit per pixel, black and white image F - File Format: Indicates the type of file format in which to save the image. 0F KIM format (default) 1F TIFF binary 2F TIFF binary group 4, compressed 3F TIFF grayscale 4F Uncompressed Binary 5F Uncompressed grayscale 6F JPEG image 7F Outlined image 8F BMP format H - Height of Signature Capture Area: In the example, the height of the area to be captured is 1 inch, resulting in a value of H = 1/0.01 = 100. The value for H is slightly larger, to accommodate some extra image capture area outside of the signature capture box. K - Gamma Correction: Gamma measures the brightness of midtone values produced by the image. You can brighten or darken an image using gamma correction. A higher gamma correction yields an overall brighter image. The lower the setting, the darker the image. A setting of 100 results in no adjustment to the image. (Default = 50K) 0K Gamma correction off 7-10

PowerScan® 7000 2D

Page 129

Intelligent Signature Capture - IMGBOX

50K Apply gamma correction for brightening typical document image nK Apply gamma correction factor n (n = 1-255) R - Resolution of Signature Capture Area: The number of pixels that the imager outputs per each minimum bar width. The higher the value for R, the higher the quality of the image, but also the larger the file size. S - Bar Code Aspect Ratio: The ratio of the bar code height to the narrow element width. In the example, the narrow element width is .010 inches and the bar code height is 0.400 inches, resulting in a value of S = 0.4/0.01 = 40. W - Width of Signature Capture Area: In the example, the width of the area to be captured is 1.90 inches, resulting in a value of W = 1.9/0.01 = 190. The value for W is slightly larger, to accommodate some extra image capture area outside of the signature capture box. X - Horizontal Bar Code Offset: The horizontal ratio offset of the center of the signature capture area, in multiples of the minimum bar width. In the example, the horizontal offset is 0. Y - Vertical Bar Code Offset: The vertical offset of the center of the signature capture area, in multiples of the minimum bar width. Negative numbers indicate that the signature capture is above the bar code, and positive numbers indicate that the area is below the bar code. In the example, the horizontal offset is 0.70 inches, resulting in a value for Y = 0.7/0.01 = 70.

Product Reference Guide

7-11

Page 130

Imaging Commands

NOTES

7-12

PowerScan® 7000 2D