|
|
|
@ -2437,8 +2437,8 @@ namespace OpenAuth.App.ServiceApp
|
|
|
|
|
json.push_url = pushUrl;
|
|
|
|
|
json.imgsz = 640;
|
|
|
|
|
json.frame_skip = 1;
|
|
|
|
|
//json.model_name = algo.Path;
|
|
|
|
|
json.model_name = "yolo12x.pt";
|
|
|
|
|
json.model_name = algo.Path;
|
|
|
|
|
//json.model_name = "yolo12x.pt";
|
|
|
|
|
json.taskname = task.TaskName;
|
|
|
|
|
json.taskid = req.TaskId;
|
|
|
|
|
var taskRecord = new LasaTask()
|
|
|
|
@ -2456,7 +2456,8 @@ namespace OpenAuth.App.ServiceApp
|
|
|
|
|
json.tag = new int [0, 1, 2, 3, 4, 5];
|
|
|
|
|
var content = new StringContent(JsonConvert.SerializeObject(json), Encoding.UTF8, "application/json");
|
|
|
|
|
using var httpClient = new HttpClient();
|
|
|
|
|
var response = await httpClient.PostAsync("http://192.168.10.131:9025/start_detection", content);
|
|
|
|
|
var response = await httpClient.PostAsync("http://123.132.248.154:9309/start_detection", content);
|
|
|
|
|
//var response = await httpClient.PostAsync("http://192.168.10.131:9025/start_detection", content);
|
|
|
|
|
_logger.LogDebug($"成功调用{response.IsSuccessStatusCode}");
|
|
|
|
|
db.Ado.CommitTran();
|
|
|
|
|
}
|
|
|
|
|