1、智能图像处理 - 接口说明

支持 JPG、JPEG、PNG、WEBP、BMP、TIF、TIFF 图像,不支持 PDF 文件。可按需开启畸变矫正、自动旋转、去水印、图像增强、去手写和去手指功能。

接口地址
图片为base64流https://netocr.com/api/pic_process_base64
图片为file格式https://netocr.com/api/pic_process_file
接口调用方法post

(注:base64流接口传参数img,file格式接口传参数file,两者选择对应接口传入。)

2、接口接收参数

序号名称类型必填说明
1imgString是图片的base64流,仅base64接口传入
2fileMultipartFile是上传文件,仅file接口传入,字段名必须为file
3keyString是用户ocrKey
4secretString是用户ocrSecret
5typeIdInteger是产品类型:3100
6formatString是固定值:json
7distortionCorrectInteger否畸变矫正:0-关闭(默认) 1-开启
8autoRotationInteger否自动旋转:0-关闭(默认) 1-开启
9removeWaterMarkInteger否去水印:0-关闭(默认) 1-开启
10imageEnhanceInteger否图像增强:0-关闭(默认) 1-开启
11removeHandwritingInteger否去手写:0-关闭(默认) 1-开启
12removeFingerInteger否去手指:0-关闭(默认) 1-开启

3、结果示例

{
    "message": {
        "status": 0,
        "value": "处理完成"
    },
    "info": {
        "cutImage": "/9j/4AAQSkZJRgABAQ...",
        "typeId": 3100
    }
}

results matching ""

    No results matching ""