DJI Mobile SDK Documentation

      class DJISmartCaptureState

      @interface DJISmartCaptureState : NSObject
      Header:DJIVisionTypes.h
      Inherits From:NSObject
      Description:

      The object includes all information related to SmartCapture.

      Class Members:
      Capture State
      property
      property systemStatus
      @property (nonatomic, readonly) DJISmartCaptureSystemStatus systemStatus
      Header:DJIVisionTypes.h
      Description:

      The system status of SmartCapture.

      See Also:

      DJISmartCaptureSystemStatus

      property
      property action
      @property (nonatomic, readonly) DJISmartCaptureAction action
      Header:DJIVisionTypes.h
      Description:

      The executing SmartCapture action.

      See Also:

      DJISmartCaptureAction

      property followingMode
      @property (nonatomic, readonly) DJISmartCaptureFollowingMode followingMode
      Header:DJIVisionTypes.h
      Description:

      The following mode of SmartCapture.

      See Also:

      DJISmartCaptureFollowingMode

      property photoCountdown
      @property (nonatomic, readonly) NSTimeInterval photoCountdown
      Header:DJIVisionTypes.h
      Description:

      The countdown for shooting photo.

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

      The dimension of the detected target. It is CGRectNull when the target is invalid.

      enum DJISmartCaptureSystemStatus
      typedef NS_ENUM(NSInteger, DJISmartCaptureSystemStatus)
      Header:DJIVisionTypes.h
      Description:

      The system status of SmartCapture.

      Enum Members:
      DJISmartCaptureSystemStatusInitializingSmartCapture is initializing.
      DJISmartCaptureSystemStatusNotFlyingAndFaceAwareActivatingThe aircraft is not flying and detecting a human face in front of the camera.
      DJISmartCaptureSystemStatusNotFlyingAndFaceAwareActivatedThe aircraft is not flying and FaceAware has been activated. The aircraft will push the dimension of the target through targetRect of DJISmartCaptureState.
      DJISmartCaptureSystemStatusGestureLaunchGestureLaunch is recognized and the aircraft is taking off.
      DJISmartCaptureSystemStatusFlyingAndFaceAwareActivatingThe aircraft is flying and detecting human faces in front of the camera.
      DJISmartCaptureSystemStatusFlyingAndFaceAwareActivatedThe aircraft is flying and detected one or more than one human faces in front of the camera. One of the detected human can raise a hand to confirm the control. Then the SmartCapture state will change to DJISmartCaptureSystemStatusFollowing.
      DJISmartCaptureSystemStatusFollowingThe aircraft is following the target but not SmartCapture action is recognized.
      DJISmartCaptureSystemStatusPalmControlThe aircraft is executing PalmControl (controlling the position or the distance). See action of DJISmartCaptureState for more detail.
      DJISmartCaptureSystemStatusCameraCaptureActionThe aircraft is executing camera related action (e.g. shoot photos). See action of DJISmartCaptureState for more detail.
      DJISmartCaptureSystemStatusGestureLandGestureLand is recognized and the aircraft is landing.
      DJISmartCaptureSystemStatusUnknownUnknown.
      enum DJISmartCaptureAction
      typedef NS_ENUM(NSInteger, DJISmartCaptureAction)
      Header:DJIVisionTypes.h
      Description:

      Different actions supported by SmartCapture.

      Enum Members:
      DJISmartCaptureActionNoneNo action is being executed.
      DJISmartCaptureActionAdjustingPositionThe user is adjusting the aircraft's position. Move the palm up or down slowly to control the aircraft's altitude. Move the arm left or right to control the aircraft's orientation.
      DJISmartCaptureActionAdjustingDistanceThe user is adjusting distance between the aircraft and the user. Move two hands apart and the aircraft will fly away from the user. The maximum distance is 19.7ft (6m). Move two hands together and the aircraft will fly towards the user. The minimum distance is 6.6ft (2m).
      DJISmartCaptureActionSwitchingControlThe control of the aircraft is being switched from one person to the other. The current user drops hand towards the floor. The Front LEDs will turn solid green. The person who would like to control the aircraft raise palm in front of the aircraft. When the Front LEDs blinks green slowly, it indicates the control is switched successfully.
      DJISmartCaptureShootingPhotoThe camera is shooting photos. Make a V gesture with one hand to trigger the action. Once the gesture is recognized, two-second countdown will begin (photoCountdown of DJISmartCaptureState).
      DJISmartCaptureActionRecordingVideoThe camera is recording video. To start this, make a frame gesture with fingers from both hands. Once the gesture is recognized, the aircraft's front LEDs will turn off and the camera will start recording. After five seconds, use the same gesture to stop the recording.
      DJISmartCaptureActionUnknownUnknown.
      enum DJISmartCaptureFollowingMode
      typedef NS_ENUM(NSInteger, DJISmartCaptureFollowingMode)
      Header:DJIVisionTypes.h
      Description:

      Different following modes of SmartCapture.

      Enum Members:
      DJISmartCaptureFollowingModeTraceAircraft follows the target at constant distance.
      DJISmartCaptureFollowingModeProfileAircraft follows the target at constant angle and distance from the side.
      DJISmartCaptureFollowingModeUnknownUnknown.