GithubHelp home page GithubHelp logo

michaelchi08 / flask-person-detector Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rememberlenny/flask-person-detector

0.0 2.0 0.0 23.28 MB

Flask based web application that provides a REST endpoint using OpenCV's Deep Neural Network method for Object Detection

License: MIT License

Python 100.00%

flask-person-detector's Introduction

Flask-Person-Detector

Flask based web application that provides a REST endpoint using OpenCV's Deep Neural Network method for Object Detection

How to run

python server.py

Endpoint

If this is run locally, the endpoint is: http://localhost:5000/is_person.

If a person is detected response: {"response": "person likely found"}

Response for everything else: {"response": "no people found"}

To use the endpoint, send a POST request with a JSON blob that looks like this: {"image_path": "your-image-url-here"}.

Dependencies

Libraries: flask, numpy, cv2, requests, os

Notes

Note that there are a number of dependencies. I'm not sure what the best way is to list these, so if you get the app working, then hooray. This is more about having a reference of how to make a OpenCV DNN based REST endpoint using Flask.

flask-person-detector's People

Contributors

rememberlenny avatar

Watchers

James Cloos avatar Michael 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.