deepof.annotation_utils
Functions and general utilities for supervised pose estimation. See documentation for details.
Functions
|
Returns a list of hex colors (same order as custom_behaviors), uses user defined colors if available |
|
Expands a given set of features with leading and lagging features on the time axis. |
|
Detects for a given set of mouse coordinates if the selected bodypart of the selected mouse is close to any bodypart of any other mouse for each frame. |
|
Return True if the specified mouse is climbing the wall. |
|
Return a boolean array that's True if the specified body parts are closer than tol. |
|
Return a boolean array that's True if the specified body parts are closer than tol. |
|
|
|
|
|
Directional: (a,b) means a follows b. |
|
|
|
Directional: (a,b) means a_nose close to any of b main_body parts. |
|
nondirectional, noses of both mice are close |
|
Directional: (a,b) means a_nose close to b_tailbase |
|
|
|
nondirectional, mice are next to each other nose by nose |
|
nondirectional, mice are next to each other nose by tail |
|
|
|
|
|
|
|
Return true when the mouse is either moving (moving), standing still and either moving (active) or not moving (passive). |
|
Return true when the mouse is digging. |
|
Return True if 'follower' is closer than tol to the path that followed has walked over the last specified number of frames. |
|
Return a dictionary with the corner positions of the video frame. |
|
Return true when the mouse is huddling a pretrained model. |
|
Return the most frequent behaviour in a window of window_size frames. |
|
Auxiliar function to climb_wall and sniff_object. |
|
Standard postprocessing, then removal of short segments |
|
Does not apply any postprocessing, used for e.g. continuous behaviors. |
|
Default postprocessing for most binary behaviors. |
|
Return true when the mouse is sniffing around using simple rules. |
|
Auxiliar function to climb_wall and sniff_object. |
|
Return true when the mouse is sniffing around using simple rules. |
|
Return True if the specified mouse is sniffing an object. |
|
Return true when the mouse is standing still and looking around (moving nose without head being tilted too much). |
|
Output a dataframe with the registered motives per frame. |
|
Classes
|
|
|
An enumeration. |
|
An enumeration. |
|
Class for different types of behaviors that The supervised annotations of DeepOF can process. |