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

<ul dir="auto">
<li>OpenCV =&gt; 4.1.0</li>
<li>Operating System / Platform =&gt; Linux 4.4.0</li>
<li>Compiler =&gt; See below</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">On a multi-core system, <code class="notranslate">setNumThreads</code> doesn't seem to be taken into account.  No matter what I try, my code and dependencies will spawn N threads whenever I call <code class="notranslate">cv2</code> functions, where N is the number of cores on the machine.</p>
<p dir="auto">We're already taking care of parallelism by creating as many processes as we have cores (python code), so we don't need OpenCV to spawn threads on top of that in the background, it only creates more CPU contention.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&gt;&gt;&gt; import cv2
&gt;&gt;&gt; cv2.setNumThreads(1)
&gt;&gt;&gt; c = cv2.VideoCapture('/path/to/video/file')"><pre class="notranslate"><code class="notranslate">&gt;&gt;&gt; import cv2
&gt;&gt;&gt; cv2.setNumThreads(1)
&gt;&gt;&gt; c = cv2.VideoCapture('/path/to/video/file')
</code></pre></div>
<p dir="auto">At this point a <code class="notranslate">ps -eLf</code> in another terminal will show as many python threads as there are cores on the machine, instead of only 1 as per <code class="notranslate">setNumThreads(1)</code>.</p>
<p dir="auto">So for instance on a machine with 64 cores, creating 64 processes (e.g. with <code class="notranslate">multiprocessing.Process</code>) will create 4096 threads in the background.  Definitely not what we want.  Creating only 1 process and 64 threads results in very poor performance as we have higher level work we need to parallelize.</p>
<p dir="auto">NB: I've tried <code class="notranslate">export OMP_NUM_THREADS=1</code>, it doesn't seem to help either.</p>
<hr>
<p dir="auto">** SYSTEM AND BUILD INFO (this is a Deep Learning AMI on EC2)**</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ python
Python 3.6.6 |Anaconda, Inc.| (default, Jun 28 2018, 17:14:51) 
[GCC 7.2.0] on linux
Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &quot;license&quot; for more information.
&gt;&gt;&gt; import cv2
&gt;&gt;&gt; print(cv2.getBuildInformation())

General configuration for OpenCV 4.1.0 =====================================
  Version control:               4.1.0

  Extra modules:
    Location (extra):            /io/opencv_contrib/modules
    Version control (extra):     4.1.0

  Platform:
    Timestamp:                   2019-04-11T17:07:54Z
    Host:                        Linux 4.4.0-101-generic x86_64
    CMake:                       3.9.0
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/gmake
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2 SSE3
      requested:                 SSE3
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2
      requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
      SSE4_1 (13 files):         + SSSE3 SSE4_1
      SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
      AVX2 (27 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

  C/C++:
    Built as dynamic libs?:      NO
    C++ Compiler:                /usr/lib/ccache/compilers/c++  (ver 4.8.2)
    C++ flags (Release):         -Wl,-strip-all   -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 -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -Wl,-strip-all   -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 -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/lib/ccache/compilers/cc
    C flags (Release):           -Wl,-strip-all   -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 -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -Wl,-strip-all   -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 -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -L/root/ffmpeg_build/lib  -Wl,--gc-sections  
    Linker flags (Debug):        -L/root/ffmpeg_build/lib  -Wl,--gc-sections  
    ccache:                      YES
    Precompiled headers:         NO
    Extra dependencies:          ade /opt/Qt4.8.7/lib/libQtGui.so /opt/Qt4.8.7/lib/libQtTest.so /opt/Qt4.8.7/lib/libQtCore.so /lib64/libz.so /opt/libjpeg-turbo/lib64/libjpeg.a dl m pthread rt
    3rdparty dependencies:       ittnotify libprotobuf libwebp libpng libtiff libjasper IlmImf quirc

  OpenCV modules:
    To be built:                 aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking 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 hdf java js matlab ovis python2 sfm ts viz
    Applications:                -
    Documentation:               NO
    Non-free algorithms:         NO

  GUI: 
    QT:                          YES (ver 4.8.7 EDITION = OpenSource)
      QT OpenGL support:         NO
    GTK+:                        NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        /lib64/libz.so (ver 1.2.3)
    JPEG:                        /opt/libjpeg-turbo/lib64/libjpeg.a (ver 62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.36)
    TIFF:                        build (ver 42 - 4.0.10)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES
      avcodec:                   YES (58.47.106)
      avformat:                  YES (58.26.101)
      avutil:                    YES (56.26.100)
      swscale:                   YES (5.4.100)
      avresample:                NO
    GStreamer:                   NO
    v4l/v4l2:                    YES (linux/videodev2.h)

  Parallel framework:            pthreads

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       NO
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  OpenCL:                        YES (no extra features)
    Include path:                /io/opencv/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python 3:
    Interpreter:                 /opt/python/cp36-cp36m/bin/python (ver 3.6.8)
    Libraries:                   libpython3.6m.a (ver 3.6.8)
    numpy:                       /opt/python/cp36-cp36m/lib/python3.6/site-packages/numpy/core/include (ver 1.11.3)
    install path:                python

  Python (for build):            /opt/python/cp36-cp36m/bin/python

  Java:                          
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    /io/_skbuild/linux-x86_64-3.6/cmake-install
-----------------------------------------------------------------

"><pre class="notranslate">$ python
Python 3.6.6 <span class="pl-k">|</span>Anaconda, Inc.<span class="pl-k">|</span> (default, Jun 28 2018, 17:14:51) 
[GCC 7.2.0] on linux
Type <span class="pl-s"><span class="pl-pds">"</span>help<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>copyright<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>credits<span class="pl-pds">"</span></span> or <span class="pl-s"><span class="pl-pds">"</span>license<span class="pl-pds">"</span></span> <span class="pl-k">for</span> more information.
&gt;&gt;&gt; import cv2
&gt;&gt;&gt; <span class="pl-en">print(cv2.getBuildInformation</span>())

General configuration <span class="pl-k">for</span> OpenCV 4.1.0 =====================================
  Version control:               4.1.0

  Extra modules:
    Location (extra):            /io/opencv_contrib/modules
    Version control (extra):     4.1.0

  Platform:
    Timestamp:                   2019-04-11T17:07:54Z
    Host:                        Linux 4.4.0-101-generic x86_64
    CMake:                       3.9.0
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/gmake
    Configuration:               Release

  CPU/HW features:
    Baseline:                    SSE SSE2 SSE3
      requested:                 SSE3
    Dispatched code generation:  SSE4_1 SSE4_2 FP16 AVX AVX2
      requested:                 SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX
      SSE4_1 (13 files):         + SSSE3 SSE4_1
      SSE4_2 (1 files):          + SSSE3 SSE4_1 POPCNT SSE4_2
      FP16 (0 files):            + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX
      AVX (4 files):             + SSSE3 SSE4_1 POPCNT SSE4_2 AVX
      AVX2 (27 files):           + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2

  C/C++:
    Built as dynamic libs<span class="pl-k">?</span>:      NO
    C++ Compiler:                /usr/lib/ccache/compilers/c++  (ver 4.8.2)
    C++ flags (Release):         -Wl,-strip-all   -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 -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -Wl,-strip-all   -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 -Wsign-promo -Wuninitialized -Winit-self -Wno-delete-non-virtual-dtor -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/lib/ccache/compilers/cc
    C flags (Release):           -Wl,-strip-all   -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 -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -Wl,-strip-all   -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 -Wuninitialized -Winit-self -Wno-comment -Wno-missing-field-initializers -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections  -msse -msse2 -msse3 -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -L/root/ffmpeg_build/lib  -Wl,--gc-sections  
    Linker flags (Debug):        -L/root/ffmpeg_build/lib  -Wl,--gc-sections  
    ccache:                      YES
    Precompiled headers:         NO
    Extra dependencies:          ade /opt/Qt4.8.7/lib/libQtGui.so /opt/Qt4.8.7/lib/libQtTest.so /opt/Qt4.8.7/lib/libQtCore.so /lib64/libz.so /opt/libjpeg-turbo/lib64/libjpeg.a dl m pthread rt
    3rdparty dependencies:       ittnotify libprotobuf libwebp libpng libtiff libjasper IlmImf quirc

  OpenCV modules:
    To be built:                 aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann fuzzy gapi hfs highgui img_hash imgcodecs imgproc line_descriptor ml objdetect optflow phase_unwrapping photo plot python3 quality reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking 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 hdf java js matlab ovis python2 sfm ts viz
    Applications:                -
    Documentation:               NO
    Non-free algorithms:         NO

  GUI: 
    QT:                          YES (ver 4.8.7 EDITION = OpenSource)
      QT OpenGL support:         NO
    GTK+:                        NO
    VTK support:                 NO

  Media I/O: 
    ZLib:                        /lib64/libz.so (ver 1.2.3)
    JPEG:                        /opt/libjpeg-turbo/lib64/libjpeg.a (ver 62)
    WEBP:                        build (ver encoder: 0x020e)
    PNG:                         build (ver 1.6.36)
    TIFF:                        build (ver 42 - 4.0.10)
    JPEG 2000:                   build (ver 1.900.1)
    OpenEXR:                     build (ver 1.7.1)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      NO
    FFMPEG:                      YES
      avcodec:                   YES (58.47.106)
      avformat:                  YES (58.26.101)
      avutil:                    YES (56.26.100)
      swscale:                   YES (5.4.100)
      avresample:                NO
    GStreamer:                   NO
    v4l/v4l2:                    YES (linux/videodev2.h)

  Parallel framework:            pthreads

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Lapack:                      NO
    Eigen:                       NO
    Custom HAL:                  NO
    Protobuf:                    build (3.5.1)

  OpenCL:                        YES (no extra features)
    Include path:                /io/opencv/3rdparty/include/opencl/1.2
    Link libraries:              Dynamic load

  Python 3:
    Interpreter:                 /opt/python/cp36-cp36m/bin/python (ver 3.6.8)
    Libraries:                   libpython3.6m.a (ver 3.6.8)
    numpy:                       /opt/python/cp36-cp36m/lib/python3.6/site-packages/numpy/core/include (ver 1.11.3)
    install path:                python

  Python (for build):            /opt/python/cp36-cp36m/bin/python

  Java:                          
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    /io/_skbuild/linux-x86_64-3.6/cmake-install
-----------------------------------------------------------------

</pre></div>
<h5 dir="auto">System information Raspberry PI 4 Centos7</h5>
<ul dir="auto">
<li>OpenCV =&gt; 4.2</li>
<li>Operating System / Platform =&gt; Centos 7 / ARMV7L</li>
<li>Compiler =&gt; CMAKE3</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">In the installation process, after cloning openCV from official repository, I switched to branch 3.4, and ran CMAKE3, and it returned the following errors related to libraries, which I believe they are not available for AMRV7, Raspberry PI 4. Please see logs</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rasp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rasp">@Rasp</a> opencv]$ git checkout 3.4<br>
Branch 3.4 set up to track remote branch 3.4 from origin.<br>
Switched to a new branch '3.4'<br>
[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rasp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rasp">@Rasp</a> opencv]$ mkdir build<br>
[<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Rasp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Rasp">@Rasp</a> opencv]$ cd build/<br>
[o@Rasp build]$ cmake3 -D CMAKE_BUILD_TYPE=RELEASE     -D CMAKE_INSTALL_PREFIX=/usr/local     -D INSTALL_C_EXAMPLES=ON     -D INSTALL_PYTHON_EXAMPLES=ON     -D OPENCV_GENERATE_PKGCONFIG=ON     -D OPENCV_EXTRA_MODULES_PATH=/usr/local/src/opencv_build/opencv_contrib/modules     -D BUILD_EXAMPLES=ON ..<br>
-- The CXX compiler identification is GNU 4.8.5<br>
-- The C compiler identification is GNU 4.8.5<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ - works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc - works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Detected processor: armv7l<br>
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)<br>
-- Performing Test HAVE_CXX11 - Failed<br>
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.5", minimum required is "2.7")<br>
-- Found PythonLibs: /lib/libpython2.7.so (found suitable exact version "2.7.5")<br>
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "3.2")<br>
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.6.8")<br>
-- Looking for ccache - not found<br>
-- Performing Test HAVE_CXX_FSIGNED_CHAR<br>
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success<br>
-- Performing Test HAVE_C_FSIGNED_CHAR<br>
-- Performing Test HAVE_C_FSIGNED_CHAR - Success<br>
-- Performing Test HAVE_CXX_W<br>
-- Performing Test HAVE_CXX_W - Success<br>
-- Performing Test HAVE_C_W<br>
-- Performing Test HAVE_C_W - Success<br>
-- Performing Test HAVE_CXX_WALL<br>
-- Performing Test HAVE_CXX_WALL - Success<br>
-- Performing Test HAVE_C_WALL<br>
-- Performing Test HAVE_C_WALL - Success<br>
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE<br>
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success<br>
-- Performing Test HAVE_C_WERROR_RETURN_TYPE<br>
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success<br>
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_CXX_WERROR_ADDRESS<br>
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success<br>
-- Performing Test HAVE_C_WERROR_ADDRESS<br>
-- Performing Test HAVE_C_WERROR_ADDRESS - Success<br>
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT<br>
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success<br>
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT<br>
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success<br>
-- Performing Test HAVE_CXX_WFORMAT<br>
-- Performing Test HAVE_CXX_WFORMAT - Success<br>
-- Performing Test HAVE_C_WFORMAT<br>
-- Performing Test HAVE_C_WFORMAT - Success<br>
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY<br>
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success<br>
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY<br>
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success<br>
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS<br>
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_C_WMISSING_DECLARATIONS<br>
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES<br>
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed<br>
-- Performing Test HAVE_C_WMISSING_PROTOTYPES<br>
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success<br>
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES<br>
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed<br>
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES<br>
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success<br>
-- Performing Test HAVE_CXX_WUNDEF<br>
-- Performing Test HAVE_CXX_WUNDEF - Success<br>
-- Performing Test HAVE_C_WUNDEF<br>
-- Performing Test HAVE_C_WUNDEF - Success<br>
-- Performing Test HAVE_CXX_WINIT_SELF<br>
-- Performing Test HAVE_CXX_WINIT_SELF - Success<br>
-- Performing Test HAVE_C_WINIT_SELF<br>
-- Performing Test HAVE_C_WINIT_SELF - Success<br>
-- Performing Test HAVE_CXX_WPOINTER_ARITH<br>
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success<br>
-- Performing Test HAVE_C_WPOINTER_ARITH<br>
-- Performing Test HAVE_C_WPOINTER_ARITH - Success<br>
-- Performing Test HAVE_CXX_WSHADOW<br>
-- Performing Test HAVE_CXX_WSHADOW - Success<br>
-- Performing Test HAVE_C_WSHADOW<br>
-- Performing Test HAVE_C_WSHADOW - Success<br>
-- Performing Test HAVE_CXX_WSIGN_PROMO<br>
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success<br>
-- Performing Test HAVE_C_WSIGN_PROMO<br>
-- Performing Test HAVE_C_WSIGN_PROMO - Failed<br>
-- Performing Test HAVE_CXX_WUNINITIALIZED<br>
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success<br>
-- Performing Test HAVE_C_WUNINITIALIZED<br>
-- Performing Test HAVE_C_WUNINITIALIZED - Success<br>
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed<br>
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS<br>
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed<br>
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS<br>
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed<br>
-- Performing Test HAVE_CXX_WNO_COMMENT<br>
-- Performing Test HAVE_CXX_WNO_COMMENT - Success<br>
-- Performing Test HAVE_C_WNO_COMMENT<br>
-- Performing Test HAVE_C_WNO_COMMENT - Success<br>
-- Performing Test HAVE_CXX_WNO_MISSING_FIELD_INITIALIZERS<br>
-- Performing Test HAVE_CXX_WNO_MISSING_FIELD_INITIALIZERS - Success<br>
-- Performing Test HAVE_C_WNO_MISSING_FIELD_INITIALIZERS<br>
-- Performing Test HAVE_C_WNO_MISSING_FIELD_INITIALIZERS - Success<br>
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION<br>
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success<br>
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION<br>
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success<br>
-- Performing Test HAVE_CXX_PTHREAD<br>
-- Performing Test HAVE_CXX_PTHREAD - Success<br>
-- Performing Test HAVE_C_PTHREAD<br>
-- Performing Test HAVE_C_PTHREAD - Success<br>
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER<br>
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success<br>
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER<br>
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success<br>
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS<br>
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success<br>
-- Performing Test HAVE_C_FFUNCTION_SECTIONS<br>
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success<br>
-- Performing Test HAVE_CXX_FDATA_SECTIONS<br>
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success<br>
-- Performing Test HAVE_C_FDATA_SECTIONS<br>
-- Performing Test HAVE_C_FDATA_SECTIONS - Success<br>
-- Performing Test HAVE_CXX_MFPU_VFPV3<br>
-- Performing Test HAVE_CXX_MFPU_VFPV3 - Success<br>
-- Performing Test HAVE_CPU_NEON_SUPPORT (check file: cmake/checks/cpu_neon.cpp)<br>
-- Performing Test HAVE_CPU_NEON_SUPPORT - Failed<br>
-- Performing Test HAVE_CXX_MFPU_NEON (check file: cmake/checks/cpu_neon.cpp)<br>
-- Performing Test HAVE_CXX_MFPU_NEON - Success<br>
-- Performing Test HAVE_CPU_FP16_SUPPORT (check file: cmake/checks/cpu_fp16.cpp)<br>
-- Performing Test HAVE_CPU_FP16_SUPPORT - Failed<br>
-- Performing Test HAVE_CXX_MFPU_NEON_FP16_MFP16_FORMAT_IEEE (check file: cmake/checks/cpu_fp16.cpp)<br>
-- Performing Test HAVE_CXX_MFPU_NEON_FP16_MFP16_FORMAT_IEEE - Failed<br>
-- FP16 is not supported by C++ compiler<br>
-- Performing Test HAVE_CPU_BASELINE_FLAGS<br>
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success<br>
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN<br>
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success<br>
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN<br>
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success<br>
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN<br>
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success<br>
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN<br>
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed<br>
-- Performing Test HAVE_LINK_AS_NEEDED<br>
-- Performing Test HAVE_LINK_AS_NEEDED - Success<br>
-- Looking for pthread.h<br>
-- Looking for pthread.h - found<br>
-- Looking for posix_memalign<br>
-- Looking for posix_memalign - found<br>
-- Looking for malloc.h<br>
-- Looking for malloc.h - found<br>
-- Looking for memalign<br>
-- Looking for memalign - found<br>
-- Check if the system is big endian<br>
-- Searching 16 bit integer<br>
-- Looking for sys/types.h<br>
-- Looking for sys/types.h - found<br>
-- Looking for stdint.h<br>
-- Looking for stdint.h - found<br>
-- Looking for stddef.h<br>
-- Looking for stddef.h - found<br>
-- Check size of unsigned short<br>
-- Check size of unsigned short - done<br>
-- Searching 16 bit integer - Using unsigned short<br>
-- Check if the system is big endian - little endian<br>
-- Found ZLIB: /lib/libz.so (found suitable version "1.2.7", minimum required is "1.2.3")<br>
-- Found JPEG: /lib/libjpeg.so (found version "62")<br>
-- Found TIFF: /lib/libtiff.so (found version "4.0.3")<br>
-- Found WebP: /lib/libwebp.so<br>
-- Found Jasper: /lib/libjasper.so (found version "1.900.1")<br>
-- Found ZLIB: /lib/libz.so (found version "1.2.7")<br>
-- Found PNG: /lib/libpng.so (found version "1.5.13")<br>
-- Looking for /usr/include/libpng/png.h<br>
-- Looking for /usr/include/libpng/png.h - not found<br>
-- Found OpenEXR: /usr/lib/libIlmImf.so<br>
-- Checking for module 'gtk+-3.0'<br>
--   No package 'gtk+-3.0' found<br>
-- Checking for module 'gtk+-2.0'<br>
--   Found gtk+-2.0, version 2.24.31<br>
-- Checking for module 'gthread-2.0'<br>
--   Found gthread-2.0, version 2.56.1<br>
-- Checking for modules 'gstreamer-base-1.0;gstreamer-video-1.0;gstreamer-app-1.0;gstreamer-riff-1.0;gstreamer-pbutils-1.0'<br>
--   No package 'gstreamer-base-1.0' found<br>
--   No package 'gstreamer-video-1.0' found<br>
--   No package 'gstreamer-app-1.0' found<br>
--   No package 'gstreamer-riff-1.0' found<br>
--   No package 'gstreamer-pbutils-1.0' found<br>
-- Checking for modules 'gstreamer-base-0.10;gstreamer-video-0.10;gstreamer-app-0.10;gstreamer-riff-0.10;gstreamer-pbutils-0.10'<br>
--   Found gstreamer-base-0.10, version 0.10.36<br>
--   Found gstreamer-video-0.10, version 0.10.36<br>
--   Found gstreamer-app-0.10, version 0.10.36<br>
--   Found gstreamer-riff-0.10, version 0.10.36<br>
--   Found gstreamer-pbutils-0.10, version 0.10.36<br>
-- Checking for module 'libdc1394-2'<br>
--   Found libdc1394-2, version 2.2.2<br>
-- Looking for linux/videodev.h<br>
-- Looking for linux/videodev.h - not found<br>
-- Looking for linux/videodev2.h<br>
-- Looking for linux/videodev2.h - found<br>
-- Looking for sys/videoio.h<br>
-- Looking for sys/videoio.h - not found<br>
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'<br>
--   No package 'libavcodec' found<br>
--   No package 'libavformat' found<br>
--   No package 'libavutil' found<br>
--   No package 'libswscale' found<br>
-- Checking for module 'libavresample'<br>
--   No package 'libavresample' found<br>
-- Could not find OpenBLAS include. Turning OpenBLAS_FOUND off<br>
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off<br>
-- Could NOT find Atlas (missing: Atlas_CBLAS_INCLUDE_DIR Atlas_CLAPACK_INCLUDE_DIR Atlas_CBLAS_LIBRARY Atlas_BLAS_LIBRARY Atlas_LAPACK_LIBRARY)<br>
-- Looking for sgemm_<br>
-- Looking for sgemm_ - not found<br>
-- Looking for pthread.h<br>
-- Looking for pthread.h - found<br>
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD<br>
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success<br>
-- Found Threads: TRUE<br>
-- Could NOT find BLAS (missing: BLAS_LIBRARIES)<br>
-- LAPACK requires BLAS<br>
-- A library with LAPACK API not found. Please specify library location.<br>
-- Performing Test HAVE_CXX_WNO_DEPRECATED<br>
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success<br>
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES<br>
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed<br>
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS<br>
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_WNO_SHADOW<br>
-- Performing Test HAVE_CXX_WNO_SHADOW - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success<br>
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE<br>
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success<br>
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO<br>
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success<br>
-- Performing Test HAVE_CXX_WNO_UNDEF<br>
-- Performing Test HAVE_CXX_WNO_UNDEF - Success<br>
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE<br>
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed<br>
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS<br>
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success<br>
-- Performing Test HAVE_CXX_WNO_EXTRA<br>
-- Performing Test HAVE_CXX_WNO_EXTRA - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed<br>
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32<br>
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed<br>
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF<br>
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success<br>
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH<br>
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed<br>
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE<br>
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Failed<br>
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE<br>
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed<br>
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH<br>
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Failed<br>
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS<br>
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success<br>
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)<br>
-- Could NOT find Pylint (missing: PYLINT_EXECUTABLE)<br>
-- Could NOT find Flake8 (missing: FLAKE8_EXECUTABLE)<br>
-- VTK is not found. Please set -DVTK_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file<br>
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE<br>
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success<br>
-- Performing Test HAVE_C_WNO_SHADOW<br>
-- Performing Test HAVE_C_WNO_SHADOW - Success<br>
-- Carotene: NEON is not available, disabling carotene...<br>
-- Looking for dlerror in dl<br>
-- Looking for dlerror in dl - found<br>
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH<br>
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Failed<br>
-- Performing Test HAVE_C_WNO_UNDEF<br>
-- Performing Test HAVE_C_WNO_UNDEF - Success<br>
-- Performing Test HAVE_C_WNO_SIGN_COMPARE<br>
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success<br>
calib3d<br>
core</p>
<blockquote>
<p dir="auto">cudaarithm<br>
cudabgsegm<br>
cudacodec<br>
cudafeatures2d<br>
cudafilters<br>
cudaimgproc<br>
cudalegacy<br>
cudaobjdetect<br>
cudaoptflow<br>
cudastereo<br>
cudawarping<br>
cudev<br>
dnn<br>
features2d<br>
flann<br>
highgui<br>
imgcodecs<br>
imgproc<br>
java<br>
js<br>
ml<br>
objdetect<br>
photo<br>
python<br>
shape<br>
stitching<br>
superres<br>
ts<br>
video<br>
videoio<br>
videostab<br>
viz<br>
world<br>
alphamat<br>
aruco<br>
bgsegm<br>
bioinspired<br>
ccalib<br>
cnn_3dobj<br>
cudaarithm<br>
cudabgsegm<br>
cudacodec<br>
cudafeatures2d<br>
cudafilters<br>
cudaimgproc<br>
cudalegacy<br>
cudaobjdetect<br>
cudaoptflow<br>
cudastereo<br>
cudawarping<br>
cudev<br>
cvv<br>
datasets<br>
dnn_objdetect<br>
dnn_superres<br>
dpm<br>
face<br>
freetype<br>
fuzzy<br>
hdf<br>
hfs<br>
img_hash<br>
intensity_transform<br>
julia<br>
line_descriptor<br>
matlab<br>
mcc<br>
optflow<br>
ovis<br>
phase_unwrapping<br>
plot<br>
quality<br>
rapid<br>
reg<br>
rgbd<br>
saliency<br>
sfm<br>
shape<br>
stereo<br>
structured_light<br>
superres<br>
surface_matching<br>
text<br>
tracking<br>
videostab<br>
viz<br>
xfeatures2d<br>
ximgproc<br>
xobjdetect<br>
xphoto<br>
CMake Error at cmake/OpenCVModule.cmake:353 (message):<br>
Duplicated modules NAMES has been found<br>
Call Stack (most recent call first):<br>
cmake/OpenCVModule.cmake:371 (_assert_uniqueness)<br>
modules/CMakeLists.txt:7 (ocv_glob_modules)</p>
</blockquote>
<p dir="auto">-- Configuring incomplete, errors occurred!<br>
See also "/usr/local/src/opencv_build/opencv/build/CMakeFiles/CMakeOutput.log".<br>
See also "/usr/local/src/opencv_build/opencv/build/CMakeFiles/CMakeError.log".</p>