-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error while running multi-animal tracking #3
Comments
Hi @aaronsathya and thanks for your interest in BonZeb! It's always cool to learn how people are using it to do different things. I've made an updated version of the workflow and attached it in a zip folder. The key things that changed:
I hope this helps. |
That's great! Thanks much! Worked like a charm! |
Hi @ncguilbeault sorry - I should have checked the results more carefully - I was trying to make some trajectory plots with the data and it looked odd. When I examined the results CSV closely I noticed that there was some "shifting" of the centroid data per object detected. Is this because there are objects (flies) entering or leaving the region of interest - and because of this the stream of centroids is being interrupted. Any ideas how to fix this? I've attached the trajectories plot and the csv (converted to an excel) with some examples of this shift color-coded. |
Hi @aaronsathya It sounds like the problem is with identity tracking. For this, you will need to correct for identities using offline identity tracking. Specifically, you will want to use the python API to correct for identities by passing the tracking data and tail curvature to this function here: Line 65 in d3a7ee4
|
Hi @ncguilbeault I am trying to adapt the multi-animal tracking example to track flies in a chamber. When I try to do this, I am getting the following error:
Runtime Error
'List[Array[Point2f]]' object has no attribute 'Item1'
The background subtraction is working really well - I tried running the different parts of the workflows separately and centroids are being generated, however, I think the issue is with the python script node in the SelectMany MultiAnimalTracking node with the following line:
There is no Item1 in the output from the the TrackMultipleAnimals SelectMany node within the MultiAnimalTracking SelectMany node. I am wondering how I can just get the centroid data written to the tracking_results.csv file. Thanks a lot for building BonZeb - it is a fantastic tool.
The text was updated successfully, but these errors were encountered: