When using OpenCV, the documentation is sometimes not updated or incorrect. In such a case, I think it is most certain to rely on the actual product. For example, if you remember the function name and want to do a partial search, it looks like this.
import cv2
items = dir(cv2)
for item in items:
if 'Back' in item:
print item
PCABackProject
SVBackSubst
calcBackProject
createBackgroundSubtractorKNN
createBackgroundSubtractorMOG2
In my environment, I found that there are two types of Background Subtractor.
Reference: How to find functions by name in OpenCV
[Addition] Use list comprehension in one line.
print [x for x in dir(cv2) if "Back" in x]
Recommended Posts