Home » Posts tagged 'c++'
Tag Archives: c++
The HD Pro WebCam C920 along with all their later model cameras come with auto focus. This can be an issue when scanning. The CEBSCAN source has system commands it calls to deactivate auto focus and set manual focus. Ubuntu does not come with the v4ls libs so it may be necessary to install them. From the terminal window run the code below.
sudo apt-get install v4l-utils
The library v4l2-ctl is valid and available for both Linux and windows machines
The system commands can be run manually outside CEBSCAN source using any scripting language. Command lines are below. inside c++ its the <cstdlib>
system("v4l2-ctl -d /dev/video0 -c focus_auto=0"); system("v4l2-ctl -d /dev/video0 -c focus_absolute=30");
Since modification of the Fabscan software is so extensive due to the addition of vertical scanning and dual laser support any source file modified has had the first character of its name changed to “c” instead of the default Fabscan’s “f”. Current source code has been compiled exclusively on Ubuntu and has not been tested on any other platform. Keep this in mind when using control functions for the Logiteck camera specifically disabling auto focus functionality. Also it is apparent to anyone reviewing the code base that all laser stepper functions have been removed. In researching the feature I’ve determined it is not worth the overhead it generates both in code and extra hardware.