All entries for Friday 17 November 2006
November 17, 2006
RobotInterface is here
The idea is to create an instance of the RobotInterface class. When initialised it will open a dialog window showing live feed from the webcam – unfortunately the user has to select the right device (the webcam) from a combo box and click ‘initialise’ – tried all morning but couldnt find a way around this as the code given isnt abstracted away from the combo boxes etc…. My C++ skills arent up to seperating them i’m afraid!!!
Then we should be able to call RobotInterface.SaveImage(), which grabs an image and saves it to “camimage.bmp” in the app directory, which can then be loaded by the CImg stuff. Again, can’t find a way around this but as we are talking about pretty low level API calls hopefully it will be quick enough to do one or two grabs a second.
Not sure if the main file should really should be RobotInterface.h instead of .cpp – anyone help???
ps Tom – I have modified DXCapture.cpp and DXCapture.h so these files aren’t the same as the ones you will have been working on – just so you know!