IVetHeartDiagnosis.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. using System;
  2. using System.Collections.Generic;
  3. using Vinno.AI.CommonSDK.Enums;
  4. using Vinno.AI.CommonSDK.Interfaces;
  5. using Vinno.AI.CommonSDK.Models.Data;
  6. using Vinno.AI.VetHeartDiagnosisSDK.Enums;
  7. namespace Vinno.AI.VetHeartDiagnosisSDK.Interfaces
  8. {
  9. public interface IVetHeartDiagnosis : IDiagnosis
  10. {
  11. /// <summary>
  12. /// 获取AI VetHeart 引擎
  13. /// </summary>
  14. /// <param name="engineType"></param>
  15. /// <returns></returns>
  16. IAIVetHeartEngine GetAIEngine(AIEnumVetHeartEngineType engineType);
  17. /// <summary>
  18. /// Close VetHeartMLine Diagnosis
  19. /// </summary>
  20. void Close();
  21. /// <summary>
  22. /// Raised when the image evaluation is started.
  23. /// </summary>
  24. event EventHandler StartEvaluationNotification;
  25. /// <summary>
  26. /// Raised when the image evaluation is finished.
  27. /// </summary>
  28. event EventHandler<IReadOnlyDictionary<AIImageDataId, IReadOnlyList<IAIResultData>>> FinishEvaluationNotification;
  29. /// <summary>
  30. /// Start Image Provider
  31. /// </summary>
  32. void Start();
  33. /// <summary>
  34. /// Stop Image Provider
  35. /// </summary>
  36. void Stop();
  37. /// <summary>
  38. /// 设置每秒图片吞吐量
  39. /// </summary>
  40. /// <param name="detectTps">每秒图片吞吐量,必须大于0</param>
  41. void SetDetectTps(int detectTps);
  42. /// <summary>
  43. /// 设置间隔时间
  44. /// </summary>
  45. /// <param name="intervalTime"></param>
  46. void SetIntervalTime(int intervalTime);
  47. /// <summary>
  48. /// 设置检测模式
  49. /// </summary>
  50. /// <param name="detectMode"></param>
  51. void SetDetectMode(AIEnumDetectMode detectMode);
  52. }
  53. }