Camera for Processing.
PapARt handles many depth camera drivers and enables to grab depth, IR and color images from such cameras.
In this tutorial, we show to access your camera video stream, and use the library only for its camera input features.
Here you list the hardware / OS required: e.g.:
- Hardware: Camera: any webcam, or FLIR/Pointgrey camera.
or DepthCamera: Kinect for Xbox360/Windows, Intel Realsense, Orbbec Astra.
- Operating system: Win/OSX/Linux.
- Language: Processing
- Time required: 20mins ~ 2hours.
- Difficulty: medium.
Install the drivers.
If you have webcam that already works in other software, skip this step.
Each vendor provides drivers and examples. These examples need to work before you try to access it in Processing.
If you use linux or OSX, please check for availble packages first.
- libfreenect (openKinect): https://github.com/OpenKinect/libfreenect
- libfreenect2 (openKinect): https://github.com/OpenKinect/libfreenect2
- libRealsense (Intel) : https://github.com/IntelRealSense/librealsense
- OpenNI2 (Orbbec version) : https://orbbec3d.com/develop/
Choose your driver in PapARt
There is a sketch that assists you for trying different camera inputs, it is available:
sketchbook -> papart-exemples -> calibration -> PCConfiguration.
Run the sketch.
Camerapart (middle of the window), you can select the driver in the list: OpenCV, Processing, OpenKinect etc… Then set the name or camera description. If you have a calibration file associated you can load it, then press the
Test the camerabutton to see the video feed.
Camera driver use.
OpenCV: number of the camera (
FFMPEG: name of the device: e.g.:
Processing: name of the device, as found in
Examples -> Libraries -> Video -> Capture -> GettingStartedCapture.
OpenKinect / OpenNI / Librealsense: number of the camera, you can also specify the video feed:
depthfor a colored depth map.
When the camera works in PCConfiguration, you can press the
Save as default button, and this camera will be use in all the PapARt applications.
Test the camera.
Try this configuration with the
SeeThrough example. (
papart-examples -> first-examples -> Camera -> SeeThrough.
There are two example to fetch the color stream:
There are no atomic example yet. However, there are may uses with PapARt, and ways to access the depth data on the table in the DepthCamera examples.
PapARt can be used to manage your cameras and to access color, depth or IR streams from your cameras.