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