Skip to content

About

The Loss Prevention Pipeline System is an open-source reference implementation for building and deploying video analytics pipelines for retail loss prevention use cases. It leverages Intel® hardware and software, GStreamer, and OpenVINO™ to enable scalable, real-time object detection and classification at the edge.

Resources

Code of conduct

Contributing

Security policy

Stars

12 stars

Watchers

5 watching

Forks

Loss Prevention: transparent benchmarking for real-world retail AI on Intel® hardware

Part of the Intel® Retail AI Suite: open-source, runnable AI workloads that let you measure real performance on Intel hardware and decide whether it fits your deployment.

Warning

The main branch is work-in-progress and not guaranteed stable. For the latest stable release 👉 Releases

Important

Migrating from Automated Self-Checkout (ASC)? The automated-self-checkout repo is End-of-Life (retiring end of September 2026). Its pipelines and all future updates, issues, and contributions moved here. The ASC use cases (object detection, object-detection + classification, age verification) run in this repo: see Use cases and Walkthroughs.

Table of Contents

  1. Why this exists / what it is
  2. Use cases in this repo
  3. What to expect when you run it
  4. How to think about performance & stream density
  5. Prerequisites
  6. Quick start
  7. Per-use-case walkthroughs (run · benchmark · density)
  8. Advanced usage
  9. Architecture, services & project layout
  10. Getting help

Why this exists / what it is

We build these workloads to demonstrate real-world retail scenarios and to measure their performance on different Intel hardware platforms. They’re released as open source so partners can read the code and the metrics instrumentation, run the benchmarks themselves to reproduce the numbers we publish, or swap in their own models, pipelines, and business logic and see exactly how performance changes. These are open-source reference pipelines built on Intel® hardware and software, GStreamer, and OpenVINO™, running real-time object detection and classification at the edge.

It answers one question: “How do I know if Intel’s hardware will actually perform for my workload?” So it’s a hardware-sizing tool, not a production starting point.

Transparent Full source + metrics instrumentation. A window into how we did it, not a starting point for your production code.
Representative Off-the-shelf, non-fine-tuned models; sample datasets included; easy to customize.
Measurable Latency · FPS · utilization (CPU/GPU/NPU) · power · stream density.

The conversation we want: “Here’s a real workload. Run it. Compare it. Let’s talk about what you’re actually seeing”, not a TOPS spec sheet.

Use cases in this repo

The workloads build on each other. Start with a basic self-checkout, add a concurrent age-verification pipeline for a real-world lane, then the loss-prevention scenarios themselves, and finally an LVLM enhancement. Each layer adds compute, so the progression is also a hardware-sizing story (see use-case density). Each is selected by a CAMERA_STREAM + WORKLOAD_DIST config pair in configs/, with CPU / iGPU / NPU / hetero variants where available (matrix).

1 · Self-checkout

The base everything else builds on. Migrated from the EOL ASC repo.

A self-checkout vision pipeline that identifies products as they’re scanned. YOLO11n detects the item, EfficientNet-B0 classifies it (asc_object_detection_classification).

Business takeaway: the entry point. Can this Intel box run a basic self-checkout lane at the frame rate it needs? Everything below adds load on top of this.

2 · Self-checkout + age verification

Builds on 1. Adds a parallel face pipeline for a real lane. Add a second, customer-facing pipeline so the same lane can clear age-restricted purchases (alcohol, tobacco) without a staff override. A realistic lane now runs two pipelines at once: one camera scanning products (yolo11n then efficientnet-b0), one camera watching the customer (face detection then age and gender). That is the multi-pipeline-per-lane step.

It ships in four placements, selected by the WORKLOAD_DIST you pass: everything on the iGPU, everything on the CPU, everything on the NPU, or split across the iGPU and NPU with one stage of each pipeline on each accelerator. Running the density test on the iGPU-only and the split versions and comparing them is how you see what accelerator placement is worth on your hardware (see the walkthrough).

