Main Content

preview

Preview live video data from Ryze drone camera

Since R2020a

Add-On Required: This feature requires the MATLAB Support Package for Ryze Tello Drones add-on.

Description

example

preview(cameraObj) creates a preview window that displays live video data from a Ryze drone camera object,represented as cameraObj. The preview window also displays the camera URL, resolution, frame rate, and timestamp.

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" 

Start preview of the video stream from the drone's camera

preview(cameraObj)

The preview window opens and displays live video stream from your camera. The lower portion of the window shows the timestamp in seconds, resolution, and frame rate in frames per second.

Input Arguments

collapse all

Ryze drone camera connection object, specified as cameraObj.

Version History

Introduced in R2020a