Giter Site home page Giter Site logo

gvinciguerra / countmein Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 901 KB

๐Ÿพ People counting and surveillance with IoT devices

License: GNU General Public License v3.0

Python 83.18% HTML 16.82%
api-rest face-detection opencv opencv-python python telegram-bot

countmein's People

Contributors

gvinciguerra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

countmein's Issues

Dashboard does not respond

Set up using docker on a Mac. 10.12.6. The dashboard doesn't respond. I started everything with docker-compose up and it looks like everything started. I wasn't sure what to put into the config file so here's what I used.

version: "3"
services:
web:
build: .
ports:
- "8000:8000"
depends_on:
- db
command: gunicorn -t 15 --bind localhost:8000 counterserver.main:hug_wsgi
db:
image: mongo:latest
ports:
- "27017:27017"

Any clues to where I might look?

Thanks

Unable to POST and Process Images and Video

This is wonderful stuff and I am sure your project will be a very good template. I am following the Docker instructions and got the server up and running but I am unable to POST any images as per instructions.

E:\countmein>curl -i http://localhost:8000/v1/events -F event_type=0
HTTP/1.1 100 Continue
HTTP/1.1 201 Created
Server: gunicorn
Date: Sat, 26 Jun 2021 14:29:34 GMT
Connection: close
content-type: application/json; charset=utf-8
content-length: 26
"60d739cef72f136ecdc07971"

E:\countmein>curl -i http://localhost:8000/v1/frame -F [email protected]
HTTP/1.1 100 Continue
HTTP/1.1 400 Bad Request
Server: gunicorn
Date: Sat, 26 Jun 2021 14:30:04 GMT
Connection: close
content-type: application/json; charset=utf-8
content-length: 64

{"errors": {"frame": "Required parameter 'frame' not supplied"}}

Face Detection Client Not Working

Am on Windows and when I execute the client, it is crashing after a face has been detected...

E:\countmein\clients>python camera_node.py
[[ 85 168 289 289]] // I printed faces() to debug
Traceback (most recent call last):
File "E:\countmein\clients\camera_node.py", line 155, in
track_unknown_faces(faces, frame)
File "E:\countmein\clients\camera_node.py", line 81, in track_unknown_faces
new_tracker = cv2.Tracker_create("MEDIANFLOW") # KCF MEDIANFLOW
AttributeError: module 'cv2.cv2' has no attribute 'Tracker_create'
[ WARN:0] global C:\Users\appveyor\AppData\Local\Temp\1\pip-req-build-wvn_it83\opencv\modules\videoio\src\cap_msmf.cpp (434) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback

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.