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

<ul dir="auto">
<li>OpenCV =&gt; 3.4</li>
<li>Operating System / Platform =&gt; Windows 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2019</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I use cmake to build opencv 3.4, and there is a warning about OpenCV_RUNTIME.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:147 (message):
  OpenCV does not recognize MSVC_VERSION &quot;1921&quot;.  Cannot set OpenCV_RUNTIME
Call Stack (most recent call first):
  CMakeLists.txt:157 (include)"><pre class="notranslate"><code class="notranslate">CMake Warning at cmake/OpenCVDetectCXXCompiler.cmake:147 (message):
  OpenCV does not recognize MSVC_VERSION "1921".  Cannot set OpenCV_RUNTIME
Call Stack (most recent call first):
  CMakeLists.txt:157 (include)
</code></pre></div>
<p dir="auto">I check the file OpenCVDetectCXXCompiler.cmake, and in line 132-148.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  if(MSVC_VERSION EQUAL 1400)
    set(OpenCV_RUNTIME vc8)
  elseif(MSVC_VERSION EQUAL 1500)
    set(OpenCV_RUNTIME vc9)
  elseif(MSVC_VERSION EQUAL 1600)
    set(OpenCV_RUNTIME vc10)
  elseif(MSVC_VERSION EQUAL 1700)
    set(OpenCV_RUNTIME vc11)
  elseif(MSVC_VERSION EQUAL 1800)
    set(OpenCV_RUNTIME vc12)
  elseif(MSVC_VERSION EQUAL 1900)
    set(OpenCV_RUNTIME vc14)
  elseif(MSVC_VERSION MATCHES &quot;^191[0-9]$&quot;)
    set(OpenCV_RUNTIME vc15)
  else()
    message(WARNING &quot;OpenCV does not recognize MSVC_VERSION \&quot;${MSVC_VERSION}\&quot;. Cannot set OpenCV_RUNTIME&quot;)
  endif()"><pre class="notranslate"><code class="notranslate">  if(MSVC_VERSION EQUAL 1400)
    set(OpenCV_RUNTIME vc8)
  elseif(MSVC_VERSION EQUAL 1500)
    set(OpenCV_RUNTIME vc9)
  elseif(MSVC_VERSION EQUAL 1600)
    set(OpenCV_RUNTIME vc10)
  elseif(MSVC_VERSION EQUAL 1700)
    set(OpenCV_RUNTIME vc11)
  elseif(MSVC_VERSION EQUAL 1800)
    set(OpenCV_RUNTIME vc12)
  elseif(MSVC_VERSION EQUAL 1900)
    set(OpenCV_RUNTIME vc14)
  elseif(MSVC_VERSION MATCHES "^191[0-9]$")
    set(OpenCV_RUNTIME vc15)
  else()
    message(WARNING "OpenCV does not recognize MSVC_VERSION \"${MSVC_VERSION}\". Cannot set OpenCV_RUNTIME")
  endif()
</code></pre></div>
<p dir="auto">Can I just add MSVC_VERSION 1921 like this, or something else?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="  elseif(MSVC_VERSION MATCHES &quot;^192[0-9]$&quot;)
    set(OpenCV_RUNTIME vc16)"><pre class="notranslate"><code class="notranslate">  elseif(MSVC_VERSION MATCHES "^192[0-9]$")
    set(OpenCV_RUNTIME vc16)
</code></pre></div>

<h5 dir="auto">Steps to reproduce</h5>
<h3 dir="auto">System Information</h3>
<p dir="auto">Version:<br>
opencv-python            4.7.0.72</p>
<p dir="auto">here is the image:<br>
<code class="notranslate">https://s3.ap-northeast-2.amazonaws.com/com.liveschole/common/1679969040122.png</code></p>
<p dir="auto">here is the code.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="img_path = &lt;download image path&gt;
img = cv2.imread(img_path)"><pre class="notranslate"><code class="notranslate">img_path = &lt;download image path&gt;
img = cv2.imread(img_path)
</code></pre></div>
<p dir="auto">here is the error code.<br>
<code class="notranslate">libpng error: Read Error</code></p>