platform/upstream/opencv.git
11 months agoEnable aruco module 02/292902/1 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20230518.164141
Tae-Young Chung [Wed, 17 May 2023 01:18:25 +0000 (10:18 +0900)]
Enable aruco module

[Version] 4.5.3-6
[Issue type] update

By request from Robot system, aruco module is enabled.
Note that aruco in OpenCV is BSD license even though the latest aruco in
original repository is GPLv3. Refer to https://github.com/opencv/opencv_contrib/issues/2242

Change-Id: I41adb87b120c309726d48e56df4a56fbd21220f4
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
14 months agoDisable QUIRC QRcode 3rdparty library 12/288712/2 accepted/tizen/7.0/unified/20230223.131339
Tae-Young Chung [Wed, 22 Feb 2023 03:26:02 +0000 (12:26 +0900)]
Disable QUIRC QRcode 3rdparty library

[Version] 4.5.3-5
[Issue type] update

QUIRC is QRcode decoding library having ISC License.
Without QUIRC, OpenCV provides QRcode detection only.

Change-Id: Ibb23eceb69775e808d1372d360def18161ce2c5a
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
19 months agoSupport gstreamer as a backend of videoio module 16/282116/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.062835 accepted/tizen/7.0/unified/hotfix/20221116.111212 accepted/tizen/unified/20221004.073919 tizen_7.0_m2_release
Tae-Young Chung [Mon, 11 Jul 2022 05:45:30 +0000 (14:45 +0900)]
Support gstreamer as a backend of videoio module

[Version] 4.5.3-4
[Issue type] update

DA requests to enable gstreamer backend of videoio module

Change-Id: I4591da13c6720cc25f7ce4165bc0d8e90bc40433
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
22 months agoSupport webp in imgcodecs module 39/276539/2 accepted/tizen/unified/20220623.032538 submit/tizen/20220622.054219
Tae-Young Chung [Mon, 20 Jun 2022 07:30:29 +0000 (16:30 +0900)]
Support webp in imgcodecs module

[Version] 4.5.3-3
[Issue type] new feature

imgcodecs module supports webp using libwebp which is installed in
system, not using 3rdparty webp library in OpenCV itself.

Change-Id: Iab628361d6f53175631a9bd58d1c6a2bccffbcf8
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoEnable ximgproc module to use disparity filter 92/274292/1
Tae-Young Chung [Tue, 26 Apr 2022 03:03:00 +0000 (12:03 +0900)]
Enable ximgproc module to use disparity filter

[Version] 4.5.3-2
[Issue type] new feature

Change-Id: Ie9828c3670fb58c55631fbe5203d9415959c348c
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoUpdate a spec file 24/271424/2 accepted/tizen/unified/20220301.151340 submit/tizen/20220224.052158
Tae-Young Chung [Mon, 21 Feb 2022 05:14:57 +0000 (14:14 +0900)]
Update a spec file

[Version] 4.5.3-1
[Issue type] Udpate

Cmake files when required at build time are moved to a devel package and
so files are removed from a devel package.

Change-Id: I798ad22458a9bb89a17bea6e477414ecf1c3dbf9
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoBump to 4.5.3 99/269499/1 accepted/tizen/unified/20220125.121719 submit/tizen/20220120.021815 submit/tizen/20220124.072348
Tae-Young Chung [Mon, 17 Jan 2022 07:17:24 +0000 (16:17 +0900)]
Bump to 4.5.3

[Version] 4.5.3
[Issue type] Upgrade

Change-Id: I4601ab0339a18cfcc38ded09d7e032a05036c5bc
Signed-off-by: Tae-Young Chung <ty83.chung@samsung.com>
2 years agoMerge branch 'upstream/4.5.3' into tizen
Tae-Young Chung [Mon, 17 Jan 2022 07:11:43 +0000 (16:11 +0900)]
Merge branch 'upstream/4.5.3' into tizen

Change-Id: Ie28c53ebe4aed639913d1eda7fdc64e57bd980b0

