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=1740667716472#/api?product=AI&project=%E6%96%87%E5%AD%97%E8%AF%86%E5%88%AB&parent=%E5%85%B6%E4%BB%96%E5%9C%BA%E6%99%AFOCR&api=rest%2F2.0%2Focr%2Fv1%2Fmeter&method=post
 *
 *
 * 仪器仪表盘读数识别
 */
@NoArgsConstructor
@Data
public class BMeterResp extends BBaseResp {


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

    @NoArgsConstructor
    @Data
    public static class WordsResultDTO {
        @JsonProperty("words")
        private String words;
        @JsonProperty("location")
        private LocationDTO location;

        @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;
        }
    }
}
