I want to develop a PhotoBooth and for this, I want to display the last picture I have made with OpenCV in C++ on a Raspberry Pi. So when a new photo is in the source folder, this photo must be loaded. How can I load the newest photo?
My code until now. I load a specific image named "1.bmp", but I want to load with a non-specific name:
int main()
{
Mat image;
image = imread("1.bmp");
namedWindow( "Display", WINDOW_AUTOSIZE );
imshow( "Display", image );
waitKey(0);
return 0;
}
Thanks for your answers.