GithubHelp home page GithubHelp logo

diegoinacio / object-detection-flask-opencv Goto Github PK

View Code? Open in Web Editor NEW
41.0 6.0 22.0 87 KB

๐Ÿ‘๏ธ A plain web application for real-time object detection via webcam, using Flask and OpenCV.

License: MIT License

Python 69.51% JavaScript 13.41% CSS 5.53% HTML 11.55%
computer-vision object-detection flask opencv jquery machine-learning image-processing yolov3

object-detection-flask-opencv's Introduction

Real-time object detection application

Web application for real-time object detection on video streaming via web browser.

layout

Watch the demo video.

Installation

Create and activate an virtual environment, as follows:

$ cd cloned/directory/
$ python -m venv env
$ env/Scripts/activate

After have installed and activated the environment, install all the dependencies:

$ pip install -r requirements.txt

After that, you can run the following command and access the application at 127.0.0.1:5000 on your browser.

$ python application.py

obs.: This application was tested only on Google Chrome.

Download model

To download the yolov3.weights, just run:

$ cd models/
$ python dl-weights.py

Usage

  • Camera preview: Enables and disables the webcam preview.
  • Run detection model: Enables and disables the detection model.
  • Exposure: Buttons which increase or decrease camera exposure stops by 1.
  • Contrast: Buttons which increase or decrease camera contrast stops by 4.
  • Reset camera: Reset all camera settings based on camera_settings.log file.

object-detection-flask-opencv's People

Contributors

dependabot[bot] avatar diegoinacio avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

object-detection-flask-opencv's Issues

Hello can u help me??

Can you make the same web ui layout for emotion detection model and gender detection model in real time? similar to this object detection??

Why need to put contrast and exposure?

Hi I already have yolov3 detection model. However, when I implement them using ur code, the detection becomes quite hard. The fps become more lagging. I think maybe it relay to the contrast and exposure.

NEED HELP WITH VIDEO FEED RESPONSE

Hi, I am using your code, thanks for sharing.

I am trying to find a way in which I can send Detected Object Labels to HTML/JINJA2.
When the script detects any object I want to show Labels in HTML .

Please If you can help me with this. I have a deadline to meet.

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.