From c577b2440643bf98942cfd8c49478c545c3fa56b Mon Sep 17 00:00:00 2001 From: Kumataro Date: Fri, 19 Apr 2024 00:11:07 +0900 Subject: [PATCH] Merge pull request #25445 from Kumataro:fix25403 apps: createsamples: fix comment to remove last backslash #25445 Close #25403 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake --- apps/createsamples/utility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/createsamples/utility.cpp b/apps/createsamples/utility.cpp index 198f4c2eb7..b57d3fcb81 100644 --- a/apps/createsamples/utility.cpp +++ b/apps/createsamples/utility.cpp @@ -1168,7 +1168,7 @@ void cvCreateTestSamples( const char* infoname, } else { - filename++; // character after last / or \ + filename++; // get basename after last path delimiter } count = MIN( count, cvbgdata->count );