DJI Mobile SDK Documentation

      class DJIActiveTrackTrackingState

      @interface DJIActiveTrackTrackingState : NSObject
      Header:DJIActiveTrackMission.h
      Inherits From:NSObject
      Description:

      The tracking state of the ActiveTrack mission that is executing.

      Class Members:
      State
      property
      property state
      @property (nonatomic, readonly) DJIActiveTrackTargetState state
      Header:DJIActiveTrackMission.h
      Description:

      The state of the target being tracked.

      See Also:

      DJIActiveTrackTargetState

      Target Type
      property
      property targetType
      @property (nonatomic, readonly) DJIActiveTrackTargetType targetType
      Header:DJIActiveTrackMission.h
      Description:

      The type of the target being tracked.

      See Also:

      DJIActiveTrackTargetType

      property
      property targetRect
      @property (nonatomic, readonly) CGRect targetRect
      Header:DJIActiveTrackMission.h
      Description:

      A rectangle in the live video view image that represents the target being tracked. The rectangle is normalized to [0,1] where (0,0) is the top left of the video preview and (1,1) is the bottom right.

      property cannotConfirmReason
      @property (nonatomic, readonly) DJIActiveTrackCannotConfirmReason cannotConfirmReason
      Header:DJIActiveTrackMission.h
      Description:

      Reason why the target cannot be confirmed by the user. It is useful when state is DJIActiveTrackTargetStateCannotConfirm. Otherwise, it is DJIActiveTrackCannotConfirmReasonNone. Not supported by Mavic Air 2, DJI Air 2S.

      See Also:

      DJIActiveTrackCannotConfirmReason

      Progress
      property
      property progress
      @property (nonatomic, readonly) NSUInteger progress
      Header:DJIActiveTrackMission.h
      Description:

      The progress of the executing QuickShot mission. Only applicable when mode is DJIActiveTrackModeQuickShot. For other modes, it is always 0.

      Auto-sensed Subjects
      property
      property autoSensedSubjects
      @property (nonatomic, readonly, nullable) NSArray<DJISubjectSensingState *> *autoSensedSubjects
      Header:DJIActiveTrackMission.h
      Description:

      The auto-sensed subjects after enabling auto sensing.

      See Also:

      DJISubjectSensingState

      enum DJIActiveTrackCannotConfirmReason
      typedef NS_ENUM (NSInteger, DJIActiveTrackCannotConfirmReason)
      Header:DJIActiveTrackMission.h
      Description:

      The reason why user is not allowed to confirm the current target.

      Enum Members:
      DJIActiveTrackCannotConfirmReasonNoneNone.
      DJIActiveTrackCannotConfirmReasonUnstableTargetThe target is unstable.
      DJIActiveTrackCannotConfirmReasonTargetTooHighThe target position is too high.
      DJIActiveTrackCannotConfirmReasonBlockedByObstacleThere is an obstacle between the aircraft and the target that is blocking the target.
      DJIActiveTrackCannotConfirmReasonGimbalAttitudeErrorThe gimbal's attitude is pointing to the ground.
      DJIActiveTrackCannotConfirmReasonTargetTooFarThe target is too far away from the aircraft.
      DJIActiveTrackCannotConfirmReasonTargetTooCloseThe target is too close to the aircraft.
      DJIActiveTrackCannotConfirmReasonAircraftTooHighThe altitude of the aircraft is too high.
      DJIActiveTrackCannotConfirmReasonAircraftTooLowThe altitude of the aircraft is too low.
      DJIActiveTrackCannotConfirmReasonObstacleSensorErrorThe obstacle vision sensor has errors.
      DJIActiveTrackCannotConfirmReasonUnknownUnknown.
      enum DJIActiveTrackTargetType
      typedef NS_ENUM(NSInteger, DJIActiveTrackTargetType)
      Header:DJIActiveTrackMission.h
      Description:

      The type of ActiveTrack target.

      Enum Members:
      DJIActiveTrackTargetTypeHumanThe ActiveTrack target is a human being.
      DJIActiveTrackTargetTypeCarThe ActiveTrack target is a car.
      DJIActiveTrackTargetTypeVanThe ActiveTrack target is a van.
      DJIActiveTrackTargetTypeBikeThe ActiveTrack target is a bike.
      DJIActiveTrackTargetTypeBoatThe ActiveTrack target is a boat.
      DJIActiveTrackTargetTypeUnknownThe aircraft cannot recognize the target type.
      enum DJIActiveTrackTargetState
      typedef NS_ENUM(NSInteger, DJIActiveTrackTargetState)
      Header:DJIActiveTrackMission.h
      Description:

      The state of the target being tracked by the aircraft.

      Enum Members:
      DJIActiveTrackTargetStateCannotConfirmThe aircraft has recognized the target but the user is not allowed to confirm the target. Check cannotConfirmReason to get more information.
      DJIActiveTrackTargetStateWaitingForConfirmationThe aircraft has recognized the target and is waiting for user's confirmation. If this state, the aircraft will hover in the current position while the camera is tracking the target (by rotating aircraft's yaw or gimbal's altitude). If user confirms the target, the aircraft will start to following the movement of the target.
      DJIActiveTrackTargetStateTrackingWithHighConfidenceThe aircraft has recognized the target with high confidence.
      DJIActiveTrackTargetStateTrackingWithLowConfidenceThe ActiveTrack Mission is tracking a target with low confidence. This is only an indication that either the aircraft will soon ask for confirmation that the target is correct, or may loose tracking the target entirely if confidence doesn't improve.
      DJIActiveTrackTargetStateUnknownUnknown.