Skip to main content

Toposync first-party extension: RTSP cameras and camera pipeline operators.

Project description

Toposync Cameras extension

First-party extension focused on camera integration for the global Pipelines runtime.

What it provides

  • RTSP camera settings and indexing (/api/cameras/index)
  • RTSP snapshot endpoints used by UI/tools
  • Visual calibration and projection mapping endpoints for camera/composition interpolation
  • Camera pipeline operators registry integration
  • Camera element/editor UI in the composition

The old per-camera detections runtime (/api/cameras/detections/*, cameras.tracking, and toposync_ext_cameras.processor_server) is no longer part of this extension.

APIs

  • GET /api/cameras/index
  • POST /api/cameras/rtsp/snapshot
  • GET /api/cameras/cameras/{camera_id}/snapshot
  • POST /api/cameras/projection/map

camera.camera_mapping and the editor use calibrated_views as the canonical mapping model:

  • fixed camera: one default calibrated view with pose_reference = null
  • PTZ camera: one or more calibrated views bound to pose_reference or presets
  • projection model: image_quad_on_world, with an image region and a world-space quadrilateral
  • stream scope: main and sub are compatible by default; zoom needs an explicit calibrated view/scope
  • mapping runtime: derives internal control-point pairs from calibrated views so pipeline outputs keep payload.world
  • mapped tracking presets place camera.camera_mapping before vision.track, allowing byte_world to use per-detection world_anchor as a probabilistic association signal.

/api/cameras/projection/map is the public mapping endpoint. UI and extension code should use calibrated views; runtime control-point pairs are internal projection details derived from that canonical model.

Camera pipeline presets

Preset graphs should keep product identity on payload.subject.id. Raw tracker ids are diagnostic only.

  • people_simple: no mapping requirement, for a first people-detection smoke test.
  • people_individual: requires mapping, emits individual event subjects.
  • people_quiet: requires mapping, groups activity with vision.group_events in session mode.
  • presence_area: requires mapping, groups mapped presence with vision.group_events in proximity mode.
  • vehicle_stopped: requires mapping, estimates velocity before notification.

Pipeline operators (registered by this extension)

  • camera.source
  • camera.motion_gate
  • camera.camera_mapping
  • camera.area_restriction
  • camera.velocity_estimation

Public vision operators are registered by the com.toposync.vision extension:

  • vision.detect
  • vision.track
  • vision.group_events
  • vision.crop_objects

Legacy vendor-specific YOLO/Ultralytics runtimes are not part of the official first-party path in this extension. If you need one of those integrations in the future, ship it as a separate package and keep vision.detect / vision.track / vision.group_events as the public operator contract.

Dependencies

  • ffmpeg must be available in PATH for snapshot capture.
  • OpenCV is required by frame/motion processing:
    • uv pip install opencv-python-headless
  • Vision runtimes are optional and can be installed from extensions/vision.

Snapshot tuning

  • TOPOSYNC_CAMERA_SNAPSHOT_TTL_S (default: 0.8)
  • TOPOSYNC_CAMERA_SNAPSHOT_FFMPEG_CONCURRENCY (default: 2)

RTSP note

Some cameras expose /stream1 and /stream2. If /stream1 is unstable for snapshots, configure rtsp_url with the substream (/stream2) explicitly.

Project details


Download files

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

Source Distribution

toposync_ext_cameras-0.4.5.tar.gz (523.9 kB view details)

Uploaded Source

Built Distribution

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

toposync_ext_cameras-0.4.5-py3-none-any.whl (476.0 kB view details)

Uploaded Python 3

File details

Details for the file toposync_ext_cameras-0.4.5.tar.gz.

File metadata

File hashes

Hashes for toposync_ext_cameras-0.4.5.tar.gz
Algorithm Hash digest
SHA256 f4f3b4c03f478ad0f9bc39acd829c7f7ce9a211d4575b19d3501df41e2fbf640
MD5 6be956132b2c2df85007de6cec15b405
BLAKE2b-256 509c819526c6cce2aa1db85761fc0ba236583814a920ec1c20c77d2475d6dd01

See more details on using hashes here.

File details

Details for the file toposync_ext_cameras-0.4.5-py3-none-any.whl.

File metadata

File hashes

Hashes for toposync_ext_cameras-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4e7799a03b8af92467a9a2347420f128f6e633451be555f46150cb71eeb188e1
MD5 1de24c1a9c7fda4c27ffdbe086d99320
BLAKE2b-256 558a9e35116024398ceaecf180c5f8d8823ea45953393daffc17f5de2cc6acc4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page