CameraServer

Inherits: Object Server keeping track of different cameras accessible in Godot.

Description

CameraServer keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone. It is notably used to provide AR modules with a video feed from the camera. Note: This class is currently only implemented on macOS and iOS. On other platforms, no CameraFeeds will be available.

Methods

Signals

  • camera_feed_added ( int id ) CameraFeed is added (e.g. a webcam is plugged in).

  • camera_feed_removed ( int id ) CameraFeed is removed (e.g. a webcam is unplugged).

    Enumerations

    FeedImage:
  • FEED_RGBA_IMAGE = 0 —- The RGBA camera image.
  • FEED_YCBCR_IMAGE = 0 —- The YCbCr camera image.
  • FEED_Y_IMAGE = 0 —- The Y component camera image.
  • FEED_CBCR_IMAGE = 1 —- The CbCr component camera image.

    Method Descriptions

  • add_feed ( CameraFeed feed ) feed to the camera server.

  • Array feeds ( ) CameraFeeds.

  • CameraFeed get_feed ( int index ) CameraFeed corresponding to the camera with the given index.

  • int get_feed_count ( ) CameraFeeds registered.

  • remove_feed ( CameraFeed feed ) feed.