We use essential cookies for the website to function, as well as analytics cookies for analyzing and creating statistics of the website performance. To agree to the use of analytics cookies, click "Accept All". You can manage your preferences at any time by clicking "Cookie Settings" on the footer. More Information.

Only Essential Cookies
Accept All

ImageVisionInterface

Expand

Interface Info

public interface ImageVisionInterface

Implements the Image Vision service.

Public Method Summary

Expand

Qualifier and Type

Method Name and Description

int

init(android.content.Context context,org.json.JSONObject authJson)

Initializes the Image Vision service.

ImageVisionResult

getColorFilter(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap)

Obtains the color filter result and returns the result in ImageVisionResult.

ImageLayoutInfo

analyzeImageLayout(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap)

Obtains the smart layout result and returns the result in ImageLayoutInfo.

NOTE

The smart layout service has been removed since July 11, 2022.

ImageVisionResult

analyzeImageThemeTag(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap)

Obtains the theme tagging result and returns the result in ImageVisionResult.

NOTE

The theme tagging service has been removed since July 11, 2022. If it is used, result code 200300 will be reported.

For details, please refer to Result Codes for the Image Vision Service.

int

stop()

Stops the Image Vision service.

Public Methods

init

Expand

Method

public int init(android.content.Context context,org.json.JSONObject authJson)

Initializes the Image Vision service.

Parameters

Expand

Name

Description

context

Context.

authJson

Authentication information in JSON format.

Returns

Expand

Type

Description

int

Result code. For details, please refer to ResultCode.

getColorFilter

Expand

Method

public ImageVisionResult getColorFilter(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap)

Obtains the color filter result and returns the result in ImageVisionResult.

Parameters

Expand

Name

Description

requestJson

Request in JSON format. For details, please refer to this step in Filter Service.

imageBitmap

Bitmap of the image to be processed.

Returns

Expand

Type

Description

ImageVisionResult

ImageVisionResult object.

analyzeImageLayout

NOTE

The smart layout service has been removed since July 11, 2022.

Expand

Method

public ImageLayoutInfo analyzeImageLayout(JSONObject requestJson, Bitmap imageBitmap)

Obtains the smart layout result and returns the result in ImageLayoutInfo.

Parameters

Expand

Name

Description

requestJson

Request in JSON format. For details, please refer to this step in Smart Layout Service.

imageBitmap

Bitmap of the image to be processed.

Returns

Expand

Type

Description

ImageLayoutInfo

ImageLayoutInfo object.

analyzeImageThemeTag

NOTE

The theme tagging service has been removed since July 11, 2022. If it is used, result code 200300 will be reported. For details, please refer to Result Codes for the Image Vision Service.

Expand

Method

public ImageVisionResult analyzeImageThemeTag(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap)

Obtains the theme tagging result and returns the result in ImageVisionResult.

Parameters

Expand

Name

Description

requestJson

Request in JSON format. For details, please refer to this step in Theme Tagging Service.

imageBitmap

Bitmap of the image to be processed.

Returns

Expand

Type

Description

ImageVisionResult

ImageVisionResult object.

stop

Expand

Method

public int stop()

Stops the Image Vision service.

Returns

Expand

Type

Description

int

Result code.