Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

Exception Unhandled during Mask RCNN, C++ (Visual Studio)

Harish
Beginner
2,331 Views

Dear Experts,

I have been trying to implement MaskRCNN in OpenVINO using C++(Visual Studio). I followed the instruction from the following links.

  1. Installing Open VINO
  2. Mask RCNN using OpenCV in C++

From link-2, I was successful in implementing OpenCV MaskRCNN without the help of OpenVINO for object detection from COCO dataset. 

To incorporate OpenVINo, As per link-1, I changed the following codes 

net.setPreferableBackend(DNN_BACKEND_OPENCV);
net.setPreferableTarget(DNN_TARGET_CPU);

in to this.

net.setPreferableBackend(DNN_BACKEND_INFERENCE_ENGINE);
net.setPreferableTarget(DNN_TARGET_CPU);

But, Since then, I have been getting the Exception Unhandled error.

Unhandled exception at 0x00007FF9526EA859 in ConsoleApplication1.exe: Microsoft C++ exception: cv::Exception at memory location 0x000000F432B5CE90. occurred

Error window image

My system Configurations are:

  • Intel® Core™ i7-8700K CPU @ 3.70GHz
  • Microsoft Windows 10 Pro (64-bit)
  • Microsoft Visual Studio Professional 2017- version 15.9.17

please provide help in solving this.

Thank you.

0 Kudos
8 Replies
SIRIGIRI_V_Intel
Employee
2,331 Views

Hi Harish,

From the attached image, we are unable to find the reason for the error. Can you please provide the log from error list column in visual studio.

Regards,

Ram prasad

0 Kudos
Harish
Beginner
2,331 Views

Ram prasad (Intel) wrote:

Hi Harish,

From the attached image, we are unable to find the reason for the error. Can you please provide the log from error list column in visual studio.

Regards,

Ram prasad

 

Hi Ram prasad,

Please find the Error list picture.

Error list of Visual Studio

Regards

Harish

0 Kudos
SIRIGIRI_V_Intel
Employee
2,331 Views

Hi Harish,

Please answer the below questions:

  1. Does your system contain any previous versions of OpenCV? If yes, please uninstall them. Because, OpenVINO contains OpenCV package which can be used for the application.
  2. Can you confirm that you are able to run the verification scripts.
  3. Also, No errors were listed from the error list column. Please provide the error trace so that it will be helpful.

Regards,

Ram prasad

0 Kudos
Harish
Beginner
2,331 Views

Ram prasad (Intel) wrote:

Hi Harish,

Please answer the below questions:

  1. Does your system contain any previous versions of OpenCV? If yes, please uninstall them. Because, OpenVINO contains OpenCV package which can be used for the application.
  2. Can you confirm that you are able to run the verification scripts.
  3. Also, No errors were listed from the error list column. Please provide the error trace so that it will be helpful.

Regards,

Ram prasad

 

Hi Ram prasad,

  1. I have tried removing OpenCV from Environment variables, which I involved externally, still, the error is thrown.
  2. The mentioned verification script is running and I get the result of classification.
  3. Please find the  Stack trace image for tracing the error. Also if any other method is available please let me know to trace the errors.

Regards,

Harish

 

0 Kudos
SIRIGIRI_V_Intel
Employee
2,331 Views

Hi Harish,

Please use opencv_dnn420d.lib which is available in the <path_to_openvino_toolkit>/opencv/lib/ instead of opencv_world420d.lib. Also, use the libraries under <path_to_openvino_toolkit>/opencv/lib/ if you are using any other versions of opencv.

Hope this helps.

Regards,

Ram prasad

0 Kudos
Harish
Beginner
2,331 Views

Ram prasad (Intel) wrote:

Hi Harish,

Please use opencv_dnn420d.lib which is available in the <path_to_openvino_toolkit>/opencv/lib/ instead of opencv_world420d.lib. Also, use the libraries under <path_to_openvino_toolkit>/opencv/lib/ if you are using any other versions of opencv.

Hope this helps.

Regards,

Ram prasad

 

Hi Ram prasad,

