<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV = 3.4.7 (yesterday from github)</li>
<li>Operating System / Platform =&gt; windows 10</li>
<li>Compiler =&gt; mingw32<br>
<code class="notranslate">Using built-in specs. COLLECT_GCC=C:\DEV\SDK\msys64\mingw32\bin\gcc.exe COLLECT_LTO_WRAPPER=C:/DEV/SDK/msys64/mingw32/bin/../lib/gcc/i686-w64-mingw32/9.1.0/lto-wrapper.exe Target: i686-w64-mingw32 Configured with: ../gcc-9.1.0/configure --prefix=/mingw32 --with-local-prefix=/mingw32/local --build=i686-w64-mingw32 --host=i686-w64-mingw32 --target=i686-w64-mingw32 --with-native-system-header-dir=/mingw32/i686-w64-mingw32/include --libexecdir=/mingw32/lib --enable-bootstrap --with-arch=i686 --with-tune=generic --enable-languages=c,lto,c++,fortran,ada,objc,obj-c++ --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-filesystem-ts=yes --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --enable-plugin --with-libiconv --with-system-zlib --with-gmp=/mingw32 --with-mpfr=/mingw32 --with-mpc=/mingw32 --with-isl=/mingw32 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld --disable-sjlj-exceptions --with-dwarf2 Thread model: posix gcc version 9.1.0 (Rev3, Built by MSYS2 project) </code></li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">I've got an error message as following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="duplicated: CLASS cv::.Algorithm :
SKIP:void cv::Algorithm::read(FileNode fn)       due to ARG type FileNode/I
SKIP:void cv::Algorithm::write(Ptr_FileStorage fs, String name = String())       due to ARG type Ptr_FileStorage/I
SKIP:AsyncArray cv::dnn::Net::forwardAsync(String outputName = String())         due to RET type AsyncArray
SKIP:void cv::dnn::Net::forward(vector_vector_Mat&amp; outputBlobs, vector_String outBlobNames)      due to ARG type vector_vector_Mat/O
SKIP:void cv::dnn::Net::getLayersShapes(MatShape netInputShape, vector_int&amp; layersIds, vector_vector_MatShape&amp; inLayersShapes, vector_vector_MatShape&amp; outLayersShapes)  due to ARG type vector_vector_MatShape/O
SKIP:void cv::dnn::Net::getLayersShapes(vector_MatShape netInputShapes, vector_int&amp; layersIds, vector_vector_MatShape&amp; inLayersShapes, vector_vector_MatShape&amp; outLayersShapes)  due to ARG type vector_vector_MatShape/O
SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher)        due to ARG type Ptr_DescriptorExtractor/I
SKIP:void cv::Feature2D::read(FileNode arg1)     due to ARG type FileNode/I
SKIP:void cv::Feature2D::write(Ptr_FileStorage fs, String name = String())       due to ARG type Ptr_FileStorage/I
SKIP:void cv::DescriptorMatcher::read(FileNode arg1)     due to ARG type FileNode/I
SKIP:void cv::DescriptorMatcher::write(Ptr_FileStorage fs, String name = String())       due to ARG type Ptr_FileStorage/I
C:/DEV/SDK/opencv-3.4.7/opencv-3.4.7/modules/java/generator/../generator/gen_java.py:493: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if content == buf:
SKIP:uchar Params::blobColor     due to RET type uchar
SKIP:void Params::blobColor      due to ARG type uchar/I
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends()         due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends()   due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends()   due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends()   due to RET type vector_VideoCaptureAPIs
SKIP:bool cv::findCirclesGrid(Mat image, Size patternSize, Mat&amp; centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters)    due to ARG type Ptr_FeatureDetector/I
SKIP:bool cv::findCirclesGrid2(Mat image, Size patternSize, Mat&amp; centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters2 parameters)  due to ARG type Ptr_FeatureDetector/I
SKIP:bool cv::CascadeClassifier::read(FileNode node)     due to ARG type FileNode/I
duplicated: CLASS cv.structured_light::SinusoidalPattern.Params :
SKIP:bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat&amp; disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD)         due to ARG type vector_vector_Mat/I
duplicated: CLASS cv.text::OCRBeamSearchDecoder.ClassifierCallback :
SKIP:Ptr_ERFilter cv::text::createERFilterNM1(Ptr_ERFilter_Callback cb, int thresholdDelta = 1, float minArea = (float)0.00025, float maxArea = (float)0.13, float minProbability = (float)0.4, bool nonMaxSuppression = true, float minProbabilityDiff = (float)0.1)      due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter cv::text::createERFilterNM2(Ptr_ERFilter_Callback cb, float minProbability = (float)0.3)       due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM1(String filename)  due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM2(String filename)  due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_OCRBeamSearchDecoder_ClassifierCallback cv::text::loadOCRBeamSearchClassifierCNN(String filename)       due to RET type Ptr_OCRBeamSearchDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifier(String filename, int classifier)        due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierCNN(String filename)     due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierNM(String filename)      due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500)  due to ARG type Ptr_OCRBeamSearchDecoder_ClassifierCallback/I
SKIP:static Ptr_OCRHMMDecoder cv::text::OCRHMMDecoder::create(Ptr_OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI)    due to ARG type Ptr_OCRHMMDecoder_ClassifierCallback/I
SKIP:Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS)       due to RET type Vec4i
JAVA: Processing OpenCV modules: 25
Error at 163: there are non-valid entries in the current block stack [['file', u'C:/DEV/SDK/opencv-3.4.7/opencv-3.4.7/../opencv_contrib-cleanup_stl_string_replacement/modules/aruco/include/opencv2/aruco/dictionary.hpp', True, True, None], [u'namespace', u'cv', True, True, None], [u'namespace', u'aruco', True, True, None], [u'enum CV_EXPORTS_W_SIMPLE', u'PREDEFINED_DICTIONARY_NAME', True, True, None]]
mingw32-make[2]: *** [modules\java_bindings_generator\CMakeFiles\gen_opencv_java_source.dir\build.make:452: CMakeFiles/dephelper/gen_opencv_java_source] Error -1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2785: modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2"><pre class="notranslate"><code class="notranslate">duplicated: CLASS cv::.Algorithm :
SKIP:void cv::Algorithm::read(FileNode fn)       due to ARG type FileNode/I
SKIP:void cv::Algorithm::write(Ptr_FileStorage fs, String name = String())       due to ARG type Ptr_FileStorage/I
SKIP:AsyncArray cv::dnn::Net::forwardAsync(String outputName = String())         due to RET type AsyncArray
SKIP:void cv::dnn::Net::forward(vector_vector_Mat&amp; outputBlobs, vector_String outBlobNames)      due to ARG type vector_vector_Mat/O
SKIP:void cv::dnn::Net::getLayersShapes(MatShape netInputShape, vector_int&amp; layersIds, vector_vector_MatShape&amp; inLayersShapes, vector_vector_MatShape&amp; outLayersShapes)  due to ARG type vector_vector_MatShape/O
SKIP:void cv::dnn::Net::getLayersShapes(vector_MatShape netInputShapes, vector_int&amp; layersIds, vector_vector_MatShape&amp; inLayersShapes, vector_vector_MatShape&amp; outLayersShapes)  due to ARG type vector_vector_MatShape/O
SKIP:cv::BOWImgDescriptorExtractor::BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher)        due to ARG type Ptr_DescriptorExtractor/I
SKIP:void cv::Feature2D::read(FileNode arg1)     due to ARG type FileNode/I
SKIP:void cv::Feature2D::write(Ptr_FileStorage fs, String name = String())       due to ARG type Ptr_FileStorage/I
SKIP:void cv::DescriptorMatcher::read(FileNode arg1)     due to ARG type FileNode/I
SKIP:void cv::DescriptorMatcher::write(Ptr_FileStorage fs, String name = String())       due to ARG type Ptr_FileStorage/I
C:/DEV/SDK/opencv-3.4.7/opencv-3.4.7/modules/java/generator/../generator/gen_java.py:493: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  if content == buf:
SKIP:uchar Params::blobColor     due to RET type uchar
SKIP:void Params::blobColor      due to ARG type uchar/I
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getBackends()         due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getCameraBackends()   due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getStreamBackends()   due to RET type vector_VideoCaptureAPIs
SKIP:vector_VideoCaptureAPIs cv::videoio_registry::getWriterBackends()   due to RET type vector_VideoCaptureAPIs
SKIP:bool cv::findCirclesGrid(Mat image, Size patternSize, Mat&amp; centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters)    due to ARG type Ptr_FeatureDetector/I
SKIP:bool cv::findCirclesGrid2(Mat image, Size patternSize, Mat&amp; centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters2 parameters)  due to ARG type Ptr_FeatureDetector/I
SKIP:bool cv::CascadeClassifier::read(FileNode node)     due to ARG type FileNode/I
duplicated: CLASS cv.structured_light::SinusoidalPattern.Params :
SKIP:bool cv::structured_light::StructuredLightPattern::decode(vector_vector_Mat patternImages, Mat&amp; disparityMap, vector_Mat blackImages = vector_Mat(), vector_Mat whiteImages = vector_Mat(), int flags = DECODE_3D_UNDERWORLD)         due to ARG type vector_vector_Mat/I
duplicated: CLASS cv.text::OCRBeamSearchDecoder.ClassifierCallback :
SKIP:Ptr_ERFilter cv::text::createERFilterNM1(Ptr_ERFilter_Callback cb, int thresholdDelta = 1, float minArea = (float)0.00025, float maxArea = (float)0.13, float minProbability = (float)0.4, bool nonMaxSuppression = true, float minProbabilityDiff = (float)0.1)      due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter cv::text::createERFilterNM2(Ptr_ERFilter_Callback cb, float minProbability = (float)0.3)       due to ARG type Ptr_ERFilter_Callback/I
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM1(String filename)  due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_ERFilter_Callback cv::text::loadClassifierNM2(String filename)  due to RET type Ptr_ERFilter_Callback
SKIP:Ptr_OCRBeamSearchDecoder_ClassifierCallback cv::text::loadOCRBeamSearchClassifierCNN(String filename)       due to RET type Ptr_OCRBeamSearchDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifier(String filename, int classifier)        due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierCNN(String filename)     due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:Ptr_OCRHMMDecoder_ClassifierCallback cv::text::loadOCRHMMClassifierNM(String filename)      due to RET type Ptr_OCRHMMDecoder_ClassifierCallback
SKIP:static Ptr_OCRBeamSearchDecoder cv::text::OCRBeamSearchDecoder::create(Ptr_OCRBeamSearchDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI, int beam_size = 500)  due to ARG type Ptr_OCRBeamSearchDecoder_ClassifierCallback/I
SKIP:static Ptr_OCRHMMDecoder cv::text::OCRHMMDecoder::create(Ptr_OCRHMMDecoder_ClassifierCallback classifier, String vocabulary, Mat transition_probabilities_table, Mat emission_probabilities_table, int mode = OCR_DECODER_VITERBI)    due to ARG type Ptr_OCRHMMDecoder_ClassifierCallback/I
SKIP:Vec4i cv::ximgproc::HoughPoint2Line(Point houghPoint, Mat srcImgInfo, int angleRange = ARO_315_135, int makeSkew = HDO_DESKEW, int rules = RO_IGNORE_BORDERS)       due to RET type Vec4i
JAVA: Processing OpenCV modules: 25
Error at 163: there are non-valid entries in the current block stack [['file', u'C:/DEV/SDK/opencv-3.4.7/opencv-3.4.7/../opencv_contrib-cleanup_stl_string_replacement/modules/aruco/include/opencv2/aruco/dictionary.hpp', True, True, None], [u'namespace', u'cv', True, True, None], [u'namespace', u'aruco', True, True, None], [u'enum CV_EXPORTS_W_SIMPLE', u'PREDEFINED_DICTIONARY_NAME', True, True, None]]
mingw32-make[2]: *** [modules\java_bindings_generator\CMakeFiles\gen_opencv_java_source.dir\build.make:452: CMakeFiles/dephelper/gen_opencv_java_source] Error -1
mingw32-make[1]: *** [CMakeFiles\Makefile2:2785: modules/java_bindings_generator/CMakeFiles/gen_opencv_java_source.dir/all] Error 2
mingw32-make: *** [Makefile:162: all] Error 2
</code></pre></div>
<h5 dir="auto">configure log (cmake)</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================
Detected processor: AMD64
sizeof(void) = 4 on 64 bit processor. Assume 32-bit compilation mode
libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-3.4.7-libjpeg-turbo
Found TBB (env): C:/DEV/SDK/msys64/mingw32/lib/libtbb.dll.a
Found OpenBLAS libraries: C:/DEV/SDK/msys64/mingw32/lib/libopenblas.a
Found OpenBLAS include: C:/DEV/SDK/msys64/mingw32/include/OpenBLAS
LAPACK(OpenBLAS): LAPACK_LIBRARIES: C:/DEV/SDK/msys64/mingw32/lib/libopenblas.a
LAPACK(OpenBLAS): Can't build LAPACK check code. This LAPACK version is not supported.
A library with LAPACK API found.
LAPACK(LAPACK/Generic): LAPACK_LIBRARIES: C:/DEV/SDK/msys64/mingw32/lib/libopenblas.a
LAPACK(LAPACK/Generic): Can't build LAPACK check code. This LAPACK version is not supported.
Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
Found apache ant: C:/DEV/Tools/apache-ant-1.9.14/bin/ant.bat (1.9.14)
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: C:/DEV/SDK/opencv-3.4.7/build/opencv_build/python_loader
Caffe:   NO
Protobuf:   NO
Glog:   YES
freetype2:   NO
harfbuzz:    NO
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Found installed version of gflags: C:/DEV/SDK/msys64/mingw32/lib/cmake/gflags
Detected gflags version: 2.2.2
Found installed version of Eigen: C:/DEV/SDK/msys64/mingw32/share/eigen3/cmake
Found required Ceres dependency: Eigen version 3.3.7 in C:/DEV/SDK/msys64/mingw32/include/eigen3
Found installed version of glog: C:/DEV/SDK/msys64/mingw32/lib/cmake/glog
Detected glog version: 0.4.0
Found required Ceres dependency: glog
Found installed version of gflags: C:/DEV/SDK/msys64/mingw32/lib/cmake/gflags
Detected gflags version: 2.2.2
Found required Ceres dependency: gflags
Found Ceres version: 1.14.0 installed in: C:/DEV/SDK/msys64/mingw32 with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, OpenMP, Multithreading]
Checking SFM deps... FALSE
Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
Excluding from source files list: &lt;BUILD&gt;/modules/dnn/layers/layers_common.avx2.cpp
Excluding from source files list: &lt;BUILD&gt;/modules/dnn/layers/layers_common.avx512_skx.cpp
Excluding from source files list: modules/features2d/src/fast.avx2.cpp
Tesseract:   YES
General configuration for OpenCV 3.4.7 =====================================
  Version control:               unknown
  Extra modules:
    Location (extra):            C:/DEV/SDK/opencv-3.4.7/opencv_contrib-cleanup_stl_string_replacement/modules
    Version control (extra):     unknown
  Platform:
    Timestamp:                   2019-08-07T15:02:29Z
    Host:                        Windows 10.0.17134 AMD64
    CMake:                       3.15.1
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/DEV/SDK/msys64/mingw32/bin/mingw32-make.exe
    Configuration:               Release
  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
      requested:                 SSE4_1 SSE4_2 AVX FP16
      SSE4_1 (12 files):         + SSE3 SSSE3 SSE4_1
      SSE4_2 (1 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (0 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX
  C/C++:
    Built as dynamic libs?:      YES
    C++11:                       YES
    C++ Compiler:                C:/DEV/SDK/msys64/mingw32/bin/i686-w64-mingw32-g++.exe  (ver 9.1.0)
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  C:/DEV/SDK/msys64/mingw32/bin/i686-w64-mingw32-gcc.exe
    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -Wl,--gc-sections  
    Linker flags (Debug):        -Wl,--gc-sections  
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:
    3rdparty dependencies:
  OpenCV modules:
    To be built:                 aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow ovis phase_unwrapping photo plot reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype js matlab python2 python3 sfm viz
    Applications:                apps
    Documentation:               NO
    Non-free algorithms:         NO
  Windows RT support:            NO
  GUI: 
    Win32 UI:                    YES
    VTK support:                 NO
  Media I/O: 
    ZLib:                        build (ver 1.2.11)
    JPEG:                        build-libjpeg-turbo (ver 2.0.2-62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.37)
    TIFF:                        build (ver 42 - 4.0.10)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 2.3.0)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 57.107.100)
      avformat:                  YES (ver 57.83.100)
      avutil:                    YES (ver 55.78.100)
      swscale:                   YES (ver 4.8.100)
      avresample:                YES (ver 3.7.0)
    GStreamer:                   NO
    DirectShow:                  YES
  Parallel framework:            TBB (ver 2019.0 interface 11001)
  Trace:                         YES (built-in)
  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       YES (ver 3.3.7)
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)
  OpenCL:                        YES (no extra features)
    Include path:                C:/DEV/SDK/opencv-3.4.7/opencv-3.4.7/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load
  Python (for build):            C:/DEV/SDK/msys64/mingw32/bin/python2.7.exe
  Java:                          
    ant:                         C:/DEV/Tools/apache-ant-1.9.14/bin/ant.bat (ver 1.9.14)
    JNI:                         C:/DEV/SDK/jdk-8u999-windows-i586/jdk1.8.0_999/include C:/DEV/SDK/jdk-8u999-windows-i586/jdk1.8.0_999/include/win32 C:/DEV/SDK/jdk-8u999-windows-i586/jdk1.8.0_999/include
    Java wrappers:               YES
    Java tests:                  NO
  Install to:                    C:/DEV/SDK/opencv-3.4.7/build/opencv_build/install
