ClassFilter
Python template · sinapsis_fast_alpr.templates.class_filter
Overview
Template to filter detections based on their class label
Example agent:
agent: name: my_test_agent templates: - template_name: InputTemplate class_name: InputTemplate attributes: {} - template_name: ClassFilter class_name: ClassFilter template_input: InputTemplate attributes: classes_to_keep: - car - truck - motorcycle - bus
Capabilities
Capabilities: not setInstallation
Install the published package using pip or uv.
pip install sinapsis-fast-alpr==1.0.0uv pip install sinapsis-fast-alpr==1.0.0uv add sinapsis-fast-alpr==1.0.0Configuration
Effective fields from the inspector schema, including nested Pydantic model fields.
Optional
Default: null
Optional
Default: ["car","truck","motorcycle","bus"]
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "ClassFilter"
class_name: "ClassFilter"
attributes:
classes_to_keep: ["car", "truck", "motorcycle", "bus"]
Inheritance
sinapsis_core.template_base.template.TemplateEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.