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

com.project.ai.model.response.detect.TextDetectResponse Maven / Gradle / Ivy

The newest version!
package com.project.ai.model.response.detect;

import com.alibaba.fastjson.annotation.JSONField;
import com.project.ai.model.response.BaseResponse;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author yinshaobo
 * 2019/5/24 10:29
 * 通用文字识别
 */
@Setter
@Getter
@ToString(callSuper = true)
public class TextDetectResponse extends BaseResponse {

    /**
     * 图像方向,当detect_direction=true时存在。
     * - -1:未定义,
     * - 0:正向,
     * - 1: 逆时针90度,
     * - 2:逆时针180度,
     * - 3:逆时针270度
     */
    private Integer direction;

    @JSONField(name = "words_result_num")
    private Integer wordsResultNum;

    /**
     * 当detect_language=true时存在
     */
    private Integer language;

    @JSONField(name = "words_result")
    private List wordsResult;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy