public class ImgSearcher
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
int |
cancel()
取消识别
|
void |
destroy()
销毁图像检索类
|
int |
init(Context context,
java.lang.String appid)
初始化函数
|
void |
setListener(ImgListener listener)
设置回调事件
|
static ImgSearcher |
shareInstance()
返回ImgSearcher单例
|
int |
start(byte[] img)
开始搜索
|
int |
start(byte[] img,
int type)
开始搜索
|
public int init(Context context, java.lang.String appid)
context
- 由上层传入的上下文appid
- 开发者授权获取的AppIdpublic void setListener(ImgListener listener)
listener
- 回调事件public int start(byte[] img)
public int start(byte[] img, int type)
img
- 待识别的图片type
- 13通用图片识别 14logo识别public int cancel()
public void destroy()
public static ImgSearcher shareInstance()