We aim to deploy gesture recognition model on docker with Flask. The model here is 3D Neural Network to correctly recognize hand gestures by a user.
Docker container: Docker is like a container where the code is loaded so that it can be used on any platform without any dependency.
Docker Image: It's a read-only file that has multiple layers that help us to execute layers in docker containers. We can get a custom docker image.
Docker Hub: Different Docker Images resides here.
- The development process is easy.
- Scalability.
The steps followed to deploy the model using docker are:
- Train and Evaluate the Model
- Create an API using Flask
- Create a requirements.txt file
- Create a Dockerfile which has required environment setup and start-up operations.
- Build the Docker Image
- Run the container
- Test the deployment
The training data consists of a few hundred videos categorised into one of the five classes. Each video (typically 2-3 seconds long) is divided into a sequence of 30 frames(images). These videos have been recorded by various people performing one of the five gestures in front of a webcam - similar to what the smart TV will use.
The videos have two types of dimensions - either 360x360 or 120x160 (depending on the webcam used to record the videos).