learnopencv icon indicating copy to clipboard operation
learnopencv copied to clipboard

why the input file name must include numbers?

Open chinlee1523 opened this issue 4 years ago • 1 comments

Hi @vikasgupta-github I found this error when I run AgeGender :

/opencv4/opencv-4.x/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): sample-output.jpeg in function 'icvExtractPattern'

why the input file name must include numbers?

chinlee1523 avatar Mar 23 '22 10:03 chinlee1523

Sounds like gstreamer's "multifilesrc" is used underneath, expecting a series of files: From "https://gstreamer.freedesktop.org/documentation/multifile/multifilesrc.html?gi-language=c":

gst-launch-1.0 multifilesrc location="img.%04d.png"  ...

brmarkus avatar Mar 25 '22 05:03 brmarkus