
BAT AI Leaf SOP Checker
Multiprocess RTSP analytics system that checks six leaf-buying SOP stages: bale opening, barcode scan, moisture inspection, layer-by-layer inspection, weighing step-back, and unwanted activities.

Workflow at a glance
Read camera feeds
Ingest video from leaf-buying work areas.
Detect workflow cues
Identify observations relevant to SOP stages.
Track SOP state
Evaluate six workflow checks over time.
Deliver evidence
Store snapshots and send stage-level events.
Project facts & reported results
Implementation fact
Implementation fact
Implementation fact
Project Overview
Problem Statement
Manual SOP review is difficult to apply consistently across repeated production workflows and provides limited searchable evidence for later review.
Approach & Methodology
Implemented multiprocess RTSP capture and threaded analysis for leaf-buying workflow checks. Detection and region logic update persistent stage state, while per-check senders deliver evidence and events.
Outcome & Scope
Produces structured, time-stamped compliance events and snapshots through independent processing and sender services while maintaining persistent workflow state.
Technical Challenges & Solutions
Workflow state across frames
SOP stages span many observations rather than a single detection.
Maintain task-specific persistent states and region-based transitions.
Keeping capture responsive
Slow analysis or delivery can interfere with video capture.
Separate capture, threaded processing, and per-check sending.
System Architecture
Independent video processing and persistent SOP event delivery.
Key Components:
Acquire video through separate capture processes.
Analyze configured workflow observations and regions.
Maintain counters and workflow state across observations.
Deliver snapshots and task events through independent senders.
Key Features & Capabilities
Bale-opening check
Barcode-scan workflow check
Moisture-inspection check
Layer-by-layer inspection check
Weighing step-back check
Unwanted-activity checks
Persistent stage state and per-check evidence delivery
Current Scope & Limitations
This case study describes SOP observation support, not a certification that every physical procedure was completed.
Synchronized cross-camera bale handoff is not claimed.