Skip to content

arbitraryco/ofxRPiCameraVideoGrabber

 
 

Repository files navigation

ofxRPiCameraVideoGrabber

STATUS: PERPETUAL DEVELOPMENT

DESCRIPTION:
openFrameworks addon to control the Raspberry Pi Camera Module

REQUIREMENTS: openFrameworks .8 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

USAGE:
Clone into your openFrameworks/addons folder Either copy one of the examples into /myApps or add ofxRPiCameraVideoGrabber to the addons.make file in your project

This addon does not work with any of the still camera functionality.

The addon works in a few different modes:

TEXTURE MODE:
Allows the use of:

  • Shaders
  • Pixel access
  • Overlays, etc

NON-TEXTURE MODE (or direct-to screen)
In non-texture mode the camera is rendered directly to the screen. It typically looks a bit faster/cleaner but no other drawing operations can happen.

RECORDING:
Recording is available in both texture and non-texture modes

EXAMPLES:

example-non-texture
Camera turns on and is rendered full screen inside app
Press the "e" key to toggle through built in filters

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-pixels:
The addon doesn't currently provide pixels internally but this example will show you how to do it yourself. An Fbo must be used as OpenGL ES 2 doesn't allow ofTexture::readToPixels

THANKS: Thanks to @tjormola for sharing his demos and exploration - especially in regards to recording https://github.com/tjormola/rpi-openmax-demos

and thanks to @linuxstb for helping get started with the camera and OpenMax https://github.com/linuxstb/pidvbip

About

development of ofxRPiCameraVideoGrabber, an addon to control the native Raspberry Pi camera in openFrameworks

Resources

Stars

Watchers

Forks

Packages

No packages published