ekosman/AnomalyDetectionCVPR2018-Pytorch

i wanted to use this for continous video inputs like webcams

AbhinavJangra29 opened this issue · 2 comments

first of all using webcam will continously keep adding the frames to queue , how to deal with constantly increasing queue size? also how to deal with clip length for continous video inputs

Check this script. The queue has a maximum size equal to the clip length, so it doesn't really increase. For the second question, the clip length is a fixed parameter, and a sliding window is used even in the live demo. As soon as a frame is being read, it is pushed into the queue. Then, another thread consumes this queue to read clips as input to the model.

Closing as no further question arise here.