{"id":15132157,"url":"https://github.com/hansalemaos/a_cv2_imshow_thread","last_synced_at":"2026-02-08T19:33:44.453Z","repository":{"id":61523115,"uuid":"552186377","full_name":"hansalemaos/a_cv2_imshow_thread","owner":"hansalemaos","description":"Solution for the \"window - not responding\" problem with cv2.imshow()","archived":false,"fork":false,"pushed_at":"2022-10-16T02:35:52.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-21T23:27:47.621Z","etag":null,"topics":["cv2","imshow","opencv","python"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/a-cv2-imshow-thread","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hansalemaos.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-16T02:34:43.000Z","updated_at":"2022-10-16T02:37:52.000Z","dependencies_parsed_at":"2022-10-19T05:00:42.595Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/a_cv2_imshow_thread","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/a_cv2_imshow_thread","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_imshow_thread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_imshow_thread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_imshow_thread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_imshow_thread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/a_cv2_imshow_thread/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_imshow_thread/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29240694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-08T18:06:38.086Z","status":"ssl_error","status_checked_at":"2026-02-08T18:06:09.124Z","response_time":57,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cv2","imshow","opencv","python"],"created_at":"2024-09-26T04:04:20.123Z","updated_at":"2026-02-08T19:33:44.438Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Solution for the \"window - not responding\" problem with cv2.imshow()\n\n```python\npip install a-cv2-imshow-thread\n```\n\n```python\n    Usage:\n\n    import glob\n    import os\n    from a_cv2_imshow_thread import add_imshow_thread_to_cv2 \n    add_imshow_thread_to_cv2() #monkey patching\n    import cv2\n    image_background_folder=r'C:\\yolovtest\\backgroundimages'\n    pics=[cv2.imread(x) for x in glob.glob(f'{image_background_folder}{os.sep}*.png')]\n    cv2.imshow_thread( image=pics[0], window_name='screen1',sleep_time=None, quit_key='q') #single picture\n    cv2.imshow_thread( image=pics, window_name='screen1',sleep_time=.2, quit_key='e') #sequence of pics like a video clip\n\n        Parameters:\n            image: Union[list, np.ndarray]\n                You can pass a list of images or a single image\n            window_name: str\n                Window title\n                (default = \"\")\n            sleep_time: Union[float, int, None] = None\n                Useful if you have an image sequence.\n                If you pass None, you will have to press the quit_key to continue\n                (default = None)\n            quit_key: str = \"q\"\n                key to close the window\n        Returns:\n            None\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fa_cv2_imshow_thread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fa_cv2_imshow_thread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fa_cv2_imshow_thread/lists"}