Skip to main content

Grab screenshots from ADB's screencap and process them right away

pip install adb-screencap-streaming





from adb_screencap_streaming import ADBScreenshot

import cv2

bilder = ADBScreenshot(

    "C:\\Users\\Gamer\\AppData\\Local\\Android\\Sdk\\platform-tools\\adb.exe",

    "localhost:5735",

    show_capture_keys="ctrl+alt+z", # starts cv2.imshow() - can be enabled/disabled by pressing ctrl+alt+z

    show_fps_keys="ctrl+alt+f", # show the fps rate - can be enabled/disabled by pressing ctrl+alt+f

    kill_screencap_keys="ctrl+alt+x", # kills the capture process

)

for ka in bilder.get_adb_screenshots(

    sleeptime=None,

    resize_width=None,

    resize_height=None,

    resize_percent=None,

    interpolation=cv2.INTER_AREA,

):

    print('Do some stuff here', end='\r')

    break #if you break out of the loop, stop capturing 

    

bilder.kill_screencap()

Metadata

Release files for adb-screencap-streaming 0.12

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

Source distribution (sdist)

Source distribution for adb-screencap-streaming 0.12
File Size Uploaded Provenance Actions
adb_screencap_streaming-0.12.tar.gz 4.8 kB Without provenance Details for adb_screencap_streaming-0.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for adb-screencap-streaming 0.12
File Interpreter ABI Platform Actions
adb_screencap_streaming-0.12-py3-none-any.whl Python 3 none any Details for adb_screencap_streaming-0.12-py3-none-any.whl

Total release size: 11.3 kB

Release files / adb_screencap_streaming-0.12.tar.gz

Download URL adb_screencap_streaming-0.12.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
20f92ebc66db0e52e03bb21780d2fd8378313b401b934ab2f93e5d9f97d28948
BLAKE2b-256 checksum
How to use checksums
d23287adf645d9152d0715e528df630a2ca58cf568eb852c35f3a5cfe2a85e75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release files / adb_screencap_streaming-0.12-py3-none-any.whl

Download URL adb_screencap_streaming-0.12-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
230dadf5ce456304964a91de71cb2517c0a3dbfee664adfe7f7a757e9ab08ddd
BLAKE2b-256 checksum
How to use checksums
6b123b400023f4161d0cb90eff2e1f71c31fb1445e9347cda849245a778a68ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Security for adb-screencap-streaming 0.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.12 This release

2 release files No provenance

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