Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cv2PySide6-2.0.4.tar.gz (404.2 kB view hashes)

Uploaded Source

Built Distribution

cv2PySide6-2.0.4-py3-none-any.whl (405.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page