Are you eager to dive into the world of algorithm creation for the 5controls platform but feeling unsure where to start?
Look no further! We are delighted to present to you our comprehensive repository, designed to guide you through the process of building your very own protective jacket detection algorithm and seamlessly connecting it to the 5Control platform.
-
Step 1: Algorithm Development
-
Step 2: Integration with 5sControl Platform
During these steps you'll discover how to build, test and seamlessly connect your protective jacket detection algorithm to the 5controls platform, enabling it to generate violation reports and contribute to a safer working environment.
With our repository as your guide, you'll gain the knowledge and skills needed to create a powerful protective jacket detection algorithm within a matter of a couple of days.
Follow the step-by-step instructions, study the commits history for valuable insights, and witness your algorithm come to life.
Optimizing the algorithmic processes used in our platform is an important direction for improving resource utilization efficiency. In this regard, it is proposed to consider a new architecture based on the idea of separating the model and the algorithm. Instead of each algorithm running its own copy of the model, we can establish shared access to a single server model, which will significantly reduce the memory usage.
The existing infrastructure will remain unchanged, but during the development of new algorithms, an architectural approach based on a single server model for multiple algorithms will be proposed. This will allow us to optimize resource utilization, as the amount of memory consumed by each algorithm will be significantly reduced. Approximately 500 MB of memory will be allocated for each algorithm, while the model on the server will occupy about 1.5 GB.
This approach will provide more efficient resource utilization and improve system performance overall, without requiring additional memory allocation when launching each new algorithm. As a result, we will be able to significantly reduce memory consumption and optimize the operation of our algorithm, leading to improved performance and resource savings.
- Write your algorthm;
- Add your model and set some settings for the model. Specifically configure the parameters that we will accept from the model.
You have to download the models
- Let's add a class in order to receive an image from the server:
- The most important step: configuring report sending. Everything must be in the following format:
python vest.py
-
For x86 users
docker build -t 5scontrol/my-first-5s-algorithm:latest .
-
for AArch64 users
docker buildx build --platform linux/amd64 -t 5scontrol/my-first-5s-algorithm:latest .
docker push 5scontrol/my-first-5s-algorithm:latest
Go to 5controlS UI, Configuration tab. Click on the Add algorithm button.
Fill in the form, specifying the information about your algorithm and its docker image.
This algorithm uses third party libraries that are distributed under their own terms (see LICENSE-3RD-PARTY.md).