SensitiveRecognitionResult.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. using System.Xml.Serialization;
  2. namespace COSXML.Model.Tag
  3. {
  4. /// <summary>
  5. /// 图片审核结果
  6. /// </summary>
  7. [XmlRoot("RecognitionResult")]
  8. public sealed class SensitiveRecognitionResult
  9. {
  10. /// <summary>
  11. /// 鉴黄审核信息
  12. /// </summary>
  13. [XmlElement]
  14. public RecognitionInfo PornInfo;
  15. /// <summary>
  16. /// 鉴暴恐审核信息
  17. /// </summary>
  18. [XmlElement]
  19. public RecognitionInfo TerroristInfo;
  20. /// <summary>
  21. /// 鉴政审核信息
  22. /// </summary>
  23. [XmlElement]
  24. public RecognitionInfo PoliticsInfo;
  25. /// <summary>
  26. /// 广告审核信息
  27. /// </summary>
  28. [XmlElement]
  29. public RecognitionInfo AdsInfo;
  30. /// <summary>
  31. /// 原图信息
  32. /// </summary>
  33. public sealed class RecognitionInfo
  34. {
  35. /// <summary>
  36. /// 错误码,0为正确,其他数字对应相应错误
  37. /// </summary>
  38. [XmlElement]
  39. public int Code;
  40. /// <summary>
  41. /// 具体错误信息,如正常则为 OK
  42. /// </summary>
  43. [XmlElement]
  44. public string Msg;
  45. /// <summary>
  46. /// 是否命中该审核分类,0表示未命中,1表示命中,2表示疑似
  47. /// </summary>
  48. [XmlElement]
  49. public int HitFlag;
  50. /// <summary>
  51. /// 审核分值。0 - 60分表示图片正常,60 - 90分表示图片疑似敏感,90 - 100分表示图片确定敏感
  52. /// </summary>
  53. [XmlElement]
  54. public int Score;
  55. /// <summary>
  56. /// 识别出的图片标签
  57. /// </summary>
  58. [XmlElement]
  59. public string Label;
  60. /// <summary>
  61. /// 视频文件参数,该类型违规的截图张数
  62. /// </summary>
  63. [XmlElement]
  64. public int Count;
  65. }
  66. }
  67. }