arjun.a
rename files
6c7b14a
Ticket Name: Compiler/TDA2: Fail to linking openCV file (objdetect)
Query Text:
Part Number: TDA2 Tool/software: TI C/C++ Compiler Hi experts, I'm trying to implement application code that is using openCV However, when I try to compile it, linking error occurs ( undefined reference error ) I checked header file declaration and it exists in proper directory It seems that using <opnecv2/objdetect> has a problem. Using <opencv2/imgproc> and <opencv2/core> works well... Please help me.. application.cpp--------------------------------------------------------------------------------------------------------------------------------------- .. #include "DMS_Algo_Typedef.h" ... void* openclDilationThreadFunc(void* args) { sDMS *DMS = new sDMS; .... } DMS_Algo_Typedef.h------------------------------------------------------------------------------------------------------------------------------- typedef struct sFaceDetector { sParam_faceDetector param_init; sParam_faceDetector param; cv::Rect faceROI; cv::Mat faceRoiImage; cv::CascadeClassifier classifier; cv::Rect face; unsigned char fFaceDetect; } sFaceDetector; ... typedef struct sDMS { // Face detection sFaceDetector faceDetector; // Eye detection sEyeDetector eyeDetector; // Object management sGlobalObject objects; // Image cv::Mat inputFrame; cv::Size imgSize; // State unsigned char detectState; } sDMS;
Responses:
Are you using BIOS/Linux?
I'm using BIOS ~!
Hi Please refer ti_components\open_compute\opencv\opencv-3.1.0\docs\vayu_arm_bios_opencv_test_report.xlsx and use the modules which are listed in this report as pass and verified. Object detect module is not listed in this and hence has not verified so you should avoid using these. Thanks, Pramod
I should modify my code. Thanks a lot !