Skip to content

hardware configuration

Jeremy Laviole edited this page Feb 8, 2017 · 17 revisions

#Step 2: Camera Configuration

Create your own PapARt Hardware

If you are here, you have successfully tested each component of your PapARt machine and installed the proper libraries!

If you have a PapARt hardware, it is already set up: go to [the next step](Hardware v2 calibration) to calibrate your PapART machine!

Go back to step 1 if one of your devices is not working properly.

Camera

The camera set here is the one tracking markers and images. The resolution used by the camera comes from the calibration. To set your camera, launch the sketch: ContributedLibraries/Papart/calib/PCConfiguration.

Screenshot of PCConfiguration

Choose a video input type (left column) and click on the corresponding button on the left. Then fill the input field with the appropriate text (in bold below).

  • OpenCV and FlyCapture: camera number. If the camera is located at /dev/video0, it will be camera 0.
  • Processing: camera name. If the camera is located at /dev/video0, it will be camera /dev/video0.
  • FFMPEG: camera name, like Processing.
  • OpenKinect, OpenKinect, RealSense: camera number. If only one camera is plugged it should be 0. In addition to this you can select the default camera, usually RGB.

Then load the calibration file. If you use a Kinect, select the Kinect-RGB.yaml. The calibrations are located in sketchbook/libraries/PapARt/data/calibration/, you can find your camera in the saved subfolder.

Click on the Test the camera button: a popup displaying the video input should appear. Press the escape key to close the window. Press the save as default button to save the changes.

Notes on Windows

Same as Linux, except for Processing mode, you must get the name from:

Processing -> File -> Examples -> Contributed Libraries -> Video -> Capture -> GettingStartedCapture.  

Then copy manually the exact name, as copy and paste is not working.

Depth Camera

You can select your depth camera in calibration/PCConfiguration.

  • The Kinect xbox360 is working.
  • The Realsense SR300 is working, F200 in progress.
  • Partial support of Kinect Xbox One. thanks to Jfrey

Please select the Kinect360, if only one is plugged set the number to 0. We consider all the Kinect to be the same, so there is no button to load the calibration.

Example uses

Processing video input (requires the Video library)

Processing

OpenCV

OpenCV

OpenKinect

OpenKinect

Advanced topic

Projector

All projectors are supported, however your projection needs to be calibrated

Press the Load Calibration button and select your projector, which will be in saved/projection-xxx.yaml.

Calibration

After setting your hardware, there are a few steps to get the system working. You can do different calibrations depending on your hardware, they are listed on the calibration page.