semvec/pypi-packages huggingface dataset:
image-pyqt 0.0.2.0.0
An Image Widget for display OpenCV Mat image
License: MIT

==========
imagepyqt
==========

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
--------------------------

.. code-block:: bash

    numpy
    opencv-python (or you can compile cv2 from the OpenCV Source!)
    PyQt5/PySide2

1.2 Install
--------------------------

.. code-block:: bash

    $ ## Install from PyPi
    $ python3 -m pip install image-pyqt

    $ ## Install from Github
    $ git clone https://github.com/Image-Py/imagepyqt
    $ cd imagepyqt
    $ ls
    ...
    imagepyqt/
    setup.py

    $ python3 setup.py install
    ...


1.3 Uninstall
--------------------------

.. code-block:: bash

    pip3 uninstall imagepyqt



2. Usage
=========

2.1 Test the demo
--------------------------

.. code-block:: bash

    $ python3 -m "imagepyqt.demos"


2.2 A simple demo
--------------------------

.. code-block:: python

    """ [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")
    ipq.runQApp()


2.3  Other demos
--------------------------

.. code-block:: python

    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)
        qApp=mkQApp()
        qimshow(img,"Test MyImageWidget[2]")
        runQApp()

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

    def run():
        test1()
        test2()

    if __name__ == "__main__":
        run()
txrudp 0.5.2
A Twisted extension implementing RUDP
License: MIT
Keywords: rudp twisted reliable

txrudp
======

|Build Status| |Code Health| |Coverage Status| |PyPI Status|

Implementation of a Reliable UDP Protocol Layer over Twisted.

This implementation makes no explicit effort to adhere to any published
standard about RUDP (RFCs, etc).

Installation
------------
::

    pip install txrudp

In order to use encrypted connections, you need to install ``txrudp`` with
the ``crypto`` extension:

::

    pip install txrudp[crypto]

This extension denends on the ``PyNaCl`` package, and attempts to install it
as part of the setup. Installation is known to fail on Windows. See
`this <http://geroyblog.blogspot.gr/2015/03/compiling-and-using-pynacl-on-windows-7.html>`__
about manually installing ``PyNaCl`` on Windows.

Python 3 support
----------------
Support for Python 3 will be made available as soon as the ``protobuf`` package officially
supports Python 3.

Resources
---------
-  `Original node.js library <https://github.com/shovon/node-rudp>`__
-  `Original port to Python <https://github.com/hoffmabc/python-rudp>`__
-  `PyNaCl <https://pynacl.readthedocs.org/en/latest/public/>`__
-  `Protobuf <https://developers.google.com/protocol-buffers/>`__

License
-------

txrudp is released under the `MIT License <LICENSE>`__.

.. |Build Status| image:: https://travis-ci.org/OpenBazaar/txrudp.svg?branch=master
   :target: https://travis-ci.org/OpenBazaar/txrudp
.. |Code Health| image:: https://landscape.io/github/Renelvon/txrudp/master/landscape.svg?style=flat
   :target: https://landscape.io/github/OpenBazaar/txrudp/master
.. |Coverage Status| image:: https://coveralls.io/repos/OpenBazaar/txrudp/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/OpenBazaar/txrudp?branch=master
.. |PyPI Status| image:: https://badge.fury.io/py/txrudp.svg
   :target: http://badge.fury.io/py/txrudp
   :alt: Latest PyPI version