Skip to main content

SpiriDetect

Detections are the Spiri platform's common language. Anything that finds something publishes a detection; anything that wants to know what's out there reads detections; neither needs to know about the other.

Documentation: https://spiri-robotics.github.io/SpiriDetect/

A detection is a live SpiriSynq Position: one object per thing, at <host>/detections/<producer>/<id>, updated in place as it moves and closed when it's gone. It carries where the thing is and how accurately (pose, pose.accuracy at 90%), what it is (cot_type, label), how sure the producer is (confidence, or None for "not given"), when it was seen (time, stale_after), and how it's moving (course, speed). A node's own position report is a plain Detection at <host>/detections/self (self_topic()).

A detection doesn't promise a place: pose is None while the producer doesn't know where the thing is, as for a bearing or a camera box without a range. Those still carry their ray, the sensor's place facing down the bearing, so a map can draw where to look.

Kinds

  • Detection: the base, for anything with a place, such as a node's report of itself.
  • BearingDetection: a direction from a sensor (ray), with a range, and so a pose, when there is one: a rangefinder hit, a radio or acoustic bearing.
  • BoxDetection: a box in a camera's picture, a bearing through the camera's lens with an angular footprint.
from SpiriSynq.link import Link
from SpiriDetect import BoxDetection, PixelBox, detection_topic

person = BoxDetection(
    detection_topic("yolo", str(track_id)),
    synq_authoritive=True,
    relative_to=Link.to(camera),
    label="person",
    confidence=0.83,
)
person.set_box(PixelBox(412, 180, 36, 90, 1280, 720), camera.intrinsics)

See NOTES-design.md for what's decided and what's next.

Development

uv sync          # creates .venv and uv.lock; commit uv.lock
make check       # what CI runs: lint, tests, docs

Releasing

  1. Move the ## Unreleased entries in CHANGES.md under the new version.
  2. Bump version in pyproject.toml, then uv lock.
  3. Tag vX.Y.Z and push the tag. CI then:
    • publishes the package to PyPI (trusted publishing; the tag must match the version);
    • attaches the docs' controlled PDF to the release.

First-time GitHub setup

Docs are published to GitHub Pages by .github/workflows/docs.yml. Turn it on once, in Settings → Pages → Build and deployment → Source: GitHub Actions.

Template

Generated from SpiriProjectTemplates. Pull in template changes with uvx copier update.

License

Licensed under the MIT License.

Metadata

Release files for SpiriDetect 0.1.0

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

Source distribution (sdist)

Source distribution for SpiriDetect 0.1.0
File Size Uploaded Provenance Actions
spiridetect-0.1.0.tar.gz 91.5 kB With provenance Details for spiridetect-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SpiriDetect 0.1.0
File Interpreter ABI Platform Actions
spiridetect-0.1.0-py3-none-any.whl Python 3 none any Details for spiridetect-0.1.0-py3-none-any.whl

Total release size: 99.2 kB

Release files / spiridetect-0.1.0.tar.gz

Download URL spiridetect-0.1.0.tar.gz
Size 91.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1175bb59253c395d7121821a47b2155451acd214d5b2c546bcca0cda1fd70fd4
BLAKE2b-256 checksum
How to use checksums
dea73e95c68b493168e40c7af6d31dcd66664899a91929d3d627ae5c28dc2789
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / spiridetect-0.1.0-py3-none-any.whl

Download URL spiridetect-0.1.0-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2964c9d99a6ed9a21765c9fa53498e29e7a2dc657623369b2d2ca888b3a4da5
BLAKE2b-256 checksum
How to use checksums
7ede2971e14f1bc163bd18b5a6aa77bd7df64d37094a126cf51b37d5344c1924
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for SpiriDetect 0.1.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for spiridetect-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.1.0 This release

2 release files Full 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