123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- using System;
- using System.Collections.Generic;
- using Vinno.AI.AutoEFDiagnosisSDK.Models;
- using Vinno.AI.CommonSDK.Enums;
- using Vinno.AI.CommonSDK.Interfaces;
- using Vinno.AI.CommonSDK.Models;
- namespace Vinno.AI.AutoEFDiagnosisSDK.Interfaces
- {
- public interface IAutoEFDiagnosis : IDiagnosis
- {
- #region 兽用
- /// <summary>
- /// 启用AutoEF计算(仅支持兽用)
- /// </summary>
- /// <param name="totalFrameCount">整个视频帧数</param>
- /// <param name="cmPerPixel">探头中像素与实际单位转换的参数</param>
- /// <param name="reprocess">后处理状态选择(vetAutoEF不适用,默认即可)</param>
- void StartAutotEFCalculation(long totalFrameCount, double cmPerPixel);
- /// <summary>
- /// 推入一张裸图(仅支持兽用)
- /// </summary>
- /// <param name="rawImage"></param>
- /// <param name="frameTime"></param>
- /// <returns></returns>
- void DetectOneImageForAutoEFCalculation(AIRawImage rawImage, double frameTime);
- /// <summary>
- /// 推入一张图(仅支持兽用)
- /// </summary>
- /// <param name="byteImage"></param>
- /// <param name="frameTime"></param>
- /// <returns></returns>
- void DetectOneImageForAutoEFCalculation(byte[] byteImage, double frameTime);
- /// <summary>
- /// 停止AutoEF并返回结果,若IsReturnEveryImgResult为True,则返回所有帧的AutoEF结果,若IsReturnEveryImgResult为False,则只返回ES,ED两张图的结果(仅支持兽用)
- /// </summary>
- /// <returns></returns>
- Dictionary<double, AIEDESDetectResult> StopAutoEFCalculation();
- #endregion 兽用
- #region 人用
- /// <summary>
- /// 启用AutoEF计算(仅支持人用)
- /// </summary>
- /// <param name="totalTime">表示要显示的AutoEF曲线的总时长</param>
- /// <param name="cmPerPixel">探头中像素与实际单位转换的参数</param>
- /// <param name="intervalTime">推理的间隔时间</param>
- string StartAutotEFCalculationForHuman(double totalTime, float cmPerPixel, double intervalTime);
- /// <summary>
- /// 检测单张图像(仅支持人用)
- /// </summary>
- /// <param name="calculationId"></param>
- /// <param name="rawImage"></param>
- /// <param name="frameTime"></param>
- /// <returns></returns>
- AICardiacCurveInfos DetectOneImageForHuman(string calculationId, AIRawImage rawImage, double frameTime);
- /// <summary>
- /// 检测单张图像(仅支持人用)
- /// </summary>
- /// <param name="byteImage"></param>
- /// <param name="byteImage"></param>
- /// <param name="frameTime"></param>
- /// <returns></returns>
- AICardiacCurveInfos DetectOneImageForHuman(string calculationId, byte[] byteImage, double frameTime);
- #endregion 人用
- /// <summary>
- /// Raised when the image evaluation is started.
- /// </summary>
- event EventHandler StartEvaluationNotification;
- /// <summary>
- /// Raised when the image evaluation is finished.
- /// </summary>
- event EventHandler<AICardiacCurveInfos> FinishEvaluationNotification;
- /// <summary>
- /// Start Image Provider
- /// </summary>
- void Start();
- /// <summary>
- /// Stop Image Provider
- /// </summary>
- void Stop();
- /// <summary>
- /// 设置每秒图片吞吐量
- /// </summary>
- /// <param name="detectTps">每秒图片吞吐量,必须大于0</param>
- void SetDetectTps(int detectTps);
- /// <summary>
- /// 设置间隔时间
- /// </summary>
- /// <param name="intervalTime"></param>
- void SetIntervalTime(int intervalTime);
- /// <summary>
- /// 设置一个像素代表的实际物理距离是多少cm
- /// </summary>
- /// <param name="cmPerPixel"></param>
- void SetCmPerPixel(double cmPerPixel);
- /// <summary>
- /// 设置检测模式
- /// </summary>
- /// <param name="detectMode"></param>
- void SetDetectMode(AIEnumDetectMode detectMode);
- /// <summary>
- /// Close AutoEF Diagnosis
- /// </summary>
- void Close();
- }
- }
|