emoticon_api/Infrastructure/Kuaidi100/Common/Request/Electronic/ocr/OcrParam.cs
2023-10-20 21:58:42 +08:00

39 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using Newtonsoft.Json;
namespace Common.Request.Electronic.ocr
{
public class OcrParam
{
/// <summary>
/// 图像数据base64编码要求base64编码后大小不超过4M,支持jpg/jpeg/png/bmp格式
/// </summary>
/// <value></value>
public string image {get; set;}
/// <summary>
/// 是否兼容图像倾斜truefalse默认不检测false
/// </summary>
/// <value></value>
public bool enableTilt {get; set;}
/// <summary>
/// 图片URL。image、imageUrl、pdfUrl三者必填其一优先顺序image>imageUrl>pdfUrl最大长度不超过1024b下载超时默认为2s
/// </summary>
/// <value></value>
public string imageUrl {get; set;}
/// <summary>
/// 需要检测识别的面单元素。取值范围barcode,qrcode,receiver,sender,bulkpen。不传或者 null 则默认为 ["barcode", "receiver", "sender"]
/// </summary>
/// <value></value>
public string[] include {get; set;}
/// <summary>
/// PDF文件URL。image、imageUrl、pdfUrl三者必填其一优先顺序image>imageUrl>pdfUrl最大长度不超过1024b下载超时默认为2s
/// </summary>
/// <value></value>
public string pdfUrl {get; set;}
public override string ToString()
{
return JsonConvert.SerializeObject(this,Formatting.Indented,new JsonSerializerSettings(){NullValueHandling = NullValueHandling.Ignore});
}
}
}