4 Sep 2010 16:35
CVD::V4LBuffer<yuv422> Logitech web 9000 cam control help
Camilo S. <cmsvalenzuela <at> gmail.com>
2010-09-04 14:35:55 GMT
2010-09-04 14:35:55 GMT
Hi people,my name is Camilo im student of Systems Engineering at Universidad Catolica de Colombia http://mi.eng.cam.ac.uk/~er258/cvd/ , im currently working on a project based on PTAM http://www.robots.ox.ac.uk/~gk/PTAM/, im tryng to have control of my cam but i can not do it, there is the following code to control video source using v4l2 like this (the project use this libraries in here for computer vision http://mi.eng.cam.ac.uk/~er258/cvd/) // Copyright 2008 Isis Innovation Limited #include "VideoSource.h" #include <cvd/Linux/v4lbuffer.h> #include <cvd/colourspace_convert.h> #include <cvd/colourspaces.h> #include <gvars3/instances.h> namespace PTAMM { using namespace CVD; using namespace std; using namespace GVars3; VideoSource::VideoSource() { cout << " VideoSource_Linux: Opening video source..." << endl; string QuickCamFile = GV3::get<string>("VideoSource.V4LDevice", "/dev/video0"); ImageRef irSize = GV3::get<ImageRef>("VideoSource.Resolution", ImageRef(1600,1200)); int nFrameRate = GV3::get<int>("VideoSource.Framerate", 30); V4LBuffer<yuv422>* pvb = new V4LBuffer<yuv422>(QuickCamFile, irSize, -1, false, nFrameRate);(Continue reading)
RSS Feed