客服QQ:300737384 点击这里给我发消息 技 术支持QQ:3007364119 点击这里给我发消息
| 返回91验证码官网
 

上传验证码直接获得识别结果 | ApiDoc / SendFile_GetAnswer

方法一:按图片路径上传图片,直接返回识别结果 <-推荐使用

const char * WINAPI SendFile_Answer(const char * pwd_str,const char * path,int type, int timeout,int custom_price,const char *remark);

/*
说明:	上传验证码图片,直接得到识别结果,非异步,会等待直到超过超时时间或者有识别结果才会返回,最好用线程来调用此函数,不要再UI线程调用。
 参数列表:
	const char * pwd_str	用户答题串
	const char * path	本地图片路径
	int type		题目类型http://www.91yzm.com/help/price.php
	int timeout		超时时间(单位秒)
	int custom_price	默认传1
	const char *remark	题目要求备注(例如:字母要区分大小写)
 返回值:
	成功:返回识别结果
	(温馨提示:开发者只需判断返回值首字母是否为#即可,不为#则成功)
	失败:返回#开头错误ID。错误代码详见:http://www.91yzm.com/help/allErrorCode.php
 */
 
方法二:按byte流上传图片数据,直接返回识别结果 <-推荐使用
 

const char * WINAPI SendData_Answer(const char * pwd_str,const char * pData,int len,int type, int timeout,int custom_price,const char *remark);

/* 说明: 上传验证码图片数据,直接得到识别结果,非异步,会等待直到超过超时时间或者有识别结果才会返回,最好用线程来调用此函数,不要再UI线程调用。 参数列表: const char * pwd_str 用户答题串 const char * pData 验证码数据 int len 验证码数据长度 int type 题目类型http://www.91yzm.com/help/price.php int timeout 超时时间(单位秒) int custom_price 默认传1 const char *remark 题目要求备注(例如:字母要区分大小写) 返回值: 成功:返回识别结果 (温馨提示:开发者只需判断返回值首字母是否为#即可,不为#则成功) 失败:返回#开头错误ID。错误代码详见:http://www.91yzm.com/help/allErrorCode.php */