CameraFeed
A camera feed gives you access to a single physical camera attached to your device.
A camera feed gives you access to a single physical camera attached to your device. When enabled, Godot will start capturing frames from the camera which can then be used.
Properties
Enumerations
enum FeedDataType:
- FEED_NOIMAGE = 0 —- No image set for the feed.
- FEED_RGB = 1 —- Feed supplies RGB images.
- FEED_YCBCR = 2 —- Feed supplies YCbCr images that need to be converted to RGB.
- FEED_YCBCR_SEP = 3 —- Feed supplies separate Y and CbCr images that need to be combined and converted to RGB.
enum FeedPosition:
- FEED_UNSPECIFIED = 0 —- Unspecified position.
- FEED_BACK = 2 —- Camera is mounted at the back of the device.
- feed_is_active
- Transform2D feed_transform
The transform applied to the camera’s image.
Method Descriptions
- get_id ( ) const
Returns the unique ID for this feed.
- String get_name ( ) const
Returns the position of camera on the device.