Poornav / Unusual-Human-Activity-Detection

To detect the abnormal/unusual human activities in a video
80 stars 45 forks source link

xyz #6

Open sofianishath opened 5 years ago

sofianishath commented 5 years ago

hi i am getting the following error after running the code even after adding r in front of the path Traceback (most recent call last): File "training.py", line 31, in train_from_video(video) File "training.py", line 12, in train_from_video MotionInfoOfFrames, rows, cols = mig.getMotionInfuenceMap(vid) File "C:\Users\sofia\Anomaly_detection_poornav\motionInfuenceGenerator.py", line 98, in getMotionInfuenceMap opFlowOfBlocks,noOfRowInBlock,noOfColInBlock,blockSize,centreOfBlocks,xBlockSize,yBlockSize = roi.calcOptFlowOfBlocks(mag, ang, next) File "C:\Users\sofia\Anomaly_detection_poornav\opFlowOfBlocks.py", line 19, in calcOptFlowOfBlocks opFlowOfBlocks = np.zeros((xBlockSize,yBlockSize,2)) TypeError: 'float' object cannot be interpreted as an integer

Pl help