Changeset 667 for trunk/software
- Timestamp:
- 02/11/10 02:14:30 (2 years ago)
- Location:
- trunk/software
- Files:
-
- 5 modified
-
rb/vision/_camera.c (modified) (2 diffs)
-
rb/vision/gstcam.py (modified) (2 diffs)
-
rb/vision/makefile (modified) (1 diff)
-
scripts (modified) (1 prop)
-
scripts/calib (modified) (1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/software/rb/vision/_camera.c
r665 r667 17 17 18 18 #include <Python.h> 19 #include <glib.h> 19 20 #include <pygobject.h> 20 21 #include <pygtk/pygtk.h> … … 90 91 if (pixbuf != NULL) { 91 92 PyObject *py_pixbuf = pygobject_new((GObject*) pixbuf); 93 g_object_unref(G_OBJECT(pixbuf)); 92 94 return py_pixbuf; 93 95 } else { -
trunk/software/rb/vision/gstcam.py
r665 r667 16 16 import time 17 17 import logging 18 import gobject 18 19 from rb.vision._camera import ipl_image_from_rgb_buffer, save_image 19 20 20 21 import gst 21 22 22 23 23 … … 48 48 49 49 self.pipeline.set_state(gst.STATE_PLAYING) 50 51 if self.controller is not None: 52 gobject.timeout_add(100, self._send_image) 50 53 54 def _send_image(self): 55 image = self.get_last_image() 56 if image is not None: 57 self.controller.send('camera_image', (self.source, image)) 58 return True # Call me again 59 51 60 def get_last_image(self): 52 61 buffer = self.appsink.get_last_buffer() -
trunk/software/rb/vision/makefile
r605 r667 1 CFLAGS = -p -pg -g -Wall -Werror -Wno-unused -pedantic -fPIC --std=gnu99 -fgnu89-inline -O3 $(shell pkg-config --cflags opencv gsl )1 CFLAGS = -p -pg -g -Wall -Werror -Wno-unused -pedantic -fPIC --std=gnu99 -fgnu89-inline -O3 $(shell pkg-config --cflags opencv gsl glib-2.0 gobject-2.0) 2 2 #CFLAGS = -p -pg -g -Wall -Werror -pedantic -fPIC -O3 $(shell pkg-config --cflags opencv gsl) 3 3 CPPFLAGS = -p -pg -g -Wall -Werror -Wno-unused -pedantic -fPIC -O3 $(shell pkg-config --cflags opencv gsl) -
trunk/software/scripts
-
Property
svn:ignore set
to
capture.mkv
-
Property
svn:ignore set
to
-
trunk/software/scripts/calib
-
Property
svn:ignore set
to
calibrate
corners.*.png
-
Property
svn:ignore set
to

