Main Content

closePreview

Close Parrot drone FPV camera preview window

Description

example

closePreview(cameraObj) closes the preview window of the Parrot® drone camera, specified as cameraObj. You can close the preview at any time using the closePreview function. If you do not explicitly close the preview, it closes when you clear the camera object.

Examples

collapse all

Connect to a Parrot Mambo FPV drone over a wireless network.

parrotObj = parrot('Mambo');

Connect to the FPV camera

cameraObj = camera(parrotObj,'FPV')
cameraObj = 
          camera with properties:

                    Name: "FPV"
              Resolution: "640x360"                    

Preview the image from the camera

preview(cameraObj);

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

Close the preview

closePreview(cameraObj);

Input Arguments

collapse all

Parrot drone camera connection object, specified as a camera object.

See Also

| |

Introduced in R2019a