using Newtonsoft.Json; using System.Collections.Generic; namespace Utils { public class CarInOrOut { public CarInOrOut() { } /// /// 车牌识别结果 /// [JsonProperty("AlarmInfoPlate")] public AlarmInfoPlate AlarmInfoPlate { get; set; } } /// /// 车牌识别结果 /// public class AlarmInfoPlate { public AlarmInfoPlate() { } /// /// 默认通道号 /// [JsonProperty("channel")] public int Channel { get; set; } /// /// 设备名称 /// [JsonProperty("deviceName")] public string DeviceName { get; set; } /// /// 设备 ip 地址 /// [JsonProperty("ipaddr")] public string Ipaddr { get; set; } /// /// 实际数据 /// [JsonProperty("result")] public Result Result { get; set; } /// /// 设备序列号 /// [JsonProperty("serialno")] public string Serialno { get; set; } [JsonProperty("user_data")] public string User_data { get; set; } } /// /// 实际数据 /// public class Result { public Result() { } /// /// 车牌识别结果信息 /// [JsonProperty("PlateResult")] public PlateResult PlateResult { get; set; } } /// /// 车牌识别结果信息 /// public class PlateResult { public PlateResult() { } /// /// 亮度评价 /// [JsonProperty("bright")] public int Bright { get; set; } /// /// 车身亮度 /// [JsonProperty("carBright")] public int CarBright { get; set; } /// /// 车身颜色 /// [JsonProperty("carColor")] public int CarColor { get; set; } /// /// 车牌颜色 0:未知、1:蓝色、2:黄色、3:白色、4:黑 色、5:绿色 /// [JsonProperty("colorType")] public int ColorType { get; set; } [JsonProperty("colorValue")] public int ColorValue { get; set; } /// /// 识别结果可信度 1-100 /// [JsonProperty("confidence")] public int Confidence { get; set; } /// /// 车的行进方向,0:未知,1:左,2:右,3:上, 4:下 /// [JsonProperty("direction")] public int Direction { get; set; } [JsonProperty("gioouts")] public List< Gioouts> Gioouts { get; set; } /// /// 识别车牌小图片内容经过 base64 后的字符串 /// [JsonProperty("imageFragmentFile")] public string ImageFragmentFile { get; set; } /// /// 识别小图片内容长度,注意不是 base64 后的长度 /// [JsonProperty("imageFragmentFileLen")] public int ImageFragmentFileLen { get; set; } /// /// 设备离线状态,0:在线,1:离线 /// [JsonProperty("isoffline")] public int Isoffline { get; set; } /// /// 车牌号字符串,如“京 AAAAAA” /// [JsonProperty("license")] public string License { get; set; } [JsonProperty("license_ext_type")] public int License_ext_type { get; set; } /// /// 车牌在图片中位置 /// [JsonProperty("location")] public Location Location { get; set; } /// /// 识别结果车牌 ID /// [JsonProperty("plateid")] public int Plateid { get; set; } /// /// 识别结果对应帧的时间戳 /// [JsonProperty("timeStamp")] public TimeStamp TimeStamp { get; set; } /// /// 识别所用时间 /// [JsonProperty("timeUsed")] public int TimeUsed { get; set; } /// /// 当前结果的触发类型:1:自动触发类型、2:外部输入触 发(IO 输入)、4:软件触发(SDK)、8:虚拟线圈触发 /// [JsonProperty("triggerType")] public int TriggerType { get; set; } /// /// 车牌类型 0:未知车牌:、1:蓝牌小汽车、2::黑牌小汽车、 3:单排黄牌、4:双排黄牌、 /// 5:警车车牌、6:武警车 牌、7:个性化车牌、8:单排军车牌、9:双排军车牌、1 0:使馆车牌、 /// 11:香港进出中国大陆车牌、12:农用车牌、13:教练车牌、14:澳门进出中国大陆车牌、 /// 15:双 层武警车牌、16:武警总队车牌、17:双层武警总队车牌、 18:民航车牌、19:新能源车牌 /// [JsonProperty("type")] public int Type { get; set; } } public class Gioouts { public Gioouts() { } /// /// IO OUT 序号 /// [JsonProperty("ionum")] public string Ionum { get; set; } /// /// 开闸类型:HTTP_IO_OUT_STATUS /// [JsonProperty("Ctrltype")] public string ctrltype { get; set; } } /// /// 车牌在图片中位置 /// public class Location { public Location() { } /// /// 位置为矩形区域;left\right\top\bottom:车牌在图片中位 置 /// [JsonProperty("RECT")] public RECT RECT { get; set; } } /// /// 位置为矩形区域;left\right\top\bottom:车牌在图片中位 置 /// public class RECT { public RECT() { } [JsonProperty("bottom")] public int Bottom { get; set; } [JsonProperty("left")] public int Left { get; set; } [JsonProperty("right")] public int Right { get; set; } [JsonProperty("top")] public int Top { get; set; } } /// /// 识别结果对应帧的时间戳 /// public class TimeStamp { public TimeStamp() { } /// /// 时间戳结构体类型 /// [JsonProperty("Timeval")] public Timeval Timeval { get; set; } } /// /// 时间戳结构体类型 /// public class Timeval { public Timeval() { } /// /// 时间,天 /// [JsonProperty("decday")] public int Decday { get; set; } /// /// 时间,小时 /// [JsonProperty("dechour")] public int Dechour { get; set; } /// /// 时间,分钟 /// [JsonProperty("decmin")] public int Decmin { get; set; } /// /// 时间,月 /// [JsonProperty("decmon")] public int Decmon { get; set; } /// /// 时间,秒 /// [JsonProperty("decsec")] public int Decsec { get; set; } /// /// 时间,年 /// [JsonProperty("decyear")] public int Decyear { get; set; } /// /// 从 1970 年 1 月 1 日到对应帧的秒 /// [JsonProperty("sec")] public int Sec { get; set; } /// /// 从 1970 年 1 月 1 日到对应帧的毫秒 /// [JsonProperty("usec")] public int Usec { get; set; } } }