手写OCR识别

对图片内手写体文字的检测和识别
限个人实名用户使用
1000次
10000次

本接口支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。

支持图片内手写体文字的检测和识别,针对手写字体无规则、字迹潦草、模糊等特点进行了识别能力的增强。

调用地址: https://api.topthink.com/ocr/hand

请求方式:POST

返回类型:JSON

API 调用: 调用说明

名称 必填 类型 说明
image string 识别图片,请确保身份证内容信息清晰可见。支持url或base64,图片大小不能大于2M,支持图片类型:jpg/png/bmp
imageType string 图片类型,枚举值:URL-图片路径;BASE64 –图片BASE64编码

$client = new Client("访问令牌")

$result = $client->ocrHand()
    ->withImage("image")
    ->withImageType("imageType")
    ->request();

名称 类型 说明
wordNum string 识别的字数块
list string 文字信息数组
-word string 字块内容
-location string 字块定位

{
"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
        }
    }
    ]
}