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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
asb-0.3-py3-none-any.whl
(4.4 kB
view details)
File details
Details for the file asb-0.3-py3-none-any.whl
.
File metadata
- Download URL: asb-0.3-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1.post20191125 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5ec51a872f2c6cd9480e3081e754a056d7813d3b99a39fa1a06b93f2d9c5818 |
|
MD5 | cbee8df0fdd09562a610ad4f43670446 |
|
BLAKE2b-256 | 5377df6763d0a11558a7916ff983e7c3c416ab765567abfbdd8f5d46ba549097 |