-
Notifications
You must be signed in to change notification settings - Fork 23
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
IndexError: list index out of range #7
Comments
I've fixed the error, but you'll face to another problem: the threshold between animal color and background color is very specific for my lab environment, therefore contour of your animal is corrupted. So I'll try to make the threshold more adaptive, or at most to replace my detecting algorithm by common one, e.g. GOTURN. Thank you for new video provided with different environment, Shahrukh. |
As to file extension: you just need to replace all |
water-maze-lesion.zip |
How much light intensity in lux is needed during video recording for perfect tracking of the animal? |
Download v0.1.1 and just fill full right half of UI window by the green quad. Your mistake in water-maze-lesion.zip was the highlighting of only the part of arena. Green quad is needed to get rid of perspective effect that is caused by optical aberrations.
What you need to fit units of the distance is normalize it by the length of the average side of red quad you've selected as frame in UI measured in meters: E.g. if the length between top right and bottom right points of red frame is 2.1 meters then divide the distance by 2.1.
That is exactly what
Everyday working lighting 200–400 lx is enough. |
im still have a war with trying to count a speed , |
Are you sure you have read my answer? The item 3 states: there is a variable speed = distance / t
print(speed)
From the variable
If you don't see red frame on the right side then you have to highlight it manually before you press |
May I know how you avoided the errors caused by water ripples? I am unable to reproduce the same results for the video I used. |
The only thing I did is average all frames and subtracted the sum from each current frame. It helped for your example, but not in general. Try to decrease We can introduce Kalman filter if you will continue facing the problem. |
But what you say is actually the latest commits you did to tracker.py. Did you edit the video to get the results that avoid the errors caused by water ripples. I'm unable to reproduce the same result with the latest release. |
No, I did not. I use raw video you have attached. The only differences between our environments are OS and version of python modules, mine are:
|
I used an avi file of Morris water maze (circular arena) and I encountered an error. I attached the video I used.
After lesion.zip
Traceback (most recent call last):
File "track.py", line 266, in
floorCrop(filename)
File "track.py", line 120, in floorCrop
tetragonVertices = tetragons[0]
IndexError: list index out of range
And I would like to know if wanted to use mp4 with h.264 codec what should I change in track.py?
The text was updated successfully, but these errors were encountered: