Main Content

camera

Connection to Ryze drone's camera

Since R2020a

Description

This object represents a connection to the Ryze drone camera. To acquire images from the Ryze drone camera, use this object with the functions listed in Object Functions.

Creation

Description

example

cameraObj = camera(droneObj) creates a camera object that connects to the camera of the Ryze Tello drone, represented by droneObj.

example

cameraObj = camera(droneObj,Name) creates a camera object that connects to the specified camera of the Ryze Tello drone, represented by droneObj.

Input Arguments

expand all

Ryze Tello drone connection object, specified as a droneObj.

Name of the Ryze Tello drone camera, specified as one of the string array values in the AvailableCameras property of the droneObj object.

Properties

expand all

This property is read-only.

Name of the connected drone camera, specified as a string.

Example: "FPV"

Data Types: string

This property is read-only.

The image resolution of the drone camera represented as width x height, returned as a string.

Example: "960x720"

Data Types: string

Object Functions

The object functions are used to interact with your Ryze drone camera

snapshotAcquire single image frame from Ryze drone camera
previewPreview live video data from Ryze drone camera
closePreviewClose Ryze drone camera preview window

Examples

collapse all

Connect to a Ryze Tello drone.

droneObj = ryze()
droneObj = 
          ryze with properties:

                    Name: "Tello"
                      ID: "TELLO-D2B07B"
               IPAddress: "192.168.10.1"
                   State: "landed"
            BatteryLevel: 50%
             StationMode: 0
        AvailableCameras: ["FPV"]

Connect to the drone's camera using the camera object.

cameraObj = camera(droneObj);
cameraObj = 
          Camera with properties:

                    Name: "FPV"
              Resolution: "720x960" 

Connect to a Ryze Tello drone.

droneObj = ryze()
droneObj = 
          ryze tello with properties:

                    Name: "Tello"
                      ID: "TELLO-D2B07B"
                   State: "landed"
            BatteryLevel: 50%
        AvailableCameras: ["FPV"]

Connect to the drone's camera using the camera object.

cameraObj = camera(droneObj,'FPV');
cameraObj = 
          Camera with properties:

                    Name: "FPV"
              Resolution: "720x960" 

Version History

Introduced in R2020a