CVBackgroundSubtractor - matt-s-clark/godot-gdextension-opencv GitHub Wiki
Classes:
- CVBackgroundSubtractorKNN
- CVBackgroundSubtractorMOG2
Used for video motion analysis foreground/background segmentation. More information here.
apply
Prototype: CVMat apply(CVMat image, Dictionary additional_parameters)
Updates the background and returns a mask of the foreground.
- Additional parameters: learning_rate: Float
get_background_image
Prototype: CVMat get_background_image()
Returns the current calculated background image.
create
Prototype: static CVBackgroundSubtractor create(Dictionary additional_parameters)
Returns a background subtractor object.
- Additional parameters: history: Float, dist2_threshold: Int, detect_shadows: Bool