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 | |
---|---|---|---|---|
.write() function, video problem | 1 | 260 | July 13, 2021 | |
VideoWriter ouputs artifacts in some occasions | 2 | 908 | January 8, 2021 | |
Can't read video saved with videoWriter | 6 | 2882 | July 21, 2022 | |
Write to list of VideoWriter objects | 5 | 1384 | March 3, 2021 | |
Load image sequence | 12 | 4616 | June 10, 2021 |