Git Product home page Git Product logo

pedestrian-cam's Issues

VideoCapture fails every time

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

Approach to collect data

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.

Live CCTV

Hi,
Can this run on live feed?

Thanks

Issue running server.py

[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;amp;Quality=Clarity&amp;amp;1509566566')

and changed the image location to a valid url but nothing happened. How can I get this to work?

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.