Chapter Contents |
Previous |
Next |
Image Data Model: _getBarcode |
Syntax | |
Details | |
Example |
Syntax |
CALL SEND (imgdat_id, '_getBarcode', bar-code-type, return-string, <x1,y1,x2,y2>); |
Argument | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
bar-code-type |
C | is a character string that contains one value from the following list:
|
||||||
return-string |
C | contains the returned value. Remember to make this variable long enough to hold the longest value that could be returned. | ||||||
x1,y1 |
N | the upper coordinates of the area in the image to search for the bar code. The default is 0,0. | ||||||
x2,y2 |
N | are the lower coordinates of the area in the image to search for the bar code. The default is the width and height of the image. Note that the area specified for the bar-code location can be larger than the bar code. This area should be relatively free of things such as other text. |
Details |
Given an image with a bar code, the GET_BARCODE command attempts to decode the bar code and then returns the value of the bar code. The bar code can be decoded only if it is clear in the image. The DPI resolution used in scanning the image will determine how clearly the bar code appears in the image. Below 200 DPI, recognition is very poor.
Example |
The following code returns the value of the bar code that is located in the 10,10,300,200 area of the image:
CALL SEND (imgdat_id, '_getBarcode', 'CODE39', retstring, 10,10,300,200);
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.