使用密码串发题:
使用帐号密码发题: 相关下载: 各语言调用示例: 其他说明: |
直接获取答案(不返回题号,同时返回题号和答案的接口在本页下方)方法一:按图片路径上传图片,直接返回识别结果 <-推荐使用 -------------------------------------------------------------------------------------- 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.laladama.com/dll/price.php int timeout 超时时间(单位秒) int custom_price 作者自定义价格,如果高于此题的价格,额外部分会全部返还给作者.低于此题的价格则无效.(0-1000) const char *remark 题目要求备注(例如:字母要区分大小写) 返回值: 成功:返回识别结果 (温馨提示:开发者只需判断返回值首字母是否为#即可,不为#则成功) 失败:返回#开头错误ID。错误代码详见:http://www.laladama.com/dll/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.laladama.com/dll/price.php int timeout 超时时间(单位秒) int custom_price 作者自定义价格,如果高于此题的价格,额外部分会全部返还给作者.低于此题的价格则无效.(0-1000) const char *remark 题目要求备注(例如:字母要区分大小写) 返回值: 成功:返回识别结果 (温馨提示:开发者只需判断返回值首字母是否为#即可,不为#则成功) 失败:返回#开头错误ID。错误代码详见:http://www.laladama.com/dll/allErrorCode.php */ 直接获取答案和题号方法一:按图片路径上传图片,直接返回识别结果和题号 <-推荐使用 -------------------------------------------------------------------------------------- const char * WINAPI SendFile_Recognize(const char * pwd_str,const char * path,int type, int timeout,int custom_price,const char *remark,char *pAnswer); -------------------------------------------------------------------------------------- /* 说明: 上传验证码图片,直接得到识别结果和题号,非异步,会等待直到超过超时时间或者有识别结果才会返回,最好用线程来调用此函数,不要再UI线程调用。 参数列表: const char * pwd_str 用户答题串 const char * path 本地图片路径 int type 题目类型http://www.laladama.com/dll/price.php int timeout 超时时间(单位秒) int custom_price 作者自定义价格,如果高于此题的价格,额外部分会全部返还给作者.低于此题的价格则无效.(0-1000) const char *remark 题目要求备注(例如:字母要区分大小写) char *pAnswer 识别的答案(要先定义且有内存,例如:char answer[50]) 返回值: 成功:返回题号 (温馨提示:开发者只需判断返回值或者答案首字母是否为#即可,不为#则成功) 失败:返回#开头错误ID。错误代码详见:http://www.laladama.com/dll/allErrorCode.php */ 方法二:按byte流上传图片数据,直接返回识别结果和题号(须登陆) <-推荐使用 -------------------------------------------------------------------------------------- const char * WINAPI SendData_Recognize(const char * pwd_str,const char * pData,int len,int type, int timeout,int custom_price,const char *remark,char *pAnswer); -------------------------------------------------------------------------------------- /* 说明: 上传验证码图片数据,直接得到识别结果和题号,非异步,会等待直到超过超时时间或者有识别结果才会返回,最好用线程来调用此函数,不要再UI线程调用。 参数列表: const char * pwd_str 用户答题串 const char * pData 验证码数据 int len 验证码数据长度 int type 题目类型http://www.laladama.com/dll/price.php int timeout 超时时间(单位秒) int custom_price 作者自定义价格,如果高于此题的价格,额外部分会全部返还给作者.低于此题的价格则无效.(0-1000) const char *remark 题目要求备注(例如:字母要区分大小写) char *pAnswer 识别的答案(要先定义且有内存,例如:char answer[50]) 返回值: 成功:返回题号 (温馨提示:开发者只需判断返回值或者答案首字母是否为#即可,不为#则成功) 失败:返回#开头错误ID。错误代码详见:http://www.laladama.com/dll/allErrorCode.php */ |