Skip to content

Automatically detect number of items left in stock using power of computer vision

License

Notifications You must be signed in to change notification settings

5sControl/min-max

Repository files navigation

About Min-Max

Min-Max is one of the Official 5sControl algorithms. Plug it in our video monitoring system with AI analysis and ERP Integration (Open Source) to facilitate supply chain management and keep up the optimal stock levels.

With Min-Max, you can now effortlessly manage your reserves and ensure smooth and uninterrupted production processes. Our software helps you maintain the optimal stock levels by providing real-time inventory tracking and analysis, allowing you to make informed decisions and avoid costly production line stoppages.

Min-max

Key features

  • stock levels monitoring;
  • notifications about critical levels;
  • automatic ordering for just-in-time deliveries.

Plug-in Min-Max to 5sCcontrol platform to start monitoring your inventory level!

Learn more about Min-Max on the 5controlS website.

Getting started

Build image for min_max_python algorithm

  • For x86 users

    docker build -t 5scontrol/min_max_python:latest .

  • for AArch64 users

    docker buildx build --platform linux/amd64 -t 5scontrol/min_max_python:latest .

Build image for min_max_python-server algorithm

  • For x86 users

    docker build -t 5scontrol/min_max_python-server:latest ./model_image

  • For AArch64 users

    docker build buildx --platform linux/amd64 -t 5scontrol/min_max_python-server:latest ./model_image

Run containers

Check id of container: docker image list

  • For min_max_python

    docker run -rm -it min_max_python -e <variables>

  • For min_max_python-server

    docker run -rm -it min_max_python-server

    To run min_max algorithm you have to pass following variables:

    • folder -- folder for saving images
    • camera_url -- camera url
    • server_url -- server url
    • extra -- areas data

Run/Test code

  • For min_max_python

    python main.py

  • For min_max_python-server

    cd ./model_image && python -m flask run --host 0.0.0.0 --port 5000

Push images

  • For min_max_python:

    docker image push 5scontrol/min_max_python:latest

  • For min max server image:

    docker image push 5scontrol/min_max_python-server:latest

Documentation

Documentation for Developers

User Documentation

Contributing

Thank you for considering contributing to 5sCcontrol. We truly believe that we can build an outstanding product together!

We welcome a variety of ways to contribute. Read below to learn how you can take part in improving 5sCcontrol.

Code of conduct

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

Code contributing

If you want to contribute, read our contributing guide to learn about our development process and pull requests workflow.

We also have a list of good first issues that will help you make your first step to beсoming a 5S contributor.

Project repositories

5controlS Platform:

  1. 5s-webserver
  2. 5s-backend
  3. 5s-frontend
  4. 5s-algorithms-controller
  5. 5s-onvif
  6. 5s-onvif-finder

Official Algorithms:

  1. min-max
  2. idle-control
  3. operation-control-js
  4. machine-control
  5. machine-control-js

Algorithms Servers:

  1. inference-server-js

License

AGPL-3.0

Min-Max uses third party libraries that are distributed under their own terms (see LICENSE-3RD-PARTY.md).