Examples to control the Opal C1 from within python. This repository has been created because there is currently no software to control the camera under Windows. Controlling the camera parameters is crucial for computer vision applications like in robotics or exhibitions.
Since Opal C1 is based on the LCM48 sensor, integrated in the Luxonis hardware system, it is possible to use the camera as an OAK-1 MAX. To read the camera image and control the camera parameters it is possible to use the depthai python framework.
As a quick demonstration, an application has been created that streams the Opal 4k stream into OBS. Just download the executable and run it. It currently is only possible to set camera parameters like the auto-focus, lens distance, exposure and white balance. The applications has been tested on Windows x64 and MacOS arm64.
Basic example that streams the Opal C1 4K stream into OBS.
A prebuilt binrary is available from the releases. To allow pyvirtualcam to run, have a look at its virtual cameras section.
To build the app yourself, please install the dependencies and use the following command.
python setup.py distribute
It is recommended to use a modern python version like 3.10
and creating
a virtual environment. To install all the dependencies, run the following
command.
pip install -r requirements.txt
Many of the demos showed here are following directly the depthai python examples. Usually only the resolution and some camera specific parameters have been adapted.
🌿 More demo's are coming soon.
This demo just opens an opencv window and displays the 4k stream.
python demos/preview-demo.py
Created by cansik in 2023 as a proof of concept - I am in no way associated with Opal Camera.