{"id":21864249,"url":"https://github.com/lightsing/windows-cap","last_synced_at":"2026-05-08T04:44:54.095Z","repository":{"id":221512520,"uuid":"754596470","full_name":"lightsing/windows-cap","owner":"lightsing","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-11T08:13:05.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-26T15:29:56.100Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/lightsing.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-08T11:47:59.000Z","updated_at":"2024-02-08T11:48:13.000Z","dependencies_parsed_at":"2024-02-08T12:45:23.769Z","dependency_job_id":"070e3e49-7da6-4839-a0e8-8d2dd32aa5e0","html_url":"https://github.com/lightsing/windows-cap","commit_stats":null,"previous_names":["lightsing/windows-cap"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2Fwindows-cap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2Fwindows-cap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2Fwindows-cap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightsing%2Fwindows-cap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightsing","download_url":"https://codeload.github.com/lightsing/windows-cap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244868091,"owners_count":20523582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-11-28T04:08:18.067Z","updated_at":"2026-05-08T04:44:49.058Z","avatar_url":"https://github.com/lightsing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Windows Capture\r\n\r\nUtilize the Windows Graphics Capture API to capture the client area of a window.\r\n\r\nRequires Windows 10 and Python 3.8 or later.\r\n\r\n## Usage\r\n\r\n```python\r\nimport cv2\r\nimport numpy as np\r\nfrom windows_cap import WindowCapture\r\n\r\n# Create a WindowCapture object with the window title and class name (optional)\r\nwincap = WindowCapture(\"Untitled - Notepad\", \"CLASSNAME\")\r\n\r\nwhile True:\r\n    data = wincap.next()\r\n    w, h = wincap.client_size\r\n    img = np.frombuffer(data, dtype=np.uint8)\r\n    img = np.reshape(img, (h, w, 4))\r\n    img = cv2.resize(img, (w // 4, h // 4))\r\n    cv2.imshow(\"WGC\", img)\r\n    if cv2.waitKey(1) == ord('q'):\r\n        cv2.destroyAllWindows()\r\n        break\r\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsing%2Fwindows-cap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightsing%2Fwindows-cap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightsing%2Fwindows-cap/lists"}