ITrackMissionManager
interface ITrackMissionManager
Description: Smart Tracking Mode
method enterTrackingMission
fun enterTrackingMission(configBean: AIDetectConfigBean, callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: Enter Smart Tracking Mode
Input parameters: configBean:Enter the parameter setting of the tracking mode. Refer to AIDetectConfigBean
callback: A callback that returns the execution result
Output parameters: None。
Related parameters: None。
method exitTrackingMission
fun exitTrackingMission(callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: quit tracking task
Input parameters: callback: A callback that returns the execution result
Output parameters: None。
Related parameters: None。
method selectTargetRect
fun selectTargetRect(rectBean: TrackTargetRectBean, callback: CommonCallbacks.CompletionCallbackWithParam<Void>)
Description: Lock on target
Input parameters: rect: the coordinates of the marquee target, Refer to TrackTargetRectBean callback: the callback that returns the execution result
Output parameters: None。
Related parameters: None。
class AIDetectConfigBean
Description: Enter the lock task configuration.
data class AIDetectConfigBean(
/**
* The current scene type
*/
var sceneType: AiDetectSceneTypeEnum = AiDetectSceneTypeEnum.UNRECOGNIZED,
/**
* Specify the detection type. Refer to the enumeration DetectTargetEnum. When the list is empty, use the scene type.
*/
var targetTypeList: List<Int>? = null,
/**
* lens Id
*/
var lensId: Int?= null
)
class AIDetectConfigBean
Description: Enter the lock task configuration.
data class TrackTargetRectBean(
/**
* Starting point x coordinate
*/
val startX: Float = 0F,
/**
* Starting point y coordinate
*/
val startY: Float = 0F,
/**
* width
*/
val width: Float = 0F,
/**
* height
*/
val height: Float = 0F,
/**
* current lens id. Refer to camera ability
*/
var lensId: Int? = null,
/**
* current scene type
*/
var sceneType: AiDetectSceneTypeEnum,
/**
* object ID
*/
var objectId: Int? = 0
)