-
Notifications
You must be signed in to change notification settings - Fork 1
/
VisionDescription.cs
53 lines (46 loc) · 1.35 KB
/
VisionDescription.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
53
using System.Collections.Specialized;
namespace TwitterVision.Models
{
public class VisionDescription
{
public Category[] categories { get; set; }
public Description description { get; set; }
public Color color { get; set; }
public string requestId { get; set; }
public Metadata metadata { get; set; }
}
public class Description
{
public string[] tags { get; set; }
public Caption[] captions { get; set; }
}
public class Caption
{
public string text { get; set; }
public float confidence { get; set; }
}
public class Color
{
public string dominantColorForeground { get; set; }
public string dominantColorBackground { get; set; }
public string[] dominantColors { get; set; }
public string accentColor { get; set; }
public bool isBwImg { get; set; }
}
public class Metadata
{
public int height { get; set; }
public int width { get; set; }
public string format { get; set; }
}
public class Category
{
public string name { get; set; }
public float score { get; set; }
public Detail detail { get; set; }
}
public class Detail
{
public object[] landmarks { get; set; }
}
}