Skip to content

KaunoFakultetas/gateopener-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gate opener using YOLOv7 and EasyOCR

This repository contains the setup and deployment of gate opener with ANPR capabilities. The system which this project is deployed on is Ubuntu 22.04 server and utilizes NVIDIA 3060Ti graphics card.


demo1 demo2

1. Install dependencies

Prerequisites

Before starting this project you need to install into your system:

  • Docker and Docker Compose
  • Nvidia Drivers

1.1. Docker and Docker Compose:

sudo curl -L https://github.com/docker/compose/releases/download/v2.26.1/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo apt install -y docker.io

1.2. NVIDIA drivers:

curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
&& curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
    sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
    sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list

sudo apt-get update
sudo apt-get install -y nvidia-container-toolkit

sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart docker
sudo apt install nvidia-driver-535
sudo reboot

1.3. Test the system and if everything is ok - proceed

sudo docker run --rm --runtime=nvidia --gpus all ubuntu nvidia-smi

2. Building and Running the Container Stacks

2.1. Clone the repository:

git clone https://github.com/kaunofakultetas/gateopener-server.git
cd gateopener-server

2.2. Start the neural network containers:

cd gate-neural
./runUpdateThisStack.sh
cd ..

2.3. Edit the processing stack environment variables and start containers:

cd gate-processor
cp docker-compose.yml.sample docker-compose.yml
nano docker-compose.yml
./runUpdateThisStack.sh
cd ..

Contributing

Feel free to submit issues and pull requests.


Acknowledgements