-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFPPResponse.cs
More file actions
73 lines (62 loc) · 1.58 KB
/
FPPResponse.cs
File metadata and controls
73 lines (62 loc) · 1.58 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Light_Emoting_Diode
{
public class FPPResponse
{
public FPPResponse()
{
faces = new List<Face>();
}
public string image_id { get; set; }
public string request_id { get; set; }
public int time_used { get; set; }
public List<Face> faces { get; set; }
}
public class Face
{
public Face()
{
attributes = new Attributes();
face_rectangle = new Face_Rectangle();
}
public Attributes attributes { get; set; }
public Face_Rectangle face_rectangle { get; set; }
public string face_token { get; set; }
}
public class Attributes
{
public Attributes()
{
emotion = new Emotion();
}
public Emotion emotion { get; set; }
}
public class Emotion
{
internal int suprise;
public Emotion()
{
}
public int sadness { get; set; }
public int neutral { get; set; }
public int disgust { get; set; }
public int anger { get; set; }
public int surprise { get; set; }
public int fear { get; set; }
public int happiness { get; set; }
}
public class Face_Rectangle
{
public Face_Rectangle()
{
}
public int width { get; set; }
public int top { get; set; }
public int left { get; set; }
public int height { get; set; }
}
}