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.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebe5929fae4c5ddc8f79184b9f9da3a22db3d9b8be56fa720ea002dc3be59ec5 |
|
MD5 | f964a6d7d22ef05ade629f492da6bece |
|
BLAKE2b-256 | 1fa4771ceb727af0fe4be7e9b92cee4beb77359cd90aac47b4664c8630f4c5b5 |