You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
133 lines
3.8 KiB
133 lines
3.8 KiB
namespace Cis.Application.Core.Component.MarkSeacher;
|
|
|
|
/// <summary>
|
|
/// 追踪标签服务接口
|
|
/// </summary>
|
|
public interface IMarkSearcherServer
|
|
{
|
|
#region Base Method
|
|
|
|
/// <summary>
|
|
/// 激活相机进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public bool ActivateSearcher(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 解除相机进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public bool DeactivateSearcher(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 是否存在相机进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public bool IsExistsSearcher(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 获取 Searcher
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public MarkSearcherBase GetSearcher(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 激活标签进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <param name="markLabelId"></param>
|
|
/// <returns></returns>
|
|
public bool ActivateMarkLabel(long cameraId, long markLabelId);
|
|
|
|
/// <summary>
|
|
/// 解除标签进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <param name="markLabelId"></param>
|
|
/// <returns></returns>
|
|
public bool DeactivateMarkLabel(long cameraId, long markLabelId);
|
|
|
|
/// <summary>
|
|
/// 是否存在标签进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <param name="markLabelId"></param>
|
|
/// <returns></returns>
|
|
public bool IsExistsMarkLabel(long cameraId, long markLabelId);
|
|
|
|
/// <summary>
|
|
/// 获取标签计算结果列表
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public List<MarkLabelCalcResult> GetMarkLabelCalcResultList(long cameraId);
|
|
|
|
#endregion Base Method
|
|
|
|
#region Base Method Async
|
|
|
|
/// <summary>
|
|
/// 激活相机进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public Task<bool> ActivateSearcherAsync(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 解除相机进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public Task<bool> DeactivateSearcherAsync(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 是否存在相机进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public Task<bool> IsExistsSearcherAsync(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 获取 Searcher
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public Task<MarkSearcherBase> GetSearcherAsync(long cameraId);
|
|
|
|
/// <summary>
|
|
/// 激活标签进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <param name="markLabelId"></param>
|
|
/// <returns></returns>
|
|
public Task<bool> ActivateMarkLabelAsync(long cameraId, long markLabelId);
|
|
|
|
/// <summary>
|
|
/// 解除标签进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <param name="markLabelId"></param>
|
|
/// <returns></returns>
|
|
public Task<bool> DeactivateMarkLabelAsync(long cameraId, long markLabelId);
|
|
|
|
/// <summary>
|
|
/// 是否存在标签进入运算
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <param name="markLabelId"></param>
|
|
/// <returns></returns>
|
|
public Task<bool> IsExistsMarkLabelAsync(long cameraId, long markLabelId);
|
|
|
|
/// <summary>
|
|
/// 获取标签计算结果列表
|
|
/// </summary>
|
|
/// <param name="cameraId"></param>
|
|
/// <returns></returns>
|
|
public Task<List<MarkLabelCalcResult>> GetMarkLabelCalcResultListAsync(long cameraId);
|
|
|
|
#endregion Base Method Async
|
|
}
|