You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are probably some mistakes in the script. The error i get when trying to get the frames from a video using the script, it doesn't generate the processed images. When the code tries to do this: if np.mean(np.abs(now_im-former_im))>5:
it throws an error which says, mow_im and former _im are "NoneTypes" and we can not use an operand on them, which makes sense.
The former_im and now_im is declared/derived like this: former_im = cv2.imread(dest_dir_processed+"%d/1.jpg"%i)
so, i don't think they are numbers. so why are we trying to do "former_im - now_im"?
Any idea how to fix this problem?
The text was updated successfully, but these errors were encountered:
There are probably some mistakes in the script. The error i get when trying to get the frames from a video using the script, it doesn't generate the processed images. When the code tries to do this:
if np.mean(np.abs(now_im-former_im))>5:
it throws an error which says, mow_im and former _im are "NoneTypes" and we can not use an operand on them, which makes sense.
The former_im and now_im is declared/derived like this:
former_im = cv2.imread(dest_dir_processed+"%d/1.jpg"%i)
so, i don't think they are numbers. so why are we trying to do "former_im - now_im"?
Any idea how to fix this problem?
The text was updated successfully, but these errors were encountered: