DetectionPerspectiveTransform
Python template · sinapsis_fast_alpr.templates.perspective_transform
Overview
Template to receive the points of the road and transform the bbox coordinates using cv2 PerspectiveTransform
Example agent:
agent: name: my_test_agent templates: - template_name: InputTemplate class_name: InputTemplate attributes: {} - template_name: DetectionPerspectiveTransform class_name: DetectionPerspectiveTransform template_input: InputTemplate attributes: source_points: '`replace_me:list[list[int]]`' filter_detections_roi: true
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
Required
Default: null
True to keep only detection near the source points area
Optional
Default: true
Configuration example
Generated from documented defaults. Replace any placeholders and complete required nested settings before running.
templates:
- template_name: "DetectionPerspectiveTransform"
class_name: "DetectionPerspectiveTransform"
attributes:
source_points: "<required>"
filter_detections_roi: true
Inheritance
sinapsis_core.template_base.template.TemplateEnvironment variables
Environment definitions belong to their canonical Python modules.
No directly related environment variables listed.