Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues in capture_and_detect.py script. #8

Open
SamiurRahman1 opened this issue May 12, 2020 · 0 comments
Open

issues in capture_and_detect.py script. #8

SamiurRahman1 opened this issue May 12, 2020 · 0 comments

Comments

@SamiurRahman1
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant