Skip to content
OpenMax accelerated control of the Raspberry Pi Camera Module under openFrameworks
C++ Makefile GLSL Shell
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example-demo-mode getSensorCropRectangle Dec 1, 2018
example-direct-mode-transform sensorWidth/sensorHeight Nov 19, 2018
example-direct-mode sensorWidth/sensorHeight Nov 19, 2018
example-ofxCv sensorWidth/sensorHeight Nov 19, 2018
example-pixels sensorWidth/sensorHeight Nov 19, 2018
example-recording sensorWidth/sensorHeight Nov 19, 2018
example-saved-settings sensorWidth/sensorHeight Nov 19, 2018
example-shaders sensorWidth/sensorHeight Nov 19, 2018
example-still
example-texture-mode enableExtraVideoFilters Nov 24, 2018
example-wrapper rename Nov 4, 2018
src update maps for filter options Dec 20, 2018
.gitignore update maps for filter options Dec 20, 2018
README.md Update README.md Nov 5, 2018
addon_config.mk rename Nov 4, 2018
makeAllExamples.sh OF 0.10 fixes Mar 30, 2018

README.md

STATUS

Master may be unstable, features untested. See Releases for tested versions

DESCRIPTION:

openFrameworks addon to control the Raspberry Pi Camera Module. Formerly ofxRPiCameraVideoGrabber that only provided video functionality. This addon also provides still capture functionality as well as the abilty to save settings as JSON based files.

REQUIREMENTS:

openFrameworks 0.10.0 or higher Setup Guide
Developed with GPU memory set at 256, overclock to medium but 128/default should work as well
Desktop Mode (X11 enabled) may work but untested

LED Toggling requires gpio program provided via wiringPi
$sudo apt-get install wiringpi

USAGE:

Clone into your openFrameworks/addons folder

Primary classes

ofxOMXVideoGrabber:

Used for video capture and recording. Video is hardware accelerated and written to a texture (texture mode) or directly to the screen. Texture Mode allows:

  • Shaders
  • Pixel access
  • Overlays, etc
ofxOMXPhotoGrabber

Used for controlling still functionality of the camera. Only hardware accelerated features are enabled (e.g. JPG compression). Similar to video mode, a preview can be rendered to a texture or directly to the screen.

RECORDING:

Recording is available in both texture and non-texture modes

EXAMPLES:

VIDEO

example-demo-mode

Shows different settings available to tweak the camera exposure, metering, cropping, zooming, filters, mirroring, white balance

example-direct-mode

Camera turns on and is rendered full screen via OMX acceleration
Press the "e" key to toggle through built in filters

example-direct-mode-transform

Demos cropping, alpha, mirroring of direct display (not camera)

example-texture-mode

Camera turns on and renders to a texture that is drawn at full screen and a scaled version
Press the "e" key to toggle through built in filters

example-shaders

Basic shader usage with texture-mode
Press the "e" key to toggle through built in filters Press the "s" key to toggle shader

example-saved-settings:

Alternative way to load a camera configuration through a text file

example-recording:

Recording of video in texture or direct mode

example-wrapper:

Drop-in replacement for ofVideoGrabber (texture-mode only)

STILL

example-still:

Still camera functionality

You can’t perform that action at this time.