Skip to main content
Version: v1.4

Application Service Layer

The application service layer turns a user-composed DAG into deployable processor services. Each service is defined across three repository surfaces:

SurfaceRole
template/services.yamlCatalog entry shown in DAG orchestration, including generic input and output forms.
template/processor/*.yamlRuntime image, processor family, model parameters, queue hook, and mounted files.
dependency/core/applications/*Service-local AI implementation loaded by the selected processor family.

The catalog uses payload-form labels such as frame, bbox, text, segmentation, track, attribute, trajectory, pose, and graph. Dayu validates form compatibility between adjacent DAG nodes while leaving application semantics to the user.

Processor families

ProcessorApplication exportTypical use
detector_processorDetectorDetection-only services.
detector_tracker_processorDetector, TrackerDetection followed by task-local tracking.
classifier_processorClassifierClassification of upstream bounding boxes.
roi_classifier_processorRoi_ClassifierROI-cached classification.
structured_processorStructured_ProcessorServices that consume predecessor outputs or return richer structured records.

Processor results use a common content envelope with service, service-specific outputs, and a compact profile.frame_count. Structured applications return only their outputs; the processor loads frames, collects the actual predecessor results for the current DAG node, validates the record shape, and adds the envelope.

Structured traffic services

The current system provides a structured traffic family and a reviewable example at config/application_dags/driving_risk_perception.dag.

ServiceInputOutput
traffic-detection[frame][bbox]
road-context-segmentation[frame][segmentation]
traffic-signal-recognition[bbox][text]
vehicle-tracking[bbox][track]
vehicle-attribute-recognition[bbox][attribute]
vehicle-trajectory-prediction[segmentation, track, attribute][trajectory]
pedestrian-pose-estimation[bbox][pose]
pedestrian-intent-recognition[segmentation, pose][text]
risk-graph-generation[segmentation, text, trajectory][graph]

For implementation and extension details, see Add Applications. The code-backed service catalog, backend notes, recommended review DAG, and visualization configuration are maintained in the Structured Traffic Services reference.