Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions camera/imx230_pivariety_tuner/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
venv/
.venv/
__pycache__/
*.py[cod]

settings.json
snapshots/

*.jpg
*.jpeg
*.png
*.raw
*.mkv
*.mp4

*.ko
*.dtbo
*.so
*.bin
92 changes: 92 additions & 0 deletions camera/imx230_pivariety_tuner/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Arducam Pivariety IMX230 Tuner

Browser-based live preview and camera tuning example for the Arducam
Pivariety IMX230 camera on T3 Gemstone O1.

## Hardware

- T3 Gemstone O1
- Arducam B0324/Pivariety IMX230, UC-788 Rev.B
- CSI0/J11
- 2-lane MIPI CSI-2

## Required software support

This example requires:

- Arducam Pivariety Linux V4L2 driver
- T3 Gemstone O1 IMX230 Device Tree overlay
- IMX230 support in `edgeai-tiovx-modules`
- IMX230 support in `edgeai-gst-plugins`
- Matching IMX230 DCC files

The default DCC directory is:

```text
/opt/imaging/imx230/linear
```

The following files are expected:

```text
dcc_viss.bin
dcc_2a.bin
```

DCC binaries are not included in this example.

## Python environment

Create a virtual environment with access to the system GObject,
OpenCV and NumPy packages:

```bash
python3 -m venv --system-site-packages venv
venv/bin/pip install -r requirements.txt
```

System packages such as Python GObject bindings, OpenCV, NumPy,
GStreamer, `media-ctl` and `v4l2-ctl` must already be installed.

## Run

```bash
./run.sh
```

Then open:

```text
http://BOARD_IP:8000
```

## Custom build directories

Custom GStreamer and TIOVX builds can be selected without editing the
source code:

```bash
IMX230_GST_PLUGIN_DIR=/path/to/gst/plugins \
IMX230_TIOVX_LIB_DIR=/path/to/tiovx/lib \
IMX230_DCC_DIR=/path/to/imx230/dcc \
./run.sh
```

## Optional environment variables

- `IMX230_DCC_DIR`
- `IMX230_GST_PLUGIN_DIR`
- `IMX230_TIOVX_LIB_DIR`
- `IMX230_MEDIA_DEVICE`
- `IMX230_VIDEO_DEVICE`
- `IMX230_SENSOR_DEVICE`
- `IMX230_SETTINGS_FILE`
- `IMX230_SNAPSHOT_DIR`
- `IMX230_HOST`
- `IMX230_PORT`
- `IMX230_PYTHON`
- `IMX230_GST_REGISTRY`
- `T3_EDGEAI_ENV`

Runtime settings, snapshots, virtual environments, DCC binaries and
compiled libraries are intentionally excluded from the repository.
Loading