Business takeaway: shows whether a box can run a complete lane (scanning plus the age-verification pipeline for unattended alcohol/tobacco sales) at the frame rates the lane requires.

3 · Loss prevention

Builds on 1. Six-camera lane, one shrink scenario per camera. Now layer the actual loss-prevention scenarios on top. As a retail operator, I want to detect common loss scenarios at the lane so that I can reduce shrink without adding staff. The default workload models a single lane as six cameras, each running a scenario detector:

Camera Scenario detector Camera Scenario detector
cam1 Items-in-Basket cam4 Multi-Product Identification
cam2 Hidden Items cam5 Product Switching
cam3 Fake-Scan Detection cam6 Sweethearting

Run with make run-lp. (This 6-camera lane is the concrete example of use-case density.)

4 · Loss prevention with an LVLM

Builds on 3. Adds a vision-language model at the edge. Push item-recognition accuracy beyond traditional CV with a local Large Vision-Language Model, invoked by an agent only when CV is too generic or uncertain, with no custom training (vlm). E.g. “bottle” → “Heinz Ketchup 32 oz”, seasonal/regional packaging, produce varieties, partially obscured or bulk-bagged items, age-restricted variants with changed packaging.

Business takeaway: fewer false positives (less customer friction, fewer staff interventions), better real-loss capture, and adaptability to new/seasonal/regional products without a retraining cycle. It’s the suite’s GenAI-at-the-edge workload, and it reports the metrics that matter for LLM/LVLM sizing (TTFT, token throughput, CPU/GPU/NPU utilization). Runs entirely locally, no cloud dependency.

Scope & related repositories

This repo covers loss prevention at the self-checkout and point of sale, built on the Automated Self-Checkout foundation above. Store-wide loss prevention is a separate effort in the Intel Retail AI Suite:

Each use case in this repo is selected by a CAMERA_STREAM + WORKLOAD_DIST config pair (configs/). Device variants — CPU / iGPU / NPU / hetero — vary by use case; see the matrix.

What to expect when you run it

  • Visual mode (RENDER_MODE=1 DISPLAY=:0) opens a video window with detection overlays/alerts; the pipeline runs until the video completes. Headless mode runs the same pipeline for servers and automated benchmarking.
  • These are off-the-shelf, non-fine-tuned models: expected misclassifications under real-world conditions are part of an authentic evaluation, not defects to hide. The goal is a faithful performance picture, not a flawless demo.
  • For a 15 fps source, a healthy stream holds ~15 fps per stream; throughput, latency, and utilization vary by platform and configuration (see §4).
  • Output files (visual + headless): results/pipeline_stream*.log (per-stream fps,duration_seconds samples) and results/gst-launch_*.log (full GStreamer output). First run downloads videos, models, and images, so it takes a while.

How to think about performance & stream density

