Input object reading images from a V4L-capable device.

| V4LInput | Input object reading images from a V4L-capable device. |
| Constants | |
| Video modes | |
| Properties | |
| width | Get width of images. |
| height | Get height of images. |
| Functions | |
| V4LInput.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. |
| set_sensivity | Change camera settings. |
def V4LInput.new( device = "/dev/video0", channel = 0, channel_norm = PAL, width = -1, height = -1, preferredColourSpace = '' )
Constructor.
| device | Filename of input device. |
| channel | Channel number. |
| channel_norm | Video mode: PAL, NTSC, SECAM, or AUTO. |
| width | Preferred width (-1 for maximum width). |
| height | Preffered height (-1 for maximum height). |
| preferredColourSpace | Preferred colourspace. Colourspaces supported by HornetsEye are UBYTERGB, UYVY, YUY2, I420, and UBYTE. Specify ‘’ for automatic selection. |
def set_sensivity( brightness, hue, colour, contrast )
Change camera settings. Note that some devices will not support all settings.
| brightness | Brightness value between 0 and 65535 |
| hue | Hue value between 0 and 65535 |
| colour | Colour strength between 0 and 65535 |
| contrast | Contrast between 0 and 65535 |
Constructor.
def V4LInput.new( device = "/dev/video0", channel = 0, channel_norm = PAL, 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?
Change camera settings.
def set_sensivity( brightness, hue, colour, contrast )