raspiCamGrab is a program that displays a USB camera (namely a supereyes B008 microscope, here) onto a screen. The image can be scaled and moved on X and Y axes. Image adjustment is applied with a dedicated shader and allows the following effects :
- hue
- saturation
- brightness
- Red/Green/Blue gains
- contrast
The camera should just show up with the settings stored in /bin/data/settings.xml
.
- Press h to display/hide mouse and image adjustments (mouse control only).
- Press s to save image adjustments in
/bin/data/settings.xml
. - Press l to (re)load image adjustments from
/bin/data/settings.xml
. - Press s to capture a snapshot in
/bin/data/screenshot.png
- Press Esc to exit.
Follow the instructions on OF website
And put the sources in a folder named (whatever_OF_path)/openFrameworks/apps/myApps/raspiCamGrab
Open a command line and switch to that folder, then type make
.
Once compiled, run the app by either typing make RunRelease
or by launching the app in ./bin/raspiCamGrab
.
There are various recommandations for hiding the boot sequence. Here's what worked for me, by editing the file /boot/cmdline.txt on a raspberry Pi 3 Model B+, running raspbian stretch :
- type
sudo nano /boot/cmdline.txt
in a shell - then remove
console=tty1
(setting it to tty3, as recommanded by some didn't work here) - and add
logo.nologo quiet
at the end.
Beware that incorrect syntax might result in boot failure!
Also, if not starting X11, the above doesn't yield a login prompt in tty1. A workaround is to switch to another console with the command alt+shift+F2, then back to tty1 with alt+shift+F1.