The metrics that matter: FPS, end-to-end latency, CPU/GPU/NPU utilization, power, and stream density (for GenAI/LVLM use cases also TTFT and token throughput).

  • Stream density = the most concurrent streams a box sustains at a target FPS. Because an LP lane is multi-camera (six cameras at potentially different frame-rate needs), density is best read as use-case instances: “how many shopping lanes with this use case running per box”, judging each camera against its own FPS target (use-case density, not a raw stream count).

  • Reading the result: a stream cannot sustain more than its source FPS, so any per-stream reading above the source rate is a measurement artifact rather than real throughput. Two things cause it. The counter tallies whole frames inside roughly one-second sampling intervals, and the interval boundary does not line up with frame arrivals, so an interval catches one frame more or fewer than expected. On a 15 fps source that shows up as readings of 14, 15 and 16 on a stream whose average is exactly 15, and it happens on a perfectly healthy stream. Under load a second cause appears: a pipeline that has fallen behind processes its buffered frames in a burst as it recovers. That is real work, but it is not a rate the pipeline can hold.

  • How we measure it: we ramp the number of streams, let each step complete its warmup period, then read the sustained per-stream FPS against the target to find the most streams that hold it. INIT_DURATION controls the warmup period: how long the pipelines run before any FPS samples are taken at each density step, so warm-up effects (model load, buffering, autoscaling) are excluded from the measurement. Its default is 10 seconds (INIT_DURATION ?= 10 in the Makefile). MEASUREMENT_WINDOW_SECONDS controls the minimum measurement interval for FPS samples at each density step. Its default is 100 seconds, and each step adds a lane after one passing measurement interval. The measured FPS used for pass/fail is the sum of each sample's FPS times its reported duration, divided by the sum of those durations. stream_density.log shows this measured FPS with p10 and p90 of the FPS samples for each completed measurement interval, plus p50, p95, and p99 of that measurement interval's frame-latency samples by source/sink channel and for the pooled system; the detailed density report remains at the end. FPS log names (pipeline_streamN) and latency channel names (source -> sink) are different identifiers. These rates are estimates because the counter rounds FPS and duration. Every interval requires at least 100 valid samples from each pipeline log; if needed, collection extends by up to one additional configured interval. If the sample floor is still unmet, the interval is logged as inconclusive and counts as a failing interval. After two consecutive failing or inconclusive intervals the run steps down one lane at a time toward the last passing density. If no higher count is confirmed, the run retests the last passing density, and if that also fails it keeps stepping down with the same rules. stream_density.log records each inconclusive interval, the last passing density and every step-down. If pipeline logs are not ready at a lane count, that attempt also counts as a failing interval, so the run holds for one more attempt and then steps down one lane at a time in the same way. If available memory cannot fit the full lane increment, the run tries smaller increments down to one lane. If not even one more lane fits, the last passing count must also pass two new consecutive intervals before it is confirmed. If it is confirmed, the result is Result: Pass with a note that memory set the limit. Because the counter reports about one sample per second, MEASUREMENT_WINDOW_SECONDS must be at least 100. The final count is confirmed by the run acceptance criterion (two consecutive passes), and a lane is only given up after two consecutive failing measurement intervals. Each measurement interval is evaluated independently; intervals are not combined into one longer interval. A longer warmup period gives the pipelines more time to stabilize before measuring, and a longer measurement interval can reduce short-term measurement noise, but both increase the total benchmark duration. The resolved warmup period is also printed in the stream-density result summary. For example:

    make benchmark-stream-density \
      INIT_DURATION=10 \
      MEASUREMENT_WINDOW_SECONDS=100

How the target FPS is selected

The stream-density benchmark resolves the effective target FPS for each camera using this precedence:

  1. TARGET_FPS environment variable, when explicitly supplied. This overrides the camera configuration for every stream.
  2. Per-camera targetFps in the selected camera_to_workload_*.json file. This is the explicit benchmark target for that camera.
  3. Per-camera fps in the camera configuration. This is used as the fallback target when targetFps is not present or is not a positive value.
  4. The default target FPS, currently 15, when neither camera field provides a positive value.

TARGET_FPS is an environment/command-line override, while targetFps and fps are JSON fields. The resolved target value and its source are recorded in stream_density.log so the benchmark result can be audited.

Prerequisites

  • Ubuntu 24.04 or newer (Linux recommended), Desktop edition (or Server + GUI).

  • Docker

  • Make (sudo apt install make)

  • Python 3 (sudo apt install python3) - required for video download and validation scripts

  • Intel hardware (CPU, iGPU, dGPU, NPU) + drivers:

  • 32 GB RAM . 300 GB Storage

  • Corporate proxy / optional RTSP config:

    # HTTP/HTTPS Proxy settings
    export HTTP_PROXY=<HTTP PROXY>
    export HTTPS_PROXY=<HTTPS PROXY>
    export NO_PROXY=localhost,127.0.0.1,rabbitmq,minio-service,rtsp-streamer
    # Optional RTSP Configuration (defaults shown)
    export RTSP_STREAM_HOST=rtsp-streamer  # Hostname of RTSP server
    export RTSP_STREAM_PORT=8554           # RTSP port
    export RTSP_MEDIA_DIR=../performance-tools/sample-media  # Video source directory
    export STREAM_LOOP=false               # Set to 'true' to loop video streams indefinitely

QuickStart

git clone -b <release-or-tag> --single-branch https://github.com/intel-retail/loss-prevention  # e.g. v4.0.0
cd loss-prevention
RENDER_MODE=1 DISPLAY=:0 make run-lp      # visual: see detections live (recommended first run)
make run-lp                               # headless
make down-lp                              # stop the application

First run downloads videos, models, and images (several minutes). By default make run-lp pulls pre-built images, runs headless, and uses the Loss Prevention (CPU) workload. Add REGISTRY=false to build images locally instead (see Advanced).

Per-use-case walkthroughs

Each use case supports three actions: run it, benchmark a fixed load, and measure stream density. They are listed below in the same order they’re introduced above. The device target is selected by the WORKLOAD_DIST config, but not every use case ships every device variant, so check the matrix below before swapping a suffix.

Use case WORKLOAD_DIST variants available
ASC — object detection _cpu · _gpu · _npu
ASC — object detection + classification _cpu · _gpu · _npu · _hetero
ASC — age verification _cpu · _gpu · _npu · _hetero
Loss Prevention (core, 6-camera) _cpu · _gpu · _gpu-npu · _hetero (no _npu)
LVLM-enhanced none — single workload_to_pipeline_vlm.json; devices are set inside the JSON (device, vlm_device)

Run ls configs/workload_to_pipeline_* to confirm what your checkout provides. Passing a variant that doesn't exist fails fast — make run-lp validates the pair first and reports Configuration file not found: configs/<name>.json.

View results for any benchmark/density run: runs are saved under benchmark/<config>__<device>__<timestamp>/ (for example, lp__hetero__<timestamp> for the default loss-prevention configuration and lp_vlm__<device>__<timestamp> for the VLM configuration). make consolidate-metrics and make plot-metrics use the latest run folder by default. Read its metrics.csv and stream_density.log (for density runs); make benchmark-quickstart consolidates its own run automatically. For a density run with a recorded status, metrics.csv uses the final confirming measurement interval for camera FPS and latency percentiles. If no density was confirmed, it reports Result: no confirmed density and omits FPS and latency metrics. Older runs without a recorded status may still use the whole logs. For Advanced Benchmark settings, 👉 Benchmarking Guide

Windows/WSL2: Follow the WSL setup guide, complete the hardware metrics prerequisites, and use the WSL benchmark metrics guide when benchmarking. The Makefile detects WSL2 automatically. Use an explicit CPU or GPU config pair for every WSL workload command; do not use default configs, _npu, _gpu-npu, or _hetero configs because they include unsupported NPU workloads. For example: make benchmark CAMERA_STREAM=camera_to_workload_asc_object_detection_classification.json WORKLOAD_DIST=workload_to_pipeline_asc_object_detection_classification_gpu.json.

1 · Self-checkout

Run it, detection + classification on the iGPU:

make run-lp CAMERA_STREAM=camera_to_workload_asc_object_detection_classification.json WORKLOAD_DIST=workload_to_pipeline_asc_object_detection_classification_gpu.json RENDER_MODE=1 DISPLAY=:0

Measure its stream density:

make benchmark-stream-density CAMERA_STREAM=camera_to_workload_asc_object_detection_classification.json WORKLOAD_DIST=workload_to_pipeline_asc_object_detection_classification_gpu.json

See the results:

make consolidate-metrics
cat "$(ls -td benchmark/*/ | head -1)metrics.csv"

2 · Self-checkout + age verification

Run scanning and age verification together, both on the iGPU. Two cameras: one scanning products, one doing face detection and age prediction.

make run-lp CAMERA_STREAM=camera_to_workload_asc_age_verification.json WORKLOAD_DIST=workload_to_pipeline_asc_age_verification_gpu.json

Measure the use-case density of that lane (how many of these lanes the box sustains)

