I am trying to run "rs_bag2image" code (https://github.com/UnaNancyOwen/rs_bag2image) for extracting frames from a bag file. I am new in c++ and got the error "failed can't find input bag file" when I am running the code. It seems the issue occurs in the following piece of code. Can you please help me to resolve this issue?
// Retrieve Bag File Path (Required)
if( !parser.has( "bag") ){
throw std::runtime_error( "failed can't find input bag
file");
}
else{
bag_file = parser.get<cv::String>( "bag" ).c_str();
if( !filesystem::is_regular_file( bag_file ) ||
bag_file.extension() != ".bag" ){
throw std::runtime_error( "failed can't find input bag
file" );
}
}