package com.doumee.service.business.snapshot;
|
|
|
|
import lombok.Data;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
@Data
|
|
@Component
|
|
@ConfigurationProperties(prefix = "snapshot.infer")
|
|
public class SnapshotInferProperties {
|
|
|
|
private String baseUrl = "http://127.0.0.1:8095";
|
|
private int connectTimeoutMs = 5000;
|
|
private int readTimeoutMs = 600000;
|
|
private boolean enableAsr = true;
|
|
private boolean autoOnDownload = true;
|
|
private double sampleFps = 0.5;
|
|
/** 推理失败时是否回退到本地 25%/75% mock(生产环境应为 false) */
|
|
private boolean failOpenMock = false;
|
|
}
|