Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
Interface Info |
|---|
public interface ImageVisionInterface Implements the Image Vision service. |
Qualifier and Type |
Method Name and Description |
|---|---|
int |
init(android.content.Context context,org.json.JSONObject authJson) Initializes the Image Vision service. |
getColorFilter(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap) Obtains the color filter result and returns the result in ImageVisionResult. |
|
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. |
|
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. |
Method |
|---|
public int init(android.content.Context context,org.json.JSONObject authJson) Initializes the Image Vision service. |
Parameters
Name |
Description |
|---|---|
context |
Context. |
authJson |
Authentication information in JSON format. |
Returns
Type |
Description |
|---|---|
int |
Result code. For details, please refer to ResultCode. |
Method |
|---|
public ImageVisionResult getColorFilter(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap) Obtains the color filter result and returns the result in ImageVisionResult. |
Parameters
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
Type |
Description |
|---|---|
ImageVisionResult object. |
The smart layout service has been removed since July 11, 2022.
Method |
|---|
public ImageLayoutInfo analyzeImageLayout(JSONObject requestJson, Bitmap imageBitmap) Obtains the smart layout result and returns the result in ImageLayoutInfo. |
Parameters
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
Type |
Description |
|---|---|
ImageLayoutInfo object. |
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.
Method |
|---|
public ImageVisionResult analyzeImageThemeTag(org.json.JSONObject requestJson, android.graphics.Bitmap imageBitmap) Obtains the theme tagging result and returns the result in ImageVisionResult. |
Parameters
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
Type |
Description |
|---|---|
ImageVisionResult object. |
Method |
|---|
public int stop() Stops the Image Vision service. |
Returns
Type |
Description |
|---|---|
int |