Package for integrating VimbaPython and Qt6
Project description
CIViQ6 - Camera Integration for Vimba and Qt6
CIViQ6 is a Python package which integrates VimbaPython and Qt6 multimedia scheme.
The following Qt bindings are supported:
This package is tested using Vimba 6.0, VimbaPython 1.2.1, and Mako U-130B camera device connected to the device with Window 11.
How to use
VimbaRunner
must be run first in QThread
to start Vimba instance.
After Vimba is started, you can access the vimba camera APIs and acquire frames.
CIViQ6 is designed to be similar to Qt6's QtMultimedia framework:
Qt class | CIViQ6 counterpart |
---|---|
QMediaDevices | VimbaDevices |
QCameraDevice | VimbaCameraDevice |
QCamera | VimbaCamera |
QMediaCaptureSession | VimbaCaptureSession |
For more information, refer to the documentation and examples.
Examples
Use cases with multithreading are provided in examples directory. They can be found in documentation as well.
Installation
Before you install, be careful for other Qt-dependent packages installed in your environment.
For example, non-headless OpenCV-Python
modifies the Qt dependency thus can make other Qt bindings unavailable.
To install CIViQ6, you first need to install VimbaPython package which is not distributed by PyPI. Go to its repository and follow the instructions.
After VimbaPython is installed, civiq6
can be installed using pip
.
$ pip install civiq6
Documentation
CIViQ6 is documented with Sphinx. Documentation can be found on Read the Docs:
If you want to build the document yourself, clone the source code and install with [doc]
option.
This option installs the additional packages to build the document and to run the examples.
Go to doc
directory and build the document.
$ pip install civiq6[doc]
$ cd doc
$ make html
Document will be generated in build/html
directory. Open index.html
to see the central page.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.