Input object reading images from a V4L2-capable device.

| V4L2Input | Input object reading images from a V4L2-capable device. |
| Constants | |
| Control types | Constants denoting different types of controls. |
| Camera features | Constants for accessing the different features of the camera. |
| Properties | |
| width | Get width of images. |
| height | Get height of images. |
| Functions | |
| V4L2Input.new | Constructor. |
| inspect | Return string with information about this object. |
| close | Close the device. |
| read | Read an image. |
| status? | Indicates whether the device is still open. |
| feature_exist? | Check whether a certain feature is supported by the camera. |
| feature_read | Read the value of a feature. |
| feature_write | Change the value of a feature. |
| feature_type | Type of feature. |
| feature_name | Name of feature. |
| feature_min | Get lower boundary of feature value. |
| feature_max | Get upper boundary of feature value. |
| feature_step | Get step size for feature value. |
| feature_default_value | Get default value for feature. |
Constants for accessing the different features of the camera.
def V4L2Input.new( device = "/dev/video0", width = -1, height = -1, preferredColourSpace = '' )
Constructor.
| device | Filename of input device. |
| width | Preferred width (-1 for maximum width). |
| height | Preffered height (-1 for maximum height). |
| preferredColourSpace | Preferred colourspace. Colourspaces supported by HornetsEye are UBYTERGB, YUY2, UYVY, I420, MJPG and UBYTE. Specify ‘’ for automatic selection. |
Constructor.
def V4L2Input.new( device = "/dev/video0", width = -1, height = -1, preferredColourSpace = '' )
Return string with information about this object.
def inspect
Close the device.
def close
Read an image.
def read
Indicates whether the device is still open.
def status?
Check whether a certain feature is supported by the camera.
def feature_exist?( feature )
Read the value of a feature.
def feature_read( feature )
Change the value of a feature.
def feature_write( feature, value )
Type of feature.
def feature_type( feature )
Name of feature.
def feature_name( feature )
Get lower boundary of feature value.
def feature_min( feature )
Get upper boundary of feature value.
def feature_max( feature )
Get step size for feature value.
def feature_step( feature )
Get default value for feature.
def feature_default_value( feature )