Files
PiCamera/README.md
2022-10-07 19:31:15 +01:00

48 lines
1.3 KiB
Markdown

# JamesCam
Camera for Raspberry Pi
## How to run
Either:
```
chmod +x ./start.sh
./start.sh
```
Or:
```
python3 src/main.py
```
## Configuration
Check `config.json` for an example configuration.
### `camera_type`
Specifies the camera type (`picam` interface implementation) to use.
```
1: legacy picamera implementation
```
### `capture_resolution`
Specifies the resolution of the photos to take.
The X value will be rounded up to a multiple of 32, and the Y value to a multiple of 16, otherwise we'll get bugs due to the behaviour described in the [docs](https://picamera.readthedocs.io/en/release-1.13/recipes2.html#unencoded-image-capture-yuv-format)
### `preview_resolution`
Specifies the resolution of the viewfinder. I've set this to the resolution of the hyperpixel4 display
### `output_format`
Specifies the output format of the image. Check supported formats using `python3 -m PIL`
### `output_extension`
Specifies the file extension of the image. Should probably match the `output_format` option.
### `output_directory`
Specifies the directory to put taken images in to.
### `output_filename_format`
Specifies the format of the output filename.
> See [Python docs](https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes) for reference.
### `output_jpeg_quality`
Specify the quality of JPEG compression, best not to go over 95