forked from Ken98045/On-Guard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CameraContactData.cs
51 lines (44 loc) · 1.54 KB
/
CameraContactData.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
namespace SAAI
{
/// <summary>
/// A class to define the way to contact a camera (via BlueIris or otherwise)
/// </summary>
[Serializable]
public class CameraContactData
{
public string CameraIPAddress { get; set; }
public int Port { get; set; }
public string ShortCameraName { get; set; } // used by Blue Iris (not by direct, but it shouldn't matter)
public string CameraUserName { get; set; }
public string CameraPassword { get; set; }
// The Blue Iris returns an image at this resolution. The default resolution that BlueIris
// returns is not necessarily the full camera reasolution. This allows you to set the value.
// Setting the value lower may reduce AI object recognition time.
public int CameraXResolution { get; set; }
public int CameraYResolution { get; set; }
public CameraContactData()
{
CameraIPAddress = "localhost";
Port = 80;
ShortCameraName = "myCameraName";
CameraUserName = "me";
CameraPassword = "password";
CameraXResolution = 0;
CameraYResolution = 0;
}
public CameraContactData(CameraContactData src)
{
if (null != src)
{
CameraIPAddress = src.CameraIPAddress;
Port = src.Port;
ShortCameraName = src.ShortCameraName;
CameraUserName = src.CameraUserName;
CameraPassword = src.CameraPassword;
CameraXResolution = src.CameraXResolution;
CameraYResolution = src.CameraYResolution;
}
}
}
}