Skip to content

Commit 1f76093

Browse files
authored
Merge pull request #4092 from asmorkalov:5.x-merge-4.x
Port OpenCV 28309: Typo fixes in G-API
2 parents 79503e2 + 9c2b32b commit 1f76093

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

modules/gapi/include/opencv2/gapi/video.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ template<> struct CompileArgTag<cv::gapi::video::BackgroundSubtractorParams>
355355
{
356356
static const char* tag()
357357
{
358-
return "org.opencv.video.background_substractor_params";
358+
return "org.opencv.video.background_subtractor_params";
359359
}
360360
};
361361
} // namespace detail

modules/gapi/src/executor/gstreamingexecutor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ void rewindToStop(std::vector<Q*> &in_queues,
337337
});
338338

339339
if (expected_stop_count > 0) {
340-
// NB: it requires to substract own queues id from total waiting queue count
340+
// NB: it requires to subtract own queues id from total waiting queue count
341341
// because it had got stop message before rewind was called
342342
expected_stop_count--;
343343
}

modules/gapi/test/common/gapi_video_tests_common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ inline void testBackgroundSubtractorStreaming(cv::GStreamingCompiled& gapiBackSu
381381

382382
compare_f cmpF = AbsSimilarPoints(tolerance, numDiff).to_compare_f();
383383

384-
// Comparison of G-API and OpenCV substractors
384+
// Comparison of G-API and OpenCV subtractors
385385
std::size_t frames = 0u;
386386
while (frames <= testNumFrames && gapiBackSub.pull(cv::gout(frame, gapiForeground)))
387387
{

modules/gapi/test/cpu/gapi_ocv_stateful_kernel_tests.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ namespace cv
3737
{
3838
static const char* tag()
3939
{
40-
return "org.opencv.test.background_substractor_state_params";
40+
return "org.opencv.test.background_subtractor_state_params";
4141
}
4242
};
4343

@@ -115,7 +115,7 @@ namespace
115115
}
116116
};
117117

118-
G_TYPED_KERNEL(GBackSub, <GMat(GMat)>, "org.opencv.test.background_substractor")
118+
G_TYPED_KERNEL(GBackSub, <GMat(GMat)>, "org.opencv.test.background_subtractor")
119119
{
120120
static GMatDesc outMeta(GMatDesc in) { return in.withType(CV_8U, 1); }
121121
};
@@ -438,10 +438,10 @@ namespace
438438
gapiBackSub.start();
439439
EXPECT_TRUE(gapiBackSub.running());
440440

441-
// OpenCV reference substractor
441+
// OpenCV reference subtractor
442442
auto pOCVBackSub = createBackgroundSubtractorKNN();
443443

444-
// Comparison of G-API and OpenCV substractors
444+
// Comparison of G-API and OpenCV subtractors
445445
std::size_t frames = 0u;
446446
while (gapiBackSub.pull(cv::gout(frame, gapiForeground))) {
447447
pOCVBackSub->apply(frame, ocvForeground, -1);
@@ -503,7 +503,7 @@ TEST(StatefulKernel, StateIsChangedViaCompArgsOnReshape)
503503

504504
const auto pkg = cv::gapi::kernels<GOCVBackSub>();
505505

506-
// OpenCV reference substractor
506+
// OpenCV reference subtractor
507507
auto pOCVBackSubKNN = createBackgroundSubtractorKNN();
508508
auto pOCVBackSubMOG2 = createBackgroundSubtractorMOG2();
509509

0 commit comments

Comments
 (0)