DJI Mobile SDK Documentation

      class SubjectSensingState

      class SubjectSensingState
      Package:dji.common.mission.activetrack
      Description:

      The state of one of the auto-sensed subject after enabling auto sensing. Only supported by DJI Mavic Air.

      Class Members:
      State
      method
      method getIndex
      int getIndex()
      Package:dji.common.mission.activetrack
      Description:

      Index of the auto-sensed subjects. After enabling auto sensing, the aircraft may find multiple subjects and an index will be assigned to each subject. Use this index to select the subject to track.

      Return:
      intAn int value of target index.
      method
      method getState
      ActiveTrackTargetState getState()
      Package:dji.common.mission.activetrack
      Description:

      The target state of the auto-sensed subject.

      Return:
      ActiveTrackTargetStateAn enum value of ActiveTrackTargetState.
      method getTargetType
      ActiveTrackTargetType getTargetType()
      Package:dji.common.mission.activetrack
      Description:

      The type of the auto-sensed subject.

      Return:
      ActiveTrackTargetTypeAn enum value of ActiveTrackTargetType.
      method getTargetRect
      RectF getTargetRect()
      Package:dji.common.mission.activetrack
      Description:

      A rectangle in the live video view image that represents the auto-sensed subject. 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.

      Return:
      RectFA RectF object.