make benchmark-stream-density CAMERA_STREAM=camera_to_workload_asc_age_verification.json WORKLOAD_DIST=workload_to_pipeline_asc_age_verification_gpu.json

Run the same lane with the work split across the iGPU and NPU. Same two cameras and same models, but each pipeline now puts one stage on the iGPU and the other on the NPU, so you can see what the split costs or buys.

make run-lp CAMERA_STREAM=camera_to_workload_asc_age_verification.json WORKLOAD_DIST=workload_to_pipeline_asc_age_verification_hetero.json

Measure the use-case density of the split lane:

make benchmark-stream-density CAMERA_STREAM=camera_to_workload_asc_age_verification.json WORKLOAD_DIST=workload_to_pipeline_asc_age_verification_hetero.json

See the results:

make consolidate-metrics
cat "$(ls -td benchmark/*/ | head -1)metrics.csv"

3 · Loss prevention

The default six-camera lane. No config pair needed.

Run it, with video output:

RENDER_MODE=1 DISPLAY=:0 make run-lp

Benchmark a fixed load:

make benchmark

Measure the maximum sustainable lanes:

make benchmark-stream-density

See the results:

make consolidate-metrics
cat "$(ls -td benchmark/*/ | head -1)metrics.csv"

4 · Run Loss prevention with the VLM Workload With Qwen Model (Default)

Set the credentials it needs:

export MINIO_ROOT_USER=<...> MINIO_ROOT_PASSWORD=<...>
export RABBITMQ_USER=<...> RABBITMQ_PASSWORD=<...>
export GATED_MODEL=true HUGGINGFACE_TOKEN=<...>

Run it:

make run-lp CAMERA_STREAM=camera_to_workload_vlm.json STREAM_LOOP=false

Benchmark it:

make benchmark CAMERA_STREAM=camera_to_workload_vlm.json WORKLOAD_DIST=workload_to_pipeline_vlm.json

5 · Run Loss prevention with the VLM Workload With MINICPM Model

Set the credentials needed by the VLM workflow before you run it:

export MINIO_ROOT_USER=<...> MINIO_ROOT_PASSWORD=<...>
export RABBITMQ_USER=<...> RABBITMQ_PASSWORD=<...>
export GATED_MODEL=true HUGGINGFACE_TOKEN=<...>

Use the dedicated VLM camera and workload configs:

Edit the existing VLM config files:

  • configs/workload_to_pipeline_vlm.json

Update the VLM entry to:

  • vlm_model: openbmb/MiniCPM-V-4_5
  • vlm_precision: int4
make download-models \
  WORKLOAD_DIST=workload_to_pipeline_vlm.json


make run-lp \
  CAMERA_STREAM=camera_to_workload_vlm.json \
  WORKLOAD_DIST=workload_to_pipeline_vlm.json \
  OVMS_MODEL_NAME='openbmb/MiniCPM-V-4_5-int4'

Benchmark the same VLM workload after the service is up:

make benchmark \
  CAMERA_STREAM=camera_to_workload_vlm.json \
  WORKLOAD_DIST=workload_to_pipeline_vlm.json

What to Expect:

  • Visual Mode

    • Opens a video window with retail footage and detection overlays.

    • The pipeline runs until the input video finishes.

      Note: The pipeline runs until the video completes

  • Visual and Headless Mode

    • Verify that these output files are created and contain data:

      • <loss-prevention-workspace>/results/pipeline_stream*.log: per-stream fps,duration_seconds samples (one CSV row per counter interval)
      • <loss-prevention-workspace>/results/gst-launch_*.log: full GStreamer logs
    • Expected result:

      • Files exist with content
      • Files are non-empty

If a run fails, see TroubleShooting

Stop the application:

make down-lp

Advanced Usage

Build images locally (instead of pulling pre-built):

