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

com.volcengine.model.request.GetImageOCRRequest Maven / Gradle / Ivy

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

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

@Data
public class GetImageOCRRequest {
    @JSONField(name = "ServiceId")
    String serviceId;

    @JSONField(name = "StoreUri")
    String storeUri;

    @JSONField(name = "ImageUrl")
    String imageUrl;

    @JSONField(name = "Scene")
    String scene;

    public void setScene(String scene) {
        this.scene = scene;
    }

    public void setScene(Scene scene) {
        this.scene = scene.getValue();
    }

    public enum Scene {
        GENERAL("general"),
        LICENSE("license"),
        ;

        private final String value;

        Scene(String value) {
            this.value = value;
        }

        public String getValue() {
            return value;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy