Skip to main content

aicenter

A python based Soft IOC Server for Sample Alignment using a YOLO model.

Installation

python -m venv my-venv
source my-venv/bin/activate
pip install ai-center

To enabled downloading of the latest model file from HuggingFace, install with the [model] extra as follows:

pip install ai-center[model]

Running

To run the EPICS IOC directly, use the following command:

app.epics --device "AIC001" --model "/path/to/model.pt" --video "video_uri"

Command-line Arguments

  • --device: The EPICS root name of the device (e.g., AIC001 or AIC002). (Required)
  • --model: Path to the YOLO model file. If omitted, the latest model will be downloaded from HuggingFace. The model is about 50 MB in size.
  • --video: The URI for the video stream. (e.g., redis://hostname/0030180F06E5:JPG) (Required)
  • --confidence: Object detection confidence threshold. (Optional, default: 0.1)
  • -v: Enable verbose logging. (Optional)

Currently, only file://, redis:// and http[s]:// video schemes are supported

EPICS Process Variables

  • AIC001:enable: Set to 1/0 to Enable/Disable Inference
  • AIC001:loop:score: Score of best loop
  • AIC001:loop:box: Bounding Box of best loop
  • AIC001:loop:valid: 1 if best loop is still valid
  • AIC001:loop:id: id of best loop, not used at the moment
  • AIC001:crystal:score: Score of best crystal
  • AIC001:crystal:box: Bounding Box of best crystal
  • AIC001:crystal:valid: 1 if best crystal is still valid
  • AIC001:crystal:id: id of best crystal, not used at the moment
  • AIC001:pin:score : Score of best pin
  • AIC001:pin:box: Bounding Box of best pin
  • AIC001:pin:valid: 1 if best pin is still valid
  • AIC001:pin:id : ID of best pin, not used at the moment
  • AIC001:extra:box: Bounding Box array of extra Crystals (x1, y1, x2, y2) in sequence, length is 4 x number of extra crystals
  • AIC001:extra:score: Array of scores of extra crystals
  • AIC001:extra:valid: Array of validity of extra crystals, 1 if valid 0 if invalid
  • AIC001:extra:id: Corresponding IDs, of extra crystals (not used at the moment)

If you installed the [view] extra, you can also run the stand-alone inference viewer which displays the inference in a window as follows:

app.view --model "/path/to/model.pt" --video "video_uri"

Command-line Arguments

  • --model: Path to the YOLO model file. If omitted, the latest model will be downloaded from HuggingFace. The model is about 50 MB in size.
  • --video: The URI for the video stream. (e.g., redis://hostname/0030180F06E5:JPG) (Required)
  • --confidence: Object detection confidence threshold. (Optional, default: 0.1)
  • -v: Enable verbose logging. (Optional)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_center-2026.8.2.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_center-2026.8.2-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

Details for the file ai_center-2026.8.2.tar.gz.

File metadata

  • Download URL: ai_center-2026.8.2.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.7 Linux/7.1.6-201.fc44.x86_64

File hashes

Hashes for ai_center-2026.8.2.tar.gz
Algorithm Hash digest
SHA256 c7b223366061590e0cbee16aa2f5e9fa09e2bf83833a35764c051b053ae25845
MD5 4fb451ea2efe2f13dd48d75a1aa17c37
BLAKE2b-256 8e2657ca76aa4b66253619b8559a1756f956f0d5517e47ae119f4559929c9767

See more details on using hashes here.

File details

Details for the file ai_center-2026.8.2-py3-none-any.whl.

File metadata

  • Download URL: ai_center-2026.8.2-py3-none-any.whl
  • Upload date:
  • Size: 15.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.1 CPython/3.14.7 Linux/7.1.6-201.fc44.x86_64

File hashes

Hashes for ai_center-2026.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 615c27f3a238c54a2af26069a0fd173886f52a87e67c64e2abaf136f5d59317e
MD5 0a5dee98f3e3d25ec72a795cc93fadea
BLAKE2b-256 feb44a4bc284afc80256df61bba9cc6c9d82687c46d845d55be5fa0a3e01515a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2026.8.2 This release

2 files

2026.8.1

2 files

2026.5.6

2 files

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