Skip to main content

Python utility to capture android screen frames in real time and use with 3rd party libs like opencv.

Project description

Android Screen Buffer

Python package for streaming Android device's screen frames. This utility can be used to capture android screen frames in real time and use with 3rd party libs like opencv. Might be usefull in case you'd like to make processing or use screen frames in your python code (e.g to create reinforcement learning setups for android games).

How to install:

  • First install and run minicap (thats really easy).
  • Then pip install asb

How to use:

from asb import AndroidScreenBuffer

buff = AndroidScreenBuffer()
buff.run()

img = buff.get_last_frame()

if img is not None:
    # Use image as you would like
    # e.g cv2.imshow('capture', img)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for asb, version 0.3
Filename, size File type Python version Upload date Hashes
Filename, size asb-0.3-py3-none-any.whl (4.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page