Skip to main content

AlphaDeep Capture

AlphaDeep Capture Logo

AlphaDeep Capture is a high-performance Python/Pygame application designed for live streaming, data capture, and realtime cloud-inference using the AlphaDeep AI platform.

Installation

Install the application directly from PyPI using pip:

pip install alphadeep-capture

Configuration

AlphaDeep Capture uses a YAML configuration file stored in your user configuration directory (following the XDG Base Directory standard).

Configuration Path: ~/.config/alphadeep/capture/config.yaml

If this file does not exist when the app is first launched, a default configuration will be automatically generated.

Example config.yaml

cameras:
  - id: 0
    name: Camera 1
    fps: 200                # (Optional) Per-camera FPS (defaults to top-level fps)
    fourcc: "MJPG"          # (Optional) Codec, defaults to MJPG to reduce USB bandwidth
    auto_exposure: false    # (Optional) V4L2: false = manual (1), true = auto (3)
    exposure: 20            # (Optional) Manual exposure time (V4L2 100µs units -> 20 = 2ms)
    gain: 150               # (Optional) Camera gain
    autofocus: false        # (Optional) Disable continuous autofocus to prevent hunting
    focus: 250              # (Optional) Manual focus_absolute value
  - id: 1
    name: Camera 2

fps: 30
fullscreen: false
language: "en" # Supported UI languages: "en", "sr", "de", "fr"
samples_dir: ~/alphadeep_samples

# AlphaDeep API Configuration
alphadeep_session: "your_session_id"
alphadeep_adapter: "zero_adapter"
alphadeep_api_key: "your_api_key_here"
alphadeep_auto_upload: false
alphadeep_upload_full_res: false

# Set the AI task. Supported values: 
# "detection", "segmentation", "classification", "ocr", "captioning"
alphadeep_task: "detection"

# (Optional) List of target classes to look for
alphadeep_classes: 
  - "car"
  - "person"

# (Optional) Per-class toast colors: preset ("info", "warning", "error", "success"), "#RRGGBB", or [r, g, b]
alphadeep_classes_colors:
  car: "success"
  person: "error"

# Number of parallel threads to use when calling the AlphaDeep API (default is 4)
alphadeep_workers: 4

# Target square resolution to send to the server. Supported: 224, 448, 896
alphadeep_resolution: 448

# The default resolution for the camera hardware (if save_full_res is False) and standard saved images.
capture_resolution: [640, 480]

# (Optional) Shell command executed by the "Reset Cameras" button after releasing cameras
# Example (Linux with passwordless sudoers rule for alphadeep-capture-camera-reset):
# camera_reset_cmd: "sudo alphadeep-capture-camera-reset"
camera_reset_cmd: ""

# Auto Capture configuration
autocapture:
  length: 2.0                  # Total duration (in seconds) to run auto capture
  period: 0.5                  # Trigger frequency (in seconds) between captures
  new_sample_on_start: true    # Create a new sample automatically when auto capture starts
  show_countdown_overlay: true # Show a large countdown timer in the bottom-left corner
  countdown_font_size: 120     # Font size for the bottom-left countdown overlay

# Full-screen toast notification configuration
toast:
  duration: 0.5             # Default notification display duration (in seconds)
  font_size: 240            # Target font size for toast text (auto-scales down to fit)

# Keyboard / Presenter shortcuts (set debug: true to log pressed key names)
keybindings:
  auto_capture: "PAGE_DOWN"
  cycle_class: "PAGE_UP"

# Enable verbose console output for debugging API responses and keypresses
debug: true

Adding Your API Key

In order to use the Analyze functionality, you must edit your config.yaml and provide your alphadeep_api_key, alphadeep_session, and alphadeep_task.

Running the Application

Once installed, you can launch the application directly from your terminal:

alphadeep-capture

Features and Controls

  • New Sample: Creates a fresh timestamped directory in your samples_dir for saving data.
  • Capture: Instantly grabs the current frame from all active cameras and saves them as .jpg files in the current sample directory.
  • Auto Capture: Automatically captures frames repeatedly over a configurable duration and frequency.
  • Preview Sample: Opens an interactive gallery overlay to view all images captured in the current sample.
  • Analyze: Sends the current sample to the AlphaDeep API for remote inference. Results are saved locally as .json and rendered interactively in the gallery (supports detection, segmentation, classification, OCR, and captioning).
  • Comment: Opens a dialog to attach text notes to the current sample (saved as comment.txt).
  • Config: Opens config.yaml in your default XDG text editor.
  • Reset Cameras: Releases and reopens all camera streams (and optionally runs camera_reset_cmd for a hardware USB reset without rebooting the PC).
  • Restart: Prompts for confirmation and reboots the machine (systemctl reboot).
  • Click-to-Focus Camera & Live Controls: Click any camera feed in the grid to expand it across the full camera area and adjust Exposure, Gain, Focus, Brightness, Contrast, and Sharpness live (with Save Config to persist to config.yaml); click the video outside the panel or press ESC to return to the grid.

Metadata

Release files for alphadeep-capture 0.1.16

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

Source distribution (sdist)

Source distribution for alphadeep-capture 0.1.16
File Size Uploaded Provenance Actions
alphadeep_capture-0.1.16.tar.gz 222.1 kB Without provenance Details for alphadeep_capture-0.1.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alphadeep-capture 0.1.16
File Interpreter ABI Platform Actions
alphadeep_capture-0.1.16-py3-none-any.whl Python 3 none any Details for alphadeep_capture-0.1.16-py3-none-any.whl

Total release size: 446.3 kB

Release files / alphadeep_capture-0.1.16.tar.gz

Download URL alphadeep_capture-0.1.16.tar.gz
Size 222.1 kB
Tags Source
SHA-256 checksum
How to use checksums
762bed05eb8e4e643cbb7155091a2801073e56f9f675e91696683324d1f21f87
BLAKE2b-256 checksum
How to use checksums
4cbbe68c9b7ac024942eac78f6559b019bbb07c2b69cc7123b102789544f2dad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / alphadeep_capture-0.1.16-py3-none-any.whl

Download URL alphadeep_capture-0.1.16-py3-none-any.whl
Size 224.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a989cd60e8fc737e276a15ae28365b4e730f6a1736a6df384f3965e569532677
BLAKE2b-256 checksum
How to use checksums
7fcfa276368d133c6bc397289fc1a5b2cf2ed99eb57c9b25d5856ff72efb4ce3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for alphadeep-capture 0.1.16

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.

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