platform/upstream/opencv.git
17 months agoMerge pull request #22972 from alalek:update_version_4.7.0-pre
Alexander Alekhin [Sun, 25 Dec 2022 18:40:27 +0000 (18:40 +0000)]
Merge pull request #22972 from alalek:update_version_4.7.0-pre

17 months agopre: OpenCV 4.7.0 (version++)
Alexander Alekhin [Thu, 15 Dec 2022 22:08:46 +0000 (22:08 +0000)]
pre: OpenCV 4.7.0 (version++)

17 months agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 24 Dec 2022 13:54:58 +0000 (13:54 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

17 months agoMerge pull request #23028 from zihaomu:update_doc_nanotrack
Alexander Alekhin [Sat, 24 Dec 2022 11:16:46 +0000 (11:16 +0000)]
Merge pull request #23028 from zihaomu:update_doc_nanotrack

17 months agoAdd spaces to make links clickable.
zihaomu [Sat, 24 Dec 2022 07:26:42 +0000 (15:26 +0800)]
Add spaces to make links clickable.

17 months agoMerge pull request #22957 from dkurt:new_openvino_api
Dmitry Kurtaev [Fri, 23 Dec 2022 16:58:41 +0000 (19:58 +0300)]
Merge pull request #22957 from dkurt:new_openvino_api

Switch to new OpenVINO API after 2022.1 release

* Pass Layer_Test_Convolution_DLDT.Accuracy/0 test

* Pass test Test_Caffe_layers.Softmax

* Failed 136 tests

* Fix Concat. Failed 120 tests

* Custom nGraph ops. 19 failed tests

* Set and get properties from Core

* Read model from buffer

* Change MaxPooling layer output names. Restore reshape

* Cosmetic changes

* Cosmetic changes

* Override getOutputsInfo

* Fixes for OpenVINO < 2022.1

* Async inference for 2021.4 and less

* Compile model with config

* Fix serialize for 2022.1

* Asynchronous inference with 2022.1

* Handle 1d outputs

* Work with model with dynamic output shape

* Fixes with 1d output for old API

* Control outputs by nGraph function for all OpenVINO versions

* Refer inputs in PrePostProcessor by indices

* Fix cycled dependency between InfEngineNgraphNode and InfEngineNgraphNet.
Add InferRequest callback only for async inference. Do not capture InferRequest object.

* Fix tests thresholds

* Fix HETERO:GPU,CPU plugin issues with unsupported layer

17 months agoMerge pull request #22965 from vrabaud:numpy_fix
Alexander Smorkalov [Fri, 23 Dec 2022 12:34:02 +0000 (15:34 +0300)]
Merge pull request #22965 from vrabaud:numpy_fix

Remove references to deprecated NumPy type aliases.

17 months agoMerge pull request #22962 from stopmosk:20465-dstchannels-does-not-cover-all-color...
Alexander Alekhin [Fri, 23 Dec 2022 11:41:31 +0000 (11:41 +0000)]
Merge pull request #22962 from stopmosk:20465-dstchannels-does-not-cover-all-color-codes-1

17 months agoMerge pull request #22898 from fengyuentau:slice_neg_steps
Alexander Smorkalov [Fri, 23 Dec 2022 11:15:06 +0000 (14:15 +0300)]
Merge pull request #22898 from fengyuentau:slice_neg_steps

dnn: support ONNX Slice with negative steps by adding and using cv::flipND

17 months agoRemove references to deprecated NumPy type aliases.
Vincent Rabaud [Thu, 15 Dec 2022 10:16:01 +0000 (11:16 +0100)]
Remove references to deprecated NumPy type aliases.

This change replaces references to a number of deprecated NumPy
type aliases (np.bool, np.int, np.float, np.complex, np.object,
np.str) with their recommended replacement (bool, int, float,
complex, object, str).

Those types were deprecated in 1.20 and are removed in 1.24,
cf https://github.com/numpy/numpy/pull/22607.

17 months agoMerge pull request #22930 from MaximMilashchenko:gstreamer_support
Maxim Milashchenko [Fri, 23 Dec 2022 10:15:22 +0000 (13:15 +0300)]
Merge pull request #22930 from MaximMilashchenko:gstreamer_support

Support one-time audio video reading

* stream switching functionality

* audio+video pipeline with switch stream functionality

* audio video sync

* fixed sync

* removed switch swtream functionality

* changed test for gstreamer audio

* fixed error

* fixed error

* fixed issue

* fixed issue

* fixed error

* fixed error

* fixed error

17 months agoMerge pull request #23008 from mshabunin:fix-yolov4-tiny-hash
Alexander Alekhin [Fri, 23 Dec 2022 10:14:25 +0000 (10:14 +0000)]
Merge pull request #23008 from mshabunin:fix-yolov4-tiny-hash

17 months agoDefine the number of dstChannels for Lab, Luv, YCrCb and XYZ conversions
Sergei Shutov [Wed, 14 Dec 2022 21:28:43 +0000 (23:28 +0200)]
Define the number of dstChannels for Lab, Luv, YCrCb and XYZ conversions

17 months agoMerge pull request #23017 from asmorkalov:as/qrcode_valgrind
Alexander Smorkalov [Fri, 23 Dec 2022 09:10:29 +0000 (12:10 +0300)]
Merge pull request #23017 from asmorkalov:as/qrcode_valgrind

Valgrind issues fix in QRCode detector.

17 months agoadd cv::flipND; support onnx slice with negative steps via cv::flipND
fengyuentau [Thu, 1 Dec 2022 09:41:54 +0000 (17:41 +0800)]
add cv::flipND; support onnx slice with negative steps via cv::flipND

17 months agoValgrind issues fix in QRCode detector.
Alexander Smorkalov [Thu, 22 Dec 2022 14:29:22 +0000 (17:29 +0300)]
Valgrind issues fix in QRCode detector.

17 months agoMerge pull request #23002 from alalek:issue_22206
Alexander Alekhin [Thu, 22 Dec 2022 14:01:21 +0000 (17:01 +0300)]
Merge pull request #23002 from alalek:issue_22206

* obj-c: de-duplicate values of nested enums

- prefix with outer class name

* obj-c: handle enum names change in assigned values

* obj-c: switch on 'const_fix'

* obj-c: add NS_SWIFT_NAME

17 months agodnn: updated YOLOv4-tiny model and tests
Maksim Shabunin [Wed, 21 Dec 2022 12:37:14 +0000 (15:37 +0300)]
dnn: updated YOLOv4-tiny model and tests

17 months agoMerge pull request #23012 from cudawarped/fix_win32_cuda_warning
Alexander Smorkalov [Thu, 22 Dec 2022 11:05:35 +0000 (14:05 +0300)]
Merge pull request #23012 from cudawarped/fix_win32_cuda_warning

Fix nvcc compile errors when built against CUDA SDK < 11.2

17 months agoMerge pull request #22914 from tozanski:tomoz/ransac-bugfix
Alexander Smorkalov [Thu, 22 Dec 2022 08:58:14 +0000 (11:58 +0300)]
Merge pull request #22914 from tozanski:tomoz/ransac-bugfix

Bugfix for solvePnPRansac with SOLVEPNP_ITERATIVE

17 months agoMerge pull request #23014 from alalek:ffmpeg_default_threads
Alexander Alekhin [Thu, 22 Dec 2022 07:57:24 +0000 (07:57 +0000)]
Merge pull request #23014 from alalek:ffmpeg_default_threads

17 months agovideoio(ffmpeg): limit number of default threads
Alexander Alekhin [Thu, 22 Dec 2022 04:36:05 +0000 (04:36 +0000)]
videoio(ffmpeg): limit number of default threads

17 months agoMerge pull request #22993 from alalek:fixup_21738
Alexander Alekhin [Wed, 21 Dec 2022 19:50:51 +0000 (19:50 +0000)]
Merge pull request #22993 from alalek:fixup_21738

17 months agoMerge pull request #23004 from erasta:patch-2
Alexander Alekhin [Wed, 21 Dec 2022 19:49:38 +0000 (19:49 +0000)]
Merge pull request #23004 from erasta:patch-2

17 months agoMerge pull request #23013 from vrabaud:mertens_fix
Alexander Alekhin [Wed, 21 Dec 2022 19:45:58 +0000 (19:45 +0000)]
Merge pull request #23013 from vrabaud:mertens_fix

17 months agoFix self converTo.
Vincent Rabaud [Wed, 21 Dec 2022 17:28:26 +0000 (18:28 +0100)]
Fix self converTo.

We still need images[i] = img because it is used below in buildPyramid.

17 months agobuild: only disable win32 cuda warnings on CUDA SDK >= 11.2
cudawarped [Wed, 21 Dec 2022 15:09:41 +0000 (17:09 +0200)]
build: only disable win32 cuda warnings on CUDA SDK >= 11.2

17 months agoMerge pull request #23009 from asmorkalov:as/aruco_js_update2
Alexander Smorkalov [Wed, 21 Dec 2022 14:43:09 +0000 (17:43 +0300)]
Merge pull request #23009 from asmorkalov:as/aruco_js_update2

Update Javascript bindings for Aruco after migration

17 months agoMerge pull request #22959 from feuerste:parallel_mertens
Marco Feuerstein [Wed, 21 Dec 2022 14:10:59 +0000 (15:10 +0100)]
Merge pull request #22959 from feuerste:parallel_mertens

Parallelize implementation of HDR MergeMertens.

* Parallelize MergeMertens.

* Added performance tests for HDR.

* Ran clang-format.

* Optimizations.

* Fix data path for Windows.

* Remove compiiation warning on Windows.

* Remove clang-format for existing file.

* Addressing reviewer comments.

* Ensure correct summation order.

* Add test for determinism.

* Move result pyramid into sync struct.

* Reuse sync for first loop as well.

* Use OpenCV's threading primitives.

* Remove cout.

17 months agoMerge pull request #22999 from mshabunin:ffmpeg-valgrind-supp
Alexander Alekhin [Wed, 21 Dec 2022 14:08:35 +0000 (14:08 +0000)]
Merge pull request #22999 from mshabunin:ffmpeg-valgrind-supp

17 months agoMerge pull request #23005 from alalek:objdetect_cleanup_aruco_ptr_filestorage
Alexander Smorkalov [Wed, 21 Dec 2022 13:45:14 +0000 (16:45 +0300)]
Merge pull request #23005 from alalek:objdetect_cleanup_aruco_ptr_filestorage

aruco(cleanup): don't use Ptr<FileStorage>

17 months agoMerge pull request #20367 from augustinmanecy:features2d-rw
augustinmanecy [Wed, 21 Dec 2022 13:03:00 +0000 (14:03 +0100)]
Merge pull request #20367 from augustinmanecy:features2d-rw

**Merge with contrib**: https://github.com/opencv/opencv_contrib/pull/3003

### 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 other license that is incompatible with OpenCV
- [x] The PR is proposed to proper branch
- [ ] There is reference to original bug report and related work
- [x] 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

17 months agoMerge pull request #22967 from stopmosk:usac-maxiters-bugfix
Alexander Smorkalov [Wed, 21 Dec 2022 12:58:44 +0000 (15:58 +0300)]
Merge pull request #22967 from stopmosk:usac-maxiters-bugfix

Fix maxIter parameter in usac findEssentialMat

17 months agovalgrind: suppressed FFV1 16 bit issue in avcodec-57
Maksim Shabunin [Tue, 20 Dec 2022 22:33:05 +0000 (01:33 +0300)]
valgrind: suppressed FFV1 16 bit issue in avcodec-57

17 months agoUpdate Javascript bindings for Aruco after migration
Alexander Smorkalov [Wed, 21 Dec 2022 12:45:43 +0000 (15:45 +0300)]
Update Javascript bindings for Aruco after migration

17 months agoaruco(cleanup): don't use Ptr<FileStorage>
Alexander Alekhin [Wed, 21 Dec 2022 10:48:06 +0000 (10:48 +0000)]
aruco(cleanup): don't use Ptr<FileStorage>

17 months agoSourceForge folder update
Eran Geva [Wed, 21 Dec 2022 10:26:07 +0000 (12:26 +0200)]
SourceForge folder update

The folder `http://sourceforge.net/projects/opencvlibrary/files/opencv-win/` is stale and wasn't updated since 2018. The parent folder `http://sourceforge.net/projects/opencvlibrary/files/` has fresh windows install exe files.

17 months agoMerge pull request #23001 from alalek:videoio_init_vars
Alexander Smorkalov [Wed, 21 Dec 2022 06:56:55 +0000 (09:56 +0300)]
Merge pull request #23001 from alalek:videoio_init_vars

videoio(v4l): initialize variables

17 months agoFix hardcoded maxIters
Sergei Shutov [Thu, 15 Dec 2022 12:00:48 +0000 (14:00 +0200)]
Fix hardcoded maxIters

17 months agodnn: add the CANN backend (#22634)
Yuantao Feng [Wed, 21 Dec 2022 06:04:41 +0000 (14:04 +0800)]
dnn: add the CANN backend (#22634)

* cann backend impl v1

* cann backend impl v2: use opencv parsers to build models for cann

* adjust fc according to the new transA and transB

* put cann net in cann backend node and reuse forwardLayer

* use fork() to create a child process and compile cann model

* remove legacy code

* remove debug code

* fall bcak to CPU backend if there is one layer not supoorted by CANN backend

* fix netInput forward

17 months agovideoio(v4l): initialize variables
Alexander Alekhin [Wed, 21 Dec 2022 03:28:09 +0000 (03:28 +0000)]
videoio(v4l): initialize variables

17 months agoMerge pull request #22995 from alalek:dnn_fix_opencl_matmul
Alexander Alekhin [Tue, 20 Dec 2022 14:52:35 +0000 (14:52 +0000)]
Merge pull request #22995 from alalek:dnn_fix_opencl_matmul

17 months agoMerge pull request #22963 from cudawarped:replace_texture_ref_with_texture_obj
Alexander Smorkalov [Tue, 20 Dec 2022 12:07:10 +0000 (15:07 +0300)]
Merge pull request #22963 from cudawarped:replace_texture_ref_with_texture_obj

Replace all instances of CUDA texture references with texture objects

17 months agodnn: disable OpenCL code path in MatMul processing
Alexander Alekhin [Tue, 20 Dec 2022 09:46:48 +0000 (09:46 +0000)]
dnn: disable OpenCL code path in MatMul processing

- this mode is not supported by 22828

17 months agoMerge pull request #22994 from alalek:gapi_build_issues
Alexander Alekhin [Tue, 20 Dec 2022 09:42:16 +0000 (09:42 +0000)]
Merge pull request #22994 from alalek:gapi_build_issues

17 months agobuild: eliminate build warnings on Ubuntu 20.04/16.04
Alexander Alekhin [Tue, 20 Dec 2022 06:36:01 +0000 (06:36 +0000)]
build: eliminate build warnings on Ubuntu 20.04/16.04

17 months agodnn: fix gather layer implementation
Alexander Alekhin [Tue, 20 Dec 2022 06:09:34 +0000 (06:09 +0000)]
dnn: fix gather layer implementation

- support FP16 data

17 months agoMerge pull request #22981 from alalek:core_freeze_cache_dir_prefix_4.x
Alexander Alekhin [Mon, 19 Dec 2022 17:29:57 +0000 (17:29 +0000)]
Merge pull request #22981 from alalek:core_freeze_cache_dir_prefix_4.x

17 months agocv::cuda: Replace all instances of texture references/objects with texture objects...
cudawarped [Thu, 15 Dec 2022 06:55:31 +0000 (08:55 +0200)]
cv::cuda: Replace all instances of texture references/objects with texture objects using the existing updated cv::cudev::Texture class.
Fixes bugs in cv::cuda::demosaicing, cv::cuda::resize and cv::cuda::HoughSegmentDetector.

17 months agoMerge pull request #22988 from vrabaud:mm_pause_fix
Alexander Alekhin [Mon, 19 Dec 2022 17:06:50 +0000 (17:06 +0000)]
Merge pull request #22988 from vrabaud:mm_pause_fix

17 months agoEven faster CV_PAUSE on SkyLake and above.
Vincent Rabaud [Mon, 19 Dec 2022 13:15:34 +0000 (14:15 +0100)]
Even faster CV_PAUSE on SkyLake and above.

No need to loop as RDTSC is 3/4 times faster than _mm_pause.

17 months agoMerge pull request #22979 from alalek:fix_videio_test_limit_threads
Alexander Smorkalov [Mon, 19 Dec 2022 07:01:43 +0000 (10:01 +0300)]
Merge pull request #22979 from alalek:fix_videio_test_limit_threads

videoio(test): reduce number of test threads

17 months agoMerge pull request #22935 from alalek:gapi_error
Alexander Alekhin [Mon, 19 Dec 2022 06:05:15 +0000 (09:05 +0300)]
Merge pull request #22935 from alalek:gapi_error

G-API: replace GAPI_Assert() with 'false' and '0' to GAPI_Error()

* gapi: GAPI_Error() macro

* gapi: replace GAPI_Assert() with 'false' and '0' to GAPI_Error()

* build: eliminate 'unreachable code' after CV_Error() (MSVC 2015)

* build: eliminate 'unreachable code' warning for MSVS 2015/2017

- observed in constructors stubs with throwing exception

17 months agoMerge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sun, 18 Dec 2022 02:16:17 +0000 (02:16 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4

17 months agoMerge pull request #22980 from alalek:samples_python_3.11
Alexander Alekhin [Sun, 18 Dec 2022 02:07:46 +0000 (02:07 +0000)]
Merge pull request #22980 from alalek:samples_python_3.11

17 months agocore: freeze cache directory prefix - "4.x"
Alexander Alekhin [Sun, 18 Dec 2022 00:24:52 +0000 (00:24 +0000)]
core: freeze cache directory prefix - "4.x"

17 months agosamples: query for Python 3.11 setup
Alexander Alekhin [Sun, 18 Dec 2022 00:14:41 +0000 (00:14 +0000)]
samples: query for Python 3.11 setup

17 months agovideoio(test): reduce number of test threads
Alexander Alekhin [Sun, 18 Dec 2022 00:02:07 +0000 (00:02 +0000)]
videoio(test): reduce number of test threads

17 months agoMerge pull request #22934 from alalek:fix_filestorage_binding
Alexander Alekhin [Sat, 17 Dec 2022 03:28:13 +0000 (03:28 +0000)]
Merge pull request #22934 from alalek:fix_filestorage_binding

17 months agoMerge pull request #22880 from cudawarped:remember_cudacodec_lib_locations
Alexander Smorkalov [Fri, 16 Dec 2022 09:30:03 +0000 (12:30 +0300)]
Merge pull request #22880 from cudawarped:remember_cudacodec_lib_locations

Prevent cudacodec libs locations being reset when cmake is re-run

17 months agoMerge pull request #22368 from AleksandrPanov:move_contrib_aruco_to_main_objdetect
Alexander Panov [Fri, 16 Dec 2022 09:28:47 +0000 (12:28 +0300)]
Merge pull request #22368 from AleksandrPanov:move_contrib_aruco_to_main_objdetect

Megre together with https://github.com/opencv/opencv_contrib/pull/3325

1. Move aruco_detector, aruco_board, aruco_dictionary, aruco_utils to objdetect
1.1 add virtual Board::draw(), virtual ~Board()
1.2 move `testCharucoCornersCollinear` to Board classes (and rename to `checkCharucoCornersCollinear`)
1.3 add wrappers to keep the old api working
3. Reduce inludes
4. Fix java tests (add objdetect import)
5. Refactoring

### 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
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake

```
**WIP**
force_builders=linux,win64,docs,Linux x64 Debug,Custom
Xbuild_contrib:Docs=OFF

build_image:Custom=ubuntu:22.04
build_worker:Custom=linux-1
```

17 months agoMerge pull request #22936 from hzcyf:orbbec_new_cam_support
hzc [Fri, 16 Dec 2022 09:23:12 +0000 (17:23 +0800)]
Merge pull request #22936 from hzcyf:orbbec_new_cam_support

videoio: add Orbbec Gemini 2 and Astra 2 camera support

### Test Result

| OS | Compiler | Camera | Result |
|-----|-----------|---------|--------|
|Windows11| (VS2022)MSVC17.3|Orbbec Gemini 2|Pass|
|Windows11| (VS2022)MSVC17.3|Orbbec Astra 2|Pass|
|Ubuntu22.04|GCC9.2|Orbbec Gemini 2|Pass|
|Ubuntu22.04|GCC9.2|Orbbec Astra 2|Pass|

### Pull Request Readiness Checklist
- [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] The feature is well documented and sample code can be built with the project CMake

17 months agoMerge pull request #22966 from vrabaud:mm_pause_fix
Alexander Smorkalov [Fri, 16 Dec 2022 09:19:24 +0000 (12:19 +0300)]
Merge pull request #22966 from vrabaud:mm_pause_fix

Fix slower CV_PAUSE on SkyLake and above.

17 months agocompatibility: keep Ptr<FileStorage> stubs till OpenCV 5.0
Alexander Alekhin [Fri, 9 Dec 2022 21:05:17 +0000 (21:05 +0000)]
compatibility: keep Ptr<FileStorage> stubs till OpenCV 5.0

17 months agopython: resolve Ptr<FileStorage> requirement issue
Alexander Alekhin [Thu, 8 Dec 2022 23:37:39 +0000 (23:37 +0000)]
python: resolve Ptr<FileStorage> requirement issue

17 months agoMerge pull request #22907 from partheee:patch-1
Parthiban Marimuthu [Thu, 15 Dec 2022 21:52:08 +0000 (03:22 +0530)]
Merge pull request #22907 from partheee:patch-1

* Update windows_install.markdown

Fixing Issue - #22053 Inaccuracy in the tutorial for installation for Windows

* Update windows_install.markdown #22907

Changed all changes mentioned in the comments

* Update windows_install.markdown #22907

* fix whitespace, update configurations order (64-bit goes first)

- x86 is optional and not available by default in packages

17 months agoFix slower CV_PAUSE on SkyLake and above.
Vincent Rabaud [Thu, 15 Dec 2022 11:28:30 +0000 (12:28 +0100)]
Fix slower CV_PAUSE on SkyLake and above.

This is fixing https://github.com/opencv/opencv/issues/22852

17 months agoEnable cudacodec libs by default, prevent their locations being lost when cmake is...
cudawarped [Tue, 29 Nov 2022 06:25:26 +0000 (08:25 +0200)]
Enable cudacodec libs by default, prevent their locations being lost when cmake is re-run and add log info when the libs/headers cannot be found.

17 months agoMerge pull request #22828 from WanliZhong:improve_matmul
Alexander Smorkalov [Thu, 15 Dec 2022 10:36:22 +0000 (13:36 +0300)]
Merge pull request #22828 from WanliZhong:improve_matmul

DNN: make MatMul support 3D or 4D with broadcast

17 months agoMerge pull request #22919 from asmorkalov:as/gstreamer_read_timeout
Alexander Smorkalov [Thu, 15 Dec 2022 09:53:22 +0000 (12:53 +0300)]
Merge pull request #22919 from asmorkalov:as/gstreamer_read_timeout

Address https://github.com/opencv/opencv/issues/22868
Used the same defaults as it's done for FFmpeg

### 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

```
force_builders=Custom
build_image:Custom=gstreamer:16.04
buildworker:Custom=linux-1
```

17 months agoMerge pull request #22891 from AleksandrPanov:qr_add_alignment
Alexander Smorkalov [Thu, 15 Dec 2022 06:39:58 +0000 (09:39 +0300)]
Merge pull request #22891 from AleksandrPanov:qr_add_alignment

Use QR code alignment markers

18 months agomake MatMul support 3D or 4D with broadcast
zoom [Thu, 15 Dec 2022 02:36:08 +0000 (10:36 +0800)]
make MatMul support 3D or 4D with broadcast

18 months agoMerge pull request #22951 from zihaomu:update_nanotrack_comment
Alexander Alekhin [Wed, 14 Dec 2022 21:21:49 +0000 (21:21 +0000)]
Merge pull request #22951 from zihaomu:update_nanotrack_comment

18 months agoMerge pull request #22958 from asmorkalov:as/ffmpeg_missing_include
Alexander Alekhin [Wed, 14 Dec 2022 21:16:07 +0000 (21:16 +0000)]
Merge pull request #22958 from asmorkalov:as/ffmpeg_missing_include

18 months agoadd alignment detect
AleksandrPanov [Wed, 14 Dec 2022 20:56:57 +0000 (23:56 +0300)]
add alignment detect

18 months agoMerge pull request #22939 from stopmosk:21826-python-bindings-for-videocapturewaitany
Sergei Shutov [Wed, 14 Dec 2022 19:15:02 +0000 (21:15 +0200)]
Merge pull request #22939 from stopmosk:21826-python-bindings-for-videocapturewaitany

Add Python bindings for VideoCapture::waitAny #21826

### 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
- [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [x] The feature is well documented and sample code can be built with the project CMake

18 months agoMerge pull request #22675 from CSBVision:patch-2
Alexander Smorkalov [Wed, 14 Dec 2022 12:41:34 +0000 (15:41 +0300)]
Merge pull request #22675 from CSBVision:patch-2

Update OpenCVDetectCUDA.cmake

18 months agoFix missing FFmpeg include needed for av_get_pix_fmt_name
Alexander Smorkalov [Wed, 14 Dec 2022 10:09:37 +0000 (13:09 +0300)]
Fix missing FFmpeg include needed for av_get_pix_fmt_name

18 months agoMerge pull request #22954 from VadimLevin:dev/vlevin/fix-merge-artifacts-in-python...
Alexander Smorkalov [Wed, 14 Dec 2022 06:42:43 +0000 (09:42 +0300)]
Merge pull request #22954 from VadimLevin:dev/vlevin/fix-merge-artifacts-in-python-misc-tests

fix: remove function duplicates in test_misc.py

18 months agoadd nanotrack v2 at regression test.
zihaomu [Wed, 14 Dec 2022 06:41:49 +0000 (14:41 +0800)]
add nanotrack v2 at regression test.

18 months agoMerge pull request #22955 from VadimLevin:dev/vlevin/handle-properties-with-keyword...
Alexander Smorkalov [Wed, 14 Dec 2022 06:35:07 +0000 (09:35 +0300)]
Merge pull request #22955 from VadimLevin:dev/vlevin/handle-properties-with-keyword-names

fix: add _ suffix to properties having reserved keyword names

18 months agofix: add _ suffix to properties having reserved keyword names
Vadim Levin [Tue, 13 Dec 2022 17:24:57 +0000 (20:24 +0300)]
fix: add _ suffix to properties having reserved keyword names

18 months agoUpdate OpenCVDetectCUDA.cmake
CSBVision [Fri, 21 Oct 2022 07:22:25 +0000 (09:22 +0200)]
Update OpenCVDetectCUDA.cmake

Adds the option to enable delay loading of CUDA DLLs on Windows. This is particularly useful to use the same binary on systems with and without CUDA support without distributing the CUDA DLLs to systems that cannot use them at all due to missing CUDA-supported hardware.
Resolves #13509

18 months agofix: remove function duplicates in test_misc.py
Vadim Levin [Tue, 13 Dec 2022 16:14:52 +0000 (19:14 +0300)]
fix: remove function duplicates in test_misc.py

18 months agoMerge pull request #22924 from alalek:logger_strip_base_dir
Alexander Smorkalov [Tue, 13 Dec 2022 12:28:10 +0000 (15:28 +0300)]
Merge pull request #22924 from alalek:logger_strip_base_dir

core(logger): strip opencv's modules base path

18 months agoMerge pull request #22946 from VadimLevin:dev/vlevin/avfoundation-stable-multicamera...
Alexander Smorkalov [Tue, 13 Dec 2022 07:34:42 +0000 (10:34 +0300)]
Merge pull request #22946 from VadimLevin:dev/vlevin/avfoundation-stable-multicamera-index

fix: AVFoundation inconsistent camera indices

18 months agoMerge pull request #22928 from alalek:riscv_toolchains
Alexander Alekhin [Tue, 13 Dec 2022 06:32:16 +0000 (06:32 +0000)]
Merge pull request #22928 from alalek:riscv_toolchains

18 months agofix: AVFoundation inconsistent camera indices
Vadim Levin [Mon, 12 Dec 2022 07:41:39 +0000 (10:41 +0300)]
fix: AVFoundation inconsistent camera indices

18 months agoMerge pull request #22942 from alalek:videoio_test_update_hw_checks
Alexander Alekhin [Mon, 12 Dec 2022 12:38:14 +0000 (15:38 +0300)]
Merge pull request #22942 from alalek:videoio_test_update_hw_checks

* videoio(test): update PSNR check for H264/265

* videoio(test): reduce size for ffmpeg tests on 32-bit platforms

18 months agobuild(riscv): suppress massive -Wignored-attributes warnings
Alexander Alekhin [Sun, 11 Dec 2022 17:10:00 +0000 (17:10 +0000)]
build(riscv): suppress massive -Wignored-attributes warnings

18 months agoMerge pull request #22940 from alalek:build_warnings_msvc
Alexander Alekhin [Sat, 10 Dec 2022 14:42:13 +0000 (14:42 +0000)]
Merge pull request #22940 from alalek:build_warnings_msvc

18 months agobuild: fix/eliminate MSVC warnings
Alexander Alekhin [Sat, 10 Dec 2022 02:08:48 +0000 (02:08 +0000)]
build: fix/eliminate MSVC warnings

18 months agoMerge pull request #22937 from asmorkalov:as/issue_22893
Alexander Alekhin [Fri, 9 Dec 2022 17:11:51 +0000 (17:11 +0000)]
Merge pull request #22937 from asmorkalov:as/issue_22893

18 months agoInteger underflow fix for morphologyEx in Carotene (arm).
Alexander Smorkalov [Fri, 9 Dec 2022 12:06:08 +0000 (15:06 +0300)]
Integer underflow fix for morphologyEx in Carotene (arm).

18 months agocmake: fix RISC-V toolchains
Alexander Alekhin [Mon, 5 Dec 2022 09:11:11 +0000 (09:11 +0000)]
cmake: fix RISC-V toolchains

- RVV options are moved to configuration scripts instead of toolchains

18 months agoMerge pull request #22922 from alalek:fix_riscv_intrin_rvv
Alexander Alekhin [Thu, 8 Dec 2022 22:07:46 +0000 (22:07 +0000)]
Merge pull request #22922 from alalek:fix_riscv_intrin_rvv

18 months agoMerge pull request #22932 from alalek:cmake_drop_libjpeg_simd_warning
Alexander Alekhin [Thu, 8 Dec 2022 22:07:30 +0000 (22:07 +0000)]
Merge pull request #22932 from alalek:cmake_drop_libjpeg_simd_warning

18 months agoMerge pull request #22933 from alalek:fixup_22894
Alexander Alekhin [Thu, 8 Dec 2022 22:07:04 +0000 (22:07 +0000)]
Merge pull request #22933 from alalek:fixup_22894

18 months agocmake(3rdparty): drop simd warning in libjpeg-turbo
Alexander Alekhin [Thu, 8 Dec 2022 16:44:45 +0000 (16:44 +0000)]
cmake(3rdparty): drop simd warning in libjpeg-turbo

18 months agovideoio(test): test skip due to non-updated FFmpeg wrapper
Alexander Alekhin [Thu, 8 Dec 2022 17:18:29 +0000 (17:18 +0000)]
videoio(test): test skip due to non-updated FFmpeg wrapper