GithubHelp home page GithubHelp logo

nneji123 / flask-client-camera Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 5.0 60 KB

Home Page: https://medium.com/p/97fb4a0a764f/edit

License: MIT License

Dockerfile 6.19% Python 55.11% HTML 17.92% JavaScript 20.78%
docker docker-compose flask gitpod html javascript medium-article python railway render

flask-client-camera's Introduction

Real-time Image Processing using Flask and OpenCV

About

This is a real-time image processing application built using Flask and OpenCV. The application receives a video stream from the client and processes it using OpenCV. The processed video is then sent back to the client for display.

Repository Structure

├── Dockerfile
├── README.md
├── app.py
├── docker-compose.yml
├── requirements.txt
└── templates
    ├── index.html
    └── static
        └── logo.ico

Tools Used

The application was built using the following tools:

  • Flask: A micro web framework written in Python.
  • Socket.IO: A library that enables real-time, bidirectional communication between web clients and servers.
  • OpenCV: A computer vision library with Python bindings.
  • Docker: A tool designed to make it easier to create, deploy, and run applications by using containers.

How to run the application (using virtual environment)

  1. Clone the repository: git clone https://github.com/Nneji123/flask-client-camera.git
  2. Create a virtual environment: python3 -m venv env
  3. Activate the virtual environment: source env/bin/activate or source env/Scripts/activate if you use windows os.
  4. Install the required packages: pip install -r requirements.txt
  5. Start the application: python app.py

How to run the application (using gitpod)

Open in Gitpod

How to run the application (using Docker and Docker Compose)

  1. Clone the repository: git clone https://github.com/your_username/real-time-image-processing.git
  2. Install Docker and Docker Compose on your machine
  3. Build the Docker image: docker build -t image-processing .
  4. Start the Docker container: docker run -p 5000:5000 -it image-processing

Alternatively, you can use Docker Compose to start the application: docker-compose up -d --build

How to deploy the application

Click the button below to deploy the application to render.com

Deploy to Render

License

MIT

flask-client-camera's People

Contributors

nneji123 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.