GithubHelp home page GithubHelp logo

yurc / flask-docker-opencv-nginx Goto Github PK

View Code? Open in Web Editor NEW

This project forked from arxyzan/flask-docker-opencv-nginx

0.0 0.0 0.0 10 KB

A web app built with Flask to stream video feed from any IP camera to the users of a local network

Python 60.24% HTML 12.47% Dockerfile 27.30%

flask-docker-opencv-nginx's Introduction

Flask-OpenCV-Docker

Stream IP camera frames in local network using Flask, Docker and OpenCV.

Overview

this is a simple Flask web app running on top of a Docker container. The app also has Nginx configured which lets users in your local network access the app using your local IP address.

Requirements

If you want to run the app on docker the only thing you need is Docker-ce and Docker-compose. follow the official guide on installing Docker on Ubuntu.

If you only want to run the python program use the following command to install requirements.

cd flask/
pip install -r requirements.txt

Run

Flask web app only: cd to flask directory and run the following:

python run.py

Run the whole thing on Docker and Nginx: cd to the project root directory and run:

docker-compose up

Note: Make sure you change the CAMERA_STREAM_URL in docker compose file under Flask service. Default is 0 but webcams are not accessible from a Docker container out of the box! So an RTSP url is required.

It might take some time to download required docker images and then it will run the containers and you and other users in the local network can access the page on any device. Just type the local IP address of your machine in the browser and that's it!

flask-docker-opencv-nginx's People

Contributors

arxyzan 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.