| | |
| | | ReportServer string `mapstructure:"report-server"` |
| | | ReportInterval int `mapstructure:"report-interval"` |
| | | RetryInterval int `mapstructure:"retry-interval"` |
| | | |
| | | Enable bool `mapstructure:"enable"` |
| | | Enable bool `mapstructure:"enable"` |
| | | } |
| | | |
| | | type image struct { |
| | | CutFaceImage bool `mapstructure:"cut-face-image"` |
| | | OriginWidth float64 `mapstructure:"origin-width"` |
| | | OriginHeight float64 `mapstructure:"origin-height"` |
| | | CutFaceImage bool `mapstructure:"cut-face-image"` |
| | | Enlarge int `mapstructure:"enlarge"` |
| | | } |
| | | |
| | | // 梯控设备 |
| | |
| | | ClientConf.Proto = "http" |
| | | } |
| | | |
| | | if ImageConf.Enlarge == 0 { |
| | | ImageConf.Enlarge = 100 |
| | | } |
| | | |
| | | logger.SetLogLevel(LogConf.Level) |
| | | } |