123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- using Vinno.AI.CommonSDK.Enums;
- using Vinno.AI.CommonSDK.Interfaces;
- using Vinno.AI.VetHeartDiagnosisSDK.Models;
- namespace Vinno.AI.VetHeartDiagnosisSDK.Interfaces
- {
- public interface IVetHeartDiagnosisService : IAIService
- {
- /// <summary>
- /// 初始化 VetHeartMLine Diagnosis
- /// </summary>
- /// <param name="vetHeartMLineDiagnosisParameter"></param>
- void Initialize(VetHeartDiagnosisParameter vetHeartMLineDiagnosisParameter, bool hasImageProvider);
- /// <summary>
- /// Start Image Provider
- /// </summary>
- void Start();
- /// <summary>
- /// Stop Image Provider
- /// </summary>
- void Stop();
- /// <summary>
- /// 检测单张Byte Image
- /// </summary>
- /// <param name="cmPerPixel">图像上一个像素实际代表的物理距离是多少cm</param>
- /// <returns></returns>
- AIVetHeartMLineCalcResult DetectOneByteImage(float cmPerPixel);
- /// <summary>
- /// 检测单张Byte Image
- /// </summary>
- /// <param name="cmPerPixel">图像上一个像素实际代表的物理距离是多少cm</param>
- /// <returns></returns>
- AIVetHeartMLineCalcResult DetectOneRawImage(int height, int width, AIEnumColorType colorType, float cmPerPixel);
- /// <summary>
- /// 设置每秒图片吞吐量
- /// </summary>
- /// <param name="detectTps"></param>
- void SetDetectTps(int detectTps);
- /// <summary>
- /// 设置间隔时间
- /// </summary>
- /// <param name="intervalTime"></param>
- void SetIntervalTime(int intervalTime);
- /// <summary>
- /// 设置一个像素代表的实际物理距离是多少cm
- /// </summary>
- /// <param name="cmPerPixel"></param>
- void SetCmPerPixel(float cmPerPixel);
- /// <summary>
- /// 设置检测模式
- /// </summary>
- /// <param name="detectMode"></param>
- void SetDetectMode(AIEnumDetectMode detectMode);
- /// <summary>
- /// Send Raw Image Data For Pipe
- /// </summary>
- /// <param name="height"></param>
- /// <param name="width"></param>
- /// <param name="colorType"></param>
- void SendRawImageData(int height, int width, AIEnumColorType colorType);
- /// <summary>
- /// Send Byte Image Data For Pipe
- /// </summary>
- void SendByteImageData();
- /// <summary>
- /// 关闭 VetHeartMLine Diagnosis
- /// </summary>
- void Close();
- }
- }
|