Method: Artoo::Drivers::OpencvCapture#handle_frame
- Defined in:
- lib/artoo/drivers/opencv_capture.rb
#handle_frame ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/artoo/drivers/opencv_capture.rb', line 26 def handle_frame if !connection.capture.nil? frame = connection.capture.query if !frame.nil? @opencv = Artoo::Drivers::Opencv.new(frame) publish(event_topic_name("frame"), @opencv) else connection.connect end else connection.connect end end |