swatch

swatch

Docker app from crzynik's Repository

Overview

Swatch: Color detection in images to capture presence of known objects. There is great object and face detection software out there, but sometimes AI detection is overkill or not suitable different types of objects. Swatch was created to create an easy to use API to detect the presence of objects of known color in expected places. Note: A config.yml file must exist in the config directory. See example here. See the documentation for more details.

Swatch icon

GitHub Release Build Status License

swatch

Color detection in images to capture presence of known objects.

Why?

There is great object and face detection software out there, but sometimes AI detection is overkill or not suitable different types of objects. Swatch was created to create an easy to use API to detect the presence of objects of known color in expected places.

In this example you can see a cropped section of the street with a trash can. Then, using expected color bounds, the parts of the image that don't match the expected color are masked away. If a significant enough amount of pixels are left that match the color then it can be considered a true positive.

street street-bounding street-mask

Features

Web UI

Color Playground

Swatch Color Playground

Configuration

A config.yaml file must be created and mapped to /config

Check out GitHub Docs for example and more instructions on creating the config file.

Adding Objects

Check out the Color Setup Docs for how to setup objects and fine the color values to use.

API References

Check out GitHub Docs for the API reference.

Contributing

Contributions are very much welcome!

For instructions on how to get started, see the contributing section

Donations

If you would like to make a donation to support development, please use GitHub Sponsors.

Install Swatch on Unraid in a few clicks.

Find Swatch in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.

Open the Apps tab on your Unraid server Search Community Apps for Swatch Review the template variables and paths Click Install

Categories

Download Statistics

3,224
Total Downloads

Related apps

Explore more like this

Explore all

Details

Repository
crzynik/swatch:latest
Last Updated2023-10-01
First Seen2022-05-10

Runtime arguments

Web UI
http://[IP]:[PORT:4500]
Network
bridge
Shell
sh
Privileged
false

Template configuration

APIPorttcp
Target
4500
Default
4500
Value
4500
Config PathPathrw

/mnt/user/appdata/swatch

Target
/config
Default
/mnt/user/appdata/swatch
Value
/mnt/user/appdata/swatch/
Media PathPathrw

/mnt/user/media/swatch/

Target
/media/
Default
/mnt/user/media/swatch/
Value
/mnt/user/media/swatch/
Database pathPathrw

Path to swatch db

Target
/database/
Default
/mnt/user/database/swatch/
Value
/mnt/user/database/swatch/
LocaltimePathro

/etc/localtime

Target
/etc/localtime
Value
/etc/localtime