Save image as current.jpg

This commit is contained in:
Tobias Eidelpes 2023-02-13 17:58:59 +01:00
parent 85fe839b01
commit 48d2620a43

View File

@ -48,7 +48,7 @@ int main() {
cap.read(img); cap.read(img);
try { try {
imwrite("test.jpg", img); imwrite("current.jpg", img);
} catch (const Exception &ex) { } catch (const Exception &ex) {
fprintf(stderr, "Exception converting image to JPG format: %s\n", fprintf(stderr, "Exception converting image to JPG format: %s\n",
ex.what()); ex.what());