Table Of Contents
Core class for acquiring the camera and converting its input into a Texture.
- class kivy.core.camera.CameraBase(**kwargs)¶
Abstract Camera Widget class.
Concrete camera classes must implement initialization and frame capturing to a buffer that can be uploaded to the gpu.
- index: int
Source index of the camera.
- size : tuple (int, int)
Size at which the image is drawn. If no size is specified, it defaults to the resolution of the camera image.
- resolution : tuple (int, int)
Resolution to try to request from the camera. Used in the gstreamer pipeline by forcing the appsink caps to this resolution. If the camera doesnt support the resolution, a negotiation error might be thrown.
Fired when the camera is loaded and the texture has become available.
Fired each time the camera texture is updated.
Source index of the camera
Initialise the camera (internal)
Resolution of camera capture (width, height)
Start the camera acquire
Release the camera
Return the camera texture with the latest capture