title: opencv aruco.h not found windows 10 visual studio
body: <p>Hy</p>
  
  <p>I'm trying to run OpenCV and Aruco on windows 10 with visual studio 2019,</p>
  
  <p>no problem with installation of opencv and contribs using cmake and then build,</p>
  
  <p>and I've C:\openCV\build\install\x64\vc16\bin\opencv_aruco411d.dll     library ,</p>
  
  <p>On Environment Variables of Windows 10:</p>
  
  <ul>
  <li><p>OPENCV_DIR=C:\openCV\build\install\x64\vc16</p></li>
  <li><p>the PATH variable include %OPENCV_DIR%\bin</p></li>
  </ul>
  
  <p>In Visual Studio I've:</p>
  
  <pre><code>Linker --&gt; Input --&gt; Addictional dipendence                  contains  "opencv_aruco411d.lib"
  
  Linker --&gt; General --&gt; Addictional library directory      contains   "$(OPENCV_DIR)\lib"
  
  C/C++ --&gt; General --&gt; Addictional inclusion directory  contains  "$(OPENCV_DIR)\..\..\include"
  </code></pre>
  
  <p>but when I use simple first program:</p>
  
  <p>I've that aruco.h is not found</p>
  
  <pre><code>#include "aruco.h"
  
  #include &lt;iostream&gt;
  
  #include &lt;opencv2/highgui/highgui.hpp&gt;
  
   int main(int argc,char **argv){
  
     if (argc != 2 ){ std::cerr&lt;&lt;"Usage: inimage"&lt;&lt;std::endl;return -1;}
  
     cv::Mat image=cv::imread(argv[1]);
  
     aruco::MarkerDetector MDetector;
  
     //detect
  
     std::vector&lt;aruco::Marker&gt; markers=MDetector.detect(image);
  
     //print info to console
  
     for(size_t i=0;i&lt;markers.size();i++){
  
         std::cout&lt;&lt;markers[i]&lt;&lt;std::endl;
  
        //draw in the image
  
         markers[i].draw(image);
  
  
  
     cv::imshow("image",image);
  
     cv::waitKey(0);
  
  }
  </code></pre>
  
  <p>where's the problem?</p>
  
  <p>Antonio</p>