123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using Newtonsoft.Json;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace KdanCommon.DocAI.Data
- {
- public partial class RedactInfoExtractResponse
- {
- [JsonProperty("pages")]
- public Page[] Pages { get; set; }
- [JsonProperty("infos")]
- public Info[] Infos { get; set; }
- }
- public partial class Info
- {
- [JsonProperty("type")]
- public string Type { get; set; }
- [JsonProperty("blocks")]
- public Block[] Blocks { get; set; }
- }
- public partial class Block
- {
- [JsonProperty("content")]
- public string Content { get; set; }
- [JsonProperty("extractionContent")]
- public string ExtractionContent { get; set; }
- [JsonProperty("extractionType")]
- public string ExtractionType { get; set; }
- [JsonProperty("boundingRegions")]
- public BoundingRegion[] BoundingRegions { get; set; }
- }
- public partial class BoundingRegion
- {
- [JsonProperty("pageNumber")]
- public long PageNumber { get; set; }
- [JsonProperty("boundingPolygon")]
- public BoundingPolygon[] BoundingPolygon { get; set; }
- }
- public partial class BoundingPolygon
- {
- [JsonProperty("isEmpty")]
- public bool IsEmpty { get; set; }
- [JsonProperty("x")]
- public double X { get; set; }
- [JsonProperty("y")]
- public double Y { get; set; }
- }
- public partial class Page
- {
- [JsonProperty("pageNumber")]
- public long PageNumber { get; set; }
- [JsonProperty("angle")]
- public long Angle { get; set; }
- [JsonProperty("width")]
- public double Width { get; set; }
- [JsonProperty("height")]
- public double Height { get; set; }
- [JsonProperty("unit")]
- public long Unit { get; set; }
- }
- }
|