Python package to take screenshots of windows that are in background
Project description
bshot
Python package to take screenshots of windows that are in background
Installation
pip install bshot
Usage
import cv2
import win32gui
from bshot.screenshot import get_image
hwnd = win32gui.FindWindow(None, "Untitled - Notepad")
img = get_image(hwnd)
cv2.imshow("", img)
cv2.waitKey(0)
Limitations
get_image
does not properly crop the contents of window
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bshot-1.0.0.tar.gz
(2.9 kB
view hashes)
Built Distribution
bshot-1.0.0-py3-none-any.whl
(3.1 kB
view hashes)