2 years agorelease: OpenCV 4.5.3
Alexander Alekhin [Mon, 5 Jul 2021 12:03:22 +0000 (12:03 +0000)]
release: OpenCV 4.5.3

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sun, 4 Jul 2021 21:24:40 +0000 (21:24 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #20350 from alalek:issue_20285
Alexander Alekhin [Sun, 4 Jul 2021 21:07:02 +0000 (21:07 +0000)]
Merge pull request #20350 from alalek:issue_20285

2 years agoMerge pull request #20355 from alalek:issue_20352
Alexander Alekhin [Sun, 4 Jul 2021 20:54:03 +0000 (20:54 +0000)]
Merge pull request #20355 from alalek:issue_20352

2 years agoMerge pull request #20354 from alalek:issue_20353
Alexander Alekhin [Sun, 4 Jul 2021 18:41:34 +0000 (18:41 +0000)]
Merge pull request #20354 from alalek:issue_20353

2 years agohighgui: fix win32 backend behavior
Alexander Alekhin [Sun, 4 Jul 2021 14:33:18 +0000 (17:33 +0300)]
highgui: fix win32 backend behavior

2 years agocmake: update Halide detection
Alexander Alekhin [Sun, 4 Jul 2021 10:07:34 +0000 (13:07 +0300)]
cmake: update Halide detection

2 years agoMerge pull request #20351 from alalek:issue_20320
Alexander Alekhin [Sat, 3 Jul 2021 20:42:17 +0000 (20:42 +0000)]
Merge pull request #20351 from alalek:issue_20320

2 years agocmake(highgui): don't allow multiple builtin backends
Alexander Alekhin [Sat, 3 Jul 2021 11:36:29 +0000 (11:36 +0000)]
cmake(highgui): don't allow multiple builtin backends

2 years agocmake: exclude -pthread from Emscripten default build
Alexander Alekhin [Sat, 3 Jul 2021 10:57:18 +0000 (10:57 +0000)]
cmake: exclude -pthread from Emscripten default build

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 3 Jul 2021 00:30:58 +0000 (00:30 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #20346 from alalek:backport_20026
Alexander Alekhin [Sat, 3 Jul 2021 00:27:54 +0000 (00:27 +0000)]
Merge pull request #20346 from alalek:backport_20026

2 years agoMerge pull request #20345 from mitruska:update_ngraph_normalizel2
Alexander Alekhin [Fri, 2 Jul 2021 23:37:02 +0000 (23:37 +0000)]
Merge pull request #20345 from mitruska:update_ngraph_normalizel2

2 years agoMerge pull request #20344 from alalek:backport_20343
Alexander Alekhin [Fri, 2 Jul 2021 23:35:12 +0000 (23:35 +0000)]
Merge pull request #20344 from alalek:backport_20343

2 years agoMerge pull request #20343 from alalek:issue_19915
Alexander Alekhin [Fri, 2 Jul 2021 23:33:49 +0000 (23:33 +0000)]
Merge pull request #20343 from alalek:issue_19915

2 years agocmake(IE): extract INF_ENGINE_RELEASE from InferenceEngine package
Alexander Alekhin [Fri, 2 Jul 2021 21:37:37 +0000 (21:37 +0000)]
cmake(IE): extract INF_ENGINE_RELEASE from InferenceEngine package

2 years agoMerge pull request #20337 from alalek:build_opencv_winpack_dldt_2021.4.0
Alexander Alekhin [Fri, 2 Jul 2021 21:47:14 +0000 (21:47 +0000)]
Merge pull request #20337 from alalek:build_opencv_winpack_dldt_2021.4.0

2 years agoUse explicit version of ngraph NormalizeL2
mitruska [Fri, 2 Jul 2021 13:29:34 +0000 (15:29 +0200)]
Use explicit version of ngraph NormalizeL2

2 years agojava: force using of 'Ptr<>' for OpenCV classes
Alexander Alekhin [Fri, 2 Jul 2021 10:41:41 +0000 (10:41 +0000)]
java: force using of 'Ptr<>' for OpenCV classes

backport of commit: e5841d3126527ff1151ab480ba8e291e29942e07

2 years agojava: force using of 'Ptr<>' for OpenCV classes
Alexander Alekhin [Fri, 2 Jul 2021 10:41:41 +0000 (10:41 +0000)]
java: force using of 'Ptr<>' for OpenCV classes

2 years agobuild: winpack_dldt with dldt 2021.4.0
Alexander Alekhin [Wed, 30 Jun 2021 21:41:25 +0000 (21:41 +0000)]
build: winpack_dldt with dldt 2021.4.0

2 years agoMerge pull request #20341 from alalek:gapi_replace_ie_deprecated
Alexander Alekhin [Thu, 1 Jul 2021 19:39:13 +0000 (19:39 +0000)]
Merge pull request #20341 from alalek:gapi_replace_ie_deprecated

2 years agoMerge pull request #20298 from mpashchenkov:mp/python-desync
Maxim Pashchenkov [Thu, 1 Jul 2021 19:06:35 +0000 (22:06 +0300)]
Merge pull request #20298 from mpashchenkov:mp/python-desync

G-API: Python. Desync.

* Desync. GMat.

* Alignment

2 years agoMerge pull request #20326 from APrigarina:fix_samples
Alexander Alekhin [Thu, 1 Jul 2021 18:30:19 +0000 (18:30 +0000)]
Merge pull request #20326 from APrigarina:fix_samples

2 years agofix samples
APrigarina [Tue, 29 Jun 2021 19:15:37 +0000 (22:15 +0300)]
fix samples

2 years agogapi(ie): replace deprecated calls
Alexander Alekhin [Thu, 1 Jul 2021 13:48:11 +0000 (13:48 +0000)]
gapi(ie): replace deprecated calls

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Thu, 1 Jul 2021 10:52:31 +0000 (10:52 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #20144 from mpashchenkov:mp/python-ge
Maxim Pashchenkov [Thu, 1 Jul 2021 10:27:28 +0000 (13:27 +0300)]
Merge pull request #20144 from mpashchenkov:mp/python-ge

G-API: Python. Gaze Estimation sample.

* GE pep8

* Added function description, wrapped copy

* Applying review comments

* One more change

* Added gin

* Rstrt bb

2 years agoMerge pull request #20335 from SamFC10:concat-const-input
Alexander Alekhin [Thu, 1 Jul 2021 10:25:35 +0000 (10:25 +0000)]
Merge pull request #20335 from SamFC10:concat-const-input

2 years agoMerge pull request #20336 from JoeHowse:refactor-cl_image-float16-conversions
Alexander Alekhin [Thu, 1 Jul 2021 09:52:19 +0000 (09:52 +0000)]
Merge pull request #20336 from JoeHowse:refactor-cl_image-float16-conversions

2 years agoMerge pull request #20333 from APrigarina:fix_samples_3.4
Alexander Alekhin [Thu, 1 Jul 2021 09:41:56 +0000 (09:41 +0000)]
Merge pull request #20333 from APrigarina:fix_samples_3.4

2 years agoMerge pull request #20284 from TolyaTalamanov:at/wrap-render
Anatoliy Talamanov [Thu, 1 Jul 2021 09:36:19 +0000 (12:36 +0300)]
Merge pull request #20284 from TolyaTalamanov:at/wrap-render

G-API: Wrap render functionality to python

* Wrap render Rect prim

* Add all primitives and tests

* Cover mosaic and image

* Handle error in pyopencv_to(Prim)

* Move Mosaic and Rect ctors wrappers to shadow file

* Use GAPI_PROP_RW

* Fix indent

2 years agomodified onnx importer to concat const input blobs
SamFC10 [Wed, 30 Jun 2021 16:25:42 +0000 (21:55 +0530)]
modified onnx importer to concat const input blobs

2 years agoMerge pull request #20325 from alalek:dnn_openvino_2021.4.0
Alexander Alekhin [Wed, 30 Jun 2021 23:58:26 +0000 (23:58 +0000)]
Merge pull request #20325 from alalek:dnn_openvino_2021.4.0

2 years agodnn(ie): replace deprecated calls
Alexander Alekhin [Tue, 29 Jun 2021 21:55:18 +0000 (21:55 +0000)]
dnn(ie): replace deprecated calls

2 years agodnn(test): update tests for OpenVINO 2021.4
Alexander Alekhin [Tue, 29 Jun 2021 20:25:22 +0000 (20:25 +0000)]
dnn(test): update tests for OpenVINO 2021.4

2 years agoMerge pull request #20327 from tibaes:MSMF-Slow-Webcam-Startup
Rafael H Tibães [Wed, 30 Jun 2021 22:08:24 +0000 (19:08 -0300)]
Merge pull request #20327 from tibaes:MSMF-Slow-Webcam-Startup

* fixes MSMF slow webcam startup

* add variable to change MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS at runtime

2 years agoMerge pull request #20328 from alalek:backport_20321
Alexander Alekhin [Wed, 30 Jun 2021 20:51:49 +0000 (20:51 +0000)]
Merge pull request #20328 from alalek:backport_20321

2 years agoOpenCL: core support for FP16, more channel orders
Joe Howse [Mon, 21 Jun 2021 03:46:32 +0000 (00:46 -0300)]
OpenCL: core support for FP16, more channel orders

* Support cl_image conversion for CL_HALF_FLOAT (float16)

* Support cl_image conversion for additional channel orders:
  CL_A, CL_INTENSITY, CL_LUMINANCE, CL_RG, CL_RA

* Comment on why cl_image conversion is unsupported for CL_RGB

* Predict optimal vector width for float16

* ocl::kernelToStr: support float16

* ocl::Device::halfFPConfig: drop artificial requirement for OpenCL
  version >= 1.2. Even OpenCL 1.0 supports the underlying config
  property, CL_DEVICE_HALF_FP_CONFIG.

* dumpOpenCLInformation: provide info on OpenCL half-float support
  and preferred half-float vector width

* randu: support default range [-1.0, 1.0] for float16

* TestBase::warmup: support float16

2 years agoMerge pull request #20330 from Wovchena:fix-arg-for-calcHist-in-demos
Alexander Alekhin [Wed, 30 Jun 2021 14:59:22 +0000 (14:59 +0000)]
Merge pull request #20330 from Wovchena:fix-arg-for-calcHist-in-demos

2 years agoFix an arg for calcHist() in demos
Vladimir [Wed, 30 Jun 2021 07:15:58 +0000 (10:15 +0300)]
Fix an arg for calcHist() in demos

`float* histRange = { range };` doesn't make much sense. `histRange` is
an array of array(s), so it should have a type of ptr to ptr. Strangely
some domos are correct as well as the example for the function
https://docs.opencv.org/master/d6/dc7/group__imgproc__hist.html#ga4b2b5fd75503ff9e6844cc4dcdaed35d

2 years agofix samples 3.4
APrigarina [Wed, 30 Jun 2021 09:50:21 +0000 (12:50 +0300)]
fix samples 3.4

2 years agoMerge pull request #20271 from TolyaTalamanov:at/extend-python-bindings
Anatoliy Talamanov [Wed, 30 Jun 2021 09:04:09 +0000 (12:04 +0300)]
Merge pull request #20271 from TolyaTalamanov:at/extend-python-bindings

G-API: Extend python bindings

* Extend G-API bindings

* Wrap timestamp, seqNo, seq_id
* Wrap copy
* Wrap parseSSD, parseYolo

* Rewrap cv.gapi.networks

* Add test for metabackend in pytnon

* Remove int64 pyopencv_to

2 years agocore(persistence): fix types format handling
Alexander Alekhin [Tue, 29 Jun 2021 09:00:10 +0000 (09:00 +0000)]
core(persistence): fix types format handling

partial backport of 4eac198270783d8924ed26ecfb82f8aa54d9e67d

2 years agoMerge pull request #20321 from alalek:issue_20279
Alexander Alekhin [Tue, 29 Jun 2021 21:13:19 +0000 (21:13 +0000)]
Merge pull request #20321 from alalek:issue_20279

2 years agodnn: use OpenVINO 2021.4 defines
Alexander Alekhin [Tue, 29 Jun 2021 18:48:21 +0000 (18:48 +0000)]
dnn: use OpenVINO 2021.4 defines

2 years agocore(persistence): fix types format handling, fix 16F support
Alexander Alekhin [Tue, 29 Jun 2021 09:00:10 +0000 (09:00 +0000)]
core(persistence): fix types format handling, fix 16F support

2 years agoMerge pull request #20302 from rogday:tf_import_diag
Alexander Alekhin [Mon, 28 Jun 2021 20:54:44 +0000 (20:54 +0000)]
Merge pull request #20302 from rogday:tf_import_diag

2 years agoMerge pull request #20318 from komakai:better-unsigned-type-support
Alexander Alekhin [Mon, 28 Jun 2021 20:52:32 +0000 (20:52 +0000)]
Merge pull request #20318 from komakai:better-unsigned-type-support

2 years agoImprovements/fixes for unsigned type handling in Swift/Kotlin
Giles Payne [Sun, 27 Jun 2021 12:08:25 +0000 (21:08 +0900)]
Improvements/fixes for unsigned type handling in Swift/Kotlin

2 years agoMerge pull request #20293 from endjkv:fix-mem-leak-when-throw
xzvno [Sat, 26 Jun 2021 21:01:31 +0000 (05:01 +0800)]
Merge pull request #20293 from endjkv:fix-mem-leak-when-throw

* fix memory leak when exception is thrown

2 years agoMerge pull request #20156 from smirnov-alexey:as/gapi_remote_infer
Alexey Smirnov [Fri, 25 Jun 2021 21:09:33 +0000 (00:09 +0300)]
Merge pull request #20156 from smirnov-alexey:as/gapi_remote_infer

G-API: Support remote inference

* Extend MediaFrame to be able to extract additional info besides access

* Add API for remote inference

* Add default implementation for blobParams()

* Add default implementation for blobParams()

* Address review comments

* Fix any_cast usage

* Add comment on the default blobParams()

* Address review comments

* Add missing rctx

* Minor fix

* Fix indentation and comment

* Address review comments

* Add documentation

2 years agoskipping missing layers and layer failures
Smirnov Egor [Mon, 21 Jun 2021 08:11:14 +0000 (11:11 +0300)]
skipping missing layers and layer failures

2 years agoMerge pull request #20304 from vrabaud:master
Alexander Alekhin [Thu, 24 Jun 2021 09:51:36 +0000 (09:51 +0000)]
Merge pull request #20304 from vrabaud:master

2 years agoDo not use = 0 for a cv::Mat.
Vincent Rabaud [Wed, 23 Jun 2021 19:27:54 +0000 (21:27 +0200)]
Do not use = 0 for a cv::Mat.

There are several operator= overloads and some compilers can be confused.

2 years agoMerge pull request #20295 from diablodale:umat_factory_usageflags
Alexander Alekhin [Wed, 23 Jun 2021 18:15:14 +0000 (18:15 +0000)]
Merge pull request #20295 from diablodale:umat_factory_usageflags

2 years agoadd usageFlags to UMat static factories
Dale Phurrough [Tue, 22 Jun 2021 03:32:54 +0000 (05:32 +0200)]
add usageFlags to UMat static factories

- add abi compatible overloads
- add test case

2 years agoMerge pull request #20204 from Developer-Ecosystem-Engineering:improve-sift
Alexander Alekhin [Tue, 22 Jun 2021 22:58:51 +0000 (22:58 +0000)]
Merge pull request #20204 from Developer-Ecosystem-Engineering:improve-sift

2 years agoMerge pull request #20128 from kikaxa:master
Alexander Alekhin [Mon, 21 Jun 2021 21:52:17 +0000 (21:52 +0000)]
Merge pull request #20128 from kikaxa:master

2 years agoMerge pull request #20283 from SamFC10:fix-batchnorm
Alexander Alekhin [Mon, 21 Jun 2021 11:27:12 +0000 (11:27 +0000)]
Merge pull request #20283 from SamFC10:fix-batchnorm

2 years agoReenable filesystem for ios builds
kikaxa [Thu, 20 May 2021 13:01:36 +0000 (16:01 +0300)]
Reenable filesystem for ios builds

2 years agoMerge pull request #20259 from IanMaquignaz:inverseRectification_newUnitTest
Alexander Alekhin [Sun, 20 Jun 2021 16:27:47 +0000 (16:27 +0000)]
Merge pull request #20259 from IanMaquignaz:inverseRectification_newUnitTest

2 years agoMerge pull request #20281 from alalek:highgui_win32ui_plugin
Alexander Alekhin [Sun, 20 Jun 2021 16:25:20 +0000 (16:25 +0000)]
Merge pull request #20281 from alalek:highgui_win32ui_plugin

2 years agoFix BatchNorm reinitialization
SamFC10 [Sun, 20 Jun 2021 07:49:29 +0000 (13:19 +0530)]
Fix BatchNorm reinitialization

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 19 Jun 2021 18:36:27 +0000 (18:36 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agohighgui: win32ui plugin
Alexander Alekhin [Sat, 19 Jun 2021 09:16:23 +0000 (09:16 +0000)]
highgui: win32ui plugin

2 years agoMerge pull request #20232 from gasparitiago:drawMatches3.4
Alexander Alekhin [Fri, 18 Jun 2021 19:47:52 +0000 (19:47 +0000)]
Merge pull request #20232 from gasparitiago:drawMatches3.4

2 years agoMerge pull request #20196 from TolyaTalamanov:at/support-vaargs-compile-args
Anatoliy Talamanov [Fri, 18 Jun 2021 17:16:07 +0000 (20:16 +0300)]
Merge pull request #20196 from TolyaTalamanov:at/support-vaargs-compile-args

G-API: Support vaargs for cv.compile_args

* Support cv.compile_args to work with variadic number of inputs

* Disable python2.x G-API

* Move compile_args to gapi pkg

2 years agoMerge pull request #20253 from rogday:gtk_modifiers
Alexander Alekhin [Fri, 18 Jun 2021 15:46:43 +0000 (15:46 +0000)]
Merge pull request #20253 from rogday:gtk_modifiers

2 years agoImprove SIFT for arm64/Apple silicon
Developer-Ecosystem-Engineering [Thu, 17 Jun 2021 17:14:48 +0000 (10:14 -0700)]
Improve SIFT for arm64/Apple silicon

- Reduce branch density by collapsing compares.
- Fix windows build errors
- Use OpenCV universal intrinsics
- Use v_check_any and v_signmask as requested

2 years agoAdded new unit test for initInverseRectificationMap()
Ian Maquignaz [Fri, 11 Jun 2021 00:13:06 +0000 (20:13 -0400)]
Added new unit test for initInverseRectificationMap()
Function is validated. Included an update to DISABLED_Calib3d_InitInverseRectificationMap.

Includes updates per input from @alalek and unit test regression # to reflect PR #

2 years agoMerge pull request #20272 from rogday:pollKey_link
Alexander Alekhin [Thu, 17 Jun 2021 11:01:37 +0000 (11:01 +0000)]
Merge pull request #20272 from rogday:pollKey_link

2 years agoMerge pull request #20238 from dmatveev:dm/gframe_docs
Alexander Alekhin [Wed, 16 Jun 2021 15:06:04 +0000 (15:06 +0000)]
Merge pull request #20238 from dmatveev:dm/gframe_docs

2 years agoreorder defined checks according to cmake file
Smirnov Egor [Wed, 16 Jun 2021 08:36:13 +0000 (11:36 +0300)]
reorder defined checks according to cmake file

2 years agoG-API: Documentation updates
Dmitry Matveev [Mon, 31 May 2021 19:02:05 +0000 (22:02 +0300)]
G-API: Documentation updates

1) Document GFrame/MediaFrame (and also other G-API types)
- Added doxygen comments for GMat, GScalar, GArray<T>, GOpaque classes;
- Documented GFrame and its host-side counterpart MediaFrame;
- Added some more notes to the data type classes.

2) Give @brief descriptions to most of the cv::gapi::* namespaces

3) Make some symbols private
- These structures are mainly internal and shouldn't be used directly

2 years agoMerge pull request #19341 from mpashchenkov:mp/ocv-gapi-parsessd-fix
Maxim Pashchenkov [Tue, 15 Jun 2021 19:02:17 +0000 (22:02 +0300)]
Merge pull request #19341 from mpashchenkov:mp/ocv-gapi-parsessd-fix

G-API: Removing ParseSSD overload.

* Removed specialization.

* Removed united

2 years agoMerge pull request #20263 from vrabaud:3.4
Alexander Alekhin [Tue, 15 Jun 2021 18:20:21 +0000 (18:20 +0000)]
Merge pull request #20263 from vrabaud:3.4

2 years agoFix potential NaN in cv::norm.
Vincent Rabaud [Fri, 11 Jun 2021 20:03:33 +0000 (22:03 +0200)]
Fix potential NaN in cv::norm.

There can be an int overflow.
cv::norm( InputArray _src, int normType, InputArray _mask ) is fine,
not cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _mask ).

