This module takes screenshots of BlueStacks using the win32 API, resizes and crops them to the same size of an ADB screenshot.
Project description
This module takes screenshots of BlueStacks using the win32 API, resizes and crops them to the same size of an ADB screenshot.
You can easily get more than 100 FPS, but the BlueStacks window may not be minimized! You can put it in the background, but don't minimize it!
pip install bluestacks-fast-screenshot
# Update 22/12/2022 - Less code / less dependencies
from bluestacks_fast_screenshot import get_bluestacks_screenshot
import cv2
blueit = get_bluestacks_screenshot(
adb_path="C:\\Users\\USERNAME\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",
deviceserial="localhost:5795",
windowtitle="bluestacks",
interpolation=cv2.INTER_AREA,
ignore_exceptions=True,
show_fps=True,
)
for pic in blueit:
# do your stuff here
cv2.imshow("", pic.copy())
if cv2.waitKey(1) & 0xFF == ord("q"):
cv2.destroyAllWindows()
break
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bluestacks_fast_screenshot-0.13.tar.gz.
File metadata
- Download URL: bluestacks_fast_screenshot-0.13.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93e7f93851118d2acf9681626e25df52521fb73c45e295770bd87219149e4e27
|
|
| MD5 |
32679a54b7760fb2e923f05608abba6f
|
|
| BLAKE2b-256 |
542fea673e92c800036ed686c71683604c27f659603287aacac3659b28fdb425
|
File details
Details for the file bluestacks_fast_screenshot-0.13-py3-none-any.whl.
File metadata
- Download URL: bluestacks_fast_screenshot-0.13-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3920ca46f5a7011a76bb6e487b6906d731606bb0d9c56d5c21d00aa66602211d
|
|
| MD5 |
56af6c2f2a0b420e90ab83219473cedb
|
|
| BLAKE2b-256 |
45df97868f7a1f738df334dd0f4b2097c0e634ebf1a5b5cfba490f1bfc1110c9
|