We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b74d285 commit 6926cf6Copy full SHA for 6926cf6
demos/gesture_recognition_demo/cpp_gapi/include/stream_source.hpp
@@ -158,7 +158,7 @@ class CustomCapSource : public cv::gapi::wip::IStreamSource
158
if (wait_gap) {
159
const auto cur_step = std::chrono::steady_clock::now() - read_time;
160
const auto gap = std::chrono::duration_cast<std::chrono::milliseconds>(cur_step).count();
161
- const int time_step = int(1000.f / float(source_fps));
+ const int time_step = int(1000. / source_fps);
162
if (gap < time_step) {
163
std::this_thread::sleep_for(std::chrono::milliseconds(time_step - gap));
164
}
0 commit comments