Skip to main content

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

Metadata

Release files for bluestacks-fast-screenshot 0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bluestacks-fast-screenshot 0.13
File Size Uploaded
bluestacks_fast_screenshot-0.13.tar.gz 4.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bluestacks-fast-screenshot 0.13
File Interpreter ABI Platform
bluestacks_fast_screenshot-0.13-py3-none-any.whl Python 3 none any Details

Total release size: 11.0 kB

Release files / bluestacks_fast_screenshot-0.13.tar.gz

Download URL bluestacks_fast_screenshot-0.13.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
93e7f93851118d2acf9681626e25df52521fb73c45e295770bd87219149e4e27
BLAKE2b-256 checksum
How to use checksums
542fea673e92c800036ed686c71683604c27f659603287aacac3659b28fdb425
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / bluestacks_fast_screenshot-0.13-py3-none-any.whl

Download URL bluestacks_fast_screenshot-0.13-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3920ca46f5a7011a76bb6e487b6906d731606bb0d9c56d5c21d00aa66602211d
BLAKE2b-256 checksum
How to use checksums
45df97868f7a1f738df334dd0f4b2097c0e634ebf1a5b5cfba490f1bfc1110c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.13 This release

2 release files

0.12

2 release files

0.11

2 release files

0.10

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page