CameraServer

Inherits: Object

Category: Core

Brief Description

The CameraServer keeps track of different cameras accessible in Godot. These are external cameras such as webcams or the cameras on your phone.

Methods

void add_feed ( CameraFeed feed )
Array feeds ( )
CameraFeed get_feed ( int index )
int get_feed_count ( )
void remove_feed ( CameraFeed feed )

Signals

  • camera_feed_added ( int id )

Emitted when a CameraFeed is added (webcam is plugged in).


  • camera_feed_removed ( int id )

Emitted when a CameraFeed is removed (webcam is removed).

Enumerations

enum 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

Adds a camera feed to the camera server.


Returns an array of CameraFeeds.


Returns the CameraFeed with this id.


  • int get_feed_count ( )

Returns the number of CameraFeeds registered.


Removes a CameraFeed.