123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- using System.Collections.Generic;
- using Vinno.AI.CommonSDK.Enums;
- using Vinno.AI.CommonSDK.Interfaces;
- using Vinno.AI.CommonSDK.Models;
- using Vinno.AI.CommonSDK.Models.Data;
- using Vinno.AI.VetHeartDiagnosisSDK.Enums;
- 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>
- /// 开始一次处理
- /// </summary>
- /// <param name="engineType"></param>
- /// <returns></returns>
- string StartProcess(AIEnumVetHeartEngineType engineType);
- /// <summary>
- /// 结束一次处理
- /// </summary>
- /// <param name="engineType"></param>
- /// <param name="processId"></param>
- void EndProcess(AIEnumVetHeartEngineType engineType, string processId);
- /// <summary>
- /// 输入一份数据,并实时得到结果
- /// </summary>
- /// <param name="processId"></param>
- /// <param name="imageDataId"></param>
- /// <param name="imageExtraInfo"></param>
- /// <param name="bytes"></param>
- /// <param name="height"></param>
- /// <param name="width"></param>
- /// <param name="colorType"></param>
- /// <returns></returns>
- List<TransAIResultInfo> PushOnePieceOfData(string processId, AIEnumVetHeartEngineType engineType, AIImageDataId imageDataId, AIImageExtraInfo imageExtraInfo, TransAIUltrasoundImageRegion ultrasoundImageRegion, int height, int width, AIEnumColorType colorType);
- /// <summary>
- /// 设置每秒图片吞吐量
- /// </summary>
- /// <param name="detectTps"></param>
- void SetDetectTps(int detectTps);
- /// <summary>
- /// 设置间隔时间
- /// </summary>
- /// <param name="intervalTime"></param>
- void SetIntervalTime(int intervalTime);
- /// <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 SendImageData(AIImageDataId imageDataId, AIImageExtraInfo imageExtraInfo, TransAIUltrasoundImageRegion ultrasoundImageRegion, int height, int width, AIEnumColorType colorType);
- /// <summary>
- /// 设置当前使用的引擎,仅ImageProvider模式会用到
- /// </summary>
- /// <param name="engineType"></param>
- void SetCurrentEngine(AIEnumVetHeartEngineType engineType);
- /// <summary>
- /// 关闭 VetHeartMLine Diagnosis
- /// </summary>
- void Close();
- }
- }
|