LabGym removes backgrounds and tracks multiple animals
(A) The stable value of each pixel is used to reconstruct the static background for a video.
(B) Examples of video frames showing that animal foregrounds are clearly presented after removing the static backgrounds that are constructed by our method of stable-value detection.
(C) Examples of video frames showing that LabGym tracks multiple animals performing either non-interactive or social behavior. Left: non-interactive behavior, in which animal (larva) contact is not allowed; right: social interaction in which animal (adult fly) contact is allowed.
See also Figure S1 and Data S1.