2 years agoMerge pull request #19842 from gasparitiago:3.4
Tiago De Gaspari [Sat, 12 Jun 2021 20:28:54 +0000 (17:28 -0300)]
Merge pull request #19842 from gasparitiago:3.4

Update rotatedRectangleIntersection function to calculate near to origin

* Change type used in points function from RotatedRect

In the function that sets the points of a RotatedRect, the types

should be double in order to keep the precision when dealing with
RotatedRects that are defined far from the origin.

This commit solves the problem in some assertions from
rotatedRectangleIntersection when dealing with rectangles far from
origin.

* added proper type casts

* Update rotatedRectangleIntersection function to calculate near to origin

This commit changes the rotatedRectangleIntersection function in order
to calculate the intersection of two rectangles considering that they
are shifted near the coordinates origin (0, 0).

This commit solves the problem in some assertions from
rotatedRectangleIntersection when dealing with rectangles far from
origin.

* Revert type changes in types.cpp and adequate code to c++98

* Revert unnecessary casts on types.cpp

Co-authored-by: Vadim Pisarevsky <vadim.pisarevsky@gmail.com>
2 years agoMerge pull request #20260 from JoeHowse:DirectX-float16-conversions
Alexander Alekhin [Fri, 11 Jun 2021 20:13:11 +0000 (20:13 +0000)]
Merge pull request #20260 from JoeHowse:DirectX-float16-conversions

