Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

An Image Widget for display OpenCV Mat image

Project Description

A PyQt5/PySide2 Image Widget for quickly displaying OpenCV Mat Image!

Modified @ 2017.07.26 16:47:36 CST

1. Dependency, Install and Uninstall

1.1 Dependency

opencv-python (or you can compile cv2 from the OpenCV Source!)

1.2 Install

$ git clone
$ cd imagepyqt
$ ls

$ python3 install

1.3 Uninstall

pip3 uninstall imagepyqt

2. Usage

2.1 Test the demo

$ python3 -m "imagepyqt.demos"

2.2 A simple demo

""" [1] Read Image in cv2 """
import cv2
imagename = "/home/auss/Pictures/test.png" ## TODO: change to your image path!
img = cv2.imread(imagename)

""" [2] Display the OpenCV Mat in imagepyqt """
import imagepyqt as ipq
ipq.imshow(img,"Test ImagePyQt")

2.3 Other demos

import os, sys
from imagepyqt.widgets import imwidget
from imagepyqt.myQt import mkQApp, runQApp, QtWidgets
from imagepyqt import qimshow

## TODO: change to your own imagepath!
imagename = "/home/auss/Pictures/test.png"

def test1():
    """A Simple demo"""
    import cv2
    img = cv2.imread(imagename)
    qimshow(img,"Test MyImageWidget[2]")

def test2():
    """Another Simple demo"""
    import cv2
    img = cv2.imread(imagename)
    qApp = mkQApp()
    win = imwidget.MyImageWidget()
    win.setWindowTitle("Test MyImageWidget[1]")

def run():

if __name__ == "__main__":
Release History

Release History

This version
History Node


History Node

History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
image_pyqt-0.0.2-py3-none-any.whl (634.4 kB) Copy SHA256 Checksum SHA256 py3 Wheel Jul 26, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting