platform/upstream/opencv.git
2 years agoMerge pull request #21905 from asenyaev:asen/fix_fork_url_4.x
OpenCV Pushbot [Tue, 26 Apr 2022 05:27:43 +0000 (05:27 +0000)]
Merge pull request #21905 from asenyaev:asen/fix_fork_url_4.x

2 years agoFixed url for a fork (4.x branch)
Andrey Senyaev [Sat, 23 Apr 2022 22:53:53 +0000 (01:53 +0300)]
Fixed url for a fork (4.x branch)

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
OpenCV Developers [Sat, 23 Apr 2022 18:59:59 +0000 (18:59 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #21811 from fengyuentau:update_mirrors
OpenCV Pushbot [Fri, 22 Apr 2022 18:46:23 +0000 (18:46 +0000)]
Merge pull request #21811 from fengyuentau:update_mirrors

Support mirrors for TIM-VX and others 3rdparty components in opencv_contrib

2 years agoMerge pull request #21876 from asenyaev:asen/workflow_only_linux_4x
Andrey Senyaev [Thu, 21 Apr 2022 15:04:22 +0000 (18:04 +0300)]
Merge pull request #21876 from asenyaev:asen/workflow_only_linux_4x

Added workflow for Github Actions to build and test OpenCV on Linux for 4.x

* Added workflow for Github Actions to build and test OpenCV

* Merged a build and tests jobs into one, split tests by steps, renamed job names

2 years agoMerge pull request #21875 from asenyaev:asen/workflow_only_linux
Andrey Senyaev [Thu, 21 Apr 2022 14:59:56 +0000 (17:59 +0300)]
Merge pull request #21875 from asenyaev:asen/workflow_only_linux

Added workflow for Github Actions to build and test OpenCV on Linux

* Added workflow for Github Actions to build and test OpenCV

* Merged a build and tests in one job, changed naming

* Renamed job names, split workflows by branch, removed and added some cmake flags, save unit tests results as a html file

* Split tests by steps, removed workflows for 4.x and 5.x branches

2 years agoadd mirrors for tim-vx and others in opencv_contrib
fengyuentau [Thu, 21 Apr 2022 06:48:40 +0000 (14:48 +0800)]
add mirrors for tim-vx and others in opencv_contrib

2 years agoMerge pull request #21805 from rogday:pretty_fix
rogday [Wed, 20 Apr 2022 04:55:04 +0000 (07:55 +0300)]
Merge pull request #21805 from rogday:pretty_fix

Mat pretty printer: fix submatrix indexation

* fix submatrix indexation

* fix channels

2 years agoMerge pull request #21841 from victor1234:calib3d-undistortPoints-tests
Victor [Tue, 19 Apr 2022 18:07:34 +0000 (21:07 +0300)]
Merge pull request #21841 from victor1234:calib3d-undistortPoints-tests

Add distort/undistort test for fisheye::undistortPoints()

* Add distort/undistort test for fisheye::undistortPoints()

Lack of test has allowed error described in 19138 to be unnoticed.
In addition to random points, four corners and principal center
added to point set

* Add random distortion coefficients set

* Move undistortPoints test to google test, refactor

* Add fisheye::undistortPoints() perf test

* Add negative distortion coefficients to undistortPoints test, increase value

* Move to theRNG()

* Change test check from cvtest::norm(L2) to EXPECT_MAT_NEAR()

* Layout fix

* Add points number parameters, comments

2 years agoMerge pull request #21884 from rogday:cuda_cleanup
rogday [Tue, 19 Apr 2022 16:40:25 +0000 (19:40 +0300)]
Merge pull request #21884 from rogday:cuda_cleanup

Fix CUDA compilation issues and adjust thresholds.

* Fix CUDA compilation issues and adjust thresholds.

* add conformance tests to denylist

2 years agoMerge pull request #21834 from victor1234:issue-19138_add_termcriteria_to_fisheye_und...
Victor [Sat, 16 Apr 2022 17:59:53 +0000 (20:59 +0300)]
Merge pull request #21834 from victor1234:issue-19138_add_termcriteria_to_fisheye_undistortpoints

* Add termination criteria to cv::fisheye::undistortPoints()

* Add criteria.type check

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
OpenCV Developers [Sat, 16 Apr 2022 14:41:15 +0000 (14:41 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #21873 from asmorkalov:as/jpeg_options
OpenCV Pushbot [Fri, 15 Apr 2022 18:49:49 +0000 (18:49 +0000)]
Merge pull request #21873 from asmorkalov:as/jpeg_options

Document defaults for JPEG settings.

2 years agoMerge pull request #21864 from rogday:21851_fix
OpenCV Pushbot [Fri, 15 Apr 2022 18:07:38 +0000 (18:07 +0000)]
Merge pull request #21864 from rogday:21851_fix

2 years agoDocument defaults for JPEG settings.
Alexander Smorkalov [Fri, 15 Apr 2022 11:36:48 +0000 (14:36 +0300)]
Document defaults for JPEG settings.

2 years agoaddress security concerns in persistence
rogday [Wed, 13 Apr 2022 19:45:43 +0000 (22:45 +0300)]
address security concerns in persistence

2 years agoMerge pull request #21861 from rogday:21852_fix
OpenCV Pushbot [Thu, 14 Apr 2022 09:59:44 +0000 (09:59 +0000)]
Merge pull request #21861 from rogday:21852_fix

Add assert to address tf simplifier security concerns

2 years agoadd assert to tf graph simplifier to address security concerns
rogday [Wed, 13 Apr 2022 12:55:36 +0000 (15:55 +0300)]
add assert to tf graph simplifier to address security concerns

2 years agoMerge pull request #21831 from zihaomu:sign_layer_onnx
OpenCV Pushbot [Wed, 13 Apr 2022 17:08:30 +0000 (17:08 +0000)]
Merge pull request #21831 from zihaomu:sign_layer_onnx

DNN: Add sign, shrink and reciprocal for onnx_impoter

2 years agoMerge pull request #21775 from luzpaz:typos/gapi
luzpaz [Wed, 13 Apr 2022 17:06:37 +0000 (13:06 -0400)]
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

2 years agoMerge pull request #21855 from opencv-pushbot:dnn_test_update_checks_face_detector_3.4
OpenCV Pushbot [Tue, 12 Apr 2022 17:33:13 +0000 (17:33 +0000)]
Merge pull request #21855 from opencv-pushbot:dnn_test_update_checks_face_detector_3.4

2 years agoMerge pull request #21854 from opencv-pushbot:dnn_test_update_checks_face_detector_4.x
OpenCV Pushbot [Tue, 12 Apr 2022 17:20:22 +0000 (17:20 +0000)]
Merge pull request #21854 from opencv-pushbot:dnn_test_update_checks_face_detector_4.x

2 years agodnn(test): update opencv_face_detector checks
OpenCV Developers [Mon, 11 Apr 2022 19:14:33 +0000 (19:14 +0000)]
dnn(test): update opencv_face_detector checks

original commit: be4a432bea6f714bf14c8d9a4883b56d0effb4a0

2 years agodnn(test): update opencv_face_detector checks
OpenCV Developers [Mon, 11 Apr 2022 19:14:33 +0000 (19:14 +0000)]
dnn(test): update opencv_face_detector checks

2 years agoadd ONNX OP sign, shrink and reciprocal
zihaomu [Thu, 7 Apr 2022 07:32:12 +0000 (15:32 +0800)]
add ONNX OP sign, shrink and reciprocal

2 years agoMerge pull request #21822 from alalek:dnn_test_update_openvino_4.x
Alexander Alekhin [Tue, 5 Apr 2022 18:08:46 +0000 (18:08 +0000)]
Merge pull request #21822 from alalek:dnn_test_update_openvino_4.x

2 years agoMerge pull request #21819 from alalek:fix_videoio_ffmpeg_memory_leak_4.x
Alexander Alekhin [Tue, 5 Apr 2022 18:03:59 +0000 (18:03 +0000)]
Merge pull request #21819 from alalek:fix_videoio_ffmpeg_memory_leak_4.x

2 years agoMerge pull request #21820 from alalek:fix_videoio_ffmpeg_memory_leak_3.4
Alexander Alekhin [Tue, 5 Apr 2022 18:03:27 +0000 (18:03 +0000)]
Merge pull request #21820 from alalek:fix_videoio_ffmpeg_memory_leak_3.4

2 years agoMerge pull request #21504 from smirnov-alexey:as/oak_infer
Alexey Smirnov [Tue, 5 Apr 2022 18:00:32 +0000 (21:00 +0300)]
Merge pull request #21504 from smirnov-alexey:as/oak_infer

[GAPI] Support basic inference in OAK backend

* Combined commit which enables basic inference and other extra capabilities of OAK backend

* Remove unnecessary target options from the cmakelist

2 years agoMerge pull request #21779 from eplankin:fix_11303
eplankin [Tue, 5 Apr 2022 15:58:15 +0000 (18:58 +0300)]
Merge pull request #21779 from eplankin:fix_11303

Fixed out-of-bounds read in parallel version of ippGaussianBlur()

* Fixed out-of-memory read in parallel version of ippGaussianBlur()

* Fixed check

* Revert changes in CMakeLists.txt

2 years agovideoio(ffmpeg): avoid memory leaks
Alexander Alekhin [Fri, 1 Apr 2022 18:02:14 +0000 (18:02 +0000)]
videoio(ffmpeg): avoid memory leaks

2 years agodnn(test): update OpenVINO tests 2022.1.0 (OpenCV 4.x)
Alexander Alekhin [Mon, 4 Apr 2022 22:02:40 +0000 (22:02 +0000)]
dnn(test): update OpenVINO tests 2022.1.0 (OpenCV 4.x)

2 years agoMerge pull request #21821 from alalek:update_zlib
Alexander Alekhin [Tue, 5 Apr 2022 11:29:36 +0000 (14:29 +0300)]
Merge pull request #21821 from alalek:update_zlib

* 3rdparty: zlib 1.2.11 => 1.2.12

https://github.com/madler/zlib/releases/tag/v1.2.12

* 3rdparty(zlib): re-apply patch 20190330-ununitialized-use-state-check.diff

2 years agoMerge pull request #21812 from cpoerschke:BackgroundSubtractor-getDefaultName
Alexander Alekhin [Mon, 4 Apr 2022 18:57:00 +0000 (18:57 +0000)]
Merge pull request #21812 from cpoerschke:BackgroundSubtractor-getDefaultName

2 years agovideoio(ffmpeg): avoid memory leaks
Alexander Alekhin [Fri, 1 Apr 2022 18:02:14 +0000 (18:02 +0000)]
videoio(ffmpeg): avoid memory leaks

2 years agoMerge pull request #21731 from AsyaPronina:asyadev/fix_new_stream_event
Anastasiya(Asya) Pronina [Mon, 4 Apr 2022 17:39:02 +0000 (20:39 +0300)]
Merge pull request #21731 from AsyaPronina:asyadev/fix_new_stream_event

Fixed handling of new stream, especially for stateful OCV kernels

* Fixed handling of new stream, especially for stateful OCV kernels

* Removed duplication from StateInitOnce tests

* Addressed review comments for PR #21731
- Fixed explanation comments
- Expanded test for stateful OCV kernels in Regular mode

* Addressed review comments for PR #21731
- Moved notification about new stream to the constructor
- Added test on state reset for Regular mode

* Addresed review comments

* Addressed review comments

Co-authored-by: Ruslan Garnov <ruslan.garnov@intel.com>
2 years agoMerge pull request #21815 from sivanov-work:gapi_fix_ov_warning
Alexander Alekhin [Mon, 4 Apr 2022 12:20:25 +0000 (12:20 +0000)]
Merge pull request #21815 from sivanov-work:gapi_fix_ov_warning

2 years agoFix warning
sivanov-work [Mon, 4 Apr 2022 05:25:03 +0000 (08:25 +0300)]
Fix warning

2 years agoadd BackgroundSubtractor(KNN|MOG2).getDefaultName() implementation
Christine Poerschke [Sun, 3 Apr 2022 19:35:55 +0000 (20:35 +0100)]
add BackgroundSubtractor(KNN|MOG2).getDefaultName() implementation

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 2 Apr 2022 19:45:44 +0000 (19:45 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #21795 from alalek:dnn_test_update_openvino_3.4
Alexander Alekhin [Sat, 2 Apr 2022 19:36:48 +0000 (19:36 +0000)]
Merge pull request #21795 from alalek:dnn_test_update_openvino_3.4

2 years agodnn(test): update OpenVINO tests 2022.1.0
Alexander Alekhin [Wed, 30 Mar 2022 19:03:38 +0000 (19:03 +0000)]
dnn(test): update OpenVINO tests 2022.1.0

2 years agoMerge pull request #21644 from sturkmen72:patch-5
Alexander Alekhin [Fri, 1 Apr 2022 22:43:33 +0000 (22:43 +0000)]
Merge pull request #21644 from sturkmen72:patch-5

2 years agoMerge pull request #21803 from oguzhanguclu:matches_info_pybinding
Oguzhan Guclu [Fri, 1 Apr 2022 22:13:14 +0000 (01:13 +0300)]
Merge pull request #21803 from oguzhanguclu:matches_info_pybinding

python binding for matches and inliers_mask attributes of cv2.detail_MatchesInfo class

* making matches and inliers_mask attributes of cv2.detail_MatchesInfo class accessible from python interface

* binding test for cv2.detail_MatchesInfo class

2 years agoMerge pull request #21798 from gititgo:4.x
Alexander Alekhin [Fri, 1 Apr 2022 22:11:57 +0000 (22:11 +0000)]
Merge pull request #21798 from gititgo:4.x

2 years agoMerge pull request #21794 from yash112-lang:3.4
Alexander Alekhin [Fri, 1 Apr 2022 22:10:50 +0000 (22:10 +0000)]
Merge pull request #21794 from yash112-lang:3.4

2 years agoMerge pull request #20938 from JulieBar:lstm_cuda2
Alexander Alekhin [Fri, 1 Apr 2022 22:10:08 +0000 (22:10 +0000)]
Merge pull request #20938 from JulieBar:lstm_cuda2

2 years agoMerge pull request #21754 from mshabunin:fix-ffmpeg5
Alexander Alekhin [Fri, 1 Apr 2022 18:34:30 +0000 (18:34 +0000)]
Merge pull request #21754 from mshabunin:fix-ffmpeg5

2 years agoMerge pull request #21752 from fengyuentau:add_github_actions_for_timvx_backend
Yuantao Feng [Fri, 1 Apr 2022 12:35:12 +0000 (20:35 +0800)]
Merge pull request #21752 from fengyuentau:add_github_actions_for_timvx_backend

CI for TIM-VX backend

* github actions for TIM-VX backend https://github.com/opencv/opencv/pull/21036

* add reference to yuentau/ocv_ubuntu:20.04; remove extra quotes; enable BUILD_TESTS

* rename to timvx_backend_tests.yml

* add image source prefix

* remove if condition for x86_64 simulator

2 years agoMerge pull request #21688 from sivanov-work:vpp_ie_integration
Sergey Ivanov [Fri, 1 Apr 2022 10:06:47 +0000 (13:06 +0300)]
Merge pull request #21688 from sivanov-work:vpp_ie_integration

G-API: VPP preprocessing GIEBackend integration

* Add ROI in VPP prepro

* Apply comments

* Integration to IE

* Removed extra invocations

* Fix no-vpl compilation

* Fix compilations

* Apply comments

* Use thin wrapper for device & ctx

* Implement Device/Context constructor functions

* Apply samples comment

* Fix compilation

* Fix compilation

* Fix build

* Separate Device&Context from selector, apply other comments

* Fix typo

* Intercept OV exception with pretty print out

2 years agofix MSA sum overflow issue
shengwenxue [Wed, 30 Mar 2022 03:29:01 +0000 (11:29 +0800)]
fix MSA sum overflow issue

2 years agoMerge pull request #21036 from fengyuentau:timvx_backend_support
Zihao Mu [Thu, 31 Mar 2022 21:42:11 +0000 (05:42 +0800)]
Merge pull request #21036 from fengyuentau:timvx_backend_support

dnn: TIM-VX NPU backend support

* Add TimVX NPU backend for DNN module.

* use official branch from tim-vx repo; fix detecting viv sdk

Co-authored-by: fytao <yuantao.feng@outlook.com>
2 years agoUpdate Condition
Yash Singhal [Wed, 30 Mar 2022 06:11:50 +0000 (11:41 +0530)]
Update Condition

Update connectedcomponents.cpp

2 years agoMerge pull request #21782 from TolyaTalamanov:at/fix-1d-mat-problems
Anatoliy Talamanov [Thu, 31 Mar 2022 21:00:45 +0000 (00:00 +0300)]
Merge pull request #21782 from TolyaTalamanov:at/fix-1d-mat-problems

[G-API] Fix problems with 1D cv::Mat as graph output

* Fix issues with 1D cv::Mat

* Fix cv::Mat::create

* Fix standalone build

* Add test on 1d mat

* Fix warning

* Add additional condition

* Add more tests

2 years agoAdd CUDA support for LSTM.
Smirnov Egor [Wed, 30 Mar 2022 12:26:29 +0000 (15:26 +0300)]
Add CUDA support for LSTM.

Co-authored-by: Julia Bareeva <jbareeva@gmail.com>
2 years agoMerge pull request #21796 from alalek:dnn_reduce_fixup_21601
Alexander Alekhin [Wed, 30 Mar 2022 22:26:28 +0000 (22:26 +0000)]
Merge pull request #21796 from alalek:dnn_reduce_fixup_21601

2 years agoMerge pull request #21351 from hanliutong:rvv-clang
HAN Liutong [Wed, 30 Mar 2022 20:04:34 +0000 (04:04 +0800)]
Merge pull request #21351 from hanliutong:rvv-clang

* Update universal intrinsics of RVV back-end.

* Use array instead of malloc.

2 years agodnn: fix ReduceLayer implementation, update OpenVINO tests
Alexander Alekhin [Wed, 30 Mar 2022 11:06:18 +0000 (11:06 +0000)]
dnn: fix ReduceLayer implementation, update OpenVINO tests

2 years agodnn(test): update OpenVINO tests 2021.4.2
Alexander Alekhin [Wed, 30 Mar 2022 10:47:59 +0000 (10:47 +0000)]
dnn(test): update OpenVINO tests 2021.4.2

2 years agovideoio: initial FFmpeg 5.0 support
Maksim Shabunin [Sat, 19 Mar 2022 17:06:50 +0000 (20:06 +0300)]
videoio: initial FFmpeg 5.0 support

2 years agoadd test (DISABLED_open_from_web)
Suleyman TURKMEN [Tue, 29 Mar 2022 07:39:07 +0000 (10:39 +0300)]
add test (DISABLED_open_from_web)

2 years agoMerge pull request #21777 from anna-khakimova:ak/convertto_simd
Anna Khakimova [Tue, 29 Mar 2022 21:14:01 +0000 (00:14 +0300)]
Merge pull request #21777 from anna-khakimova:ak/convertto_simd

GAPI Fluid: SIMD for ConvertTo.

* GAPI Fluid: SIMD for convertto.

* Applied comments

2 years agoMerge pull request #21785 from alalek:python_fix_subclass_order
Alexander Alekhin [Mon, 28 Mar 2022 12:16:56 +0000 (12:16 +0000)]
Merge pull request #21785 from alalek:python_fix_subclass_order

2 years agopython: ensure publishing of subclasses before derived types
Alexander Alekhin [Sun, 27 Mar 2022 12:48:49 +0000 (12:48 +0000)]
python: ensure publishing of subclasses before derived types

2 years agoMerge pull request #21781 from VadimLevin:dev/vlevin/skip-inline-namespaces
Alexander Alekhin [Sat, 26 Mar 2022 21:40:45 +0000 (21:40 +0000)]
Merge pull request #21781 from VadimLevin:dev/vlevin/skip-inline-namespaces

2 years agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 26 Mar 2022 16:00:11 +0000 (16:00 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

2 years agoMerge pull request #21601 from zihaomu:add_reduceLayer
Alexander Alekhin [Sat, 26 Mar 2022 10:20:10 +0000 (10:20 +0000)]
Merge pull request #21601 from zihaomu:add_reduceLayer

2 years agoMerge pull request #21750 from alalek:dnn_fix_index_access
Alexander Alekhin [Fri, 25 Mar 2022 18:26:10 +0000 (18:26 +0000)]
Merge pull request #21750 from alalek:dnn_fix_index_access

2 years agoMerge pull request #21728 from anna-khakimova:ak/resize_f32c1_avx_simd
Anna Khakimova [Fri, 25 Mar 2022 15:11:01 +0000 (18:11 +0300)]
Merge pull request #21728 from anna-khakimova:ak/resize_f32c1_avx_simd

GAPI Fluid: SIMD AVX2 Resize F32C1.

* GAPI Fluid: Resize F32C1 scalar.

* Final version

* GAPI Fluid: SIMD AVX2 for Resize F32C1.

* Applied comments.

* Deleted warning suppression.

* Applied comments.

2 years agofix: inline namespace handling in header parser
Vadim Levin [Fri, 25 Mar 2022 12:36:31 +0000 (15:36 +0300)]
fix: inline namespace handling in header parser

`inline namespace` should be skipped in header parser namespaces list.
Example:
```cpp
namespace cv {
inline namespace inlined {
namespace inner {
// content
} // namespace inner
} // namespace inlined
} // namespace cv
```
Before fix `inner` is registered as `cv..inner`
After fix: `cv.inner`

2 years agoMerge pull request #21719 from TolyaTalamanov:at/pipeline_modeling_tool-skip-frames...
Anatoliy Talamanov [Fri, 25 Mar 2022 08:22:45 +0000 (11:22 +0300)]
Merge pull request #21719 from TolyaTalamanov:at/pipeline_modeling_tool-skip-frames-for-nodes

[G-API] Pipeline modeling tool: Skip frames

* Add skip feature

* Refactoring

* Fix warning

* Put more comments

* Fix comments to review

* Agregate common params into structure

* Fix warning

* Clean up & add test

* Add assert

* Fix warning on Mac

* Update modules/gapi/samples/pipeline_modeling_tool.cpp

Co-authored-by: Dmitry Matveev <dmitry.matveev@intel.com>
2 years agoMerge pull request #21660 from TolyaTalamanov:at/handle-exception-in-streamingexecutor
Anatoliy Talamanov [Fri, 25 Mar 2022 08:19:53 +0000 (11:19 +0300)]
Merge pull request #21660 from TolyaTalamanov:at/handle-exception-in-streamingexecutor

[G-API] Handle exceptions in streaming executor

* Handle exceptions in streaming executor

* Rethrow exception in non-streaming executor

* Clean up

* Put more tests

* Handle exceptions in IE backend

* Handle exception in IE callbacks

* Handle exception in GExecutor

* Handle all exceptions in IE backend

* Not only (std::exception& e)

* Fix comments to review

* Handle input exception in generic way

* Fix comment

* Clean up

* Apply review comments

* Put more comments
* Fix alignment
* Move test outside of HAVE_NGRAPH

* Fix compilation

2 years agoMerge pull request #21772 from luzpaz:typo/dnn
Alexander Alekhin [Thu, 24 Mar 2022 16:32:46 +0000 (16:32 +0000)]
Merge pull request #21772 from luzpaz:typo/dnn

2 years agodnn: fix various dnn related typos
luz paz [Fri, 18 Mar 2022 21:15:14 +0000 (17:15 -0400)]
dnn: fix various dnn related typos

Fixes source comments and documentation related to dnn code.

2 years agoMerge pull request #21743 from luzpaz:typos
Alexander Alekhin [Wed, 23 Mar 2022 19:14:02 +0000 (19:14 +0000)]
Merge pull request #21743 from luzpaz:typos

2 years agoMerge pull request #21759 from pkubaj:patch-1
Alexander Alekhin [Wed, 23 Mar 2022 19:13:12 +0000 (19:13 +0000)]
Merge pull request #21759 from pkubaj:patch-1

2 years agoMerge pull request #21764 from alexanderconner:fixes/CameraBridgeViewBase-error-message
Alexander Alekhin [Wed, 23 Mar 2022 19:11:30 +0000 (19:11 +0000)]
Merge pull request #21764 from alexanderconner:fixes/CameraBridgeViewBase-error-message

2 years agoMerge pull request #21768 from stal12:4.x
Alexander Alekhin [Wed, 23 Mar 2022 19:10:19 +0000 (19:10 +0000)]
Merge pull request #21768 from stal12:4.x

2 years agoFix VideoCapture::open() brief description
Stefano Allegretti [Wed, 23 Mar 2022 14:55:30 +0000 (15:55 +0100)]
Fix VideoCapture::open() brief description

2 years agoUpdate CameraBridgeViewBase error message
Alexander Conner [Tue, 22 Mar 2022 19:40:23 +0000 (15:40 -0400)]
Update CameraBridgeViewBase error message

Update CameraBridgeViewBase error message - Change "you device does" to "your device does"

2 years agoMerge pull request #21756 from komakai:fix-pow
Alexander Alekhin [Tue, 22 Mar 2022 13:45:35 +0000 (13:45 +0000)]
Merge pull request #21756 from komakai:fix-pow

2 years agoMerge pull request #21746 from anna-khakimova:ak/dynamic_dispatch_sub
Alexander Alekhin [Mon, 21 Mar 2022 17:10:40 +0000 (17:10 +0000)]
Merge pull request #21746 from anna-khakimova:ak/dynamic_dispatch_sub

2 years agoMerge pull request #21739 from mshabunin:fix-cart-polar
Alexander Alekhin [Mon, 21 Mar 2022 17:10:11 +0000 (17:10 +0000)]
Merge pull request #21739 from mshabunin:fix-cart-polar

2 years agocartToPolar/polarToCart: disable inplace mode
Maksim Shabunin [Thu, 17 Mar 2022 13:14:38 +0000 (16:14 +0300)]
cartToPolar/polarToCart: disable inplace mode

2 years agots: fix some EXPECT_MAT macros
Maksim Shabunin [Mon, 21 Mar 2022 13:04:33 +0000 (16:04 +0300)]
ts: fix some EXPECT_MAT macros

2 years agoFix build with LLVM 13 on ppc64le
pkubaj [Mon, 21 Mar 2022 02:05:05 +0000 (02:05 +0000)]
Fix build with LLVM 13 on ppc64le

/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:352:12: warning: 'vec_permi' macro redefined [-Wmacro-redefined]
#   define vec_permi(a, b, c) vec_xxpermdi(b, a, (3 ^ (((c) & 1) << 1 | (c) >> 1)))
           ^
/usr/lib/clang/13.0.0/include/altivec.h:13077:9: note: previous definition is here
#define vec_permi(__a, __b, __c)                                               \
        ^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:370:25: error: redefinition of 'vec_promote'
VSX_FINLINE(vec_dword2) vec_promote(long long a, int b)
                        ^
/usr/lib/clang/13.0.0/include/altivec.h:14604:1: note: previous definition is here
vec_promote(signed long long __a, int __b) {
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:377:26: error: redefinition of 'vec_promote'
VSX_FINLINE(vec_udword2) vec_promote(unsigned long long a, int b)
                         ^
/usr/lib/clang/13.0.0/include/altivec.h:14611:1: note: previous definition is here
vec_promote(unsigned long long __a, int __b) {
^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1045:22: error: call to 'vec_rsqrt' is ambiguous
{ return v_float32x4(vec_rsqrt(x.val)); }
                     ^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:8472:34: note: candidate function
static vector float __ATTRS_o_ai vec_rsqrt(vector float __a) {
                                 ^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:362:29: note: candidate function
    VSX_FINLINE(vec_float4) vec_rsqrt(const vec_float4& a)
                            ^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/hal/intrin_vsx.hpp:1047:22: error: call to 'vec_rsqrt' is ambiguous
{ return v_float64x2(vec_rsqrt(x.val)); }
                     ^~~~~~~~~
/usr/lib/clang/13.0.0/include/altivec.h:8477:35: note: candidate function
static vector double __ATTRS_o_ai vec_rsqrt(vector double __a) {
                                  ^
/wrkdirs/usr/ports/graphics/opencv/work/opencv-4.5.5/modules/core/include/opencv2/core/vsx_utils.hpp:365:30: note: candidate function
    VSX_FINLINE(vec_double2) vec_rsqrt(const vec_double2& a)
                             ^
1 warning and 4 errors generated.

The specific functions were added to altivec.h in LLVM's 1ff93618e58df210def48d26878c20a1b414d900c3da07d216dd20fbdb7302fd085c0a59e189ae3d and 10cc5bcd868c433f9a781aef82178b04e98bd098.

2 years agoObjective-C wrapper header fix-ups to avoid clashes with system macros
Giles Payne [Sun, 20 Mar 2022 09:47:26 +0000 (18:47 +0900)]
Objective-C wrapper header fix-ups to avoid clashes with system macros

2 years agodnn: fix index access
Alexander Alekhin [Sat, 19 Mar 2022 06:52:47 +0000 (06:52 +0000)]
dnn: fix index access

2 years agoMerge pull request #21531 from fengyuentau:add_3rdparty_mirrors
Yuantao Feng [Fri, 18 Mar 2022 09:50:21 +0000 (17:50 +0800)]
Merge pull request #21531 from fengyuentau:add_3rdparty_mirrors

Support downloading 3rdparty resources from Gitcode & Gitlab-style mirrors

* replace github.com with gitcode.net for ocv_download

* replace raw.githubusercontent.com with gitcode.net for ocv_download

* rename funtions and remove some comments

* add options for custom mirrors, which simply replace domain github.com & githubusercontent.com

* run ocv_init_download once; replace DL_URL with mirrored one when calling ocv_download

* fix for empty download links when not using mirror

* fix bugs: set(.. .. PARENT_SCOPE) for ocv_init_download; correct macro names for replace github archives and raw githubusercontent

* adjusted mirror swapping impl: replace with mirrored link before each ocv_download; update md5sum for archives

* fix a bug: macro invoked with incorrect arguments by non-set vars

* enclose if statement

* workable impl

* shorten the var names of two key options

* scalable implementation of downloading from mirror and using custom mirror

* improve ocv_init_download help message

* fix the different extracted directory name in case of ADE & TBB which are downloaded from release page

* improve help message printing

* Download ADE & TBB using commit ids instead of from release pages

* support custom mirrors on downloading archives

* improve hints

* add missing parentheses

* reset ocv_download calls

* mirror support implementation using ocv_cmake_hook & ocv_cmake_hook_append

* move ocv_init_download into cmake/OpenCVDownload.cmake

* move ocv_cmake_hook before checking CMake cache

* improve hints when not fetching as git repo

* add WORKING_DIRECTORY  in execute_process in ocv_init_download

* use OPENCV_DOWNLOAD_MIRROR_ID

* add custom.cmake for custom mirror

* detect github origin

* fix broken var name

* download from github by default if custom tbb is set

* add checksum checks for gitcode.cmake before replacing urls and checksums

* add checksum checks for custom.cmake before replacing urls and checkusms

* use description specify instead of set for messages in custom.cmake; use warning message for warnings

* updates and fixes

2 years agoGAPI Fluid: Enable dynamic dispatching for the Sub kernel.
Anna Khakimova [Thu, 17 Mar 2022 18:33:50 +0000 (21:33 +0300)]
GAPI Fluid: Enable dynamic dispatching for the Sub kernel.

2 years agoSupport for some reduce layers for onnx
Zihao Mu [Fri, 18 Mar 2022 02:19:13 +0000 (10:19 +0800)]
Support for some reduce layers for onnx

2 years agoFix typos in tutorials within docs/
luz paz [Thu, 17 Mar 2022 20:06:54 +0000 (16:06 -0400)]
Fix typos in tutorials within docs/

Fix various typos found within tutorial documentation

2 years agoMerge pull request #21678 from anna-khakimova:ak/resize_f32c1_scalar
Anna Khakimova [Thu, 17 Mar 2022 16:45:14 +0000 (19:45 +0300)]
Merge pull request #21678 from anna-khakimova:ak/resize_f32c1_scalar

GAPI Fluid: Resize F32C1 scalar version.

* GAPI Fluid: Resize F32C1 scalar.

* Final version

* Applied comments

2 years agoMerge pull request #21662 from alalek:dnn_split
Alexander Alekhin [Thu, 17 Mar 2022 16:09:17 +0000 (16:09 +0000)]
Merge pull request #21662 from alalek:dnn_split

2 years agoMerge pull request #21677 from chacha21:rectangle_intersection
Pierre Chatelier [Wed, 16 Mar 2022 14:46:11 +0000 (15:46 +0100)]
Merge pull request #21677 from chacha21:rectangle_intersection

* better accuracy of _rotatedRectangleIntersection

instead of just migrating to double-precision (which would work), some computations are scaled by a factor that depends on the length of the smallest vectors.
There is a better accuracy even with floats, so this is certainly better for very sensitive cases

* Update intersection.cpp

use L2SQR norm to tune the numeric scale

* Update intersection.cpp

adapt samePointEps with L2 norm

* Update intersection.cpp

move comment

* Update intersection.cpp

fix wrong numericalScalingFactor usage

* added tests

* fixed warnings returned by buildbot

* modifications suggested by reviewer

renaming numericalScaleFctor to normalizationScale
refactor some computations
more "const"

* modifications as suggested by reviewer

2 years agoMerge pull request #21722 from mshabunin:fix-va-link
Alexander Alekhin [Wed, 16 Mar 2022 09:45:35 +0000 (09:45 +0000)]
Merge pull request #21722 from mshabunin:fix-va-link

2 years agoFix libva dynamic loading
Maksim Shabunin [Tue, 15 Mar 2022 16:00:52 +0000 (19:00 +0300)]
Fix libva dynamic loading

2 years agoMerge pull request #21686 from anna-khakimova:ak/dynamic_disp_add_kernel
Alexander Alekhin [Tue, 15 Mar 2022 15:28:48 +0000 (15:28 +0000)]
Merge pull request #21686 from anna-khakimova:ak/dynamic_disp_add_kernel

2 years agoMerge pull request #21636 from TolyaTalamanov:at/gapi_modeling_tool_drop_frames
Anatoliy Talamanov [Tue, 15 Mar 2022 15:27:39 +0000 (18:27 +0300)]
Merge pull request #21636 from TolyaTalamanov:at/gapi_modeling_tool_drop_frames

[G-API] Pipeline modeling tool - support frame dropping for source

* Implement drop frames functionality for dummy src

* Reconsider frame dropping

* Fix comments

2 years agoMerge pull request #21687 from sivanov-work:vpp_pp_integr
Sergey Ivanov [Tue, 15 Mar 2022 08:01:03 +0000 (11:01 +0300)]
Merge pull request #21687 from sivanov-work:vpp_pp_integr

G-API: Add VPP preproc CPU/GPU dispatcher

* Add VPP preproc acceleration dispatcher & UTs

* Fix compilation

* Apply some comments