platform/upstream/opencv.git
4 years agoMerge pull request #17567 from dev-tronifier:new_branch
Alexander Alekhin [Sat, 27 Jun 2020 20:08:36 +0000 (20:08 +0000)]
Merge pull request #17567 from dev-tronifier:new_branch

4 years agoMerge pull request #17642 from pemmanuelviel:pev--fixes-and-clean
pemmanuelviel [Fri, 26 Jun 2020 22:34:52 +0000 (00:34 +0200)]
Merge pull request #17642 from pemmanuelviel:pev--fixes-and-clean

* Clean: make the use of the indices array length consistent

Either we don't want this method to be used in the future for any other node
than the root node, and so we replace indices_length by size_ and remove it as
argument, or we want to be able to use it potentially for other nodes, and
so using size_ instead of indices_length would have lead to a bug.

* Fix: b was not an address

* Fix: transpose the Flann repo commit "Fixes in accum_dist methods" from Adil Ibragimov

Avoids trying to compute log(ratio) with ratio = 0

* Fix: transpose the Flann repo commit "result_set bugfix" from Jack Rae

* Fix Jack Rae commit as the initial i - 1 index was decremented before entering the loop body

* Clean: transpose the Flann repo commit "Updated comments in lsh_index" from Richard McPherson

* Fix: Transpose the Flann repo commit "Fixing unreachable code in lsh_table.h" from hypevr

* Fix warning the same way it was done in flann standalone repo

* Change the return value in case of unsupported type

4 years agoIncreased portability of CV_Func
dev-tronifier [Wed, 17 Jun 2020 06:30:18 +0000 (12:00 +0530)]
Increased portability of CV_Func

4 years agoMerge pull request #17638 from pemmanuelviel:pev--avoid-branching-in-loop
Alexander Alekhin [Fri, 26 Jun 2020 19:22:20 +0000 (19:22 +0000)]
Merge pull request #17638 from pemmanuelviel:pev--avoid-branching-in-loop

4 years agoMerge pull request #17663 from alalek:backport_17658
Alexander Alekhin [Fri, 26 Jun 2020 17:41:53 +0000 (17:41 +0000)]
Merge pull request #17663 from alalek:backport_17658

4 years agoMerge pull request #17618 from Yosshi999:gsoc_sift-better-test
Yosshi999 [Thu, 25 Jun 2020 11:34:31 +0000 (20:34 +0900)]
Merge pull request #17618 from Yosshi999:gsoc_sift-better-test

Added/Fixed testcases for SIFT

* merge perf_sift into conventional perf tests

* Fix disabled SIFT scale invariance tests

allows trainIdx duplication in matching scaled keypoints

4 years agoConditional compilation for IR v7 support
Ilya Lavrenov [Wed, 24 Jun 2020 20:58:18 +0000 (23:58 +0300)]
Conditional compilation for IR v7 support

backported commit 86905754e482fb265731840dcf9b36e6a2675c0d

4 years agoMerge pull request #17641 from pemmanuelviel:pev--fix-middleSplit-for-kdtree-single
Alexander Alekhin [Thu, 25 Jun 2020 09:12:40 +0000 (09:12 +0000)]
Merge pull request #17641 from pemmanuelviel:pev--fix-middleSplit-for-kdtree-single

4 years agoMerge pull request #17650 from alalek:update_libjpeg-turbo
Alexander Alekhin [Wed, 24 Jun 2020 10:57:37 +0000 (10:57 +0000)]
Merge pull request #17650 from alalek:update_libjpeg-turbo

4 years agoMerge pull request #17648 from alalek:update_libjpeg
Alexander Alekhin [Wed, 24 Jun 2020 10:57:07 +0000 (10:57 +0000)]
Merge pull request #17648 from alalek:update_libjpeg

4 years ago3rdparty: libjpeg-turbo 2.0.4 => 2.0.5
Alexander Alekhin [Wed, 24 Jun 2020 06:28:16 +0000 (06:28 +0000)]
3rdparty: libjpeg-turbo 2.0.4 => 2.0.5

https://github.com/libjpeg-turbo/libjpeg-turbo/releases/tag/2.0.5

