CSSN ScanShell 2000 Operating and installation instructions

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 1
ScanW.DLL
SDK Library Description
SDK Version 9.31.6
June 2008

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 2
Table of Context
Table of Context ..................................................................................................................................................2
Introduction ..........................................................................................................................................................4
Retrieving information from ID cards.............................................................................................................6
Functions and properties summery...................................................................................................................7
Licensing...............................................................................................................................................................8
Distribution ...........................................................................................................................................................8
Library SlibEx: General Functionality...........................................................................................................10
SlibEx Library Functions.................................................................................................................................10
1.1.1. InitLibrary .....................................................................................................................................10
1.1.2. CalibrateScanner..........................................................................................................................11
1.1.3. Clean...............................................................................................................................................11
1.1.4. ScanToFile....................................................................................................................................12
1.1.5. ScanToFileEX...............................................................................................................................12
SlibEx Library Properties.................................................................................................................................14
1.1.6. IsNeedCalibration ........................................................................................................................14
1.1.7. IsScannerValid..............................................................................................................................14
1.1.8. LastErrorStatus .............................................................................................................................14
1.1.9. PaperInTray ...................................................................................................................................15
1.1.10. PressedButton..........................................................................................................................15
1.1.11. Resolution................................................................................................................................16
1.1.12. ScanHeight ...............................................................................................................................16
1.1.13. ScannerColorScheme.............................................................................................................16
1.1.14. ScanWidth................................................................................................................................17
1.1.15. ScannerType............................................................................................................................17
1.1.16. Version......................................................................................................................................18
Library IdData: General Functionality...........................................................................................................19
idData Library Functions.................................................................................................................................19
1.1.17. AutoDetectState......................................................................................................................19
1.1.18. AutoDetectStateEx.................................................................................................................20
1.1.19. InitLibrary................................................................................................................................21
1.1.20. ProcState...................................................................................................................................21
1.1.21. GetFaceImage..........................................................................................................................22
1.1.22. GetFirstCountry.......................................................................................................................23
1.1.23. GetFirstStateByCountry ........................................................................................................23
1.1.24. GetNextCountry......................................................................................................................24
1.1.25. GetNextStateByCountry ........................................................................................................24
1.1.26. GetSignImage..........................................................................................................................25
1.1.27. RefreshData.............................................................................................................................26
1.1.28. RefreshDataAu........................................................................................................................26
1.1.29. State2Id.....................................................................................................................................26
1.1.30. Id2Country...............................................................................................................................27
1.1.31. Id2State.....................................................................................................................................27
1.1.32. StateIsSupported.....................................................................................................................28
1.1.33. GetDetectAcuracy...................................................................................................................28
1.1.34. CountySupportAutoDetect ....................................................................................................28
idData Library Properties.................................................................................................................................29
LibraryCBarCode:General Functionality....................................................................................................30
CBarCode Library Functions..........................................................................................................................30
1.1.35. InitLibrary................................................................................................................................30
1.1.36. ProcImage ................................................................................................................................31
1.1.37. RefreshData.............................................................................................................................31
1.1.38. GetRawField............................................................................................................................32

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 3
1.1.39. GetRawData.............................................................................................................................32
CBarCode Library Properties..........................................................................................................................33
Library CImage: Properties and Functions ...................................................................................................34
1.1.40. InitLibrary................................................................................................................................34
1.1.41. GetImageColor ........................................................................................................................34
1.1.42. RotateImage .............................................................................................................................35
1.1.43. ConvertImage..........................................................................................................................36
1.1.44. ReformatImage ........................................................................................................................38
1.1.45. ConcatenateImage...................................................................................................................39
Library COcr: Properties and Functions........................................................................................................41
COcr Library Functions....................................................................................................................................41
1.1.46. InitLibrary................................................................................................................................41
1.1.47. ExtractText ...............................................................................................................................41
1.1.48. ExtractTextEx..........................................................................................................................42
COcr Library Properties ...................................................................................................................................43
1.1.49. mText ........................................................................................................................................43
Library MagLib: General Functionality ........................................................................................................44
MagLib LibraryFunctions...............................................................................................................................44
1.1.50. InitLibrary................................................................................................................................44
1.1.51. IsReaderValid..........................................................................................................................45
1.1.52. WasCardSweeped...................................................................................................................45
1.1.53. Process......................................................................................................................................46
1.1.54. GetRawData.............................................................................................................................46
MagLib Library Properties ..............................................................................................................................47
Library CPassport: General Functionality.....................................................................................................48
CPassport Library Functions...........................................................................................................................48
1.1.55. Init .............................................................................................................................................48
1.1.56. Process......................................................................................................................................49
1.1.57. GetFace.....................................................................................................................................49
CPassport Library Properties...........................................................................................................................50
Appendix A –VB Demo Program .................................................................................................................51
1.1.58. Using the license key in the program ..................................................................................51
1.1.59. Applying the license key to the code...................................................................................51
Appendix B –SDK installation and Registration........................................................................................52
1.1.60. Installing the SDK package ...................................................................................................52
1.1.61. Obtaining the full SDK package ..........................................................................................53
1.1.62. Library SlibEx constants .......................................................................................................54
1.1.63. Library idData constants........................................................................................................56
1.1.64. Library CImage constants.....................................................................................................61
1.1.65. LibraryCOcrconstants..........................................................................................................61
1.1.66. License related constants.......................................................................................................62
1.1.67. Library CBarCode constants.................................................................................................62
1.1.68. Library MagLib constants.....................................................................................................64
Appendix D –Debugging Flags......................................................................................................................65
Appendix E –Errata Information ...................................................................................................................65
Appendix F –Supported States for Detection..............................................................................................66

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 4
Introduction
ScanW.Dll library is a wrapper COM object that eases the integration between VC++ source libraries
and VB code. The library includes four sub libraries:
SlibEx –Controls the scanner activity and contains the last scanned image in an internal memory. This
library controls the scanning settings such as scan size, color scheme and resolution. The scanned
image is loaded to an internal memory and can be saved to an external file in a bitmap format.
Ocr (In OCR version only) –Extract the textual data from the internal image.
IdData (In the ID version only)–Parse and refine the textual data extracted by the OCR. The data is
kept in internal variables ready to be exported to the application.
Cimage –Use for internal image manipulation such as rotation, color scheme modification, dpi
modification and image export to a file in various formats. This library can also be used for external
image files manipulation.
Each sub library can function as individual library regardless to the other libraries.
SDK
SLib.dll
ImageCtrl.dll
Internal image
buffer
IdCard.dll
SOcr.dll
BarCode.dll
User
Application
Figure1 : ScanW library internal architecture

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 5

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 6
Retrieving information from ID cards
Retrieving the data from an id card involves 4 steps:
Loading the internal image. Scanning the ID card in True color and 300 dpi, 2.2 x 3.6 inch does this.
Processing the internal image –use ProcState to activate the OCR on the scanner’s internal image.
Retrieve the data –use RefreshData function to retrieve the detected data
Export the internal image to a file in the proper dpi and color scheme.
IMPORTANT:
The internal image is overwritten in every new scan. It is the application responsibility to make sure
that the scan is performed in the proper setting (True color, 300 dpi, 2.2 x 3.6 inch). Failing to do so
may result with bad data retrieval.

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 7
Functions and properties summery
Library: SlibEx
Nam
e
Type
Functionality
InitLibrary
Function
Activate and enables the library functionality
CalibrateScanner
Function
Calibrate the scanner color sensor
ScanToFile
Function
Scan document to a bitmap file
IsNeedCalibration Property Check if the scanner needs to be calibrated
IsScannerValid
Property
Verify the scanner functionality
LastErrorStatus
Property
Retrieve the last operation error status
PaperInTray Property Check is a document is in the scanner tray
Resolution
Property
Set/Retrieve the scanning
resolution
ScanHeight Property Set/retrieve the image height
ScannerColorScheme
Property
Set/retrieve the scanner to color/gray/bw color scheme
ScanWidth
Property
Set/retrieve the image width
Library: Idata
Name
Type
Functionality
ProcState
Funct
ion
Initialize the image process and data extraction from the id image file
RefreshDate
Function
Update the data collected by ProcState to the internal variables
Name
Property
Address
Property
City
Property
State
Property
Zip
Property
DateOfBir
th
Property
ExpirationDate
Property
IssueDate
Property
ID
Property
License
Property
Class
Property
Eyes
Property
Hair
Property
Height
Property
Sex
Property
Weight Property
Duplicate/Exam
Property
County
Property
CSC Property
Res
triction
Property
Type Property
Endorsements
Property
SigNum
Property
Original Date
Property

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 8
Library: CImage
Name
Type
Functionality
Conatenatelmage
Function
Concatenate two images into a single image file
Convertlmage
Function
Convert ima
ge format (internal or external image)
Rotateimage
Function
Rotate image clock
-
wise in 90,180and 270 degrees
(internal or external image)
ReformatImage
Function
Modify the image dpi, color scheme and save scheme
(internal or external image)
Library: COcr
Name
Type
Functionality
ExtractText
Function
Extract text bulks from an image file.
mText
Property
A buffer that contains the extracted text data
Licensing
Each library mustto be initialized with a license number prior to usage using the Init() function of each
library. Failing to initialize the library will block the access to the library functionality. There are two
types of licenses:
Temporary License: Using this type of license common for library evaluation. This type of license
normally expires after 60 days. A temporary SDK license can be obtained fromhttp://id-
scan.com/developer
Permanent License: Unique key that is used to activate the library with no time limit and also used to
identify the customer when calling Card Scanning Solutions for customer support.
The software dealer supplies the permanent license key.
Distribution
To install the SDK files at destination computer you just need to copy all the SDK files that are in the
SDK installation folder to the destination computer.
There are some files that will need to be register on the destination computer such as COM\ActiveX
objects, install these files at the end of the SDK files installations since it will need the none
COM\ActiveX files to exist before register.
Here is a list of the files that need to be register:
ScanW.dll (Com object)
ScanWEx.dll (Com object)
ScanX.dll (ActiveX object) mostly used for VB scripts
Note:
If you don’t use the COM interface in your application and use the SDK files directly like in VC++
then you don’t need to install these files on the destination computer.

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 9

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 10
Library Properties and Methods
Library SlibEx: General Functionality
SlibEx library is used to scan documents and load their image to the internal image container. The
library also saves the scanned image to an external bitmap file. The library sets and retrieves the
scanners properties (such as scanning size, resolution and color scheme). The validity of all operations
on properties or functions is reflected on the property LastErrorStatus. This property automatically
reset upon reading.
Important: Some scanner functions may take several seconds to execute (such as Scan or Clean).
While executing lengthily function one should not try to execute a second scanner function until the
previous function has returned. Failing to follow this rule may cause software\hardware exception.
SlibEx Library Functions
1.1.1.InitLibrary
Format
Parameters
[in] License–Null terminated string that holds license key value.
Return
SLIB_ERR_SCANNER_BUSSY: The scanner is still busy executing the previous scanner command.
LICENSE_VALID: License is valid and the library is ready to be used.
LICENSE_INVALID: The license is invalid. All scanner operations are disabled.
LICENSE_EXPIRED: License has expired. All scanner operations are disabled.
SLIB_ERR_DRIVER_NOT_FOUND: The scanner driver was not found. To fix this error re-install
the scanner’s driver. All scanner operations are disabled.
SLIB_ERR_SCANNER_NOT_FOUND: The scanner is not connected to the PC. To fix this error
make sure the scanner is connected and re-starts the. All scanner operations are disabled.
Remarks
Use this function to initialize the scanner library. This function loads the scanner driver and initializes
the internal image structure. This function must be called before calling any other function in the
library.
IMPORTANT: When the application unload is should call the function UnInit to unload the
SDK and release its memory (See the function description as section 1.1.34 on ScanWex.pdf )
InitLibrary
(
License
As String) As Long

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 11
1.1.2.CalibrateScanner
Format
Return value
Void.
Remarks
This function calibrates the scanner using the calibration card. The calibration results are stored in a file
inside the windows directory. The operation result can be tested for good completion by reading
LastErrorStatus property. This property may store one of the following values:
SLIB_ERR_SCANNER_BUSSY: The scanner is still busy executing the previous scanner command.
LICENSE_INVALID –Library was not initialized with proper license.
SLIB_ERR_SCANNER_NOT_FOUND–No attached scanner was found.
SLIB_ERR_INVALID_SCANNER –The attached scanner is invalid.
SLIB_FALSE–The operation failed (Mostly because no calibration card was found)
SLIB_TRUE –Operation succeeded.
1.1.3.Clean
Format
Return value
SLIB_ERR_SCANNER_BUSSY: The scanner is still busy executing the previous scanner command.
Remarks
This function clean the scanner lens by running the cleaning pad (supplied in the scanner kit) back and
fourth. This function applies only to scanner modules ScanShell800/N.
CalibrateScanner ()
Clean ()

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 12
1.1.4.ScanToFile
Format
Parameters
[in] FileName –Null terminated string that holds the full path of the scanned image.
Return
If function succeeds, the return value is SLIB_ERR_NONE
If function fails, the return number is may be one of the following:
SLIB_ERR_SCANNER_BUSSY: The scanner is still busy executing the previous scanner command.
LICENSE_INVALID –Library was not initialized with proper license.
SLIB_ERR_SCANNER_NOT_FOUND–No attached scanner was found.
SLIB_ERR_SCANNER_GENERAL_FAIL
SLIB_ERR_SCANNER_NOT_FOUND
SLIB_ERR_HARDWARE_ERROR
SLIB_ERR_PAPER_FED_ERROR
SLIB_ERR_SCANABORT
SLIB_ERR_NO_PAPER
SLIB_ERR_PAPER_JAM
SLIB_ERR_FILE_IO_ERROR
SLIB_ERR_PRINTER_PORT_USED
SLIB_ERR_OUT_OF_MEMORY
Remarks
Scan document to the internal image buffer and, in the same time, export it to a bitmap file named “File
Name” in the local disk under. The operation result can be tested for good completion by reading
LastErrorStatus property.
Notice that it is important to scan the image in True color and 300 dpi for OCR recognition.
After the scan, the internal image can be further manipulated and exported using separate commands
such as:
Rotation –use RotateImage() to rotate the internal image in 90,180 or 270 degrees.
Color Scheme –Modify the internal image color to Gray or black and white images using
ReformatImage().
Resolution–Modify the internal image resolution to any resolution using ReformatImage().
Savingformat –Save the internal image to external file in one of 7 popular file formats using either
ConvertImage() or ReformatImage() or RotateImage()
1.1.5.ScanToFileEX
Format
ScanToFile
(
FileName
As String) As Long
ScanToFileEx
(
FileName
As String) As Long

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 13
Parameters
[in] FileName –Null terminated string that holds the full path of the scanned image.
Return
If function succeeds, the return value is SLIB_ERR_NONE
If function fails, the return number is may be one of the following:
SLIB_ERR_SCANNER_BUSSY: The scanner is still busy executingthe previous scanner command.
LICENSE_INVALID –Library was not initialized with proper license.
SLIB_ERR_SCANNER_NOT_FOUND–No attached scanner was found.
SLIB_ERR_SCANNER_GENERAL_FAIL
SLIB_ERR_SCANNER_NOT_FOUND
SLIB_ERR_HARDWARE_ERROR
SLIB_ERR_PAPER_FED_ERROR
SLIB_ERR_SCANABORT
SLIB_ERR_NO_PAPER
SLIB_ERR_PAPER_JAM
SLIB_ERR_FILE_IO_ERROR
SLIB_ERR_PRINTER_PORT_USED
SLIB_ERR_OUT_OF_MEMORY
Remarks
This function is the same as ScasnToFile only this function will display a progress bar that will show
the scanning progress.

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 14
SlibEx Library Properties
1.1.6.IsNeedCalibration
Type
Property.
Direction
Read Only.
Remarks
Retrieve if the scanner needs to be calibrated. This should be tested before every scan. Non-calibrated
scanner may generate images with incorrect colors. The property returns a non zero value if the scanner
needs to be calibrated and a zero value if the
scanner does not need to be calibrated.
1.1.7.IsScannerValid
Type
Property.
Direction
Read Only.
Remarks
Detect if the scanner version is supportedby current code. This property is 0 if scanner is not
supported and non-zero if it is supported.
1.1.8.LastErrorStatus
Type
Property.
Direction
Read Only.
Remarks
Retrieve the preceding property/command setup. This property is equal ELIB_ERR_NONEis no error
happened in the previous command execution. This property clears itself automatically to
ELIB_ERR_NONEafter read.

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 15
1.1.9.PaperInTray
Type
Property.
Direction
Read only.
Remarks
Detects is a document exists in the scanner tray. This property is equal 0 if no paper detected in tray or
non-zero if paper is in tray.
1.1.10.PressedButton
Type
Property.
Direction
Read only.
Remarks
Returns the button number that was pressed (valid for only when using ScanShell1000 scanner model).
Read this value after reading theproperty PaperInTray(that indicate that one of the three buttons of the
scanner was pressed) to retrieve which button was pressed. The return value can be one of the
following:
TOP_BUTTON
MIDDLE_BUTTON
BUTTOM_ BUTTON
These values corresponds to the buttons shown in the following figure.
BOTTOM_BUTTON
MIDDLE_BUTTON
TOP_BUTTON

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 16
1.1.11.Resolution
Type
Property.
Direction
Read / Write.
Remarks
Set/retrieve the scanner resolution settings. Resolution value can be any integer in the range 50-600
(for 50-600 dpi). Trying to set value outside this will be rejected and the previous value will be used.
This property set the scanned image resolution. The internal image resolution can be modified after the
scan usingReformatImage() function.
1.1.12.ScanHeight
Type
Property.
Direction
Read / Write.
Remarks
Set/retrieve the scan height (in 1/100 inch units). Available range 200-400.
Auto-detect scan size: When using scanner model ScanShell800xx\2000xx\3000xx the scanner may
also scan a document with un-known size. In this mode the scanner scan the document until it “sense”
that the entire document has be fed into the scanner. Than, the black borders of the image is
automatically cropped and the result image is returned to the calling application. To trigger this feature
you must set the both properties ScanHeight and ScanWidth to –1. When the scan completes these
properties will reflect the detected document size in milli-inches.
Note: If you intend to use Auto-detect scan sizemake sure to set ScanHeight and ScanWidth with –1
before each scan as after the scan these properties are overwritten automatically with the recently
scanned document size.
1.1.13.ScannerColorScheme
Type
Property.
Direction
Read / Write.
Remarks
Set/retrieve the scanner color scheme. Available values are:

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 17
BW
GRAY
TRUECOLOR
This property set the scanned image color scheme. The internal image color scheme can be modified
after the scan using ReformatImage()function.
1.1.14.ScanWidth
Type
Property.
Direction
Read / Write.
Remarks
Set/retrieve the scan width (in 1/100 inch units). Available range 200-600.
Auto-detect scan size: When using scanner model ScanShell800xx\2000xx\3000xx the scanner may
also scan a document with un-known size. In this modethe scanner scan the document until it “sense”
that the entire document has be fed into the scanner. Than, the black borders of the image is
automatically cropped and the result image is returned to the calling application. To trigger this feature
you must set the both properties ScanHeight and ScanWidth to –1. When the scan completes these
properties will reflect the detected document size in milli-inches.
Note: If you intend to use Auto-detect scan sizemake sure to set ScanHeight and ScanWidth with –1
before each scan as after the scan these properties are overwritten automatically with the recently
scanned document size.
1.1.15.ScannerType
Type
Property.
Direction
Read only.
Remarks
Retrieve the scanner type.
Scanner type can be one of these values:
0: No scanner
1: ScanShell 600
2: ScanShell 800
3: ScanShell 800N
4: ScanShell 1000
5: ScanShell 2000
6: ScanShell 2000N
7: ScanShell 800E
8: ScanShell 800EN
9: ScanShell 3000

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 18
10: ScanShell 4000
11: ScanShell 800G
12: ScanShell 5000
13: SnapShell (IDR)
14: ScanShell 800DX
15: ScanShell 800DXN
16: SnapShell (FDA)
17: SnapShell (WMD)
18: SnapShell (TWN)
1.1.16.Version
Type
Property.
Direction
Read Only.
Remarks
Retrieve the SlibEx version.

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 19
Library IdData: General Functionality
IdData library is where most of the image processing and data extraction is being handled. The library
fetches the internal image (the last scanned image), process its graphic information and activates the
OCR. The resultant text is kept in internal data structure ready to be retrievedby the application.
Notice: The library processes only the last image that was recently scanned. The library does not
support external image file processing.
idData Library Functions
1.1.17.AutoDetectState
Format
Parameters
[in] Reserved –Null terminated empty string -reserved. This parameter is not used.
Return
LICENSE_INVALID: The license is invalid. All scanner operations are disabled.
ID_ERR_USA_TEMPLATES_NOT_FOUND:The template database file for the USA states
(UsaIds.bin) is missing. The file should be located in the SDK files location.
INVALID_INTERNAL_IMAGE–No internal image is loaded. This value return when attempting to
use this function without scanning an image first.
ID_ERR_STATE_NOT_SUPORTED : The license image doe not match any state template.
ID_ERR_STATE_NOT_RECOGNIZED : The license image doe not match any state template.
If non of the above error values is returned, the function return the state id value.
Remarks
Use this function to automatically detect the state type according to the image. If the function returns
with non of the above error values then the return value is the state id. This value can be assigned to the
input parameter IdState in the function ProcStatefor data extraction.
AutoDetectState (
Reserved
As String) As Long

