package com.iailab.module.data.video.config;
|
|
import com.iailab.module.data.video.service.CameraService;
|
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.context.annotation.Configuration;
|
|
import javax.annotation.PostConstruct;
|
import javax.annotation.Resource;
|
|
/**
|
* 摄像头配置文件
|
*/
|
@Configuration
|
public class VideoConfiguration {
|
|
@Value("${video.capture-dir}")
|
public String captureDir;
|
|
@Value("${video.dahua.path.capture-path}")
|
public String dhCapturePath;
|
|
@Value("${video.dahua.path.model-path}")
|
public String dhModelPath;
|
|
@Value("${video.hikvision.path.capture-path}")
|
public String hkCapturePath;
|
|
@Value("${video.hikvision.path.model-path}")
|
public String hkModelPath;
|
|
@Value("${video.hikvision.pic-size}")
|
public String picSize;
|
|
@Value("${video.hikvision.pic-quality}")
|
public String picQuality;
|
|
@Resource
|
public CameraService cameraService;
|
|
public static String staticDhCapturePath;
|
|
public static String staticDhModelPath;
|
|
public static String staticHkCapturePath;
|
|
public static String staticHkModelPath;
|
|
public static String staticPicSize;
|
|
public static String staticPicQuality;
|
|
public static CameraService staticCameraService;
|
|
@PostConstruct
|
public void initUrl() {
|
staticDhCapturePath = this.captureDir + this.dhCapturePath;
|
staticDhModelPath = this.captureDir + this.dhModelPath;
|
staticHkCapturePath = this.captureDir + this.hkCapturePath;
|
staticHkModelPath = this.captureDir + this.hkModelPath;
|
staticPicSize = this.picSize;
|
staticPicQuality = this.picQuality;
|
staticCameraService = this.cameraService;
|
}
|
}
|