eastein / lidless

A great Eye, lidless, wreathed in webcams.
Other
19 stars 4 forks source link

handle inability to get frames, remove assumption of FPS * frames = sec #7

Open eastein opened 13 years ago

eastein commented 13 years ago

Should not hang and freeze the ratio numbers at whatever they were latest. Should use time more exactly and not trust the fps request made to the server.

eastein commented 13 years ago

This is partially well handled by framedrop, and currently the system at least realizes when it hasn't got frames in awhile; but it still fails to flush the whole motion time buffer when it loses connectivity.

Optimally, it'd just 'miss' motion during the period when the camera was down, and consider that nothing changed during that time - but recognize that time passed. This should naturally flow from removal of the assumption that FPS * frames = sec.