Package for video display with OpenCV-Python and PySide6
Project description
Python package to combine OpenCV-Python
and PySide6
.
Introduction
cv2PySide6
is a package to display image or video from numpy.ndarray
using PySide6
.
It helps the user to process the image with cv2
and visualize the result with PySide6
GUI.
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 making PySide6
unavailable.
cv2PySide6
can be installed using pip
.
$ pip install cv2PySide6
How to use
Single image
NDArrayLabel
is a label which can directly display numpy.ndarray
object.
To display single array, pass it directly to NDArrayLabel.setArray()
method.
Video
NDArrayVideoPlayerWidget
provides video widget with play/stop buttons and slider.
It wraps internal video pipeline which converts video frame to numpy array, process, and display.
To customize video source object, use NDArrayVideoPlayerWidget.setVideoPlayer()
method.
To customize array processor, use NDArrayVideoPlayerWidget.setArrayProcessor()
method.
Camera
NDArrayCameraWidget
provides video screen with internal video pipeline.
To customize camera session, use NDArrayCameraWidget.setMediaCaptureSession()
method.
To customize array processor, use NDArrayCameraWidget.setArrayProcessor()
method.
Examples
Use cases are provided in examples directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for cv2PySide6-2.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6c4365ebc7e59bb025b548724d894daa8a0e197d96a00f903a314f2ce2d8a18 |
|
MD5 | 46c3cfb1b7b31494b5bc0c8d94cc241b |
|
BLAKE2b-256 | 221a5131e84be9f28e467cd7e3cffaa0ae9ebeee982e5d775e659fe4c4314427 |