From 1f1a32dbe384ddd419eae13028c5b80c066e917e Mon Sep 17 00:00:00 2001 From: kallaballa Date: Mon, 25 Sep 2023 21:59:50 +0200 Subject: [PATCH] support for new source/sink implementation --- modules/v4d/samples/custom_source_and_sink.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/v4d/samples/custom_source_and_sink.cpp b/modules/v4d/samples/custom_source_and_sink.cpp index df322fc8b..b6e675ac5 100644 --- a/modules/v4d/samples/custom_source_and_sink.cpp +++ b/modules/v4d/samples/custom_source_and_sink.cpp @@ -21,11 +21,10 @@ int main() { }, 60.0f); //Make a sink the saves each frame to a PNG file (does nothing in case of WebAssembly). - Sink sink([](const cv::UMat& frame){ + Sink sink([](const uint64_t& seq, const cv::UMat& frame){ try { #ifndef __EMSCRIPTEN__ - static long cnt = 0; - imwrite(std::to_string(cnt++) + ".png", frame); + imwrite(std::to_string(seq) + ".png", frame); #else CV_UNUSED(frame); #endif