Alexander Alekhin [Fri, 10 Dec 2021 14:12:01 +0000 (14:12 +0000)]
Merge pull request #21222 from asenyaev:asen/replace_distutils_copy_tree
Gruhuang [Fri, 10 Dec 2021 11:44:27 +0000 (19:44 +0800)]
Merge pull request #21154 from pccvlab:MatMul_with_two_inputs
Add BatchMatMul layer support for tf_importer
* two inputs
* support batch_matmul
* refactor: remove useless code
* refactor: decrease nesting
Simon Wilson [Fri, 10 Dec 2021 11:36:14 +0000 (22:36 +1100)]
Merge pull request #21227 from sbwilson:fix_framework_unicode_headers
* fix unicode errors for framework headers
This would crash if the header file included non-ASCII characters. This change ensures that headers are read and written as UTF-8 encoded files instead of ascii.
* Adds spaces after commas
Alexander Alekhin [Fri, 10 Dec 2021 11:33:17 +0000 (11:33 +0000)]
Merge pull request #21194 from whalenpt:qt_opengl_build_fix
Sergey Ivanov [Fri, 10 Dec 2021 08:58:59 +0000 (11:58 +0300)]
Merge pull request #21230 from sivanov-work:gapi_win32_vpl_fix
G-API: Fix Win32 build: uint64_t ->size_t
* Fix Win32 build: uint64_t ->size_t
* Fix for MAC
Andrey Senyaev [Fri, 10 Dec 2021 08:46:27 +0000 (11:46 +0300)]
Replaced distutils to shutil when copying files in a tree
Patrick Whalen [Thu, 2 Dec 2021 19:10:30 +0000 (11:10 -0800)]
Fix broken build for Qt6 with options: WITH_QT=ON and WITH_OPENGL=ON
- QGLWidget changed to QOpenGLWidget in window_QT.h for Qt6 using
typedef OpenCVQtWidgetBase for handling Qt version
- Implement Qt6/OpenGL functionality in window_QT.cpp
- Swap QGLWidget:: function calls for OpenCVQtWidgetBase:: function calls
- QGLWidget::updateGL deprecated, swap to QOpenGLWidget::update for Qt6
- Add preprocessor definition to detect Qt6 -- HAVE_QT6
- Add OpenGLWidgets to qdeps list in highgui CMakeLists.txt
- find_package CMake command added for locating Qt module OpenGLWidgets
- Added check that Qt6::OpenGLWidgets component is found. Shut off Qt-openGL functionality if not found.
Alexander Alekhin [Wed, 8 Dec 2021 12:36:10 +0000 (12:36 +0000)]
Merge pull request #21218 from alalek:cmake_gapi_gstreamer_option
Alexander Alekhin [Wed, 8 Dec 2021 10:45:02 +0000 (10:45 +0000)]
cmake: option to disable GStreamer in G-API
- OPENCV_GAPI_GSTREAMER
Sergey Ivanov [Wed, 8 Dec 2021 07:09:33 +0000 (10:09 +0300)]
Merge pull request #21049 from sivanov-work:vpl_dx11_merge
G-API: oneVPL merge DX11 acceleration
* Merge DX11 initial
* Fold conditions row in MACRO in utils
* Inject DeviceSelector
* Turn on DeviceSelector in DX11
* Change sharedLock logic & Move FMT checking in FrameAdapter c-tor
* Move out NumSuggestFrame to configure params
* Drain file source fix
* Fix compilation
* Force zero initializetion of SharedLock
* Fix some compiler warnings
* Fix integer comparison warnings
* Fix integers in sample
* Integrate Demux
* Fix compilation
* Add predefined names for some CfgParam
* Trigger CI
* Fix MultithreadCtx bug, Add Dx11 GetBlobParam(), Get rif of ATL CComPtr
* Fix UT: remove unit test with deprecated video from opencv_extra
* Add creators for most usable CfgParam
* Eliminate some warnings
* Fix warning in GAPI_Assert
* Apply comments
* Add VPL wrapped header with MSVC pragma to get rid of global warning masking
Alexander Alekhin [Tue, 7 Dec 2021 12:11:39 +0000 (12:11 +0000)]
Merge pull request #21208 from rogday:argminmax_dnn
Alexander Alekhin [Tue, 7 Dec 2021 11:32:28 +0000 (11:32 +0000)]
Merge pull request #21212 from OrestChura:oc/fix_openvino_standalone_build
Alexander Alekhin [Tue, 7 Dec 2021 10:24:49 +0000 (10:24 +0000)]
Merge pull request #21205 from anna-khakimova:ak/fix_for_muldouble_gpu
Anna Khakimova [Mon, 6 Dec 2021 11:56:20 +0000 (14:56 +0300)]
GAPI GPU: fix for tests failure.
OrestChura [Tue, 7 Dec 2021 01:18:36 +0000 (04:18 +0300)]
Bring updates from openvino version of standalone files
Smirnov Egor [Mon, 6 Dec 2021 16:33:59 +0000 (19:33 +0300)]
add ArgMax and ArgMin layers
Anastasiya(Asya) Pronina [Mon, 6 Dec 2021 16:54:21 +0000 (19:54 +0300)]
Merge pull request #20709 from AsyaPronina:asyadev/integrate_gstreamer_source
Ported GStreamerSource to OpenCV
* Ported GStreamerSource to OpenCV
* Fixed CI failures
* Whitespaces
* Whitespaces + removed exception from destructors C4722
* Removed assert for Priv's getSS and descr_of
* Removed assert for pull
* Fixed last review comment
Co-authored-by: Pashchenkov Maxim <maxim.pashchenkov@intel.com>
Maksim Shabunin [Sun, 5 Dec 2021 12:49:36 +0000 (15:49 +0300)]
Merge pull request #21182 from mshabunin:split-cv2cpp
Split cv2.cpp
* split cv2.cpp: util, numpy
* split cv2.cpp: convert
* split cv2.cpp: highgui, more utils
* split cv2.cpp: fix numpy import
Tejas M R [Sun, 5 Dec 2021 12:47:44 +0000 (18:17 +0530)]
Merge pull request #21180 from tezz-io:4.x
Added CV_PROP_RW macro to keypoints
* Added CV_PROP_RW macro to keypoints
As outlined in the feature request in the issue https://github.com/opencv/opencv/issues/21171 : the keypoints field has been made parsable by the bindings.
* Added test for keypoints
Added test to check if the CV_PROP_RW macro added in the previous commit makes keypoints public and accessible through the python API.
Alexander Alekhin [Sat, 4 Dec 2021 22:12:18 +0000 (22:12 +0000)]
Merge pull request #21167 from alalek:dnn_test_reenable_ov_2021_4
MaximMilashchenko [Sat, 4 Dec 2021 10:37:10 +0000 (13:37 +0300)]
Merge pull request #21145 from MaximMilashchenko:AudioUpdate
Audio MSMF: added the ability to set sample per second
* Audio MSMF: added the ability to set sample per second
* changed the valid sampling rate check
* fixed docs
* add test
* fixed warning
* fixed error
* fixed error
Michael Davis [Fri, 3 Dec 2021 16:40:49 +0000 (08:40 -0800)]
Merge pull request #21147 from mjmdavis:4.x
* remove tickmarks on NSSlider
HAN Liutong [Fri, 3 Dec 2021 15:13:24 +0000 (23:13 +0800)]
Merge pull request #21012 from hanliutong:rvv_clang
Update RVV backend for using Clang.
* Update cmake file of clang.
* Modify the RVV optimization on DNN to adapt to clang.
* Modify intrin_rvv: Disable some existing types.
* Modify intrin_rvv: Reinterpret instead of load&cast.
* Modify intrin_rvv: Update load&store without cast.
* Modify intrin_rvv: Rename vfredsum to fredosum.
* Modify intrin_rvv: Rewrite Check all/any by using vpopc.
* Modify intrin_rvv: Use reinterpret instead of c-style casting.
* Remove all macros which is not used in v_reinterpret
* Rename vpopc to vcpop according to spec.
Alexander Alekhin [Tue, 30 Nov 2021 12:08:35 +0000 (12:08 +0000)]
dnn(test): re-enable tests which works with OpenVINO 2021.4.x
Alexander Alekhin [Fri, 3 Dec 2021 12:32:49 +0000 (12:32 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
Anna Khakimova [Fri, 3 Dec 2021 12:30:39 +0000 (15:30 +0300)]
Merge pull request #21177 from anna-khakimova:ak/simd_mulc
* GAPI Fluid: SIMD for MulC kernel.
* Changes for MulDouble kernel.
Sergey Ivanov [Fri, 3 Dec 2021 12:30:05 +0000 (15:30 +0300)]
Merge pull request #21041 from sivanov-work:gin_gout_concept
G-API: GAPI introduce compile guard for some types for gin/gout params passing
* Initial for taged solution
* Move out tags to gtags.hpp & add protection for own::Mat
* Add compile guard to proper place
* Fix MACRO concat
* Add unit tests
* Remove class MACRO injection due to Python3
* Revert back unproper changes
* Apply comments: reuse shape from traits
* Throw away unused gtags
* Apply comments
* Handle own::*
* Fix test
* Fix test(1)
* Fix unix build
* Try on type list
* Apply comments
* Apply comments
* Fix warning
Alexander Alekhin [Thu, 2 Dec 2021 17:16:35 +0000 (17:16 +0000)]
Merge pull request #21165 from utibenkei:fix_android_ndk_camera_order_of_u_and_v
Alexander Alekhin [Thu, 2 Dec 2021 17:14:48 +0000 (17:14 +0000)]
Merge pull request #21162 from rogday:softmax_simplification
Alexander Alekhin [Thu, 2 Dec 2021 17:13:56 +0000 (17:13 +0000)]
Merge pull request #21160 from rogday:elu_alpha
rogday [Thu, 2 Dec 2021 17:11:11 +0000 (20:11 +0300)]
Merge pull request #21159 from rogday:ceil_mode
fix ceil_mode for Average/MaxPooling
* fix ceil_mode
* add a comment
Alexander Alekhin [Thu, 2 Dec 2021 16:41:02 +0000 (16:41 +0000)]
Merge pull request #21174 from APrigarina:fix_qr_encoder
Alexander Alekhin [Thu, 2 Dec 2021 16:33:15 +0000 (16:33 +0000)]
Merge pull request #21173 from alalek:3.4_dnn_test_reenable_ov_2021_4
APrigarina [Thu, 2 Dec 2021 12:04:04 +0000 (15:04 +0300)]
qr encoder: fix memory and unused variables issues
Alexander Alekhin [Thu, 2 Dec 2021 13:50:04 +0000 (13:50 +0000)]
Merge pull request #21172 from alalek:dnn_test_drop_non_cpu_int8
Jong Sin Kim [Thu, 2 Dec 2021 13:48:11 +0000 (22:48 +0900)]
Merge pull request #21170 from JJJoonngg:4.x
Check buffer size when frameWidth * frameHeight bigger than allocated buffer size
Alexander Alekhin [Tue, 30 Nov 2021 12:08:35 +0000 (12:08 +0000)]
dnn(test): re-enable tests which works with OpenVINO 2021.4.x (3.4)
Alexander Alekhin [Thu, 2 Dec 2021 05:52:12 +0000 (05:52 +0000)]
dnn(test): drop non OCV/CPU cases for Int8
- zero code coverage and up to x3-x8 tests slowdown
- implementation executes OCV/CPU in all cases
- wrong skip conditions
Alexander Alekhin [Wed, 1 Dec 2021 22:49:02 +0000 (22:49 +0000)]
Merge pull request #21164 from rogday:sum_identity
Alexander Alekhin [Wed, 1 Dec 2021 22:47:57 +0000 (22:47 +0000)]
Merge pull request #21163 from rogday:transpose_default
Anna Khakimova [Wed, 1 Dec 2021 21:58:30 +0000 (00:58 +0300)]
Merge pull request #21158 from anna-khakimova:ak/simd_subC
* GAPI Fluid: SIMD for SubC kernel.
* Applied comments
Alexander Alekhin [Wed, 1 Dec 2021 12:49:28 +0000 (12:49 +0000)]
Merge pull request #21153 from alalek:build_warnings_msvs2017
Vincent Rabaud [Wed, 1 Dec 2021 12:46:03 +0000 (13:46 +0100)]
Merge pull request #21112 from vrabaud:3.4_luv_overflow
* Fix integer overflow in cv::Luv2RGBinteger::process.
For LL=49, uu=205, vv=23, we end up with x=7373056 and y=458
which overflows y*x.
* imgproc(test): adjust test parameters to cover SIMD code
Smirnov Egor [Tue, 30 Nov 2021 12:42:20 +0000 (15:42 +0300)]
add sum of 1 input
Smirnov Egor [Tue, 30 Nov 2021 12:34:34 +0000 (15:34 +0300)]
add default order to transpose
Smirnov Egor [Tue, 30 Nov 2021 12:20:52 +0000 (15:20 +0300)]
add new (Log)SoftMax simplification passes
Smirnov Egor [Tue, 30 Nov 2021 09:20:35 +0000 (12:20 +0300)]
add alpha parameter to ELU layer
Alexander Alekhin [Tue, 30 Nov 2021 04:27:39 +0000 (04:27 +0000)]
build: eliminate C4309 warning from protobuf files with MSVS2017
Alexander Alekhin [Mon, 29 Nov 2021 22:39:27 +0000 (22:39 +0000)]
Merge pull request #21152 from rogday:fix_defaults
Alexander Alekhin [Mon, 29 Nov 2021 21:44:59 +0000 (21:44 +0000)]
Merge pull request #21142 from alalek:dnn_two_inputs_ocl_fp16_3.4
Andrew Ryrie [Mon, 29 Nov 2021 21:43:00 +0000 (21:43 +0000)]
Merge pull request #20658 from smbz:lstm_optimisation
* dnn: LSTM optimisation
This uses the AVX-optimised fastGEMM1T for matrix multiplications where available, instead of the standard cv::gemm.
fastGEMM1T is already used by the fully-connected layer. This commit involves two minor modifications:
- Use unaligned access. I don't believe this involves any performance hit in on modern CPUs (Nehalem and Bulldozer onwards) in the case where the address is actually aligned.
- Allow for weight matrices where the number of columns is not a multiple of 8.
I have not enabled AVX-512 as I don't have an AVX-512 CPU to test on.
* Fix warning about initialisation order
* Remove C++11 syntax
* Fix build when AVX(2) is not available
In this case the CV_TRY_X macros are defined to 0, rather than being undefined.
* Minor changes as requested:
- Don't check hardware support for AVX(2) when dispatch is disabled for these
- Add braces
* Fix out-of-bounds access in fully connected layer
The old tail handling in fastGEMM1T implicitly rounded vecsize up to the next multiple of 8, and the fully connected layer implements padding up to the next multiple of 8 to cope with this. The new tail handling does not round the vecsize upwards like this but it does require that the vecsize is at least 8. To adapt to the new tail handling, the fully connected layer now rounds vecsize itself at the same time as adding the padding(which makes more sense anyway).
This also means that the fully connected layer always passes a vecsize of at least 8 to fastGEMM1T, which fixes the out-of-bounds access problems.
* Improve tail mask handling
- Use static array for generating tail masks (as requested)
- Apply tail mask to the weights as well as the input vectors to prevent spurious propagation of NaNs/Infs
* Revert whitespace change
* Improve readability of conditions for using AVX
* dnn(lstm): minor coding style changes, replaced left aligned load
Smirnov Egor [Mon, 29 Nov 2021 16:56:23 +0000 (19:56 +0300)]
fix Clip, LeakyReLU, LRN, Split defaults
utibenkei [Mon, 29 Nov 2021 13:43:29 +0000 (22:43 +0900)]
fix_android_ndk_camera_order_of_u_and_v
Anna Khakimova [Mon, 29 Nov 2021 11:20:53 +0000 (14:20 +0300)]
Merge pull request #21119 from anna-khakimova:ak/simd_addc
* GAPI Fluid: SIMD for AddC kernel
* Final version
* Applied comments.
rogday [Sun, 28 Nov 2021 16:17:46 +0000 (19:17 +0300)]
Merge pull request #20733 from rogday:argmaxnd
Implement ArgMax and ArgMin
* add reduceArgMax and reduceArgMin
* fix review comments
* address review concerns
Suleyman TURKMEN [Sun, 28 Nov 2021 12:56:28 +0000 (15:56 +0300)]
Merge pull request #20957 from sturkmen72:update-documentation
Update documentation
* Update DNN-based Face Detection And Recognition tutorial
* samples(dnn/face): update face_detect.cpp
* final changes
Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
Supernovae [Sun, 28 Nov 2021 12:54:29 +0000 (18:24 +0530)]
Merge pull request #20933 from shubham-shahh:master
Improved overall readability of the code
* grid_nms.cu: minor fix-ups
* Update grid_stride_range.hpp
* Update tf_importer.cpp
Alexander Alekhin [Sun, 28 Nov 2021 04:29:54 +0000 (04:29 +0000)]
dnn(DataLayer): fix CPU/OpenCL code paths for FP16 handling
Alexander Alekhin [Sat, 27 Nov 2021 02:51:57 +0000 (02:51 +0000)]
dnn(test): add two_inputs test with FP32/U8 data types
- remove similar test from IE scope under HAVE_INF_ENGINE
Alexander Alekhin [Sat, 27 Nov 2021 19:27:59 +0000 (19:27 +0000)]
Merge pull request #21126 from alalek:dnn_test_ie_update_4.x
yuki takehara [Sat, 27 Nov 2021 18:34:52 +0000 (03:34 +0900)]
Merge pull request #21107 from take1014:remove_assert_21038
resolves #21038
* remove C assert
* revert C header
* fix several points in review
* fix test_ds.cpp
Alexander Alekhin [Thu, 25 Nov 2021 19:56:27 +0000 (19:56 +0000)]
dnn(test): update InferenceEngine tests (4.x)
Alexander Alekhin [Sat, 27 Nov 2021 13:17:44 +0000 (13:17 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Sat, 27 Nov 2021 12:59:45 +0000 (12:59 +0000)]
Merge pull request #21134 from alalek:gapi_fix_build_ie_msvs2015
Alexander Alekhin [Fri, 26 Nov 2021 20:35:58 +0000 (20:35 +0000)]
Merge pull request #21133 from alalek:dnn_test_ie_update_3.4
Alexander Alekhin [Fri, 26 Nov 2021 19:34:52 +0000 (19:34 +0000)]
gapi: fix build with MSVS2015 (with IE)
Alexander Alekhin [Thu, 25 Nov 2021 19:56:27 +0000 (19:56 +0000)]
dnn(test): update InferenceEngine tests
Alexander Alekhin [Fri, 26 Nov 2021 18:32:54 +0000 (18:32 +0000)]
Merge pull request #21131 from cclauss:codespell
Alexander Alekhin [Fri, 26 Nov 2021 18:31:31 +0000 (18:31 +0000)]
Merge pull request #21130 from cclauss:print-function
Christian Clauss [Fri, 26 Nov 2021 18:18:48 +0000 (19:18 +0100)]
Merge pull request #21121 from cclauss:patch-2
* GitHub Action to lint Python code
* Move from automatic events to manual ones
* flake8: Do not look for undefined names
Orest Chura [Fri, 26 Nov 2021 16:42:12 +0000 (19:42 +0300)]
Merge pull request #21103 from OrestChura:oc/fix_1D_Mat_RMat_View_issue
[G-API] Fix issue of getting 1D Mat out of RMat::View
* Fix issue of getting 1D Mat out of RMat::View
- added test
- fixed for standalone too (removed Assert(dims.empty()))
* Fixed asVeiw() function for standalone
* Put more detailed comment
Orest Chura [Fri, 26 Nov 2021 16:40:36 +0000 (19:40 +0300)]
Merge pull request #21083 from OrestChura:oc/fix_coverity_vino_issues
[G-API] Fixed Coverity issues
* Fixed Coverity issues
- VectorRef&OpaqueRef m_kind = CV_UNKNOWN
- added same-type overload for saturate()
- sanitized resize value in ByteMemoryInStream::operator>> (std::string& str)
- handled throws from ~GStreamingExecutor()
* Catching exception by const ref
* Addressing Sergey's comments
* Applied enable_if semanitcs to saturate(x, round) too
* Removed uncaught_exception, made destructor noexcept back
* Split Fluid ConvertTo to multiple functions to avoid ifs; added CV_ALWAYS_INLINE
* Added FIXME to address throwings from stop()
* Fix standalone
* Addressing comments
* Guarded SIMD optimizations properly
* Removed excess parameter from simd_impl functions
Maxim Pashchenkov [Fri, 26 Nov 2021 11:31:15 +0000 (14:31 +0300)]
Merge pull request #21106 from mpashchenkov:mp/ocv-gapi-clean-samples
G-API: Cleaning samples
* parseSSD + removed render details from gcpukernel
* self-rev
* Applying comment
* Added operators
* warnings
Christian Clauss [Fri, 26 Nov 2021 11:29:56 +0000 (12:29 +0100)]
Fix typos discovered by codespell
Alexander Alekhin [Fri, 26 Nov 2021 11:11:58 +0000 (11:11 +0000)]
Merge pull request #21128 from cclauss:patch-3
Christian Clauss [Fri, 26 Nov 2021 10:57:54 +0000 (11:57 +0100)]
Use print() function in both Python 2 and Python 3
Christian Clauss [Fri, 26 Nov 2021 10:07:14 +0000 (11:07 +0100)]
CMakeLists.txt: Fix typo discovered by codespell
https://pypi.org/project/codespell/
Alexander Alekhin [Thu, 25 Nov 2021 18:06:33 +0000 (18:06 +0000)]
Merge pull request #21123 from cclauss:patch-3
Christian Clauss [Thu, 25 Nov 2021 11:44:21 +0000 (12:44 +0100)]
Use ==/!= to compare constant literals (str, bytes, int, float, tuple)
Avoid `SyntaxWarning` on Python >= 3.8
```
>>> "convolutional" == "convolutional"
True
>>> "convolutional" is "convolutional"
<stdin>:1: SyntaxWarning: "is" with a literal. Did you mean "=="?
True
```
Related to #21121
Alexander Alekhin [Wed, 24 Nov 2021 20:10:37 +0000 (20:10 +0000)]
Merge pull request #21108 from ShuangLiu1992:patch-1
Alexander Alekhin [Wed, 24 Nov 2021 20:08:27 +0000 (20:08 +0000)]
Merge pull request #21110 from alalek:update_libjpeg-turbo
Alexander Alekhin [Wed, 24 Nov 2021 03:43:55 +0000 (03:43 +0000)]
3rdparty: libjpeg-turbo 2.1.0 => 2.1.2
https://github.com/libjpeg-turbo/libjpeg-turbo/releases/tag/2.1.2
cudawarped [Tue, 23 Nov 2021 21:18:55 +0000 (21:18 +0000)]
Merge pull request #20978 from cudawarped:videocapture_read_raw_enchancement
Add capacity to Videocapture to return the extraData from FFmpeg when required
* Update rawMode to append any extra data recieved during the initial negotiation of an RTSP stream or during the parsing of an MPEG4 file header.
For h264[5] RTSP streams this ensures the parameter sets if available are always returned on the first call to grab()/read() and has two purposes:
1) To ensure the parameter sets are available even if they are not transmitted in band. This is common for axis ip camera's.
2) To allow callers of VideoCapture::grab()[read()] to write to split the raw stream over multiple files by appending the parameter sets to the begining of any new files.
For (1) there is no alternative, for (2) if the parameter sets were provided in band it would be possible to parse the raw bit stream and search for the parameter sets however that would be a lot of work when that information is already provided by FFMPEG.
For MPEG4 files this information is only suplied in the header and is required for decoding.
Two properties are also required to enable the raw encoded bitstream to be written to multiple files, these are;
1) an indicator as to whether the last frame was a key frame or not - each new file needs to start at a key frame to avoid storing unusable frame diffs,
2) the length in bytes of the paramater sets contained in the last frame - required to split the paramater sets from the frame without having to parse the stream. Any call to VideoCapture::get(CAP_PROP_LF_PARAM_SET_LEN) returning a number greater than zero indicates the presense of a parameter set at the begining of the raw bitstream.
* Adjust test data to account for extraData
* Address warning.
* Change added property names and remove paramater set start code check.
* Output extra data on calls to retrieve instead of appending to the first packet.
* Reverted old test case and added new one to evaluate new functionality.
* Add missing definition.
* Remove flag from legacy api.
Add property to determine if returning extra data is supported.
Always allow extra data to be returned on calls to cap.retrieve()
Update test case.
* Update condition which indicates CAP_PROP_CODEC_EXTRADATA_INDEX is not supported in test case.
* Include compatibility for windows dll if not updated.
Enforce existing return status convention.
* Fix return error and missing test constraints.
Hanxi Guo [Tue, 23 Nov 2021 21:15:31 +0000 (05:15 +0800)]
Merge pull request #20406 from MarkGHX:gsoc_2021_webnn
[GSoC] OpenCV.js: Accelerate OpenCV.js DNN via WebNN
* Add WebNN backend for OpenCV DNN Module
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
Add WebNN head files into OpenCV 3rd partiy files
Create webnn.hpp
update cmake
Complete README and add OpenCVDetectWebNN.cmake file
add webnn.cpp
Modify webnn.cpp
Can successfully compile the codes for creating a MLContext
Update webnn.cpp
Update README.md
Update README.md
Update README.md
Update README.md
Update cmake files and
update README.md
Update OpenCVDetectWebNN.cmake and README.md
Update OpenCVDetectWebNN.cmake
Fix OpenCVDetectWebNN.cmake and update README.md
Add source webnn_cpp.cpp and libary libwebnn_proc.so
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
update dnn.cpp
update op_webnn
update op_webnn
Update op_webnn.hpp
update op_webnn.cpp & hpp
Update op_webnn.hpp
Update op_webnn
update the skeleton
Update op_webnn.cpp
Update op_webnn
Update op_webnn.cpp
Update op_webnn.cpp
Update op_webnn.hpp
update op_webnn
update op_webnn
Solved the problems of released variables.
Fixed the bugs in op_webnn.cpp
Implement op_webnn
Implement Relu by WebNN API
Update dnn.cpp for better test
Update elementwise_layers.cpp
Implement ReLU6
Update elementwise_layers.cpp
Implement SoftMax using WebNN API
Implement Reshape by WebNN API
Implement PermuteLayer by WebNN API
Implement PoolingLayer using WebNN API
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Implement poolingLayer by WebNN API and add more detailed logs
Update dnn.cpp
Update dnn.cpp
Remove redundant codes and add more logs for poolingLayer
Add more logs in the pooling layer implementation
Fix the indent issue and resolve the compiling issue
Fix the build problems
Fix the build issue
FIx the build issue
Update dnn.cpp
Update dnn.cpp
* Fix the build issue
* Implement BatchNorm Layer by WebNN API
* Update convolution_layer.cpp
This is a temporary file for Conv2d layer implementation
* Integrate some general functions into op_webnn.cpp&hpp
* Update const_layer.cpp
* Update convolution_layer.cpp
Still have some bugs that should be fixed.
* Update conv2d layer and fc layer
still have some problems to be fixed.
* update constLayer, conv layer, fc layer
There are still some bugs to be fixed.
* Fix the build issue
* Update concat_layer.cpp
Still have some bugs to be fixed.
* Update conv2d layer, fully connected layer and const layer
* Update convolution_layer.cpp
* Add OpenCV.js DNN module WebNN Backend (both using webnn-polyfill and electron)
* Delete bib19450.aux
* Add WebNN backend for OpenCV DNN Module
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
Add WebNN head files into OpenCV 3rd partiy files
Create webnn.hpp
update cmake
Complete README and add OpenCVDetectWebNN.cmake file
add webnn.cpp
Modify webnn.cpp
Can successfully compile the codes for creating a MLContext
Update webnn.cpp
Update README.md
Update README.md
Update README.md
Update README.md
Update cmake files and
update README.md
Update OpenCVDetectWebNN.cmake and README.md
Update OpenCVDetectWebNN.cmake
Fix OpenCVDetectWebNN.cmake and update README.md
Add source webnn_cpp.cpp and libary libwebnn_proc.so
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
Update dnn.cpp
update dnn.cpp
update op_webnn
update op_webnn
Update op_webnn.hpp
update op_webnn.cpp & hpp
Update op_webnn.hpp
Update op_webnn
update the skeleton
Update op_webnn.cpp
Update op_webnn
Update op_webnn.cpp
Update op_webnn.cpp
Update op_webnn.hpp
update op_webnn
update op_webnn
Solved the problems of released variables.
Fixed the bugs in op_webnn.cpp
Implement op_webnn
Implement Relu by WebNN API
Update dnn.cpp for better test
Update elementwise_layers.cpp
Implement ReLU6
Update elementwise_layers.cpp
Implement SoftMax using WebNN API
Implement Reshape by WebNN API
Implement PermuteLayer by WebNN API
Implement PoolingLayer using WebNN API
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Update pooling_layer.cpp
Implement poolingLayer by WebNN API and add more detailed logs
Update dnn.cpp
Update dnn.cpp
Remove redundant codes and add more logs for poolingLayer
Add more logs in the pooling layer implementation
Fix the indent issue and resolve the compiling issue
Fix the build problems
Fix the build issue
FIx the build issue
Update dnn.cpp
Update dnn.cpp
* Fix the build issue
* Implement BatchNorm Layer by WebNN API
* Update convolution_layer.cpp
This is a temporary file for Conv2d layer implementation
* Integrate some general functions into op_webnn.cpp&hpp
* Update const_layer.cpp
* Update convolution_layer.cpp
Still have some bugs that should be fixed.
* Update conv2d layer and fc layer
still have some problems to be fixed.
* update constLayer, conv layer, fc layer
There are still some bugs to be fixed.
* Update conv2d layer, fully connected layer and const layer
* Update convolution_layer.cpp
* Add OpenCV.js DNN module WebNN Backend (both using webnn-polyfill and electron)
* Update dnn.cpp
* Fix Error in dnn.cpp
* Resolve duplication in conditions in convolution_layer.cpp
* Fixed the issues in the comments
* Fix building issue
* Update tutorial
* Fixed comments
* Address the comments
* Update CMakeLists.txt
* Offer more accurate perf test on native
* Add better perf tests for both native and web
* Modify per tests for better results
* Use more latest version of Electron
* Support latest WebNN Clamp op
* Add definition of HAVE_WEBNN macro
* Support group convolution
* Implement Scale_layer using WebNN
* Add Softmax option for native classification example
* Fix comments
* Fix comments
Alexander Alekhin [Tue, 23 Nov 2021 19:57:38 +0000 (19:57 +0000)]
Merge pull request #21032 from alalek:js_tracker_mil
ShuangLiu1992 [Tue, 23 Nov 2021 15:03:18 +0000 (15:03 +0000)]
Update cap_android_camera.cpp
since u and v Pixel ptr have been swapped the compare condition should be updated too
Alexander Alekhin [Mon, 22 Nov 2021 22:44:31 +0000 (22:44 +0000)]
Merge pull request #21092 from alalek:core_logger_show_timestamp
Ruan [Mon, 22 Nov 2021 18:52:08 +0000 (02:52 +0800)]
Merge pull request #21094 from Ryyyc:patch-2
* Update how_to_use_OpenCV_parallel_for_new.markdown
Fix an incorrect jump link in the tutorial how_to_use_OpenCV_parallel_for_new.
* Update how_to_use_OpenCV_parallel_for_new.markdown
Update the URL of the tutorial code.
Sergey Ivanov [Mon, 22 Nov 2021 11:53:38 +0000 (14:53 +0300)]
Merge pull request #21022 from sivanov-work:async_mfp_demux
G-API: oneVPL Implement asynchronous MFP demux data provider
* Add dummy dmux
* Initial commit for draft versionn
* Demux for low res file works
* Add media source resolver to work over incorrect MIME
* Add MFP Demux logger
* stash changes
* Extend IDataProvider with CodecId, Add troubleshooting info
* Add IDapaProvider dispatcher
* Add ComPtrGuard wrappers
* Add new unit test scope for MFP demux & Add minor changes
* Enhance UTs
* Remove ATL header
* Remove ATL another one
* Fix build
* Add static for some methods
* Initial commit
* Add async demuxing
* Apply tdd idea
* Intro IDataProvider changes: +fetch_bitstream, -fetch_data
* Fix UTs
* Remove IDataProvider::CodecId & Fix EOF hang
* Remove sync demux
* Remove mfp async dependencies
* Remove VPL dependencies from IDataProvider declaration
* Apply comments
* Fix compilation
* Suppress unused warning
* Apply some comments
* Apply some comments
* Apply comments
Alexander Alekhin [Sat, 20 Nov 2021 15:34:23 +0000 (15:34 +0000)]
core(logger): dump timestamp information with message
Alexander Alekhin [Sat, 20 Nov 2021 04:42:58 +0000 (04:42 +0000)]
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
Alexander Alekhin [Fri, 19 Nov 2021 20:28:25 +0000 (20:28 +0000)]
Merge pull request #21063 from vrabaud:3.4_h_clamping
zcx [Fri, 19 Nov 2021 15:57:07 +0000 (23:57 +0800)]
Merge pull request #20987 from zcx-xxx:master
* Update drawing.cpp
optimize FillEdgeCollection function
* Update drawing.cpp
optimize FillEdgeCollection,remove sort_flag
Vincent Rabaud [Mon, 15 Nov 2021 12:09:02 +0000 (13:09 +0100)]
Fix H clamping for very small negative values.
In case of very small negative h (e.g. -1e-40), with the current implementation,
you will go through the first condition and end up with h = 6.f, and will miss
the second condition.
Alexander Alekhin [Thu, 18 Nov 2021 22:48:40 +0000 (22:48 +0000)]
Merge pull request #21067 from NickJackolson:nickjackolson/imread-warning
nickjackolson [Wed, 17 Nov 2021 20:56:55 +0000 (21:56 +0100)]
add !empty assertion in seamlessClone()
issue #20617 addresses lack of warnings on
seamlessClone() function when src is None.
This commit adds source check using CV_Assert
therefore debugging would be easier.
Signed-off-by: nickjackolson <metedurlu@gmail.com>
nickjackolson [Sun, 14 Nov 2021 19:43:50 +0000 (20:43 +0100)]
Add warning message to imread()
Add a warning message using CV_LOG__WARNING().
This way api behaviour is preserved. Outputs are
the same but user gets an extra warning in case
fopen() fails to access image file for some reason.
This would help new users and also debugging
complex apps which use imread()
Signed-off-by: nickjackolson <metedurlu@gmail.com>
Alexander Alekhin [Thu, 18 Nov 2021 18:34:44 +0000 (18:34 +0000)]
Merge pull request #21077 from alalek:js_test_pin_cli_table
Alexander Alekhin [Thu, 18 Nov 2021 18:22:59 +0000 (18:22 +0000)]
Merge pull request #21081 from alalek:issue_17261
Alexander Alekhin [Thu, 18 Nov 2021 16:02:59 +0000 (16:02 +0000)]
core: avoid using of 'check' identifier