Merge remote-tracking branch 'upstream/3.4' into merge-3.4
authorAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 10 Feb 2020 16:40:29 +0000 (19:40 +0300)
committerAlexander Alekhin <alexander.alekhin@intel.com>
Mon, 10 Feb 2020 16:40:29 +0000 (19:40 +0300)
17 files changed:
1  2 
modules/core/include/opencv2/core/cvdef.h
modules/core/include/opencv2/core/utility.hpp
modules/dnn/src/onnx/onnx_importer.cpp
modules/dnn/src/tensorflow/tf_importer.cpp
modules/dnn/test/test_backends.cpp
modules/dnn/test/test_caffe_importer.cpp
modules/dnn/test/test_darknet_importer.cpp
modules/dnn/test/test_misc.cpp
modules/dnn/test/test_tf_importer.cpp
modules/dnn/test/test_torch_importer.cpp
modules/imgcodecs/include/opencv2/imgcodecs.hpp
modules/imgcodecs/src/loadsave.cpp
modules/python/src2/cv2.cpp
modules/videoio/include/opencv2/videoio.hpp
modules/videoio/src/cap_msmf.cpp
modules/videoio/test/test_video_io.cpp
samples/CMakeLists.txt

Simple merge
Simple merge
Simple merge
@@@ -391,8 -348,10 +396,12 @@@ TEST_P(Test_Torch_nets, ENet_accuracy
      checkBackend();
      if (backend == DNN_BACKEND_OPENCV && target == DNN_TARGET_OPENCL_FP16)
          throw SkipTestException("");
 +    if (backend == DNN_BACKEND_CUDA && target == DNN_TARGET_CUDA_FP16)
 +        applyTestTag(CV_TEST_TAG_DNN_SKIP_CUDA_FP16);
+ #if defined(INF_ENGINE_RELEASE) && INF_ENGINE_VER_MAJOR_EQ(2020010000)
+     if (backend == DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019)
+         applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER, CV_TEST_TAG_DNN_SKIP_IE_VERSION);
+ #else
      if (backend == DNN_BACKEND_INFERENCE_ENGINE_NN_BUILDER_2019 && target != DNN_TARGET_CPU)
      {
          if (target == DNN_TARGET_OPENCL_FP16) applyTestTag(CV_TEST_TAG_DNN_SKIP_IE_OPENCL_FP16, CV_TEST_TAG_DNN_SKIP_IE_NN_BUILDER);
@@@ -172,9 -170,9 +172,10 @@@ Currently, the following file formats a
      then the [GDAL](http://www.gdal.org) driver will be used in order to decode the image, supporting
      the following formats: [Raster](http://www.gdal.org/formats_list.html),
      [Vector](http://www.gdal.org/ogr_formats.html).
- -   If EXIF information are embedded in the image file, the EXIF orientation will be taken into account
-     and thus the image will be rotated accordingly except if the flag @ref IMREAD_IGNORE_ORIENTATION is passed.
+ -   If EXIF information is embedded in the image file, the EXIF orientation will be taken into account
+     and thus the image will be rotated accordingly except if the flags @ref IMREAD_IGNORE_ORIENTATION
+     or @ref IMREAD_UNCHANGED are passed.
 +-   Use the IMREAD_UNCHANGED flag to keep the floating point values from PFM image.
  -   By default number of pixels must be less than 2^30. Limit can be set using system
      variable OPENCV_IO_MAX_IMAGE_PIXELS
  
Simple merge
Simple merge
@@@ -1689,13 -1297,16 +1301,18 @@@ bool CvCapture_MSMF::setProperty( int p
              default:
                  return false;
              }
-             return configureOutput(requestedWidth, requestedHeight, getFramerate(nativeFormat), aspectN, aspectD, (int)cvRound(value), convertFormat);
 +        case CV_CAP_PROP_FOURCC:
++            return configureOutput(newFormat, (int)cvRound(value), convertFormat);
+         case CV_CAP_PROP_FORMAT:
+             return configureOutput(newFormat, (int)cvRound(value), convertFormat);
          case CV_CAP_PROP_CONVERT_RGB:
-             return configureOutput(requestedWidth, requestedHeight, getFramerate(nativeFormat), aspectN, aspectD, outputFormat, value != 0);
+             return configureOutput(newFormat, outputFormat, value != 0);
          case CV_CAP_PROP_SAR_NUM:
              if (value > 0)
-                 return configureOutput(requestedWidth, requestedHeight, getFramerate(nativeFormat), (UINT32)cvRound(value), aspectD, outputFormat, convertFormat);
+             {
+                 newFormat.aspectRatioNum = (UINT32)cvRound(value);
+                 return configureOutput(newFormat, outputFormat, convertFormat);
+             }
              break;
          case CV_CAP_PROP_SAR_DEN:
              if (value > 0)
              break;
          case CV_CAP_PROP_FPS:
              if (value >= 0)
-                 return configureOutput(requestedWidth, requestedHeight, value, aspectN, aspectD, outputFormat, convertFormat);
+             {
+                 newFormat.setFramerate(value);
+                 return configureOutput(newFormat, outputFormat, convertFormat);
+             }
              break;
 -            case CV_CAP_PROP_FOURCC:
 -                break;
          case CV_CAP_PROP_FRAME_COUNT:
              break;
          case CV_CAP_PROP_POS_AVI_RATIO:
Simple merge