Motion tracking#
Use the motion tracking module of phenopype to record movement of a prey population (isopods) in response to a stickleback, and create movement profiles of individuals using the trackpy library.
Get started#
Read the jupyter notebooks for this project
Download the materials (see downloads section below)
Run the project yourself (see general instructions)
Background#
This example features analysis of predator-prey interactions of one threespine stickleback (Gasterosteus aculeatus) and 20 benthic isopods (Asellus aquaticus). The goal is to extract movement trajectories of both species in response to each other, to see if isopods are reacting to the fish, and the other way round. At the same time, isopod pigmentation is measured in every frame to measure whether the fish has preferences for a particular phenotype (dark vs. light pigmentation, large bodied individuals). An animation of all detected trajectories with the given settings can be found on vimeo:
The workflow with videos is a bit different than for images:
Create
motion_tracker
classTie in a video stream
Attach a
tracking_method
(in this case, one for isopods and one for the fish)Set global detection settings
Run tracking (watch it or go drink a coffee)
Extract the coordinates of the detection, and use trackpy to calculate the trajectories
Jupyter notebooks#
Downloads#
Download data, scripts, and template