Caprica Software

Picam 1.x Tutorial


Before taking pictures, you must create a configuration for the camera.

Configuration API

The camera configuration is created using a fluent builder API.

The code below shows an example configuration with somewhat minimal options specified (more configuration options are available):

import static;

public class MyCameraApplication {
public static void main(String[] args) {
CameraConfiguration config = cameraConfiguration()

You can specify as much, or as little, configuration as you like. Sensible default values will be used where needed for any required configuration values that have not been explicitly specified.

If you're using an Integrated Development Environment or a modern text editor with Java support you should get some helpful code-completion prompts when building a configuration object like this.