Construct RTVI VSS CV Service
Scaffolds a deployable custom perception microservice that:
- runs a DeepStream pipeline with YOLO26 primary inference + tracker,
- converts detection metadata to the VSS protobuf schema and publishes it
to the mdx-raw Kafka topic, and
- drops into the existing VSS compose stack via the
bp_developer_search_2d and bp_developer_alerts_2d_cv profile flags so
the downstream Search Workflow, Alert Verification, and Behavior
Analytics services consume it without further changes.
The scaffolded output is a runnable repo, not a design document.
Scope boundaries
This skill name describes the service type (a VSS-bound RTVI CV
microservice), not a model family. What is generic vs YOLO26-specific:
| Layer | Scope |
|-------|-------|
| VSS integration | Generic — compose profiles, host networking, mdx-raw, protobuf-2 payload, tests, smoketest |
| Scaffold script output | YOLO26 reference — pgie-yolo26-config.txt, YOLO26_* mount paths, NvDsInferParseYolo26 |
| Other ONNX detectors | Adapt the scaffold manually, or use rtvi-cv-customize-model to swap the model inside the stock vss-rt-cv perception container |
| Segmentation frame masks | Documented in integration-contract.md; not auto-generated by the scaffold — extend msgconv/wrapper after scaffolding |
Do not treat the scaffold as a model-agnostic generator. Agents should either
run the YOLO26 scaffold as-is or consciously edit pgie/compose paths for
another detector while keeping the VSS contract fixed.
When to use
Use this skill when the user wants to:
- replace VSS's default perception service (RT-DETR / GDINO / YOLOv11) with
a custom YOLO26-based detector,
- add new object classes or domain-specific tracking logic while keeping
the VSS Search / Alerts / Behavior Analytics workflows intact,
- ship a perception microservice on a customer's hardware that integrates
with a VSS deployment they manage.
Do not use this skill to:
- deploy or operate VSS itself (use VSS deployment runbooks),
- swap the detector in the default
vss-rt-cvcontainer without a new
microservice (use rtvi-cv-customize-model).
This skill assumes a target VSS deployment already exists or will be brought
up separately.
Instructions
- Read references/integration-contract.md first and keep
mdx-raw,msg-conv-payload-type=2, broker reachability, and the protobuf-2 contract fixed unless the user explicitly wants to break VSS compatibility. - Treat all VSS deployment paths as relative to a separate checkout of the public VSS Blueprint repository, not the DeepStream repository. Clone or reuse a VSS checkout that is v3.2.1 or compatible, then deploy that release (see VSS Quickstart).
- If the user does not have the YOLO26 ONNX, labels file, or custom parser
.so, say so plainly: scaffolding and unit tests can proceed with placeholders, but the live DeepStream app cannot run yet. Point them at Ultralytics/Hugging Face for pretrained weights and ONNX export (see references/yolo26-deepstream.md). - When assets are missing, stop the "live validation" path at scaffold generation plus host-only unit tests. Do not imply that
docker compose up,deepstream-app, orkafka_smoketest.pycan succeed without the customer-supplied ONNX, labels matchingnum-detected-classes, and a parser exposingNvDsInferParseYolo26. - Start the generated service only after the VSS Kafka topic initializer has completed. Keep it as a separate Compose application using host networking. Set
KAFKA_BOOTSTRAPto Kafka's host-reachable advertised listener (default:localhost:9092). Compose cannot resolvedepends_onacross separate invocations.
Examples
- "Create a custom RTVI CV microservice that runs YOLO26 in DeepStream and publishes object metadata so VSS Search and Alerts can consume it."
- "Validate the generated RTVI VSS service scaffold locally, then explain how to verify the live integration on a GPU host with a deployed VSS stack."
- "I do not have a trained YOLO26 ONNX, labels file, or parser
.soyet. Can the live VSS integration still run?"
VSS source location
This skill ships the scaffold generator, but not the VSS deployment. Clone the
public VSS Blueprint repository separately or reuse an existing checkout, then
set VSS_ROOT to that checkout explicitly. Do not search for or clone VSS
relative to the generated service directory:
# Customer-specific path to an existing VSS v3.2.1-compatible checkout.
export VSS_ROOT=/absolute/path/to/video-search-and-summarization
VSS_DEPLOY_DIR="${VSS_ROOT}/deploy/docker"
test -f "${VSS_DEPLOY_DIR}/compose.yml" || {
echo "Missing VSS compose file: ${VSS_DEPLOY_DIR}/compose.yml" >&2
exit 1
}
echo "Using VSS deployment: ${VSS_DEPLOY_DIR}"
Relevant customer-accessible VSS locations include: