I don’t know about that error message, but VideoWriter::write() is supposed to take one image as argument, so you’d need to loop though your images. The same applies to imshow. Also, you may want to to check the actual size of your images.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Correct Width and Height Gives Error in VideoWriter | 4 | 2827 | April 29, 2021 | |
VideoWriter error invalid type | 2 | 441 | December 4, 2023 | |
Can't read video saved with videoWriter | 6 | 2799 | July 21, 2022 | |
VideoWriter::write error handling | 0 | 241 | August 11, 2021 | |
.write() function, video problem | 1 | 254 | July 13, 2021 |