Skip to content

videoio: tests for CAP_IMAGES#23896

Merged
asmorkalov merged 1 commit intoopencv:4.xfrom
mshabunin:test-cap-images
Jul 4, 2023
Merged

videoio: tests for CAP_IMAGES#23896
asmorkalov merged 1 commit intoopencv:4.xfrom
mshabunin:test-cap-images

Conversation

@mshabunin
Copy link
Copy Markdown
Contributor

@mshabunin mshabunin commented Jun 30, 2023

  • Basic CAP_IMAGES tests
  • exposed icvExtractPattern for testing purposes

Related: single image reading support - #23815 and #23808

@mshabunin mshabunin force-pushed the test-cap-images branch 2 times, most recently from bce37aa to a2448a8 Compare June 30, 2023 12:57
@opencv-alalek opencv-alalek added this to the 4.9.0 milestone Jun 30, 2023

static
// static
std::string icvExtractPattern(const std::string& filename, unsigned *offset)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unsigned *offset -> unsigned& offset.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I propose to rename the function to extractFileNamePattern to follow common naming (not old C API).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to make as little modification in the source code as possible to simplify merge with #23815 . Maybe it would be better to postpone refactoring? I had some ideas, like multiple pattern support (e.g. frame_%d_%d.png), which would require to rework this function even more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants