Web Based SDK
Document
- Pageinit () corresponding web socket functions and parameters for connection ("Getdeviceslist", RecvData, "getdeviceslist");
- GetImageList () corresponding web socket functions and parameters for connection ("GetImageList", RecvData, str);
- GetFileList (RecvData) corresponding web socket functions and parameters for Connection("GetFileList", RecvData, str);
- FastOCR () corresponding web socket functions and parameters for Connection("GetOCRData", RecvData, str);
- Preview () corresponding web socket functions and parameters for Connection("GetPreview", RecvData, str);
- OCR () corresponding web socket functions and parameters for Connection_2("GetRecognizeData", RecvData, str);
- DelFile () corresponding web socket functions and parameters for Connection("RmFiles", RecvData, str);
- GetImageFile (true) corresponding web socket functions and parameters for Connection_2("GetFileData", RecvData_demo, str);
- GetImageFile (false) corresponding web socket functions and parameters for Connection_2("GetFileData", RecvData_demo, str);
Description: Crawl an online list of appliances
Command: Getfilelist
Callback function: RecvData
Parameters: Getdeviceslist (Dummy String)
Description: Perform a scan action
Command: GetImagelist
Callback function: RecvData
Parameters: str[EX. To capture a image]
SetParams?device_name=A62&scanmode=scan&paper-size=none&source=Camera&resolution=300&mode=color&swcrop=true&swdeskew=true
Description: Gets the list of images in the temp area
Command: Getfilelist
Callback function: RecvData
Parameters: GetFileList(Dummy String)
Description: Command a scan action and get OCR results
Command: GetOCRData
Callback function: RecvData
Parameters: str[EX. To capture a image and get the result of recognition]
SetParams?device_name=A62&scanmode=scan&paper-size=none&source=Camera&resolution=300&mode=color&swcrop=true&swdeskew=true &recognize-type=passport
Description: Perform scan and view preview image
Command: GetPreview
Callback function: RecvData
Parameters: SetParams?device_name=A62&scanmode=preview&paper-size=none&source=Camera&resolution=300&mode=color&swcrop=true&swdeskew=true
Description: Get OCR result
Command: GetRecognizeData
Callback function: RecvData
Parameters: str[EX. To get the result of recognition by specified filename]
GetRecognizeData?filename=201704060137&recognize-type=passport
Description: Delete Temp files
Command: RmFiles
Callback function: RecvData
Parameters: str[EX. To delete the specified file]
RmFiles?filename=201704060137.jpg(*.jpg or *)
Description: When the Getimagefile pass value is true, get the thumbnail.
Command: GetFileData
Callback function: RecvData_demo
Parameters: str[EX. To get the binary data of image]
GetFileData?filename=201704060137.jpg&thumbnail=true&delete=false
Description: When the Getimagefile pass value is false, get the original image.
Command: GetFileData
Callback function: RecvData_demo
Parameters: str[EX. To get the binary data of thumbnail]
GetFileData?filename=201704060137.jpg&thumbnail=false&delete=false