Skip to content

vincentgoudard/raspiCamGrab

Repository files navigation

About raspiCamGrab

Screenshot of raspiCamGrab

What??

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

Expected Behavior

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.

Installation

Install raspbian and openframeworks

Follow the instructions on OF website

Clone or download raspiCamGrab

And put the sources in a folder named (whatever_OF_path)/openFrameworks/apps/myApps/raspiCamGrab

Compile the source and run it

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.

Hiding boot sequence

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.

About

webcam grab on raspberry with OpenFrameworks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages