forked from Ken98045/On-Guard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathObjectCharacteristics.cs
52 lines (45 loc) · 1.87 KB
/
ObjectCharacteristics.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
52
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SAAI
{
/// <summary>
/// When defining an Area of Interest each object type in an area has optional
/// characteristics that define when an object on the screen is consdiered
/// "Interesting"
/// </summary>
[Serializable]
public class ObjectCharacteristics
{
private ImageObjectType objectType;
public int Confidence { get; set; } // Confidence values are very good in defining "people".
public int MinPercentOverlap { get; set; } // A measurement for how much of an object must overlap the Area of Interest to be considered Interesting
public int TimeFrame { get; set; } // Currently not implemented. When we determine movement direction this will define how many frames we look in
public int MinimumXSize { get; set; } //In part this regulates how close the object is to the camera. I don't see a reason for maximum size
public int MinimumYSize { get; set; } //In part this regulates how close the object is to the camera. I don't see a reason for maximum size
public ImageObjectType ObjectType { get => objectType; set => objectType = value; } // people, animals, cars, etc.
public Guid ID { get; set; }
public ObjectCharacteristics()
{
ID = Guid.NewGuid();
objectType = ImageObjectType.People;
Confidence = 90;
MinPercentOverlap = 50;
TimeFrame = 1;
MinimumXSize = 0;
MinimumYSize = 0;
}
public ObjectCharacteristics(ObjectCharacteristics src)
{
ID = src.ID;
objectType = src.objectType;
Confidence = src.Confidence;
MinPercentOverlap = src.MinPercentOverlap;
TimeFrame = src.TimeFrame;
MinimumXSize = src.MinimumXSize;
MinimumYSize = src.MinimumYSize;
}
}
}