Skip to main content

📸 adb_images Module

The adb_images module provides advanced image and text automation features using ADB, OpenCV, and Tesseract OCR.
It allows developers to capture screenshots, match UI elements visually, and interact with text on the screen.


✨ Features

  • Capture device screenshots
  • Match and locate images on screen
  • Tap or long‑press on matched images
  • Preprocess screenshots for OCR
  • Extract and verify text using Tesseract
  • Tap on recognized text safely with retry protection

📚 Installation

pip install dc-adb-images

🚀 Usage Example

from adb_images.image_controller import ImageController
from adb_images.image_matcher import ImageMatcher
from adb_images.text_recognizer import TextRecognizer
from adb_images.text_tapper import TextTapper

# Initialize controllers
controller = ImageController(device_id="emulator-5554")
matcher = ImageMatcher(device_id="emulator-5554")
recognizer = TextRecognizer(device_id="emulator-5554", dir_path=r"C:\Config\Tesseract-OCR\tesseract.exe")
tapper = TextTapper(device_id="emulator-5554")

# Capture a screenshot
screenshot_path = controller.capture_screen()
print(f"Screenshot saved at: {screenshot_path}")

# Find and tap an image
coords = matcher.match_image("assets/target_button.png")
if coords:
    matcher.tap_point(*coords)

# Recognize and tap text
if recognizer.process_text("Login"):
    print("Login button tapped successfully")

# Tap text with preprocessing and safe retries
if tapper.process_text("Continue"):
    print("Continue tapped safely")

Metadata

Release files for dc-adb-images 0.0.2

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

Source distribution (sdist)

Source distribution for dc-adb-images 0.0.2
File Size Uploaded Provenance Actions
dc_adb_images-0.0.2.tar.gz 6.6 kB Without provenance Details for dc_adb_images-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dc-adb-images 0.0.2
File Interpreter ABI Platform Actions
dc_adb_images-0.0.2-py3-none-any.whl Python 3 none any Details for dc_adb_images-0.0.2-py3-none-any.whl

Total release size: 14.7 kB

Release files / dc_adb_images-0.0.2.tar.gz

Download URL dc_adb_images-0.0.2.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
59f5c24c232bcdc3d7b5d12f7d6d39a87090e35e382748bb260523b0e563e1e1
BLAKE2b-256 checksum
How to use checksums
651692aa51bc4a95a9ddb4d7a834784e0a9431f6f2ede75d4dc9944933bef00e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Release files / dc_adb_images-0.0.2-py3-none-any.whl

Download URL dc_adb_images-0.0.2-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0538dd685694554bf470fc9a27888d20e110c2332c8bc4be6ff0bfe1714d2454
BLAKE2b-256 checksum
How to use checksums
4118df3aa82fb3ec5faf9d36212aafe934b22246a2c501e30573beeac2249a48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.0

Security for dc-adb-images 0.0.2

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.0.2 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