From 7f325a2532bca346f77549b049851888e0e4255c Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 20 一月 2020 11:53:16 +0800 Subject: [PATCH] libgowrapper remove sdkhelper deps --- util/data.go | 65 ++++---------------------------- 1 files changed, 8 insertions(+), 57 deletions(-) diff --git a/util/data.go b/util/data.go index e05173e..8034742 100644 --- a/util/data.go +++ b/util/data.go @@ -1,6 +1,6 @@ package util -// FetchServerInfo 浠巗qlite鐨勬湇鍔″櫒鑾峰彇鍚屾淇℃伅鐨勬湇鍔� +// FetchServerInfo 浠巗qlite鐨勬湇鍔″櫒鑾峰彇SDK淇℃伅鐨勬湇鍔″櫒淇℃伅 type FetchServerInfo struct { IP string HTTPort int @@ -8,27 +8,8 @@ DataPort int //鏁版嵁绔彛 } -// SDKFaceInfo face -type SDKFaceInfo struct { - DetectThrd int - DetectNum int - DetectAngle int - PropThrd int - ExtractThrd int - TrackInterval int - SampleSize int -} - -// SDKCarInfo car -type SDKCarInfo struct { - LicenseServerPath string - Model string - MaxImageWidth int - MaxImageHeight int -} - var ( - // FSI 鍚屾鏈嶅姟鍣ㄤ俊鎭� + // FSI SDK淇℃伅鏈嶅姟鍣↖P/Port FSI = &FetchServerInfo{ IP: "127.0.0.1", HTTPort: 8001, @@ -36,32 +17,10 @@ DataPort: 50007, } - // SFI 浜鸿劯淇℃伅 - SFI = &SDKFaceInfo{ - DetectThrd: 16, - DetectNum: 30, - DetectAngle: 60, - PropThrd: 16, - ExtractThrd: 16, - TrackInterval: 3, - SampleSize: 720, - } - - // SCI sdkcarinfo - SCI = &SDKCarInfo{ - LicenseServerPath: "./vtr.key", - Model: "./data/model", - MaxImageWidth: 4096, - MaxImageHeight: 2160, - } - // ToRuleIPC to ruleprocess ToRuleIPC = "ipc:///tmp/sdk-2-rules-process.ipc" - // RunParams slave杩涚▼闇�瑕佺殑鍙傛暟,浠巑aster浼犲叆 - RunParams []string - - // MapParames 淇濆瓨鍙傛暟map,澶囨洿鏂� + // MapParames map params MapParames = make(map[string]string) // LogFile log @@ -77,23 +36,15 @@ ) const ( - RuleIPC = "rule-ipc" + GPU = "gpu" + SHM = "shm" + LogIt = "logit" + ConfigPath = "config-path" FetchSrvIP = "fetch-server-ip" FetchSrvPort = "fetch-server-port" FetchSrvHeartbeatPort = "fetch-server-heartbeat-port" FetchSrvDataPort = "fetch-server-data-port" - FaceDetectThread = "face-detect-thread" - FaceDetectNum = "face-detect-num" - FaceDetectAngle = "face-detect-angle" - FacePropertyThread = "face-property-thread" - FaceExtractThread = "face-extract-thread" - FaceTrackInterval = "face-track-interval" - FaceTrackSample = "face-track-sample" - - CarSDKLicense = "car-sdk-license" - CarMaxImageWidth = "car-max-image-width" - CarMaxImageHeight = "car-max-image-height" - CarSDKModel = "car-sdk-model" + RuleIPC = "rule-ipc" ) -- Gitblit v1.8.0