Skip to content

starwit/aic-connector-cv

Repository files navigation

AI Cockpit Connector for Computer Vision

This component sends sae detection results to ai-cockpit and adds images with bounding boxes to ai-cockpits minio bucket and creates a new decision for human operators to check.

Background & Concept

AI software makes complex decisions and thus it is necessary to keep humans in control. In order to have a central place for this kind of checks AI Cockpit was developed.

To get decisions into cockpit connecting components are necessary and this component connects object detection events to AI Cockpit. Decisions checked here are fairly simple - test if detections are correct. If you want to develop your own connector, this project can serve as a template.

Development

This section contains all info how to setup local development.

Check prerequisites

In order to work with this repository, you need to ensure the following steps:

  • Install Poetry
  • Install Docker

Setup

Configuration

This template employs pydantic-settings for configuration handling. On startup, the following happens:

  1. Load defaults (see config.py)
  2. Read settings settings.yaml if it exists
  3. Search through environment variables if any match configuration parameters (converted to upper_snake_case, nested levels delimited by __), overwriting the corresponding setting
  4. Validate settings hierarchy if all necessary values are filled, otherwise Pydantic will throw a hopefully helpful error

The settings.template.yaml should always reflect a correct and fully fledged settings structure to use as a starting point for users.

Github Workflows and Versioning

The following Github Actions are available:

  • PR build: Builds python project for each pull request to main branch. poetry install and poetry run pytest are executed, to compile and test python code.
  • Build and publish latest image: Manually executed action. Same like PR build. Additionally puts latest docker image to internal docker registry.
  • Create release: Manually executed action. Creates a github release with tag, docker image in internal docker registry, helm chart in chartmuseum by using and incrementing the version in pyproject.toml. Poetry is updating to next version by using "patch, minor and major" keywords. If you want to change to non-incremental version, set version in directly in pyproject.toml and execute create release afterwards.

Dependabot Version Update

With dependabot.yml a scheduled version update via Dependabot is configured. Dependabot creates a pull request if newer versions are available and the compilation is checked via PR build.

About

Delivers computer vision detections to ai-cockpit.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •