I’m new for OpenCV and have a question for background subtraction.
Is there a way to display how background model looks like?
The 3rd line ends up with an error because the model isn’t an image object.
However, the 1st line creates a static image like stationary objects (e.g. streets and buildings) without cars, I assume. Your feedback would be really helpful.
backSub = cv2.createBackgroundSubtractorMOG2 # create background model
print(type(backSub)) # it returns <class ‘cv2.BackgroundSubtractorMOG2’>
cv2.imshow(‘BG Mask’, backSub) # end up an error