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
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