## 手写OCR识别 ![](https://img.kancloud.cn/74/ef/74efbbf20a446e57589946bfa9e306b2_517x283.png =x120) > 本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。 ## 接口费用( [点击购买](https://market.topthink.com/product/110)) > 最低 0.08元/次 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/ocr/hand ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是 |string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | image | 是 | string | 识别图片,请确保身份证内容信息清晰可见。支持url或base64,图片大小不能大于2M,支持图片类型:jpg/png/bmp | | imageType| 是 | string | 图片类型,枚举值:URL-图片路径;BASE64 –图片BASE64编码 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | |tradeNo|String|交易号,唯一| |wordNum|String|识别的字块数| |list|Array|文字信息数组| |word|String|字块内容| |location|String|字块定位| ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->ocrHand() ->withImage('图像地址') ->withImageType('URL') ->request(); dump($result); ``` 返回结果示例: ``` { "code": 0, "message": "成功", "data":{ msg: "成功", wordNum: 3, list: [ { word: "实时地识别“羊毛党”的欺诈行为,对抗批量抢红包", location: { top: 260, left: 105, width: 1697, height: 118 } }, { word: "刷优惠卷,恶意披票,羊等作弊行为,避免因欺作", location: { top: 394, left: 97, width: 1721, height: 126 } }, { word: "引起企业巨额损失", location: { top: 555, left: 87, width: 722, height: 104 } } ] } } ```