DiagnosisPerImageModel.cs 925 B

1234567891011121314151617181920212223242526272829303132
  1. using System.Collections.Generic;
  2. using System.Linq;
  3. using AI.Common;
  4. using AI.DiagSystem;
  5. using Newtonsoft.Json;
  6. using Newtonsoft.Json.Linq;
  7. using WingInterfaceLibrary.Enum;
  8. namespace WingAIDiagnosisService.Manage
  9. {
  10. public class DiagnosisPerImageModel : AIDiagnosisPerImageModel
  11. {
  12. public string RemedicalCode { get; set; }
  13. public DataType DataType { get; set; }
  14. public double Pixel { get; set; }
  15. public string LocalVidPath { get; set; }
  16. public string AILocalImagePath { get; set; }
  17. public bool IsVinnoVid => DataType == DataType.VinnoVidSingle || DataType == DataType.VinnoVidMovie;
  18. /// <summary>查询结果中的病灶集合</summary>
  19. /// <returns></returns>
  20. public List<int> GetLabels()
  21. {
  22. return DiagResultsForEachOrgan.SelectMany(x => x.DetectedObjects).Select(x => x.Label).Distinct().ToList();
  23. }
  24. }
  25. }