Docs /Templates/ sinapsis-fast-alpr

FastALPR

sinapsis-fast-alprcommunity

Python template · sinapsis_fast_alpr.templates.fast_alpr

Overview

Template to run automatic license plate recognition with Fast ALPR and save the best prediction

Example agent:

agent: name: my_test_agent templates: - template_name: InputTemplate class_name: InputTemplate attributes: {} - template_name: FastALPR class_name: FastALPR template_input: InputTemplate attributes: detector_model: yolo-v9-s-608-license-plate-end2end ocr_model: cct-xs-v1-global-model detection_threshold: 0.5 ocr_threshold: 0.5 alpr_y_threshold: 0.7

Capabilities

Capabilities: not set

Installation

Install the published package using pip or uv.

Terminalbash
pip install sinapsis-fast-alpr==1.0.0
uv pip install sinapsis-fast-alpr==1.0.0
uv add sinapsis-fast-alpr==1.0.0

Configuration

Effective fields from the inspector schema, including nested Pydantic model fields.

metadata
sinapsis_core.template_base.base_models.TemplateMetadata | None
Optional
Default: null
ocr_model

ocr_model name for fast-alpr

typing.Literal['cct-s-v2-global-model', 'cct-xs-v2-global-model', 'cct-s-v1-global-model', 'cct-xs-v1-global-model']
Optional
Default: "cct-xs-v1-global-model"
ocr_threshold

threshold for ocr scores

float
Optional
Default: 0.5
detector_model

license plate detector model name for fast-alpr

typing.Literal['yolo-v9-s-608-license-plate-end2end', 'yolo-v9-t-640-license-plate-end2end', 'yolo-v9-t-512-license-plate-end2end', 'yolo-v9-t-416-license-plate-end2end', 'yolo-v9-t-384-license-plate-end2end', 'yolo-v9-t-256-license-plate-end2end']
Optional
Default: "yolo-v9-s-608-license-plate-end2end"
alpr_y_threshold

threshold for starting license plate recognition where 0.0 represents top of the image and 1.0, the bottom

float
Optional
Default: 0.7
detection_threshold

threshold for detection scores

float
Optional
Default: 0.5

Configuration example

Generated from documented defaults. Replace any placeholders and complete required nested settings before running.

yaml
templates:
  - template_name: "FastALPR"
    class_name: "FastALPR"
    attributes:
      ocr_model: "cct-xs-v1-global-model"
      ocr_threshold: 0.5
      detector_model: "yolo-v9-s-608-license-plate-end2end"
      alpr_y_threshold: 0.7
      detection_threshold: 0.5

Inheritance

Immediate parent: sinapsis_core.template_base.template.Template

Environment variables

Environment definitions belong to their canonical Python modules.

No directly related environment variables listed.