brian-yu / pedestrian-cam Goto Github PK
View Code? Open in Web Editor NEWMonitoring Foot Traffic over IP Webcams with ML
Home Page: https://news.ycombinator.com/item?id=15874866
License: MIT License
Monitoring Foot Traffic over IP Webcams with ML
Home Page: https://news.ycombinator.com/item?id=15874866
License: MIT License
Is it possible to add a LICENSE to this work?
Thanks
Hi there,
No matter what feed I use (e.g. http://81.205.59.129:6001/mjpg/video.mjpg), cv2 video capture will fail. ret
in ret, frame = cap.read()
will be false, and the stacktrace says:
/Users/turbo/anaconda2/lib/python2.7/site-packages/matplotlib/axes/_axes.pyc in imshow(self, X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, **kwargs)
5192 resample=resample, **kwargs)
5193
-> 5194 im.set_data(X)
5195 im.set_alpha(alpha)
5196 if im.get_clip_path() is None:
/Users/turbo/anaconda2/lib/python2.7/site-packages/matplotlib/image.pyc in set_data(self, A)
598 if (self._A.dtype != np.uint8 and
599 not np.can_cast(self._A.dtype, float, "same_kind")):
--> 600 raise TypeError("Image data cannot be converted to float")
601
602 if not (self._A.ndim == 2
TypeError: Image data cannot be converted to float
Hi,
I am new to YOLO.
I have a few question regarding your approach to collect data.
1-Why you capture screen(static image) and count people rather than analyze video instead? I am not sure whether analyze video or static image is more accurate.
2-Is your approach fast enough to analyze live video as it takes time to anaylize each image?
3-You don't set ROI, so same people will appear on multiple snapshot images. How to handle that duplicate?
Sorry, as mentioned about i am new to this Machine learning thing so don't me if my doubt sound ridiculous.
Hi,
Can this run on live feed?
Thanks
[tcp @ 0x7fa5e952a180] Connection to tcp://84.35.225.233:83 failed: Operation timed out
OpenCV: Couldn't read video stream from file "http://84.35.225.233:83/SnapshotJPEG?Resolution=640x480&Quality=Clarity&1509566566"
<class 'cv2.error'>
in prediction.py i found the line
cap = cv2.VideoCapture('http://84.35.225.233:83/SnapshotJPEG?Resolution=640x480&amp;Quality=Clarity&amp;1509566566')
and changed the image location to a valid url but nothing happened. How can I get this to work?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.