package com.heyu.api.baidu.response.others;


import com.fasterxml.jackson.annotation.JsonProperty;
import com.heyu.api.baidu.response.BBaseResp;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/****
 * https://console.bce.baidu.com/support/?_=1740667714316&timestamp=1740670271244#/api?product=AI&project=%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB&parent=%E6%96%87%E6%A1%A3%E5%9B%BE%E5%83%8F%E5%A4%84%E7%90%86&api=rest%2F2.0%2Focr%2Fv1%2Fdoc_crop_enhance&method=post
 *文档矫正增强
 *
 */
@NoArgsConstructor
@Data
public class BDocCropEnhanceResp extends BBaseResp {


    @JsonProperty("points")
    private List<PointsDTO> points;
    @JsonProperty("image_processed")
    private String imageProcessed;
    @JsonProperty("log_id")
    private Long logId;
    /***
     *	传入PDF文件的总页数，当 pdf_file 参数有效时返回该字段
     */
    @JsonProperty("pdf_file_size")
    private Long pdfFileNum;

    @NoArgsConstructor
    @Data
    public static class PointsDTO {
        @JsonProperty("x")
        private Integer x;
        @JsonProperty("y")
        private Integer y;
    }
}
