Ask Your Question

arvvind's profile - activity

2017-07-13 00:06:58 -0600 commented answer help regarding MOG back ground subtraction using opencv

berak ,i tried either mais there any way to check whether the extra modules has been installed,when i ran installation it showed sucees oly..,

2017-07-11 23:50:18 -0600 commented answer help regarding MOG back ground subtraction using opencv

sir, i tried this to,yet couldnt get the result,,,can you kindly mention me opencv version and link to install opencv and opencv contrib again

2017-07-10 23:33:11 -0600 commented answer help regarding MOG back ground subtraction using opencv

hey i tried the mog2 subtractor is working,but MOG and GMG are not working,i have also installed opencv_contirb,but i still get errors

2017-07-10 06:31:46 -0600 asked a question help regarding MOG back ground subtraction using opencv

hi, i have been working ono mog background subtraction with the following program,if i use mog2 it is working but working on mog and gmg doesnt seem to work,i am using opencv3.2.0

the program is

import numpy as np import cv2

cap = cv2.VideoCapture(0)

fgbg = cv2.BackgroundSubtractorMOG()

while(1): ret, frame = cap.read()

fgmask = fgbg.apply(frame)

cv2.imshow('frame',fgmask) if cv2.waitKey(1) & 0xFF == ord('q'): break

cap.release() cv2.destroyAllWindows()

this is the error coming

File "back.py", line 6, in <module> fgbg = cv2.BackgroundSubtractorMOG2() AttributeError: 'module' object has no attribute 'BackgroundSubtractorMOG2'