[Rock-dev] CameraWidget
Chris Mueller
christoph.mueller at dfki.de
Fri Nov 16 12:07:15 CET 2012
Hi,
i have currently some problems with the camera widget used through
scripting via vizkit.
1) It always shows a black image through (tested on 640x320 and 320x240
configured camera tasks)
camera = TaskContext.get 'task'
Vizkit.display camera.frame
2) if i pickup the corresponding data with:
19 frame_reader = camera.frame.reader :type => :buffer, :size => 10
20
21 while true
22 sample = frame_reader.read
23
24 if sample
25 puts "#{sample.time}, #{sample.image.size}"
26 end
27 end
Output:
2012-11-16 12:02:15 +0100, 24290
2012-11-16 12:02:15 +0100, 24290
2012-11-16 12:02:15 +0100, 24290
2012-11-16 12:02:15 +0100, 24290
2012-11-16 12:02:15 +0100, 24290
...
Therefore the image data should be received successfully to my local
machine.
3) It worked 2-3 weeks ago where the camera widget has been popped up
two times sequencely at start up. One has shown the correct image.
The other one has been closed immediately.
Chris
More information about the Rock-dev
mailing list