#Download the models
make download-models REGISTRY=false
#Update github performance-tool submodule
make update-submodules REGISTRY=false
#Download sample videos used by the performance tools
make download-sample-videos REGISTRY=false
#Run the LP application for visual mode
make run-render-mode DISPLAY=:0 REGISTRY=false RENDER_MODE=1
or
#Run the LP application for headless mode
make run REGISTRY=false
  • Or simply:

    • Visual Mode
    make run-lp DISPLAY=:0 REGISTRY=false RENDER_MODE=1
    • Headless Mode
    make run-lp REGISTRY=false

Stream-density benchmark settings

These settings control which configurations are benchmarked and how the stream-density search measures each density step.

Setting Purpose Default
CAMERA_STREAM Camera/workload configuration camera_to_workload.json
WORKLOAD_DIST Workload-to-pipeline configuration workload_to_pipeline.json
INIT_DURATION Warmup period before FPS measurement begins at each density step 10 seconds
MEASUREMENT_WINDOW_SECONDS Minimum FPS collection duration per interval; may extend by up to one additional configured interval to collect 100 samples per pipeline log. Values below 100 are rejected 100 seconds
DENSITY_INCREMENT Pipelines added during scaling 1
TARGET_FPS Explicit override for all streams unset
targetFps (JSON field) Per-camera target in camera_to_workload_*.json Per configuration
CORE_PINNING Pin all services to one core type via cpuset (benchmark-stream-density only) false
CORE_TYPE Core type used when CORE_PINNING=true: PCORE, ECORE or LPECORE ECORE
ROUND_ROBIN_COUNT Number of round-robin model instances (benchmark-stream-density only) 128

For example, make benchmark-stream-density CORE_PINNING=true CORE_TYPE=ECORE ROUND_ROBIN_COUNT=64. See Core Pinning for details.

Configuration & user-defined workloads

  • Workloads are configured by JSON in configs/ plus the CAMERA_STREAM / WORKLOAD_DIST env vars (CPU/GPU/NPU/hetero variants, availability varies by use case). You can also define your own: map cameras to custom pipelines by editing camera_to_workload_*.json (which cameras run which workloads) and workload_to_pipeline_*.json (each workload’s pipeline, a sequence of GStreamer elements + models, e.g. gvadetect / gvaclassify, on a chosen device). See the Get Started Guide for pre-configured workloads and User-Defined Workloads for the full definitions.

  • Camera configs can include an optional _about block describing the scenario, cameras, and purpose of the workload; the stream-density report prints this description to give the results context.

  • Inference interval

    The INFERENCE_INTERVAL environment variable controls how often the detector runs inference (the gvadetect inference-interval property). A value of N runs inference on every Nth frame and relies on the tracker for the frames in between.

    • Default: 3
    • 1: run inference on every frame (smoothest, most consistent detections; highest load)
    • 2, 3, and up: infer less frequently (better performance, more reliance on the tracker between frames)
make run-lp CAMERA_STREAM=camera_to_workload_asc_object_detection_classification.json WORKLOAD_DIST=workload_to_pipeline_asc_object_detection_classification_gpu.json RENDER_MODE=1 DISPLAY=:0 INFERENCE_INTERVAL=1

Architecture & services

The system runs as a set of Docker containers orchestrated by docker-compose. AI inference runs on OpenVINO™ across Intel® CPU / iGPU / NPU; the video-analytics pipeline is built with GStreamer (Intel® DLStreamer gvadetect / gvaclassify elements) and generated dynamically from the config files; and video is fed in over RTSP. The sections below cover that streaming source, the container services, and the repository layout.

RTSP streaming architecture

An integrated MediaMTX RTSP server (rtsp-streamer container) streams the sample video files for testing and development.

How it works

  1. RTSP server container (rtsp-streamer): auto-starts MediaMTX on port 8554; streams every .mp4 in performance-tools/sample-media/; each video becomes an RTSP stream at rtsp://rtsp-streamer:8554/<video-name>.

  2. Pipeline consumption: GStreamer pipelines connect via the rtspsrc element, with TCP transport, configurable latency, and automatic retry/timeout handling.

  3. Stream naming convention: e.g. video items-in-basket-32658421-1080-15-bench.mp4 → stream rtsp://rtsp-streamer:8554/items-in-basket-32658421-1080-15-bench.

