Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ZeroDivisionError
#4
I didn't install this, but it looks like the fps variable is derived from the video being captured using the opencv-python module. I don't think there is any coding error here, it just seems like the capture is not working correctly on your system for whatever reason. Your best bet would probably be to reach out to the owners of this repo, or to read up on opencv-python and get that working independently before you try the broader code. If you haven't already, maybe try a different video file as input in case there is a problem there.

For the ZeroDivisionError, you could always just manually change the assignment statement in ascii_strategy.py by commenting out the current statement and using
fps = 30
in its place. That would avoid the ZeroDivisionError, but I'm sure you'd run into other issues. Good luck!
Reply


Messages In This Thread
ZeroDivisionError - by MyCatCondo - Nov-17-2020, 08:32 PM
RE: ZeroDivisionError - by GOTO10 - Nov-17-2020, 09:33 PM
RE: ZeroDivisionError - by MyCatCondo - Nov-17-2020, 10:51 PM
RE: ZeroDivisionError - by GOTO10 - Nov-19-2020, 02:15 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020