2 years agoMerge pull request #20190 from rogday:tf_importer_ref
Alexander Alekhin [Fri, 11 Jun 2021 20:06:09 +0000 (20:06 +0000)]
Merge pull request #20190 from rogday:tf_importer_ref

2 years agosplit if into map of functions
rogday [Tue, 1 Jun 2021 14:05:27 +0000 (17:05 +0300)]
split if into map of functions

2 years agoDirectX: Support more types, including float16
Joe Howse [Fri, 11 Jun 2021 02:56:55 +0000 (23:56 -0300)]
DirectX: Support more types, including float16

Support the following type conversions:

* CV_16FC4 --> DXGI_FORMAT_R16G16B16A16_FLOAT

* CV_16FC2 --> DXGI_FORMAT_R16G16_FLOAT

* CV_16FC1 --> DXGI_FORMAT_R16_FLOAT

* CV_32FC2 --> DXGI_FORMAT_R32G32_FLOAT

* CV_32FC1 --> DXGI_FORMAT_D32_FLOAT

* CV_32SC2 --> DXGI_FORMAT_R32G32_UINT

* CV_32SC2 --> DXGI_FORMAT_R32G32_SINT

* CV_8UC4 -->  DXGI_FORMAT_R8G8_B8G8_UNORM

* CV_8UC4 -->  DXGI_FORMAT_G8R8_G8B8_UNORM

