Here have fun with some malfunctioning python code
Go to solution
Solved by Sauron,
17 minutes ago, Justapersononthenet said:I don't have time to learn how cv works
Before you learn opencv maybe you should focus on the basics of programming...?
All those "if" statements could be written as 3 lines
if text[i] == " ": text[i] = "space" video.write(cv2.imread(os.path.join(image_folder, text[i])))
as for why your code isn't working, have you made sure there actually are images named from "a" to "z" without extension in the folder you're running the script in?
Also you aren't creating any windows so why are you trying to destroy some?
cv2.destroyAllWindows()
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now