IVetHeartDiagnosisService.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. using Vinno.AI.CommonSDK.Enums;
  2. using Vinno.AI.CommonSDK.Interfaces;
  3. using Vinno.AI.VetHeartDiagnosisSDK.Models;
  4. namespace Vinno.AI.VetHeartDiagnosisSDK.Interfaces
  5. {
  6. public interface IVetHeartDiagnosisService : IAIService
  7. {
  8. /// <summary>
  9. /// 初始化 VetHeartMLine Diagnosis
  10. /// </summary>
  11. /// <param name="vetHeartMLineDiagnosisParameter"></param>
  12. void Initialize(VetHeartDiagnosisParameter vetHeartMLineDiagnosisParameter, bool hasImageProvider);
  13. /// <summary>
  14. /// Start Image Provider
  15. /// </summary>
  16. void Start();
  17. /// <summary>
  18. /// Stop Image Provider
  19. /// </summary>
  20. void Stop();
  21. /// <summary>
  22. /// 检测单张Byte Image
  23. /// </summary>
  24. /// <param name="cmPerPixel">图像上一个像素实际代表的物理距离是多少cm</param>
  25. /// <returns></returns>
  26. AIVetHeartMLineCalcResult DetectOneByteImage(float cmPerPixel);
  27. /// <summary>
  28. /// 检测单张Byte Image
  29. /// </summary>
  30. /// <param name="cmPerPixel">图像上一个像素实际代表的物理距离是多少cm</param>
  31. /// <returns></returns>
  32. AIVetHeartMLineCalcResult DetectOneRawImage(int height, int width, AIEnumColorType colorType, float cmPerPixel);
  33. /// <summary>
  34. /// 设置每秒图片吞吐量
  35. /// </summary>
  36. /// <param name="detectTps"></param>
  37. void SetDetectTps(int detectTps);
  38. /// <summary>
  39. /// 设置间隔时间
  40. /// </summary>
  41. /// <param name="intervalTime"></param>
  42. void SetIntervalTime(int intervalTime);
  43. /// <summary>
  44. /// 设置一个像素代表的实际物理距离是多少cm
  45. /// </summary>
  46. /// <param name="cmPerPixel"></param>
  47. void SetCmPerPixel(float cmPerPixel);
  48. /// <summary>
  49. /// 设置检测模式
  50. /// </summary>
  51. /// <param name="detectMode"></param>
  52. void SetDetectMode(AIEnumDetectMode detectMode);
  53. /// <summary>
  54. /// Send Raw Image Data For Pipe
  55. /// </summary>
  56. /// <param name="height"></param>
  57. /// <param name="width"></param>
  58. /// <param name="colorType"></param>
  59. void SendRawImageData(int height, int width, AIEnumColorType colorType);
  60. /// <summary>
  61. /// Send Byte Image Data For Pipe
  62. /// </summary>
  63. void SendByteImageData();
  64. /// <summary>
  65. /// 关闭 VetHeartMLine Diagnosis
  66. /// </summary>
  67. void Close();
  68. }
  69. }