added an example of using cv::VideoCapture to read image sequences#823
Conversation
…ke 000.pmg, 001.png ... 100.png etc.
|
hello! thank you for the contribution! I see that your sample is very similar to opencv/samples/cpp/starter_video.cpp. Vadim |
|
Yeah its almost the exact same example because the functionality of cv::VideoCapture works like this (which is a good thing and its what I want to demonstrate). The issue I see is that if I modify the starter_video.cpp sample someone inexperienced looking for how to read image sequences probably won't open that sample. I don't know what the best way to proceed is, I see the concern for having similar samples. |
|
Hi Kevin, |
|
Good point - I'll merge my code with the existing starter_video.cpp and modify the comment block at the top to note this functionality. |
…rter_video.cpp to better explain the functionality of VideoCapture. I also added a bit more explanation in the documentation of the VideoCapture interface
|
I've updated the starter_video example and added a little extra to the documentation. What do you think? |
…O to fix build error
|
Just came back to check on this and saw the build error, I fixed the problem, mix up between stable and development on my part. |
|
The build bot status hasn't updated here on GitHub but checking the logs and it looks like it builds fine now |
|
👍 |
For example this code could read an image sequence such as 000.pmg, 001.png ... 100.png etc. as if it were a video. This is a very useful functionality of cv::VideoCapture because computer vision datasets are often distributed in this form.