File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ int main(int argc, char** argv) {
8282 }
8383 const auto frame_width = cap.get (cv::CAP_PROP_FRAME_WIDTH );
8484 const auto frame_height = cap.get (cv::CAP_PROP_FRAME_HEIGHT );
85- const auto video_lenght = cap.get (cv::CAP_PROP_FRAME_COUNT );
85+ const auto video_length = cap.get (cv::CAP_PROP_FRAME_COUNT );
8686 std::cout << " Input video shape: [3, " << frame_width << " , " << frame_height
8787 << " , ]" << std::endl;
8888
@@ -96,7 +96,7 @@ int main(int argc, char** argv) {
9696 et_timestamp_t time_spent_executing = 0 ;
9797 unsigned long long iters = 0 ;
9898 // Show progress every 10%
99- unsigned long long progress_bar_tick = std::round (video_lenght / 10 );
99+ unsigned long long progress_bar_tick = std::round (video_length / 10 );
100100 while (true ) {
101101 cv::Mat frame;
102102 cap >> frame;
@@ -116,8 +116,8 @@ int main(int argc, char** argv) {
116116 iters++;
117117
118118 if (!(iters % progress_bar_tick)) {
119- const int precent_ready = (100 * iters) / video_lenght ;
120- std::cout << iters << " out of " << video_lenght
119+ const int precent_ready = (100 * iters) / video_length ;
120+ std::cout << iters << " out of " << video_length
121121 << " frames are are processed (" << precent_ready << " \%)"
122122 << std::endl;
123123 }
You can’t perform that action at this time.
0 commit comments