fall-detection-two-stream-cnn icon indicating copy to clipboard operation
fall-detection-two-stream-cnn copied to clipboard

AttributeError: module 'cv2.cv2' has no attribute 'motempl'

Open jimin755 opened this issue 4 years ago • 1 comments

Traceback (most recent call last): File "fall_detection.py", line 300, in start_fall_detector_realtime("Evening_108(3).mp4") File "fall_detection.py", line 210, in start_fall_detector_realtime cv.motempl.updateMotionHistory(motion_mask, prev_mhi[prev_ind], prev_timestamp[prev_ind], MHI_DURATION) AttributeError: module 'cv2.cv2' has no attribute 'motempl'

i install requirements and python3.6 and opencv-contrib-python,opencv-python (4.0.0.21) plz help me

jimin755 avatar Jun 12 '20 13:06 jimin755

Hi, you should reinstall your opencv correctly.I used below commands to install it- pip install opencv-python==3.4.2.17 pip install opencv-contrib-python==3.4.2.17 It worked for me.Hope it helps

NamanGupta001 avatar Sep 17 '20 05:09 NamanGupta001