IVetHeartDiagnosisService.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System.Collections.Generic;
  2. using Vinno.AI.CommonSDK.Enums;
  3. using Vinno.AI.CommonSDK.Interfaces;
  4. using Vinno.AI.CommonSDK.Models;
  5. using Vinno.AI.CommonSDK.Models.Data;
  6. using Vinno.AI.VetHeartDiagnosisSDK.Enums;
  7. using Vinno.AI.VetHeartDiagnosisSDK.Models;
  8. namespace Vinno.AI.VetHeartDiagnosisSDK.Interfaces
  9. {
  10. public interface IVetHeartDiagnosisService : IAIService
  11. {
  12. /// <summary>
  13. /// 初始化 VetHeartMLine Diagnosis
  14. /// </summary>
  15. /// <param name="vetHeartMLineDiagnosisParameter"></param>
  16. void Initialize(VetHeartDiagnosisParameter vetHeartMLineDiagnosisParameter, bool hasImageProvider);
  17. /// <summary>
  18. /// Start Image Provider
  19. /// </summary>
  20. void Start();
  21. /// <summary>
  22. /// Stop Image Provider
  23. /// </summary>
  24. void Stop();
  25. /// <summary>
  26. /// 开始一次处理
  27. /// </summary>
  28. /// <param name="engineType"></param>
  29. /// <returns></returns>
  30. string StartProcess(AIEnumVetHeartEngineType engineType);
  31. /// <summary>
  32. /// 结束一次处理
  33. /// </summary>
  34. /// <param name="engineType"></param>
  35. /// <param name="processId"></param>
  36. void EndProcess(AIEnumVetHeartEngineType engineType, string processId);
  37. /// <summary>
  38. /// 输入一份数据,并实时得到结果
  39. /// </summary>
  40. /// <param name="processId"></param>
  41. /// <param name="imageDataId"></param>
  42. /// <param name="imageExtraInfo"></param>
  43. /// <param name="bytes"></param>
  44. /// <param name="height"></param>
  45. /// <param name="width"></param>
  46. /// <param name="colorType"></param>
  47. /// <returns></returns>
  48. List<TransAIResultInfo> PushOnePieceOfData(string processId, AIEnumVetHeartEngineType engineType, AIImageDataId imageDataId, AIImageExtraInfo imageExtraInfo, TransAIUltrasoundImageRegion ultrasoundImageRegion, int height, int width, AIEnumColorType colorType);
  49. /// <summary>
  50. /// 设置每秒图片吞吐量
  51. /// </summary>
  52. /// <param name="detectTps"></param>
  53. void SetDetectTps(int detectTps);
  54. /// <summary>
  55. /// 设置间隔时间
  56. /// </summary>
  57. /// <param name="intervalTime"></param>
  58. void SetIntervalTime(int intervalTime);
  59. /// <summary>
  60. /// 设置检测模式
  61. /// </summary>
  62. /// <param name="detectMode"></param>
  63. void SetDetectMode(AIEnumDetectMode detectMode);
  64. /// <summary>
  65. /// Send Raw Image Data For Pipe
  66. /// </summary>
  67. /// <param name="height"></param>
  68. /// <param name="width"></param>
  69. /// <param name="colorType"></param>
  70. void SendImageData(AIImageDataId imageDataId, AIImageExtraInfo imageExtraInfo, TransAIUltrasoundImageRegion ultrasoundImageRegion, int height, int width, AIEnumColorType colorType);
  71. /// <summary>
  72. /// 设置当前使用的引擎,仅ImageProvider模式会用到
  73. /// </summary>
  74. /// <param name="engineType"></param>
  75. void SetCurrentEngine(AIEnumVetHeartEngineType engineType);
  76. /// <summary>
  77. /// 关闭 VetHeartMLine Diagnosis
  78. /// </summary>
  79. void Close();
  80. }
  81. }