10350 Santa Monica Blvd. Suite 285,
Los Angeles, CA 90025
Phone: 310-691-8920,310-788-9840, Fax: 419-735-2419
Card Scanning Solutions 20
1.1.18.AutoDetectStateEx
Format
Parameters
[in] Reserved –Null terminated empty string -reserved. This parameter is not used.
[out] angle –Return the amount of clockwise 90 degrees turns that the image was rotated to be aligned
horizontally.
Return
LICENSE_INVALID: The license is invalid. All scanner operations are disabled.
ID_ERR_USA_TEMPLATES_NOT_FOUND:The template database file for the USA states
(UsaIds.bin) is missing. The file should be located in the SDK files location.
INVALID_INTERNAL_IMAGE–No internal image is loaded. This value return when attempting to
use this function without scanning an image first.
ID_ERR_STATE_NOT_SUPORTED : The license image doe not match any state template.
ID_ERR_STATE_NOT_RECOGNIZED : The license image doe not match any state template.
If non of the above error values is returned, the function return the state id value.
Remarks
Use this function to automatically align the internal image horizontally and then to detect the. If the
function returns with non of the above error values then the return value is the state id. This value can
be assigned to the input parameterIdState in the function ProcStatefor data extraction. The function
loads in the parameter angle one of the following values:
ANGLE_0: The image was received in the proper alignment.
ANGLE_90: The image was rotated once in 90 degrees (clockwise).
ANGLE_180: The image was rotated twice in 90 degrees (clockwise).
ANGLE_270: The image was rotated three times in 90 degrees (clockwise).
You can dump the rotated image from the internal buffer to a file using the function RotateImage
AutoDetectStateEx (
Re
served
As String,
angle
As Long) As Long
Other manuals for ScanShell 2000
1
This manual suits for next models
6
Table of contents
Other CSSN Software manuals
Popular Software manuals by other brands

Extreme Networks
Extreme Networks Ridgeline Guide installation guide

Dell
Dell Powerconnect W-ClearPass Hardware Appliances Deployment guide

Braunschweiger Flammenfilter
Braunschweiger Flammenfilter PROTEGO QuEST quick guide

Lucent Technologies
Lucent Technologies INTUITY Messaging Solutions manual

Native Instruments
Native Instruments Skanner user manual

Canon
Canon DV-PC Software instruction manual