Catalog PyPI
PACKAGE EXPLORERView in registry

a-cv2-imshow-thread

PyPI

Solution for the window - not responding problem with cv2.imshow()

cv2imshowopencv
Versions collected1
Direct dependencies2From release 0.11
Last observed20 Oct, 18:44 UTC

README

Version 0.11 documentation

Solution for the "window - not responding" problem with cv2.imshow()


pip install a-cv2-imshow-thread


    Usage:



    import glob

    import os

    from a_cv2_imshow_thread import add_imshow_thread_to_cv2 

    add_imshow_thread_to_cv2() #monkey patching

    import cv2

    image_background_folder=r'C:\yolovtest\backgroundimages'

    pics=[cv2.imread(x) for x in glob.glob(f'{image_background_folder}{os.sep}*.png')]

    cv2.imshow_thread( image=pics[0], window_name='screen1',sleep_time=None, quit_key='q') #single picture

    cv2.imshow_thread( image=pics, window_name='screen1',sleep_time=.2, quit_key='e') #sequence of pics like a video clip



        Parameters:

            image: Union[list, np.ndarray]

                You can pass a list of images or a single image

            window_name: str

                Window title

                (default = "")

            sleep_time: Union[float, int, None] = None

                Useful if you have an image sequence.

                If you pass None, you will have to press the quit_key to continue

                (default = None)

            quit_key: str = "q"

                key to close the window

        Returns:

            None

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1116 Oct 20222

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
hansalemaos/a_cv2_imshow_thread

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:689777dc8ea98e482d71c1a8ac21d334098ec8f7f754dc5f6dcc8e19eb1bf448