class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS Object CameraServer
Server keeping track of different cameras accessible in Godot.
The 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 Linux, Android, macOS, and iOS. On other platforms no CameraFeeds will be available. To get a CameraFeed on iOS, enable [member EditorExportPlatformIOS.modules/camera].
Enum FeedImage<>():Enum

FEED_RGBA_IMAGE:null = 0
The RGBA camera image.


FEED_YCBCR_IMAGE:null = 0
The [url=https://en.wikipedia.org/wiki/YCbCr]YCbCr[/url] camera image.


FEED_Y_IMAGE:null = 0
The Y component camera image.


FEED_CBCR_IMAGE:null = 1
The CbCr component camera image.
Signal camera_feed_added<>( int id=, id:int=, ):Signal
Emitted when a CameraFeed is added (e.g. a webcam is plugged in).

Signal camera_feed_removed<>( int id=, id:int=, ):Signal
Emitted when a CameraFeed is removed (e.g. a webcam is unplugged).

Signal camera_feeds_updated<>():Signal
Emitted when camera feeds are updated.

set get bool monitoring_feeds<>():bool set get
If true, the server is actively monitoring available camera feeds.

This has a performance cost, so only set it to true when you're actively accessing the camera.
Note: After setting it to true, you can receive updated camera feeds through the camera_feeds_updated signal.
func _ready(): CameraServer.camera_feeds_updated.connect(_on_camera_feeds_updated) CameraServer.monitoring_feeds = true func _on_camera_feeds_updated(): var feeds = CameraServer.feeds()
public override void _Ready() { CameraServer.CameraFeedsUpdated += OnCameraFeedsUpdated; CameraServer.MonitoringFeeds = true; } void OnCameraFeedsUpdated() { var feeds = CameraServer.Feeds(); }

void add_feed<>( CameraFeed feed=, feed:CameraFeed=, ):void
Adds the camera feed to the camera server.

CameraFeed[] feeds<>():CameraFeed[]
Returns an array of CameraFeeds.

CameraFeed get_feed<>( int index=, index:int=, ):CameraFeed
Returns the CameraFeed corresponding to the camera with the given index.

int get_feed_count<>():int
Returns the number of CameraFeeds registered.

void remove_feed<>( CameraFeed feed=, feed:CameraFeed=, ):void
Removes the specified camera feed.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...