Package elisa :: Package plugins :: Package bad :: Package webcam_plugin :: Module webcam_input :: Class WebcamInput
[hide private]
[frames] | no frames]

Class WebcamInput

source code


Nested Classes [hide private]

Inherited from core.component.Component: __metaclass__

Instance Methods [hide private]
 
create_input_event(self, data)
Translate external input data to an InputEvent object, understandable by the InputManager.
source code
 
dataReceived(self, element, params) source code
 
bind(self)
pipeline = gst.parse_launch("v4lsrc autoprobe-fps=false ! tee name=t ! queue ! ffmpegcolorspace ! redgreentv name=rg red-weight=160.0 green-weight=80.0 ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,width=320,height=240 ! ximagesink t.
source code
 
unbind(self)
Unsubscribe from the input device
source code

Inherited from base_components.input_provider.PushInputProvider: clean

Inherited from core.component.Component: __init__, initialize, load_config, save_config

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]

Inherited from core.component.Component: __classinit__

Class Variables [hide private]
string name = 'webcam_input'
Component's name

Inherited from core.component.Component: checked, config_doc, default_config, id, plugin

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.input_provider.PushInputProvider: input_manager

Inherited from base_components.input_provider.InputProvider: origin, viewport

Inherited from core.component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

create_input_event(self, data)

source code 
Translate external input data to an InputEvent object, understandable by the InputManager. This method has to be overriden by InputProvider implementations. This method is called by InputProvider implementations.
Returns:
elisa.core.input_event.InputEvent
Overrides: base_components.input_provider.InputProvider.create_input_event
(inherited documentation)

bind(self)

source code 
pipeline = gst.parse_launch("v4lsrc autoprobe-fps=false ! tee name=t ! queue ! ffmpegcolorspace ! redgreentv name=rg red-weight=160.0 green-weight=80.0 ! ffmpegcolorspace ! videoscale ! video/x-raw-rgb,width=320,height=240 ! ximagesink t. ! queue ! ffmpegcolorspace ! ximagesink")
Overrides: base_components.input_provider.PushInputProvider.bind

unbind(self)

source code 

Unsubscribe from the input device

This can be done by disconnecting our handlers from the external component signals or unregistering the local callback previously registered by the register() method.

This method must be overriden by implementation because it's totally dependent on the infrastructure used by the input device the component supports.
Overrides: base_components.input_provider.PushInputProvider.unbind
(inherited documentation)