This seems to have invoked more errors.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2019	unresolved external symbol "class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl cv::format(char const *,...)" (?format@cv@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBDZZ) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::fastFree(void *)" (?fastFree@cv@@YAXPEAX@Z) referenced in function "public: __cdecl cv::Mat::~Mat(void)" (??1Mat@cv@@QEAA@XZ)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::error(int,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,char const *,char const *,int)" (?error@cv@@YAXHAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PEBD1H@Z) referenced in function "public: float & __cdecl cv::Mat::at<float>(int,int)" (??$at@M@Mat@cv@@QEAAAEAMHH@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: __cdecl cv::Mat::Mat(class cv::Mat const &,class cv::Rect_<int> const &)" (??0Mat@cv@@QEAA@AEBV01@AEBV?$Rect_@H@1@@Z) referenced in function "public: class cv::Mat __cdecl cv::Mat::operator()(class cv::Rect_<int> const &)const " (??RMat@cv@@QEBA?AV01@AEBV?$Rect_@H@1@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::Mat::copyTo(class cv::debug_build_guard::_OutputArray const &,class cv::debug_build_guard::_InputArray const &)const " (?copyTo@Mat@cv@@QEBAXAEBV_OutputArray@debug_build_guard@2@AEBV_InputArray@42@@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::Mat::convertTo(class cv::debug_build_guard::_OutputArray const &,int,double,double)const " (?convertTo@Mat@cv@@QEBAXAEBV_OutputArray@debug_build_guard@2@HNN@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: class cv::Mat __cdecl cv::Mat::reshape(int,int)const " (?reshape@Mat@cv@@QEBA?AV12@HH@Z) referenced in function "void __cdecl postprocess(class cv::Mat &,class std::vector<class cv::Mat,class std::allocator<class cv::Mat> > const &)" (?postprocess@@YAXAEAVMat@cv@@AEBV?$vector@VMat@cv@@V?$allocator@VMat@cv@@@std@@@std@@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::Mat::deallocate(void)" (?deallocate@Mat@cv@@QEAAXXZ) referenced in function "public: void __cdecl cv::Mat::release(void)" (?release@Mat@cv@@QEAAXXZ)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::Mat::copySize(class cv::Mat const &)" (?copySize@Mat@cv@@QEAAXAEBV12@@Z) referenced in function "public: __cdecl cv::Mat::Mat(class cv::Mat const &)" (??0Mat@cv@@QEAA@AEBV01@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::Mat::updateContinuityFlag(void)" (?updateContinuityFlag@Mat@cv@@QEAAXXZ) referenced in function "public: __cdecl cv::Mat::Mat(int,int,int,void *,unsigned __int64)" (??0Mat@cv@@QEAA@HHHPEAX_K@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "class cv::MatExpr __cdecl cv::operator+(class cv::Scalar_<double> const &,class cv::MatExpr const &)" (??Hcv@@YA?AVMatExpr@0@AEBV?$Scalar_@N@0@AEBV10@@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "class cv::MatExpr __cdecl cv::operator*(double,class cv::Mat const &)" (??Dcv@@YA?AVMatExpr@0@NAEBVMat@0@@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "class cv::MatExpr __cdecl cv::operator>(class cv::Mat const &,double)" (??Ocv@@YA?AVMatExpr@0@AEBVMat@0@N@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "double __cdecl cv::getTickFrequency(void)" (?getTickFrequency@cv@@YANXZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: __cdecl cv::CommandLineParser::CommandLineParser(int,char const * const * const,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0CommandLineParser@cv@@QEAA@HQEBQEBDAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: __cdecl cv::CommandLineParser::~CommandLineParser(void)" (??1CommandLineParser@cv@@QEAA@XZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: bool __cdecl cv::CommandLineParser::has(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)const " (?has@CommandLineParser@cv@@QEBA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::CommandLineParser::about(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?about@CommandLineParser@cv@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: void __cdecl cv::CommandLineParser::printMessage(void)const " (?printMessage@CommandLineParser@cv@@QEBAXXZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::resize(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,class cv::Size_<int>,double,double,int)" (?resize@cv@@YAXAEBV_InputArray@debug_build_guard@1@AEBV_OutputArray@31@V?$Size_@H@1@NNH@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::findContours(class cv::debug_build_guard::_InputArray const &,class cv::debug_build_guard::_OutputArray const &,class cv::debug_build_guard::_OutputArray const &,int,int,class cv::Point_<int>)" (?findContours@cv@@YAXAEBV_InputArray@debug_build_guard@1@AEBV_OutputArray@31@1HHV?$Point_@H@1@@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::rectangle(class cv::debug_build_guard::_InputOutputArray const &,class cv::Point_<int>,class cv::Point_<int>,class cv::Scalar_<double> const &,int,int,int)" (?rectangle@cv@@YAXAEBV_InputOutputArray@debug_build_guard@1@V?$Point_@H@1@1AEBV?$Scalar_@N@1@HHH@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::drawContours(class cv::debug_build_guard::_InputOutputArray const &,class cv::debug_build_guard::_InputArray const &,int,class cv::Scalar_<double> const &,int,int,class cv::debug_build_guard::_InputArray const &,int,class cv::Point_<int>)" (?drawContours@cv@@YAXAEBV_InputOutputArray@debug_build_guard@1@AEBV_InputArray@31@HAEBV?$Scalar_@N@1@HH1HV?$Point_@H@1@@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::putText(class cv::debug_build_guard::_InputOutputArray const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::Point_<int>,int,double,class cv::Scalar_<double>,int,int,bool)" (?putText@cv@@YAXAEBV_InputOutputArray@debug_build_guard@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$Point_@H@1@HNV?$Scalar_@N@1@HH_N@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "class cv::Size_<int> __cdecl cv::getTextSize(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,double,int,int *)" (?getTextSize@cv@@YA?AV?$Size_@H@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HNHPEAH@Z) referenced in function "void __cdecl drawBox(class cv::Mat &,int,float,class cv::Rect_<int>,class cv::Mat &)" (?drawBox@@YAXAEAVMat@cv@@HMV?$Rect_@H@2@0@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "bool __cdecl cv::imwrite(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::debug_build_guard::_InputArray const &,class std::vector<int,class std::allocator<int> > const &)" (?imwrite@cv@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@debug_build_guard@1@AEBV?$vector@HV?$allocator@H@std@@@3@@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: __cdecl cv::VideoCapture::VideoCapture(void)" (??0VideoCapture@cv@@QEAA@XZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual __cdecl cv::VideoCapture::~VideoCapture(void)" (??1VideoCapture@cv@@UEAA@XZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual bool __cdecl cv::VideoCapture::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?open@VideoCapture@cv@@UEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual void __cdecl cv::VideoCapture::release(void)" (?release@VideoCapture@cv@@UEAAXXZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual double __cdecl cv::VideoCapture::get(int)const " (?get@VideoCapture@cv@@UEBANH@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: __cdecl cv::VideoWriter::VideoWriter(void)" (??0VideoWriter@cv@@QEAA@XZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual __cdecl cv::VideoWriter::~VideoWriter(void)" (??1VideoWriter@cv@@UEAA@XZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual bool __cdecl cv::VideoWriter::open(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int,double,class cv::Size_<int>,bool)" (?open@VideoWriter@cv@@UEAA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HNV?$Size_@H@2@_N@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual void __cdecl cv::VideoWriter::release(void)" (?release@VideoWriter@cv@@UEAAXXZ) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: virtual void __cdecl cv::VideoWriter::write(class cv::debug_build_guard::_InputArray const &)" (?write@VideoWriter@cv@@UEAAXAEBV_InputArray@debug_build_guard@2@@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "public: static int __cdecl cv::VideoWriter::fourcc(char,char,char,char)" (?fourcc@VideoWriter@cv@@SAHDDDD@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::namedWindow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,int)" (?namedWindow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "int __cdecl cv::waitKey(int)" (?waitKey@cv@@YAHH@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2019	unresolved external symbol "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::debug_build_guard::_InputArray const &)" (?imshow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@debug_build_guard@1@@Z) referenced in function main	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK1120	40 unresolved externals	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\x64\Debug\ConsoleApplication1.exe	1	

 

Regards

Harish

0 Kudos
SIRIGIRI_V_Intel
Employee
2,331 Views

Hi Harish,

The issue seems to be due to missing library and include directories.

Please add the below libraries under additional libraries which is located in project -> properities -> configuration properities -> linker -> input.

opencv_core420d.lib;opencv_imgproc420d.lib;opencv_highgui420d.lib;opencv_ml420d.lib;opencv_video420d.lib;opencv_features2d420d.lib;opencv_calib3d420d.lib;opencv_objdetect420d.lib;opencv_flann420d.lib;opencv_imgcodecs420d.lib;opencv_videoio420d.lib;opencv_dnn420d.lib;

Add the below include directories and library directories which is located in project -> properities -> configuration properities -> VC++ Directories.

Library Directories:

C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\opencv\lib;

Include Directories:

C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\opencv\include;

Please find the screenshots for more details.

Regards,

Ram prasad

0 Kudos
Harish
Beginner
2,331 Views

Ram prasad (Intel) wrote:

Hi Harish,

The issue seems to be due to missing library and include directories.

Please add the below libraries under additional libraries which is located in project -> properities -> configuration properities -> linker -> input.

opencv_core420d.lib;opencv_imgproc420d.lib;opencv_highgui420d.lib;opencv_ml420d.lib;opencv_video420d.lib;opencv_features2d420d.lib;opencv_calib3d420d.lib;opencv_objdetect420d.lib;opencv_flann420d.lib;opencv_imgcodecs420d.lib;opencv_videoio420d.lib;opencv_dnn420d.lib;

Add the below include directories and library directories which is located in project -> properities -> configuration properities -> VC++ Directories.

Library Directories:

C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\opencv\lib;

Include Directories:

C:\Program Files (x86)\IntelSWTools\openvino_2020.1.033\opencv\include;

Please find the screenshots for more details.

Regards,

Ram prasad

 

 

Hi Ramprasad,

 Sorry for the late reply and thank you for the detailed instructions. Still, I get a few errors, it seems to be a linker issue again. please help.

Severity	Code	Description	Project	File	Line	Suppression State
Error	LNK2001	unresolved external symbol "void __cdecl cv::drawContours(class cv::_InputOutputArray const &,class cv::_InputArray const &,int,class cv::Scalar_<double> const &,int,int,class cv::_InputArray const &,int,class cv::Point_<int>)" (?drawContours@cv@@YAXAEBV_InputOutputArray@1@AEBV_InputArray@1@HAEBV?$Scalar_@N@1@HH1HV?$Point_@H@1@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl cv::imshow(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &)" (?imshow@cv@@YAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@1@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "bool __cdecl cv::imwrite(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::_InputArray const &,class std::vector<int,class std::allocator<int> > const &)" (?imwrite@cv@@YA_NAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEBV_InputArray@1@AEBV?$vector@HV?$allocator@H@std@@@3@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "public: void __cdecl cv::Mat::convertTo(class cv::_OutputArray const &,int,double,double)const " (?convertTo@Mat@cv@@QEBAXAEBV_OutputArray@2@HNN@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "public: void __cdecl cv::Mat::copyTo(class cv::_OutputArray const &,class cv::_InputArray const &)const " (?copyTo@Mat@cv@@QEBAXAEBV_OutputArray@2@AEBV_InputArray@2@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl cv::putText(class cv::_InputOutputArray const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class cv::Point_<int>,int,double,class cv::Scalar_<double>,int,int,bool)" (?putText@cv@@YAXAEBV_InputOutputArray@1@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$Point_@H@1@HNV?$Scalar_@N@1@HH_N@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "public: void __cdecl cv::dnn::dnn4_v20191202::Net::setInput(class cv::_InputArray const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,double,class cv::Scalar_<double> const &)" (?setInput@Net@dnn4_v20191202@dnn@cv@@QEAAXAEBV_InputArray@4@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@NAEBV?$Scalar_@N@4@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "public: void __cdecl cv::dnn::dnn4_v20191202::Net::forward(class cv::_OutputArray const &,class std::vector<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::allocator<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > > > const &)" (?forward@Net@dnn4_v20191202@dnn@cv@@QEAAXAEBV_OutputArray@4@AEBV?$vector@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@V?$allocator@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@@std@@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl cv::dnn::dnn4_v20191202::blobFromImage(class cv::_InputArray const &,class cv::_OutputArray const &,double,class cv::Size_<int> const &,class cv::Scalar_<double> const &,bool,bool,int)" (?blobFromImage@dnn4_v20191202@dnn@cv@@YAXAEBV_InputArray@3@AEBV_OutputArray@3@NAEBV?$Size_@H@3@AEBV?$Scalar_@N@3@_N4H@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl cv::rectangle(class cv::_InputOutputArray const &,class cv::Point_<int>,class cv::Point_<int>,class cv::Scalar_<double> const &,int,int,int)" (?rectangle@cv@@YAXAEBV_InputOutputArray@1@V?$Point_@H@1@1AEBV?$Scalar_@N@1@HHH@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "public: virtual void __cdecl cv::VideoWriter::write(class cv::_InputArray const &)" (?write@VideoWriter@cv@@UEAAXAEBV_InputArray@2@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl cv::findContours(class cv::_InputArray const &,class cv::_OutputArray const &,class cv::_OutputArray const &,int,int,class cv::Point_<int>)" (?findContours@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@1HHV?$Point_@H@1@@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK2001	unresolved external symbol "void __cdecl cv::resize(class cv::_InputArray const &,class cv::_OutputArray const &,class cv::Size_<int>,double,double,int)" (?resize@cv@@YAXAEBV_InputArray@1@AEBV_OutputArray@1@V?$Size_@H@1@NNH@Z)	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\ConsoleApplication1\M_RCNN.obj	1	
Error	LNK1120	13 unresolved externals	ConsoleApplication1	E:\ITRI\Codes\test_MRCNN_C++\ConsoleApplication1\x64\Release\ConsoleApplication1.exe	1	

Regards

 Harish

0 Kudos
Reply