public class ScanService extends EvrythngServiceBase
| Modifier and Type | Class and Description |
|---|---|
static class |
ScanService.IdentifyType |
static class |
ScanService.ScanMethod |
| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_IDENTIFY |
static String |
PATH_SCAN |
static String |
PATH_SCAN_BARCODE |
static String |
PATH_SCAN_RECOGNIZE |
| Constructor and Description |
|---|
ScanService(ApiManager api) |
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 static final String PATH_IDENTIFY
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> identifyCreator(String base64Image) throws EvrythngException
Scan a Base64 image. Return the corresponding binding in
base64Image - base64 encoded image, with mime type header.EvrythngApiBuilder.BuilderEvrythngExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> identifyCreator(String base64Image, ScanService.IdentifyType type) throws EvrythngException
Identify a Base64 image. Return the corresponding bindings
base64Image - base64 encoded image, with mime type header.type - one available ScanService.IdentifyTypeEvrythngApiBuilder.BuilderEvrythngExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> identifyCreator(InputStream image, String mime, ScanService.IdentifyType type) throws EvrythngException, IOException
Identify an image. Return the corresponding bindings
image - Image as an input stream.mime - mime typetype - one available ScanService.IdentifyTypeEvrythngApiBuilder.BuilderEvrythngExceptionIOExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> identifyCreator(UrlBinding imageInBinding) throws EvrythngException
Identify an image. Return the corresponding bindings
imageInBinding - image UrlBinding instanceEvrythngApiBuilder.BuilderEvrythngExceptionpublic EvrythngApiBuilder.Builder<UrlBinding> identifyCreator(UrlBinding imageInBinding, ScanService.IdentifyType type) throws EvrythngException
Identify an image. Return the corresponding bindings
imageInBinding - image UrlBinding instancetype - one available ScanService.IdentifyTypeEvrythngApiBuilder.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.