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.

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

bluestacks_fast_screenshot-0.13.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file bluestacks_fast_screenshot-0.13.tar.gz.

File metadata

File hashes

Hashes for bluestacks_fast_screenshot-0.13.tar.gz
Algorithm Hash digest
SHA256 93e7f93851118d2acf9681626e25df52521fb73c45e295770bd87219149e4e27
MD5 32679a54b7760fb2e923f05608abba6f
BLAKE2b-256 542fea673e92c800036ed686c71683604c27f659603287aacac3659b28fdb425

See more details on using hashes here.

File details

Details for the file bluestacks_fast_screenshot-0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for bluestacks_fast_screenshot-0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 3920ca46f5a7011a76bb6e487b6906d731606bb0d9c56d5c21d00aa66602211d
MD5 56af6c2f2a0b420e90ab83219473cedb
BLAKE2b-256 45df97868f7a1f738df334dd0f4b2097c0e634ebf1a5b5cfba490f1bfc1110c9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page