/FSE_team1_project

Final project for "Foundations of Software Engineering" master's course. The summator that recognizes numbers from images.

Primary LanguagePython

CALCULATOR THAT RECOGNIZES NUMBERS FROM PHOTOS

About

Project from Skoltech FSE course.

This calculator can recognize numbers from photos and then add them.

Quickstart. Building a docker image from the provided Dockerfile and running container

  • First, clone the repository with project to your local machine:

    git clone https://github.com/ocenandor/FSE_team1_project.git -b master
    cd FSE_team1_project
  • Second, build docker image:

    docker build -t fse_project .
  • Then, make directiry "dataset" in project/src/ in your local computer and copy 2 photos of images to "dataset" directory and run container:

    Linux

     docker run -v $PWD/src/dataset:/app/src/dataset fse_project

    Windows

     docker run -v %cd%/src/dataset:/app/src/dataset fse_project

Development

  • Create an empty ubuntu:23.04 docker container:
    docker pull ubuntu:23.04
    docker run -ti --name fse_project ubuntu:23.04
    apt-get update
    apt-get install git
  • Clone repository with project:
    git clone https://github.com/ocenandor/FSE_team1_project.git -b master
    cd FSE_team1_project
  • Run the following shell scripts:
    chmod u+x ./prereqs.sh
    ./prereqs.sh
    chmod u+x ./build.sh
    ./build.sh
    chmod u+x ./test.sh
    ./test.sh   
  • To use the code, you need to copy 2 photos of numbers from your local computer to a docker container (you should create src/dataset directory):
    docker cp 7.png fse_project:/root/project/src/dataset/
    docker cp 2.png fse_project:/root/project/src/dataset/
  • Then run python script in the docker container:
    cd src
    python3 digit_predictor.py

Developers