4 years ago3rdparty: libjpeg 9d
Alexander Alekhin [Tue, 23 Jun 2020 20:35:56 +0000 (20:35 +0000)]
3rdparty: libjpeg 9d

http://www.ijg.org/files/jpegsrc.v9d.tar.gz

4 years agoMerge pull request #17624 from dkurt:dnn_optimize_mish
Alexander Alekhin [Tue, 23 Jun 2020 18:43:50 +0000 (18:43 +0000)]
Merge pull request #17624 from dkurt:dnn_optimize_mish

4 years agoMerge pull request #17633 from alalek:backport_17616
Alexander Alekhin [Tue, 23 Jun 2020 18:29:55 +0000 (18:29 +0000)]
Merge pull request #17633 from alalek:backport_17616

4 years agoFix: error in the dimension used for computeMinMax
Pierre-Emmanuel Viel [Sat, 16 May 2020 18:13:00 +0000 (20:13 +0200)]
Fix: error in the dimension used for computeMinMax

Instead of using the current dimension for which we just got a big span,
we were computing Min and Max for the previous dimension stored in cutfeat
(and using 0 instead of the dimension indice for the very first dimension
with "span > (1-eps)max_span")

4 years agoOptim: test that could be done once has been extracted from the loop
Pierre-Emmanuel Viel [Sat, 16 May 2020 22:06:47 +0000 (00:06 +0200)]
Optim: test that could be done once has been extracted from the loop

4 years agoConditional compilation for network reader
Ilya Lavrenov [Mon, 22 Jun 2020 08:45:56 +0000 (11:45 +0300)]
Conditional compilation for network reader

origibal commit: 63e92cccf2c38c3c7a041d7968063a9a2445d40c

4 years agoMerge pull request #17622 from dkurt:dnn_ie_cpu_ext_update
Alexander Alekhin [Tue, 23 Jun 2020 11:01:47 +0000 (11:01 +0000)]
Merge pull request #17622 from dkurt:dnn_ie_cpu_ext_update

4 years agoRemove deprecated Inference Engine CPU extensions
Dmitry Kurtaev [Mon, 22 Jun 2020 18:35:52 +0000 (21:35 +0300)]
Remove deprecated Inference Engine CPU extensions

4 years agoOptimize Mish for CPU backend
Dmitry Kurtaev [Mon, 22 Jun 2020 20:22:21 +0000 (23:22 +0300)]
Optimize Mish for CPU backend

4 years agoMerge pull request #17592 from l-bat:disable_nms_in_yolo_layer
Alexander Alekhin [Mon, 22 Jun 2020 10:31:33 +0000 (10:31 +0000)]
Merge pull request #17592 from l-bat:disable_nms_in_yolo_layer

4 years agoMerge pull request #17599 from tomoaki0705:fixCUDAFailSafePath
Alexander Alekhin [Sun, 21 Jun 2020 17:49:14 +0000 (17:49 +0000)]
Merge pull request #17599 from tomoaki0705:fixCUDAFailSafePath

4 years agomake the fail safe path actually safe
Tomoaki Teshima [Sat, 20 Jun 2020 22:20:47 +0000 (07:20 +0900)]
make the fail safe path actually safe
  * use only supported CC in the list
  * workaround of #17526

4 years agoMerge pull request #17593 from tomoaki0705:addAmpereCUDA
Alexander Alekhin [Sat, 20 Jun 2020 22:01:36 +0000 (22:01 +0000)]
Merge pull request #17593 from tomoaki0705:addAmpereCUDA

4 years agoMerge pull request #17580 from sitic:bibfix
Alexander Alekhin [Fri, 19 Jun 2020 21:35:07 +0000 (21:35 +0000)]
Merge pull request #17580 from sitic:bibfix

4 years agoadd Ampere CC
Tomoaki Teshima [Fri, 19 Jun 2020 11:46:18 +0000 (20:46 +0900)]
add Ampere CC
  * Ampere has CC 8.0
  * Arm64 server support has been added in CUDA 11 (only V100 for now)

4 years agoDisabling dafault NMS in yolo layer
Liubov Batanina [Fri, 19 Jun 2020 11:34:13 +0000 (14:34 +0300)]
Disabling dafault NMS in yolo layer

4 years agodocs: linkfix in bibliography
Jan Lebert [Thu, 18 Jun 2020 11:30:36 +0000 (13:30 +0200)]
docs: linkfix in bibliography

The [current link](https://arxiv.org/pdf/1808.01752) goes to a
random unrelated paper.

4 years agoMerge pull request #17587 from tomoaki0705:fixCUDAOptflowJetson
Alexander Alekhin [Fri, 19 Jun 2020 07:21:19 +0000 (07:21 +0000)]
Merge pull request #17587 from tomoaki0705:fixCUDAOptflowJetson

4 years agofix build on Jetson TX1 and TX2
Tomoaki Teshima [Thu, 18 Jun 2020 22:56:37 +0000 (07:56 +0900)]
fix build on Jetson TX1 and TX2
  * enable_if_t is a c++14 feature

4 years agoMerge pull request #17581 from tomoaki0705:fixCudaAsync
Alexander Alekhin [Thu, 18 Jun 2020 20:54:28 +0000 (20:54 +0000)]
Merge pull request #17581 from tomoaki0705:fixCudaAsync

4 years agoMerge pull request #17578 from Bleach665:fix_win_eigen_build
Alexander Alekhin [Thu, 18 Jun 2020 20:52:33 +0000 (20:52 +0000)]
Merge pull request #17578 from Bleach665:fix_win_eigen_build

4 years agoMerge pull request #17577 from philippefoubert:branch_color_yuv_simd
Alexander Alekhin [Thu, 18 Jun 2020 20:51:52 +0000 (20:51 +0000)]
Merge pull request #17577 from philippefoubert:branch_color_yuv_simd

4 years agoFix the build of imgproc using MinGW (variables with the same name as symbols defined...
Philippe FOUBERT [Thu, 18 Jun 2020 09:48:43 +0000 (11:48 +0200)]
Fix the build of imgproc using MinGW (variables with the same name as symbols defined in MinGW headers)

4 years agofix build error on Jetson TX1 and TX2
Tomoaki Teshima [Thu, 18 Jun 2020 12:25:15 +0000 (21:25 +0900)]
fix build error on Jetson TX1 and TX2
 * enable_if_t and is_base_of is c++14 feature
 * override is c++11 feature

4 years agofix VS Windows build with eigen. https://github.com/opencv/opencv/issues/17548
Yuriy Obukh [Thu, 18 Jun 2020 11:31:11 +0000 (14:31 +0300)]
fix VS Windows build with eigen. https://github.com/opencv/opencv/issues/17548

4 years agoMerge pull request #17573 from alexcohn:fix/android_windows_build
Alex Cohn [Thu, 18 Jun 2020 07:40:43 +0000 (10:40 +0300)]
Merge pull request #17573 from alexcohn:fix/android_windows_build

* fixing #17572

https://github.com/opencv/opencv/issues/17572 Build for Android failed: "can't concat str to bytes"

on Windows 10 64bit with python 3.6.6

* similar to changes in platforms/winpack_dldt/build_package.py

4 years agoMerge pull request #17571 from tomoaki0705:fixAutomaticCC
Alexander Alekhin [Thu, 18 Jun 2020 07:39:14 +0000 (07:39 +0000)]
Merge pull request #17571 from tomoaki0705:fixAutomaticCC

4 years agoMerge pull request #17568 from alalek:cleanup_17527
Alexander Alekhin [Thu, 18 Jun 2020 07:38:16 +0000 (07:38 +0000)]
Merge pull request #17568 from alalek:cleanup_17527

4 years agofix build error of automatic CC detection
Tomoaki Teshima [Wed, 17 Jun 2020 13:02:51 +0000 (22:02 +0900)]
fix build error of automatic CC detection

4 years agocudacodec(build): fix detection in CMake, cleanup duplicate includes
Alexander Alekhin [Tue, 16 Jun 2020 02:14:04 +0000 (02:14 +0000)]
cudacodec(build): fix detection in CMake, cleanup duplicate includes

4 years agoMerge pull request #17468 from liqi-c:sharedlib_build_problem
NesQl [Wed, 17 Jun 2020 09:05:04 +0000 (17:05 +0800)]
Merge pull request #17468 from liqi-c:sharedlib_build_problem

TEngine installation rules fix for static build

* Modify cmake config error for -DBUILD_SHARED_LIBS=OFF

* Modify for not install tengine include directory

* Update compile error.

* move install command to tengine/CMakeLists.txt

* rm include dir when make install,only build static lib will install libtengine.a

4 years agoMerge pull request #17564 from l-bat:fix_yolov4
Alexander Alekhin [Wed, 17 Jun 2020 08:45:55 +0000 (08:45 +0000)]
Merge pull request #17564 from l-bat:fix_yolov4

4 years agoChanged StridedSlice to VariadicSplit in Region layer
Liubov Batanina [Tue, 16 Jun 2020 17:09:25 +0000 (20:09 +0300)]
Changed StridedSlice to VariadicSplit in Region layer

4 years agoMerge pull request #17556 from nglee:dev_optFlowTVL1Async
Alexander Alekhin [Tue, 16 Jun 2020 20:06:56 +0000 (20:06 +0000)]
Merge pull request #17556 from nglee:dev_optFlowTVL1Async

4 years agocuda optflow tvl1 : async safety
Namgoo Lee [Tue, 16 Jun 2020 16:04:22 +0000 (01:04 +0900)]
cuda optflow tvl1 : async safety

also modify cuda canny to use createTextureObjectPitch2D, etc.

4 years agoMerge pull request #17557 from alalek:backport_17554
Alexander Alekhin [Mon, 15 Jun 2020 19:26:11 +0000 (19:26 +0000)]
Merge pull request #17557 from alalek:backport_17554

4 years agoMerge pull request #17533 from alalek:fix_dumpInputArray_nd_case
Alexander Alekhin [Mon, 15 Jun 2020 18:38:19 +0000 (18:38 +0000)]
Merge pull request #17533 from alalek:fix_dumpInputArray_nd_case

4 years agoRemoved plugin dispatcher
Ilya Lavrenov [Mon, 15 Jun 2020 13:02:52 +0000 (16:02 +0300)]
Removed plugin dispatcher

backport of commit 74113737f3710069e5ae2daff09e77c824dd5a2b

4 years agoCUDA_OptFlow/OpticalFlowDual_TVL1 Asynchronous test
Namgoo Lee [Mon, 15 Jun 2020 16:43:51 +0000 (01:43 +0900)]
CUDA_OptFlow/OpticalFlowDual_TVL1 Asynchronous test

4 years agoMerge pull request #17527 from tomoaki0705:detectCuvidHeader
Alexander Alekhin [Sun, 14 Jun 2020 11:08:16 +0000 (11:08 +0000)]
Merge pull request #17527 from tomoaki0705:detectCuvidHeader

4 years agoMerge pull request #17537 from Murazaki:patch-1
Alexander Alekhin [Sat, 13 Jun 2020 18:36:34 +0000 (18:36 +0000)]
Merge pull request #17537 from Murazaki:patch-1

4 years agoMerge pull request #17536 from ilya-lavrenov:remove-error-listener
Alexander Alekhin [Fri, 12 Jun 2020 22:18:04 +0000 (22:18 +0000)]
Merge pull request #17536 from ilya-lavrenov:remove-error-listener

4 years agoFix typo
Mehdi Zakaria Benadel [Fri, 12 Jun 2020 18:59:43 +0000 (20:59 +0200)]
Fix typo

This typo just made me lose my mind on the conan package update. please merge.

4 years agoMerge pull request #17538 from alalek:dnn_openvino_2020.3.0
Alexander Alekhin [Fri, 12 Jun 2020 21:24:34 +0000 (21:24 +0000)]
Merge pull request #17538 from alalek:dnn_openvino_2020.3.0

4 years agoRemoved error lisneter usage
Ilya Lavrenov [Fri, 12 Jun 2020 17:27:21 +0000 (20:27 +0300)]
Removed error lisneter usage

4 years agodnn: use OpenVINO 2020.3 defines
Alexander Alekhin [Tue, 7 Apr 2020 13:17:21 +0000 (16:17 +0300)]
dnn: use OpenVINO 2020.3 defines

4 years agocore: fix handling of ND-arrays in dumpInputArray() helpers
Alexander Alekhin [Fri, 12 Jun 2020 10:07:58 +0000 (10:07 +0000)]
core: fix handling of ND-arrays in dumpInputArray() helpers

4 years agoMerge pull request #17143 from cyyever:detect_mkl_installed_by_nuget
Alexander Alekhin [Fri, 12 Jun 2020 09:44:42 +0000 (09:44 +0000)]
Merge pull request #17143 from cyyever:detect_mkl_installed_by_nuget

4 years agoimprove the mkl search procedure
cyy [Sat, 29 Feb 2020 10:59:43 +0000 (18:59 +0800)]
improve the mkl search procedure

4 years agoMerge pull request #17341 from hunter-college-ossd-spr-2020:3.4-1
Alexander Alekhin [Fri, 12 Jun 2020 06:58:14 +0000 (06:58 +0000)]
Merge pull request #17341 from hunter-college-ossd-spr-2020:3.4-1

4 years agoAdded information to OpenCV documentation [MacOS]
Jessica Wong [Thu, 21 May 2020 12:36:19 +0000 (08:36 -0400)]
Added information to OpenCV documentation [MacOS]

Added and Edited specific information to the "Installation in MacOS" OpenCV documentation.
Closes #17340

4 years agofix corner case of libnvcuvid
Tomoaki Teshima [Thu, 11 Jun 2020 14:06:18 +0000 (23:06 +0900)]
fix corner case of libnvcuvid
  * detect header automatically and not based on version number

4 years agoMerge pull request #17511 from mshabunin:fix-kw-issues-34
Alexander Alekhin [Wed, 10 Jun 2020 12:13:06 +0000 (12:13 +0000)]
Merge pull request #17511 from mshabunin:fix-kw-issues-34

4 years agoQRDetectMulti: refactored checkPoints method
Maksim Shabunin [Mon, 8 Jun 2020 13:39:23 +0000 (16:39 +0300)]
QRDetectMulti: refactored checkPoints method

4 years agodnn/NGraph: added nullptr checks
Maksim Shabunin [Mon, 8 Jun 2020 18:57:27 +0000 (21:57 +0300)]
dnn/NGraph: added nullptr checks

4 years agoMerge pull request #17368 from themightyoarfish:cv2eigen-doc
Rasmus [Wed, 10 Jun 2020 07:53:18 +0000 (09:53 +0200)]
Merge pull request #17368 from themightyoarfish:cv2eigen-doc

* Add documentation about usage of cv2eigen functions in eigen.hpp

* Fixed Doxygen syntax.

Co-authored-by: Alexander Smorkalov <smorkalov.a.m@gmail.com>
4 years agoMerge pull request #16955 from themechanicalcoder:text_recognition
Gourav Roy [Wed, 10 Jun 2020 06:53:18 +0000 (12:23 +0530)]
Merge pull request #16955 from themechanicalcoder:text_recognition

* add text recognition sample

* fix pylint warning

* made changes according to the c++ example

* fix errors

* add text recognition sample

* update text detection sample

4 years agoMerge pull request #17504 from alalek:update_ffmpeg_3.4
Alexander Alekhin [Tue, 9 Jun 2020 07:51:59 +0000 (07:51 +0000)]
Merge pull request #17504 from alalek:update_ffmpeg_3.4

4 years agoffmpeg/3.4: update FFmpeg wrapper
Alexander Alekhin [Mon, 8 Jun 2020 21:03:05 +0000 (21:03 +0000)]
ffmpeg/3.4: update FFmpeg wrapper

- FFmpeg 3.4.7

4 years agoMerge pull request #17501 from alalek:update_version_3.4.11-pre
Alexander Alekhin [Mon, 8 Jun 2020 19:35:34 +0000 (19:35 +0000)]
Merge pull request #17501 from alalek:update_version_3.4.11-pre

4 years agopre: OpenCV 3.4.11 (version++)
Alexander Alekhin [Mon, 8 Jun 2020 18:46:27 +0000 (18:46 +0000)]
pre: OpenCV 3.4.11 (version++)

4 years agoMerge pull request #17498 from alalek:update_tbb
Alexander Alekhin [Mon, 8 Jun 2020 18:38:56 +0000 (18:38 +0000)]
Merge pull request #17498 from alalek:update_tbb

4 years ago3rdparty: update TBB 2020.1 => 2020.2
Alexander Alekhin [Mon, 8 Jun 2020 11:04:33 +0000 (11:04 +0000)]
3rdparty: update TBB 2020.1 => 2020.2

https://github.com/oneapi-src/oneTBB/releases/tag/v2020.2

4 years agoMerge pull request #17466 from alalek:build_opencv_winpack_dldt_2020.3.0
Alexander Alekhin [Thu, 4 Jun 2020 17:32:08 +0000 (17:32 +0000)]
Merge pull request #17466 from alalek:build_opencv_winpack_dldt_2020.3.0

4 years agoMerge pull request #17432 from tomoaki0705:automaticCC
Alexander Alekhin [Thu, 4 Jun 2020 17:10:04 +0000 (17:10 +0000)]
Merge pull request #17432 from tomoaki0705:automaticCC

4 years agoMerge pull request #17473 from f3rm4rf3r:fixingFourCCDocBrokenLink
Fernando Martin [Thu, 4 Jun 2020 17:07:54 +0000 (18:07 +0100)]
Merge pull request #17473 from f3rm4rf3r:fixingFourCCDocBrokenLink

* - Fixing broken URL to mp4ra website

* - Fixing broken URL to mp4ra website (in C videoio API)

4 years agoMerge pull request #17469 from l-bat:fix_virtual_try_on
Alexander Alekhin [Thu, 4 Jun 2020 10:32:30 +0000 (10:32 +0000)]
Merge pull request #17469 from l-bat:fix_virtual_try_on

4 years agoMerge pull request #17455 from mshabunin:check-count-non-zero
Alexander Alekhin [Thu, 4 Jun 2020 08:47:43 +0000 (08:47 +0000)]
Merge pull request #17455 from mshabunin:check-count-non-zero

4 years agoFixed virtual try on sample
Liubov Batanina [Thu, 4 Jun 2020 06:36:52 +0000 (09:36 +0300)]
Fixed virtual try on sample

4 years agobuild: winpack_dldt with dldt 2020.3.0
Alexander Alekhin [Wed, 3 Jun 2020 23:46:08 +0000 (23:46 +0000)]
build: winpack_dldt with dldt 2020.3.0

https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.0

4 years agoAdded countNonZero test for big arrays and disable IPP for some cases
Maksim Shabunin [Tue, 2 Jun 2020 14:53:30 +0000 (17:53 +0300)]
Added countNonZero test for big arrays and disable IPP for some cases

4 years agoMerge pull request #17369 from themightyoarfish:doc-essential-matrix-different-cameras
Alexander Alekhin [Wed, 3 Jun 2020 12:55:55 +0000 (12:55 +0000)]
Merge pull request #17369 from themightyoarfish:doc-essential-matrix-different-cameras

4 years agoMerge pull request #17430 from alalek:issue_17257
Alexander Alekhin [Tue, 2 Jun 2020 12:42:04 +0000 (12:42 +0000)]
Merge pull request #17430 from alalek:issue_17257

4 years agoMerge pull request #17447 from alalek:dnn_ie_extract_layers
Alexander Alekhin [Tue, 2 Jun 2020 12:40:06 +0000 (12:40 +0000)]
Merge pull request #17447 from alalek:dnn_ie_extract_layers

4 years agoAdd instructions for how to use findEssentialMat() when camera matrices are different
Rasmus Diederichsen [Mon, 25 May 2020 13:06:05 +0000 (15:06 +0200)]
Add instructions for how to use findEssentialMat() when camera matrices are different

4 years agodnn(ie): fix layers extraction
Alexander Alekhin [Mon, 1 Jun 2020 20:43:35 +0000 (20:43 +0000)]
dnn(ie): fix layers extraction

4 years agoselect the architecture based on nvcc result
Tomoaki Teshima [Mon, 1 Jun 2020 20:07:53 +0000 (05:07 +0900)]
select the architecture based on nvcc result
  * cache the result
  * DRY
  * brush up based on review

4 years agoMerge pull request #17438 from alalek:fix_eigen_builds
Alexander Alekhin [Mon, 1 Jun 2020 18:02:07 +0000 (18:02 +0000)]
Merge pull request #17438 from alalek:fix_eigen_builds

4 years agoMerge pull request #17417 from vpisarev:fix_fitellipse
Vadim Pisarevsky [Mon, 1 Jun 2020 18:01:20 +0000 (21:01 +0300)]
Merge pull request #17417 from vpisarev:fix_fitellipse

* improved fitEllipse and fitEllipseDirect accuracy in singular or close-to-singular cases (see issue #9923)

* scale points using double precision

* added normalization to fitEllipseAMS as well; fixed Java test case by raising the tolerance (it's unclear what is the correct result in this case).

* improved point perturbation a bit. make the code a little bit more clear

* trying to fix Java fitEllipseTest by slightly raising the tolerance threshold

* synchronized C++ version of Java's fitEllipse test

* removed trailing whitespaces

4 years agoMerge pull request #17424 from berak:dnn_sample_human_parsing
Alexander Alekhin [Mon, 1 Jun 2020 17:58:12 +0000 (17:58 +0000)]
Merge pull request #17424 from berak:dnn_sample_human_parsing

4 years agoMerge pull request #17436 from vpisarev:fix_python_io
Vadim Pisarevsky [Mon, 1 Jun 2020 11:33:09 +0000 (14:33 +0300)]
Merge pull request #17436 from vpisarev:fix_python_io

* fixed #17044
1. fixed Python part of the tutorial about using OpenCV XML-YAML-JSON I/O functionality from C++ and Python.
2. added startWriteStruct() and endWriteStruct() methods to FileStorage
3. modifed FileStorage::write() methods to make them work well inside sequences, not only mappings.

* try to fix the doc builder

* added Python regression test for FileStorage I/O API ([TODO] iterating through long sequences can be very slow)

* fixed yaml testing

4 years agoMerge pull request #17439 from alalek:fix_dnn_test_required_file
Alexander Alekhin [Sun, 31 May 2020 19:51:56 +0000 (19:51 +0000)]
Merge pull request #17439 from alalek:fix_dnn_test_required_file

4 years agodnn(test): file 'dnn/efficientdet-d0.pb' is optional
Alexander Alekhin [Sun, 31 May 2020 16:18:37 +0000 (16:18 +0000)]
dnn(test): file 'dnn/efficientdet-d0.pb' is optional

4 years agocore: fix builds with eigen helper header
Alexander Alekhin [Sun, 31 May 2020 15:22:03 +0000 (15:22 +0000)]
core: fix builds with eigen helper header

4 years agodnn: add a human parsing cpp sample
berak [Fri, 29 May 2020 08:41:05 +0000 (10:41 +0200)]
dnn: add a human parsing cpp sample

4 years agoMerge pull request #17420 from nosajthenitram:fix_cascadedetect_convert_bug_for_old_c...
Alexander Alekhin [Sat, 30 May 2020 17:34:20 +0000 (17:34 +0000)]
Merge pull request #17420 from nosajthenitram:fix_cascadedetect_convert_bug_for_old_cascade

4 years agoMerge pull request #17403 from wangmengHB:master
Meng Wang [Sat, 30 May 2020 17:33:17 +0000 (01:33 +0800)]
Merge pull request #17403 from wangmengHB:master

Fix Test Case: in latest version, window.cv is a promise instance that makes most test case failed.

* Fix Browser Test Case: In latest version, window.cv is a promise instance

In latest version of opencv.js, window.cv is promise instance.
So that most of the test cases is run failed.
This commit is to fix browser test case.

* Add comment for backward compatible

Add comments for backward compatible

4 years agoFixed cascadedetect convert from old cascade to new
Jason Martin [Fri, 29 May 2020 02:29:10 +0000 (21:29 -0500)]
Fixed cascadedetect convert from old cascade to new

4 years agovideoio(ffmpeg): fix handling of AVERROR_EOF
Alexander Alekhin [Fri, 29 May 2020 19:52:26 +0000 (19:52 +0000)]
videoio(ffmpeg): fix handling of AVERROR_EOF

decoder should be properly flushed after that