Git Product home page Git Product logo

edge_computing's Introduction

Getting Started...

  1. Clone the repository https://github.com/GaneshKolt/edge_computing.git

  2. Create an appropriate virtual environment, using backend_tf/environment.yml. This can be achieved by running the command: conda create --name self_checkout --file environment.yml You will then need to pip install two packages within that environment. Therefore, after you activate the environment (e.g. conda activate self_checkout) run: pip install flask_cors (This package is not on a conda channel) pip install imageio (This installs pillow with the module for webpack images- which the conda install does not)

  3. To start the backend, which serves the object detection model, change into the backend_tf/ folder, and then run python app.py.

  4. To run the application front end npm start

  5. You should then be able to capture images of Toothpaste, Boost, Dark Fantasy of various sizes which will register in the price UI. The initial inference usually takes longer than subsequent images, so bear that in mind.

Docker Build Instructions

Follow the instructions below to build this docker container and run the app. Please have a look at the Docker documentation for further details.

  1. Clone the repository

https://github.com/GaneshKolt/edge_computing.git

  1. Navigate to the code repository

cd self-checkout

  1. Build the docker container

docker build -t selfcheckout:1.0 .

  1. Run the container. Note: We run the container in detached mode because when the front-end starts alongiside the container. We need to execute a second command to run the backend.

docker run -d --name selfcheckout -p 3000:3000 -p 5000:5000 selfcheckout:1.0

  1. Run this command to start the backend server

docker exec -it selfcheckout python3 /usr/src/app/backend_tf/app.py

  1. Open your browser and use this url

http://localhost:3000

edge_computing's People

Contributors

ganeshkolt avatar

Stargazers

Pham Minh Tam avatar

Watchers

James Cloos avatar  avatar

Forkers

saran98

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.