IAutoBLineDiagnosisService.cs 2.9 KB

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