2 years agoMerge pull request #20257 from alalek:python_fix_extra_py_code_installation
Alexander Alekhin [Thu, 10 Jun 2021 13:49:13 +0000 (13:49 +0000)]
Merge pull request #20257 from alalek:python_fix_extra_py_code_installation

2 years agoMerge pull request #20184 from sivanov-work:fix_gapi_empty_input
Sergey Ivanov [Thu, 10 Jun 2021 11:05:46 +0000 (14:05 +0300)]
Merge pull request #20184 from sivanov-work:fix_gapi_empty_input

G-API: Add standalone fix for graph empty input

* Add sandalone fix for graph empty input

* Apply some review comments

* Fix whitespace

* Apply review comment: make Mat check more deeper

* Apply some comments

* Remove tracer apply exception throwing

* Apply comments: move validatio into gproto_priv.hpp

* Apply minor text correction

* Fix alignment, remove try-catch

2 years agocmake: fix installation of python extra code
Alexander Alekhin [Thu, 10 Jun 2021 10:51:30 +0000 (13:51 +0300)]
cmake: fix installation of python extra code

2 years agoapplied modifier mask to the state
Smirnov Egor [Wed, 9 Jun 2021 15:43:42 +0000 (18:43 +0300)]
applied modifier mask to the state

2 years agoMerge pull request #20250 from alalek:highgui_fixes
Alexander Alekhin [Wed, 9 Jun 2021 13:28:33 +0000 (13:28 +0000)]
Merge pull request #20250 from alalek:highgui_fixes

