她她她
This commit is contained in:
parent
349649087d
commit
3e8df48443
@ -35,7 +35,7 @@ namespace Wpf_AiSportsMicrospace.Views
|
||||
{
|
||||
private bool _isDragging = false;
|
||||
private Ellipse _draggedEllipse;
|
||||
private System.Windows.Point _dragStartPoint;
|
||||
private System.Windows.Point _dragStartPoint;
|
||||
private IHumanPredictor _humanPredictor;
|
||||
private IObjectDetector _objectDetector;
|
||||
private HumanGraphicsRenderer _humanGraphicsRenderer;
|
||||
@ -62,17 +62,14 @@ namespace Wpf_AiSportsMicrospace.Views
|
||||
var app = (App)Application.Current;
|
||||
using var scope = App.AppHost.Services.CreateScope();
|
||||
var db = scope.ServiceProvider.GetRequiredService<AppDbContext>();
|
||||
var BaseData = await db.BasicConfig.FirstOrDefaultAsync();
|
||||
var host = "172.17.30.64";
|
||||
var name = "admin";
|
||||
var password = "yd708090";
|
||||
if (BaseData != null) {
|
||||
host = BaseData.Host;
|
||||
name = BaseData.UserName;
|
||||
password = BaseData.Password;
|
||||
var BaseData = await db.BasicConfig.FirstOrDefaultAsync(x => x.Code == AppSettings.Code);
|
||||
if (BaseData==null)
|
||||
{
|
||||
this.ShowError("相机主机地址/IP不能为空。");
|
||||
return;
|
||||
}
|
||||
|
||||
var _webcamClient = WebcamClient.CreateRTSP( host, name, password, 554u);
|
||||
var _webcamClient = WebcamClient.CreateRTSP(BaseData.Host, BaseData.UserName, BaseData.Password);
|
||||
|
||||
//处理抽帧回调
|
||||
_webcamClient.OnExtractFrame += this.OnFrameExtracted;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user