RTSP server features

  • Loop playback: videos restart automatically when finished
  • TCP transport: reliable streaming over corporate networks
  • Low latency: 200 ms default for real-time processing
  • Multiple streams: supports concurrent camera streams
  • Startup readiness: pipeline runners wait until every mounted .mp4 stream delivers video packets over RTSP. The health check probes streams concurrently with a 10-second limit per stream; an open RTSP port alone is not considered ready.
  • Proxy support: works through corporate HTTP/HTTPS proxies

Docker Services

Service Purpose Port Notes
rtsp-streamer RTSP video streaming server 8554 Streams videos from sample-media
rabbitmq Message broker for VLM workload 5672, 15672 Requires credentials
minio-service Object storage for frames 4000, 4001 S3-compatible storage
model-downloader Downloads AI models - Runs once at startup
lp-vlm-workload-handler VLM inference processor - GPU/CPU inference
vlm-pipeline-runner VLM pipeline orchestrator - Requires DISPLAY variable
lp-pipeline-runner Main inference pipeline - Supports CPU/GPU/NPU
lp-mcp-service MCP server exposing loss events and age-range results to AI agents 9100 Optional; mcp Compose profile — see LP MCP service

All services run on my_network bridge network for DNS resolution;use rtsp-streamer, rabbitmq, minio-service as hostnames for inter-service communication

LP MCP service

lp-mcp-service is an optional Model Context Protocol server that lets AI agents query what the pipeline detected. A background watcher ingests results/rs-*.jsonl (and VLM results after each run) into a SQLite event log and exposes read-only tools such as Get_loss_history, Get_age_range_counts, and Get_item_verifications at http://localhost:9100/mcp. It only reads pipeline output, so every workload runs the same with or without it.

Command MCP service
make run / make run-lp Started with the stack (mcp profile enabled)
make down-lp Stopped with the stack
make benchmark / make benchmark-stream-density Not started, so it never adds load to measurements
make mcp-up / make mcp-down Start / stop only the MCP service

See mcp-service/README.md for the event schema, full tool list, and configuration.

Project Structure

  • configs/: Configuration files (camera/workload mapping, pipeline mapping)
  • docker/: Dockerfiles for downloader and pipeline containers
  • docs/: Documentation (HLD, LLD, system design)
  • download-scripts/: Scripts for downloading models and videos
  • src/: Main source code and pipeline runner scripts
  • src/rtsp-streamer/: RTSP server container (MediaMTX + FFmpeg)
  • src/gst-pipeline-generator.py: Dynamic GStreamer pipeline generator
  • src/docker-compose.yml: Multi-container orchestration
  • mcp-service/: Loss Prevention MCP server for AI-agent access to results (details)
  • performance-tools/sample-media/: Video files for RTSP streaming
  • Makefile: Build automation and workflow commands

Useful Information

  • Make Commands
    • make validate-all-configs: Validate all configuration files
    • make clean-images: Remove dangling Docker images
    • make clean-containers: Remove stopped containers
    • make clean-all: Remove all unused Docker resources
  • Known Issues
    • On EMT OS, containers built on Alpine base images (e.g., MinIO) may report as unhealthy despite the service functioning normally. Docker health checks are failing with OCI runtime errors, preventing proper container orchestration and monitoring.

Getting help

Pick the use case closest to your needs, run the included benchmarks, and reach out to your Intel Solution Manager to talk about what you found. Full docs: the Loss Prevention Get Started Guide. In case of failure, see Troubleshooting.

About

The Loss Prevention Pipeline System is an open-source reference implementation for building and deploying video analytics pipelines for retail loss prevention use cases. It leverages Intel® hardware and software, GStreamer, and OpenVINO™ to enable scalable, real-time object detection and classification at the edge.

Resources

Code of conduct

Contributing

Security policy

Stars

12 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages