Tierpsy / tierpsy-tracker

Multi-Worm Behaviour Tracker. README here:
https://github.com/Tierpsy/tierpsy-tracker/blob/development/README.md
MIT License
21 stars 19 forks source link

Multi Worm Viewer now works with raw videos (imgstore format only) + bug fix #26

Closed luigiferiani closed 4 years ago

luigiferiani commented 4 years ago

To fix a bug in which background subtraction would only work for loopbio videos (because I was using some loopbio-specific property), I added a len() method to all video readers. In some cases (if a video is read via opencv or via ffmpeg) the len() at the begniing will provide an estimate of the video's number of frames. After the video has been read, the len() will be the exact count of frames.