public class ScanService extends EvrythngServiceBase
| Modifier and Type | Class and Description |
|---|---|
static class |
ScanService.ScanMethod |
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SCAN |
static String |
PATH_SCAN_BARCODE |
static String |
PATH_SCAN_RECOGNIZE |
| Constructor and Description |
|---|
ScanService(ApiManager api) |
| Modifier and Type | Method and Description |
|---|---|
EvrythngApiBuilder.Builder<UrlBinding> |
recognitionsCreator(InputStream image,
String mime,
ScanService.ScanMethod... methods)
POST "/scan/recognitions"
|
EvrythngApiBuilder.Builder<UrlBinding> |
recognitionsCreator(String base64Image,
ScanService.ScanMethod... methods)
POST "/scan/recognitions"
|
EvrythngApiBuilder.Builder<UrlBinding> |
recognitionsCreator(UrlBinding imageInBinding,
ScanService.ScanMethod... methods)
POST "/scan/recognitions"
|
EvrythngApiBuilder.Builder<UrlBinding> |
scanBarcodeCreator(UrlBinding scanBarcodeData)
POST "/scan/barcode"
|
absoluteUri, delete, deleteMultiple, encodeBase64, get, getConfig, iterator, mqttUrl, onBuilderCreated, post, post, postAsynchronously, postMultipart, postMultipart, put, put, putMultipart, putMultipart, putMultiple, urlEncodePathPartpublic static final String PATH_SCAN
public static final String PATH_SCAN_RECOGNIZE
public static final String PATH_SCAN_BARCODE
public ScanService(ApiManager api)
api - ApiManager instancepublic EvrythngApiBuilder.Builder<UrlBinding> recognitionsCreator(UrlBinding imageInBinding, ScanService.ScanMethod... methods) throws EvrythngException
Scan a Base64 image. Return the corresponding binding in
imageInBinding - image UrlBinding instancemethods - array of ScanService.ScanMethodEvrythngApiBuilder.BuilderEvrythngExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> recognitionsCreator(String base64Image, ScanService.ScanMethod... methods) throws EvrythngException
base64Image - base64 encoded image, with mime type header.methods - array of ScanService.ScanMethodEvrythngApiBuilder.BuilderEvrythngExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> recognitionsCreator(InputStream image, String mime, ScanService.ScanMethod... methods) throws EvrythngException, IOException
image - image input stream. The input stream is quietly closed after
call of this method.mime - MIME typemethods - array of ScanService.ScanMethodEvrythngApiBuilder.BuilderEvrythngExceptionIOExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> scanBarcodeCreator(UrlBinding scanBarcodeData) throws EvrythngException
Scan a barcode. Return the corresponding binding in
scanBarcodeData - bar code UrlBindingEvrythngApiBuilder.BuilderEvrythngExceptionCopyright © 2016 EVRYTHNG Ltd London / Zurich. All rights reserved.