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

<ul dir="auto">
<li>OpenCV =&gt; 4.11</li>
<li>Operating System / Platform =&gt; Raspberry Pi 4</li>
<li>Compiler =&gt; g++(Raspbian 8.3.0-6+rpi1)</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Always download face_landmark_model.dat, even though it was not the first time run cmake.<br>
It wastes so many time.</p>
<p dir="auto">note like that:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-- data: Download: face_landmark_model.dat"><pre class="notranslate"><code class="notranslate">-- data: Download: face_landmark_model.dat
</code></pre></div>

<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">My cmake options like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cmake -D CMAKE_BUILD_TYPE=RELEASE \
            -D CMAKE_INSTALL_PREFIX=/usr/local \
            -D INSTALL_C_EXAMPLES=ON \
            -D INSTALL_PYTHON_EXAMPLES=ON \
	    -D ENABLE_NEON=ON \
	    -D ENABLE_VFPV3=ON \
	    -D OPENCV_ENABLE_NONFREE=ON \
	    -D BUILD_TESTS=OFF \
            -D WITH_V4L=ON \
        -D WITH_QT=ON \
        -D WITH_OPENGL=ON \
        -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
	-D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \
        -D BUILD_EXAMPLES=ON .."><pre class="notranslate"><code class="notranslate">cmake -D CMAKE_BUILD_TYPE=RELEASE \
            -D CMAKE_INSTALL_PREFIX=/usr/local \
            -D INSTALL_C_EXAMPLES=ON \
            -D INSTALL_PYTHON_EXAMPLES=ON \
	    -D ENABLE_NEON=ON \
	    -D ENABLE_VFPV3=ON \
	    -D OPENCV_ENABLE_NONFREE=ON \
	    -D BUILD_TESTS=OFF \
            -D WITH_V4L=ON \
        -D WITH_QT=ON \
        -D WITH_OPENGL=ON \
        -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \
	-D PYTHON_DEFAULT_EXECUTABLE=/usr/bin/python3 \
        -D BUILD_EXAMPLES=ON ..
</code></pre></div>
<h5 dir="auto">System information (version)</h5>

<ul dir="auto">
<li>OpenCV =&gt; 4.2</li>
<li>Operating System / Platform =&gt; Windows 64 Bit</li>
<li>Compiler =&gt; Visual Studio 2015</li>
</ul>
<h5 dir="auto">Detailed description</h5>

<p dir="auto">PNG format starts to <a href="http://ftp-osl.osuosl.org/pub/libpng/documents/pngext-1.5.0.html#C.eXIf" rel="nofollow">support EXIF information</a> since 2017, but somehow using IMREAD_COLOR to read a PNG file does not respect the orientation</p>
<p dir="auto">Attached Capture.png and Capture.jpg are two images both with same EXIF orientation information, try both and you can see the difference.</p>
<h5 dir="auto">Steps to reproduce</h5>

<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    // C++ code example
    cv::Mat cvImgColor = cv::imread(&quot;Capture.png&quot;, cv::IMREAD_COLOR);
    // Expected: cols = 333, rows = 280
    // Actual: cols = 280, rows = 333"><pre class="notranslate">    <span class="pl-c"><span class="pl-c">//</span> C++ code example</span>
    cv::Mat cvImgColor = cv::imread(<span class="pl-s"><span class="pl-pds">"</span>Capture.png<span class="pl-pds">"</span></span>, cv::IMREAD_COLOR);
    <span class="pl-c"><span class="pl-c">//</span> Expected: cols = 333, rows = 280</span>
    <span class="pl-c"><span class="pl-c">//</span> Actual: cols = 280, rows = 333</span></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25216338/74476683-b6dc3a80-4e5e-11ea-88fd-d7bd190662df.png"><img src="https://user-images.githubusercontent.com/25216338/74476683-b6dc3a80-4e5e-11ea-88fd-d7bd190662df.png" alt="tempsnip" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25216338/74476650-a2983d80-4e5e-11ea-9973-9643ef88bea8.png"><img src="https://user-images.githubusercontent.com/25216338/74476650-a2983d80-4e5e-11ea-9973-9643ef88bea8.png" alt="Capture" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25216338/74477113-89dc5780-4e5f-11ea-8b14-710e018ea7b2.jpg"><img src="https://user-images.githubusercontent.com/25216338/74477113-89dc5780-4e5f-11ea-8b14-710e018ea7b2.jpg" alt="Capture" style="max-width: 100%;"></a></p>