2 years agoMerge pull request #20247 from IanMaquignaz:inverseRectification_update
Ian Maquignaz [Wed, 9 Jun 2021 13:27:43 +0000 (09:27 -0400)]
Merge pull request #20247 from IanMaquignaz:inverseRectification_update

Update to initInverseRectificationMap()

* update to initInverseRectificationMap() documentation

* Restructured Calib3d_InitInverseRectificationMap unit test per feedback from alalek

* whitespace

2 years agoMerge pull request #20129 from aDanPin:dp/improvement_gapi_stereo_documentation
Pinaev Danil [Wed, 9 Jun 2021 13:24:50 +0000 (16:24 +0300)]
Merge pull request #20129 from aDanPin:dp/improvement_gapi_stereo_documentation

G-API: Improvement stereo documentation.

* Documentation improvement

* Set valid default values for gapi stereo

* Small doc fix

* Review response

* Review response

* Review response

* Review response

* Revie response

* Review response

* Review response

* Review response

2 years agoMerge pull request #20112 from mpashchenkov:mp/ocv-gapi-docs-part1
Maxim Pashchenkov [Wed, 9 Jun 2021 13:23:51 +0000 (16:23 +0300)]
Merge pull request #20112 from mpashchenkov:mp/ocv-gapi-docs-part1

G-API: Documentation for Params (IE and ONNX).

* Applying comments

* Removed type of model from PramsDesc

* Added message for onnx ParamDesc

* Whitespaces

* Review

* Fix comments to review

* Fix comments

Co-authored-by: Anatoliy Talamanov <anatoliy.talamanov@intel.com>
2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Wed, 9 Jun 2021 10:58:37 +0000 (10:58 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4