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

com.volcengine.model.response.translate.TranslateImageResponse Maven / Gradle / Ivy

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

import com.alibaba.fastjson.annotation.JSONField;
import com.volcengine.model.response.ResponseMetadata;
import lombok.Data;

import java.util.List;

@Data
public class TranslateImageResponse {
    @JSONField(name = "ResponseMetadata")
    ResponseMetadata responseMetadata;

    @JSONField(name = "Image")
    String image;

    @JSONField(name = "TextBlocks")
    List result;

    @Data
    public static class TextBlock {
        @JSONField(name = "Points")
        List points;
        @JSONField(name = "DetectedLanguage")
        String detectedLanguage;
        @JSONField(name = "Text")
        String text;
        @JSONField(name = "Translation")
        String translation;
        @JSONField(name = "ForeColor")
        List foreColor;
        @JSONField(name = "BackColor")
        List backColor;
    }

    @Data
    public static class Point {
        @JSONField(name = "X")
        Integer x;
        @JSONField(name = "Y")
        Integer y;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy