ekosman / AnomalyDetectionCVPR2018-Pytorch

Pytorch version of - https://github.com/WaqasSultani/AnomalyDetectionCVPR2018
172 stars 52 forks source link

i wanted to use this for continous video inputs like webcams #225

Closed AbhinavJangra29 closed 2 months ago

AbhinavJangra29 commented 3 months ago

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

ekosman commented 3 months ago

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.

ekosman commented 2 months ago

Closing as no further question arise here.