-----------------------------------------------------------------
Configuring done
"><pre class="notranslate"><code class="notranslate">======================================
Detected processor: AMD64
sizeof(void) = 4 on 64 bit processor. Assume 32-bit compilation mode
libjpeg-turbo: VERSION = 2.0.2, BUILD = opencv-3.4.7-libjpeg-turbo
Found TBB (env): C:/DEV/SDK/msys64/mingw32/lib/libtbb.dll.a
Found OpenBLAS libraries: C:/DEV/SDK/msys64/mingw32/lib/libopenblas.a
Found OpenBLAS include: C:/DEV/SDK/msys64/mingw32/include/OpenBLAS
LAPACK(OpenBLAS): LAPACK_LIBRARIES: C:/DEV/SDK/msys64/mingw32/lib/libopenblas.a
LAPACK(OpenBLAS): Can't build LAPACK check code. This LAPACK version is not supported.
A library with LAPACK API found.
LAPACK(LAPACK/Generic): LAPACK_LIBRARIES: C:/DEV/SDK/msys64/mingw32/lib/libopenblas.a
LAPACK(LAPACK/Generic): Can't build LAPACK check code. This LAPACK version is not supported.
Picked up JAVA_TOOL_OPTIONS: -Djava.net.preferIPv4Stack=true
Found apache ant: C:/DEV/Tools/apache-ant-1.9.14/bin/ant.bat (1.9.14)
VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file
OpenCV Python: during development append to PYTHONPATH: C:/DEV/SDK/opencv-3.4.7/build/opencv_build/python_loader
Caffe:   NO
Protobuf:   NO
Glog:   YES
freetype2:   NO
harfbuzz:    NO
No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
Found installed version of gflags: C:/DEV/SDK/msys64/mingw32/lib/cmake/gflags
Detected gflags version: 2.2.2
Found installed version of Eigen: C:/DEV/SDK/msys64/mingw32/share/eigen3/cmake
Found required Ceres dependency: Eigen version 3.3.7 in C:/DEV/SDK/msys64/mingw32/include/eigen3
Found installed version of glog: C:/DEV/SDK/msys64/mingw32/lib/cmake/glog
Detected glog version: 0.4.0
Found required Ceres dependency: glog
Found installed version of gflags: C:/DEV/SDK/msys64/mingw32/lib/cmake/gflags
Detected gflags version: 2.2.2
Found required Ceres dependency: gflags
Found Ceres version: 1.14.0 installed in: C:/DEV/SDK/msys64/mingw32 with components: [EigenSparse, SparseLinearAlgebraLibrary, LAPACK, SuiteSparse, CXSparse, SchurSpecializations, OpenMP, Multithreading]
Checking SFM deps... FALSE
Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags
Excluding from source files list: modules/imgproc/src/imgwarp.avx2.cpp
Excluding from source files list: modules/imgproc/src/resize.avx2.cpp
Excluding from source files list: modules/imgproc/src/sumpixels.avx512_skx.cpp
Excluding from source files list: &lt;BUILD&gt;/modules/dnn/layers/layers_common.avx2.cpp
Excluding from source files list: &lt;BUILD&gt;/modules/dnn/layers/layers_common.avx512_skx.cpp
Excluding from source files list: modules/features2d/src/fast.avx2.cpp
Tesseract:   YES
General configuration for OpenCV 3.4.7 =====================================
  Version control:               unknown
  Extra modules:
    Location (extra):            C:/DEV/SDK/opencv-3.4.7/opencv_contrib-cleanup_stl_string_replacement/modules
    Version control (extra):     unknown
  Platform:
    Timestamp:                   2019-08-07T15:02:29Z
    Host:                        Windows 10.0.17134 AMD64
    CMake:                       3.15.1
    CMake generator:             MinGW Makefiles
    CMake build tool:            C:/DEV/SDK/msys64/mingw32/bin/mingw32-make.exe
    Configuration:               Release
  CPU/HW features:
    Baseline:                    SSE SSE2
      requested:                 SSE2
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX
      requested:                 SSE4_1 SSE4_2 AVX FP16
      SSE4_1 (12 files):         + SSE3 SSSE3 SSE4_1
      SSE4_2 (1 files):          + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (0 files):            + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (5 files):             + SSE3 SSSE3 SSE4_1 POPCNT SSE4_2 AVX
  C/C++:
    Built as dynamic libs?:      YES
    C++11:                       YES
    C++ Compiler:                C:/DEV/SDK/msys64/mingw32/bin/i686-w64-mingw32-g++.exe  (ver 9.1.0)
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  C:/DEV/SDK/msys64/mingw32/bin/i686-w64-mingw32-gcc.exe
    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -mfpmath=sse -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -Wl,--gc-sections  
    Linker flags (Debug):        -Wl,--gc-sections  
    ccache:                      NO
    Precompiled headers:         YES
    Extra dependencies:
    3rdparty dependencies:
  OpenCV modules:
    To be built:                 aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy hdf hfs highgui img_hash imgcodecs imgproc java line_descriptor ml objdetect optflow ovis phase_unwrapping photo plot reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv freetype js matlab python2 python3 sfm viz
    Applications:                apps
    Documentation:               NO
    Non-free algorithms:         NO
  Windows RT support:            NO
  GUI: 
    Win32 UI:                    YES
    VTK support:                 NO
  Media I/O: 
    ZLib:                        build (ver 1.2.11)
    JPEG:                        build-libjpeg-turbo (ver 2.0.2-62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.37)
    TIFF:                        build (ver 42 - 4.0.10)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 2.3.0)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES (prebuilt binaries)
      avcodec:                   YES (ver 57.107.100)
      avformat:                  YES (ver 57.83.100)
      avutil:                    YES (ver 55.78.100)
      swscale:                   YES (ver 4.8.100)
      avresample:                YES (ver 3.7.0)
    GStreamer:                   NO
    DirectShow:                  YES
  Parallel framework:            TBB (ver 2019.0 interface 11001)
  Trace:                         YES (built-in)
  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       YES (ver 3.3.7)
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)
  OpenCL:                        YES (no extra features)
    Include path:                C:/DEV/SDK/opencv-3.4.7/opencv-3.4.7/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load
  Python (for build):            C:/DEV/SDK/msys64/mingw32/bin/python2.7.exe
  Java:                          
    ant:                         C:/DEV/Tools/apache-ant-1.9.14/bin/ant.bat (ver 1.9.14)
    JNI:                         C:/DEV/SDK/jdk-8u999-windows-i586/jdk1.8.0_999/include C:/DEV/SDK/jdk-8u999-windows-i586/jdk1.8.0_999/include/win32 C:/DEV/SDK/jdk-8u999-windows-i586/jdk1.8.0_999/include
    Java wrappers:               YES
    Java tests:                  NO
  Install to:                    C:/DEV/SDK/opencv-3.4.7/build/opencv_build/install
-----------------------------------------------------------------
Configuring done

</code></pre></div>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Plan to disable the java build binding with python.</p>

<p dir="auto">Thanks in advance.</p>
<p dir="auto">I use pytelegram bot for send photo.<br>
When I run this code without a bot, the bulb is turned off, for its shutdown, it answers cap.release(), but I run this code through the bot, the bulb does not turn off.<br>
<code class="notranslate">		cap = cv2.VideoCapture(0) ret, frame = cap.read() cv2.imwrite('1.jpg',frame) doc = open('1.jpg','rb') bot.send_document(message.chat.id,doc) cap.release(1)</code></p>