AlphaDeep Capture
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
- id: 1
name: Camera 2
fps: 30
samples_dir: ~/alphadeep_samples
# AlphaDeep API Configuration
alphadeep_session: "your_session_id"
alphadeep_adapter: "zero_adapter"
alphadeep_api_key: "your_api_key_here"
# 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]
# Auto Capture configuration
autocapture:
length: 2.0 # Total duration (in seconds) to run auto capture
period: 0.5 # Trigger frequency (in seconds) between captures
# Enable verbose console output for debugging API responses
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_dirfor saving data. - Capture: Instantly grabs the current frame from all active cameras and saves them as
.jpgfiles 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
.jsonand 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).
Metadata
Release files for alphadeep-capture 0.1.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alphadeep_capture-0.1.11.tar.gz | 206.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alphadeep_capture-0.1.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 414.8 kB
Release files / alphadeep_capture-0.1.11.tar.gz
| Download URL | alphadeep_capture-0.1.11.tar.gz |
|---|---|
| Size | 206.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8ec9774dc31f674a62a3423701b212055093189caa6a57da69b63212493afcce
|
|
BLAKE2b-256 checksum How to use checksums |
d6c9d534d571b1faa67b13bd050730d3ecbc261abc1578f54318bf9e6b147833
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|
Release files / alphadeep_capture-0.1.11-py3-none-any.whl
| Download URL | alphadeep_capture-0.1.11-py3-none-any.whl |
|---|---|
| Size | 207.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be35d91f1bbeb2bde70444baee54155a55a8bf2a4fb9182dcd6b81fdc8d50eb8
|
|
BLAKE2b-256 checksum How to use checksums |
e2c97b966b0c1cb924aa44c61072aaedcfdd343b7f529094db9be21198fc57d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.12
|