Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include option to batch or sequentially track multiple video files in a directory? #33

Open
ayexander opened this issue Jan 18, 2023 · 5 comments

Comments

@ayexander
Copy link

Issue:
I'm using trackR to track individual ants in a multi chamber setup. My experiments are recorded for 5 hours and partitioned into 10 30-minute videos. Currently I have to manually start trackR running on every video, taking extra time I'd like to not spend.

The ants are unable to move between chambers, but are in different positions at the start of each video, meaning their ID's switch from video to video, as shown in the images below (and related to the ROI ID jump issue I also posted). Thus it takes additional manual work to make the ID's consistent across the results for each video file.

Feature suggestion:
Could a feature be added allowing batch or sequential tracking of multiple videos of the same experiment contained within a directory? Ie. the trackR settings defined for one video in the selected directory/experiment would be applied to all videos in the selected directory/experiment. Results could be output per video file, or in concatenated form.

Additional thoughts:
In concert with my multiple ROI feature suggestion, making the ROI_track ID's consistent across multiple video files could be much easier.

Example images of issue:
trackR_multiple_videos_issue

@sjmgarnier
Copy link
Member

@ayexander It's something I have had in mind for a while. It's not as trivial to implement as it sounds (ideally, I would need to implement that directly into Rvision, the computer vision library used by trackR, and not in trackR directly). I'll try to make some progress on it over the next few months depending on my workload. In the meantime, there are several easy ways to merge videos together before feeding them to trackR. I use Quicktime (on Mac) and VLC (on Windows and Linux) for that.

@ayexander
Copy link
Author

ayexander commented Jan 24, 2023 via email

@sjmgarnier
Copy link
Member

@ayexander It might not take that long to get this working with trackR after all. I've just pushed a new feature into the development version of Rvision to create video stacks (swarm-lab/Rvision@da9dbdd). I'll need a bit more time to test it more thoroughly and integrate it into trackR seamlessly, but the building blocks are all in place.

@ayexander
Copy link
Author

ayexander commented Jan 25, 2023 via email

@sjmgarnier
Copy link
Member

@ayexander I pushed a version of trackR on the develop branch that should work with multiple files, if you want to give it a try. However, I just modified the main app for now. The helper apps (e.g., trackFixer) are not capable of handling multiple files yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants