1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

Merge pull request #21775 from luzpaz:typos/gapi

* GAPI: fix various gapi related typos

Fixes source comments and documentation related to gapi code.

* Fix source typos

* Fixed typos requested

* Follow-up typo fix
This commit is contained in:
luzpaz
2022-04-13 13:06:37 -04:00
committed by GitHub
parent 03c9648f2e
commit 554d08c3a1
48 changed files with 72 additions and 72 deletions
@@ -187,7 +187,7 @@ try:
blockSize=block_sz,
useHarrisDetector=use_harris_detector, k=k)
# NB: The operation output is cv::GArray<cv::Pointf>, so it should be mapped
# to python paramaters like this: [(1.2, 3.4), (5.2, 3.2)], because the cv::Point2f
# to python parameters like this: [(1.2, 3.4), (5.2, 3.2)], because the cv::Point2f
# according to opencv rules mapped to the tuple and cv::GArray<> mapped to the list.
# OpenCV returns np.array with shape (n_features, 1, 2), so let's to convert it to list
# tuples with size == n_features.
@@ -203,7 +203,7 @@ try:
@staticmethod
def outMeta(desc):
raise NotImplementedError("outMeta isn't imlemented")
raise NotImplementedError("outMeta isn't implemented")
return Op
@@ -605,7 +605,7 @@ try:
img1 = np.array([1, 2, 3])
# FIXME: Cause Bad variant access.
# Need to provide more descriptive error messsage.
# Need to provide more descriptive error message.
with self.assertRaises(Exception): comp.apply(cv.gin(img0, img1),
args=cv.gapi.compile_args(
cv.gapi.kernels(GAddImpl)))