Motionanalysis¶
Auto-generated documentation for musicalgestures._motionanalysis module.
- Mgt-python / Modules / Musicalgestures / Motionanalysis
area¶
centroid¶
Computes the centroid and quantity of motion in an image or frame.
Arguments¶
imagenp.array(uint8) - The input image matrix for the centroid estimation function.widthint - The pixel width of the input video capture.heightint - The pixel height of the input video capture.
Returns¶
np.array(2)- X and Y coordinates of the centroid of motion.int- Quantity of motion: How large the change was in pixels.