Camera: Backend for acquiring camera image

_REF

Camera: Backend for acquiring camera image

class pymt.core.camera.CameraBase(**kwargs)

Bases: pymt.baseobject.BaseObject

Abstract Camera Widget class.

Concrete camera classes must implement initializaation and frame capturing to buffer that can be uploaded to gpu.

Parameters :
size : tuple (int, int)

Size at which the image is drawn. If no size is specified, it defaults to 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.

draw()

Draw the current image camera

init_camera()

Initialise the camera (internal)

resolution

Resolution of camera capture (width, height)

start()

Start the camera acquire

stop()

Release the camera

texture

Return the camera texture with the latest capture

update()

Update the camera (internal)

video_src

Source of the camera

Previous topic

Audio: Load and play sound

Next topic

Image: handle loading of images

This Page