目录

ImageVisionImpl

Class Info

public class ImageVisionImpl implements ImageVisionInterface

图像智能编辑设计功能接口实现类。

Public Method Summary

Qualifier and Type

Method Name and Description

void

setVisionCallBack(ImageVision.VisionCallBack callBack)

服务初始化服务回调接口。

ImageVisionResult

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

获取颜色滤镜处理结果,返回滤镜结果封装类ImageVisionResult。

ImageLayoutInfo

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

获取智能排版处理结果,返回排版结果封装类ImageLayoutInfo。

ImageVisionResult

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

获取主题标签处理结果,返回封装类ImageVisionResult。

int

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

初始化滤镜服务。

int

stop()

停止滤镜服务。

Methods Inherited from Class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Public Methods

[h2]setVisionCallBack

Method

public void setVisionCallBack(ImageVision.VisionCallBack callBack)

服务初始化服务回调接口。

Parameters

Name

Description

callBack

服务初始化服务回调接口。

[h2]getColorFilter

Method

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

获取颜色滤镜处理结果,返回封装类。

Parameters

Name

Description

requestJson

请求json,参见开发指南滤镜服务步骤4。

imageBitmap

需要添加滤镜效果的图片的bitmap格式。

Returns

Type

Description

ImageVisionResult

封装类ImageVisionResult。

[h2]analyzeImageLayout

Method

publicImageLayoutInfo analyzeImageLayout(JSONObject requestJson, Bitmap imageBitmap)

获取智能排版处理结果,返回排版结果封装类ImageLayoutInfo。

Parameters

Name

Description

requestJson

请求json,参见开发指南图文智能排版服务步骤4。

imageBitmap

需要制作智能排版的图片的bitmap格式。

Returns

Type

Description

ImageLayoutInfo

封装类ImageLayoutInfo。

[h2]analyzeImageThemeTag

Method

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

获取智能标签处理结果,返回封装类ImageVisionResult。

Parameters

Name

Description

requestJson

请求json,参见开发指南图像主题标签服务步骤4。

imageBitmap

需要识别的图片的bitmap格式。

Returns

Type

Description

ImageVisionResult

封装类ImageVisionResult。

[h2]init

Method

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

初始化滤镜服务。

Parameters

Name

Description

context

上下文。

authJson

Json格式。

Returns

Type

Description

int

结果码。

[h2]stop

Method

public int stop()

停止滤镜服务。

Returns

Type

Description

int

结果码。