NPCat / bad-apple-bot

the discord bot from this video: https://www.youtube.com/watch?v=PLP9c0Z4Q3Y
362 stars 119 forks source link

video to frames outputs jpg, bot expects png #1

Open Call-Me-You opened 3 years ago

Call-Me-You commented 3 years ago

path = "frames/frame"+str(i*4)+".png" #<--- path to folder containing every frame of the video cv2.imwrite("frame%d.jpg" % count, image)

dobroben commented 3 years ago

Simply changing cv2.imwrite("frame%d.jpg" % count, image) to cv2.imwrite("frame%d.png" % count, image) appears to solve this problem

DroidZed commented 3 years ago

Had the same issue... As @dobroben said, you should update the image extension on the bot python script for the error to disappear.