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
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"

# 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): "sudo modprobe -r uvcvideo && sudo modprobe uvcvideo"
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/driver USB reset without rebooting the PC).
  • Restart: Prompts for confirmation and reboots the machine (systemctl reboot).
  • Click-to-Focus Camera: Click any camera feed in the grid to expand it across the full camera area; click again or press ESC to return to the grid (all cameras continue capturing in the background).

Metadata

Release files for alphadeep-capture 0.1.15

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.15
File Size Uploaded Provenance Actions
alphadeep_capture-0.1.15.tar.gz 213.4 kB Without provenance Details for alphadeep_capture-0.1.15.tar.gz

Built distribution (wheel)

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

Total release size: 429.0 kB

Release files / alphadeep_capture-0.1.15.tar.gz

Download URL alphadeep_capture-0.1.15.tar.gz
Size 213.4 kB
Tags Source
SHA-256 checksum
How to use checksums
206d7ef918f6ed138b316afb2db58b693238c1f28a3a8715b8eaf6d7a9bea06a
BLAKE2b-256 checksum
How to use checksums
2a4182a779f11f686dee2777e96d83fb293eba748bf003cba4024ece902dc6d8
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.15-py3-none-any.whl

Download URL alphadeep_capture-0.1.15-py3-none-any.whl
Size 215.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3f9c83a4aaed0c2294d2f8d508db0abdbe0f63d3223cc46ed4d38408051879a9
BLAKE2b-256 checksum
How to use checksums
6223116d1727aeaf2a701da95b3b2fbf7eb48379d3fa42d58c47350193642314
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.15

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