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

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * https://console.bce.baidu.com/support/?_=1740219852952&timestamp=1740325884723#/api?product=AI&project=%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB&parent=%E4%BA%A4%E9%80%9A%E5%9C%BA%E6%99%AFOCR&api=rest%2F2.0%2Focr%2Fv1%2Fmixed_multi_vehicle&method=post
 *车辆证照混贴识别
 *
 */
public class BMixedMultiVehicleResp {



    @JsonProperty("words_result")
    private List<WordsResultDTO> wordsResult;
    @JsonProperty("log_id")
    private Long logId;
    @JsonProperty("words_result_num")
    private Integer wordsResultNum;

    @NoArgsConstructor
    @Data
    public static class WordsResultDTO {
        @JsonProperty("license_info")
        private List<LicenseInfoDTO> licenseInfo;
        @JsonProperty("probability")
        private Double probability;
        @JsonProperty("location")
        private LocationDTO location;
        @JsonProperty("card_type")
        private String cardType;
        @JsonProperty("direction")
        private Integer direction;

        @NoArgsConstructor
        @Data
        public static class LocationDTO {
            @JsonProperty("top")
            private Integer top;
            @JsonProperty("left")
            private Integer left;
            @JsonProperty("width")
            private Integer width;
            @JsonProperty("height")
            private Integer height;
        }

        @NoArgsConstructor
        @Data
        public static class LicenseInfoDTO {
            @JsonProperty("word_name")
            private String wordName;
            @JsonProperty("word")
            private String word;
        }
    }
}
