Skip to content

Commit

Permalink
check if img seq substr works
Browse files Browse the repository at this point in the history
  • Loading branch information
hn-88 authored Apr 5, 2024
1 parent 018e5a1 commit f5a5d85
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion OCVWarp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,9 @@ int main(int argc,char *argv[])
std::string::size_type last_char_pos = test.find_last_not_of("0123456789");
std::string base = test.substr(0, last_char_pos + 1);
if (base == test) {
std::cout << "Input is not an image sequence. " << OpenFileName << std::endl
std::cout << "Input is not an image sequence. " << OpenFileName << std::endl;
}else {
std::cout << "Im seq " << test.substr(last_char_pos) << std::endl;
}
}
// reference:
Expand Down

0 comments on commit f5a5d85

Please sign in to comment.