All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.volcengine.service.visual.model.response.OCRNormalResponse Maven / Gradle / Ivy

There is a newer version: 1.0.192
Show newest version
package com.volcengine.service.visual.model.response;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.util.List;

@Data
public class OCRNormalResponse extends VisualBaseResponse {
    
    @JSONField(name = "data")
    OCRNormalData data;

    @Data
    public static class OCRNormalData {
        
        @JSONField(name = "line_texts")
        List lineTexts;

        @JSONField(name = "line_rects")
        List lineRects;

        @JSONField(name = "chars")
        List> chars;

        @JSONField(name = "polygons")
        List>> polygons;
    }

    @Data
    public static class Rect {
        @JSONField(name = "x")
        Integer x;

        @JSONField(name = "y")
        Integer y;

        @JSONField(name = "width")
        Integer width;

        @JSONField(name = "height")
        Integer height;
    }

    @Data
    public static class CharInfo {
        @JSONField(name = "x")
        Integer x;

        @JSONField(name = "y")
        Integer y;

        @JSONField(name = "width")
        Integer width;

        @JSONField(name = "height")
        Integer height;

        @JSONField(name = "score")
        Float score;

        @JSONField(name = "char")
        String ch;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy