<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: kevq</title>
    <description>The latest articles on DEV Community by kevq (@kevq).</description>
    <link>https://dev.to/kevq</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1051967%2F879a3b7b-ea66-4040-9745-38f0acc0384d.jpeg</url>
      <title>DEV Community: kevq</title>
      <link>https://dev.to/kevq</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kevq"/>
    <language>en</language>
    <item>
      <title>[c++] using opencv on windows with clion</title>
      <dc:creator>kevq</dc:creator>
      <pubDate>Sun, 02 Apr 2023 05:51:44 +0000</pubDate>
      <link>https://dev.to/kevq/using-opencv-on-windows-with-clion-6jn</link>
      <guid>https://dev.to/kevq/using-opencv-on-windows-with-clion-6jn</guid>
      <description>&lt;ol&gt;
&lt;li&gt;download windows version &lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
      &lt;div class="c-embed__cover"&gt;
        &lt;a href="https://opencv.org/" class="c-link s:max-w-50 align-middle" rel="noopener noreferrer"&gt;
          &lt;img alt="" src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fopencv.org%2Fwp-content%2Fuploads%2F2020%2F11%2FOpenCV_logo_black_.jpg" height="auto" class="m-0"&gt;
        &lt;/a&gt;
      &lt;/div&gt;
    &lt;div class="c-embed__body"&gt;
      &lt;h2 class="fs-xl lh-tight"&gt;
        &lt;a href="https://opencv.org/" rel="noopener noreferrer" class="c-link"&gt;
          OpenCV - Open Computer Vision Library
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;p class="truncate-at-3"&gt;
          OpenCV provides a real-time optimized Computer Vision library, tools, and hardware. It also supports model execution for Machine Learning (ML) and Artificial Intelligence (AI).
        &lt;/p&gt;
      &lt;div class="color-secondary fs-s flex items-center"&gt;
          &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fopencv.org%2Fwp-content%2Fuploads%2F2020%2F07%2Fcropped-Fav-32x32.png"&gt;
        opencv.org
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;cd new build folder&lt;/li&gt;
&lt;li&gt;run cmake &lt;code&gt;cmake -G "MinGW Makefiles" -S &amp;lt;source&amp;gt;&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;build opencv &lt;code&gt;mingw32-make -j8&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;install opencv &lt;code&gt;mingw32-make install&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;update cmakelists &lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

# include opencv library
set(OpenCV_DIR "C:/Program Files (x86)/opencv/mingw_build/install")
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

target_link_libraries(${PROJECT_NAME} ${OpenCV_LIBS})


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;7, edit configuration, add environment variables:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7osjy5ak68h1mxdbrubj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7osjy5ak68h1mxdbrubj.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;if not work, add the path in #7 to system environment path&lt;/p&gt;

</description>
    </item>
    <item>
      <title>[c++] max(min) value and index in array</title>
      <dc:creator>kevq</dc:creator>
      <pubDate>Mon, 27 Mar 2023 16:32:06 +0000</pubDate>
      <link>https://dev.to/kevq/c-maxmin-value-and-index-in-array-273d</link>
      <guid>https://dev.to/kevq/c-maxmin-value-and-index-in-array-273d</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include&amp;lt;algorithm&amp;gt;
max_value = *std::max_element(array, array+size);
max_value_index = std::max_element(array, array+size) - array;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>cpp</category>
    </item>
  </channel>
</rss>
