Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
OpenCV错误-精确的眼心跟踪_Opencv_Compiler Errors - Fatal编程技术网

OpenCV错误-精确的眼心跟踪

OpenCV错误-精确的眼心跟踪,opencv,compiler-errors,Opencv,Compiler Errors,我想运行精确的眼睛中心跟踪程序,但这些是我的错误。。。请帮我把这个修好。。我没有足够的时间做这个项目 (如果需要我的所有代码,我可以发送) *EDİT* 我的项目的最后状态;它有生成错误..: 1>C:\opencv243\build\include\constants.h(15): warning C4305: 'initializing' : truncation from 'double' to 'const float' 1>C:\opencv243\build\includ

我想运行精确的眼睛中心跟踪程序,但这些是我的错误。。。请帮我把这个修好。。我没有足够的时间做这个项目

(如果需要我的所有代码,我可以发送)

*EDİT* 我的项目的最后状态;它有生成错误..:

1>C:\opencv243\build\include\constants.h(15): warning C4305: 'initializing' : truncation from 'double' to 'const float'
1>C:\opencv243\build\include\constants.h(26): warning C4305: 'initializing' : truncation from 'double' to 'const float'
1>prog.cpp(16): warning C4068: unknown pragma
1>prog.cpp(44): warning C4068: unknown pragma
1>prog.cpp(48): error C3861: 'round': identifier not found
1>prog.cpp(49): error C3861: 'round': identifier not found
1>prog.cpp(54): warning C4244: 'argument' : conversion from 'float' to 'int', possible loss of data
1>prog.cpp(74): warning C4068: unknown pragma
1>prog.cpp(189): warning C4068: unknown pragma
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
1>----构建已启动:项目:MNOpenCV,配置:调试Win32------
1> hkjn.obj:错误LNK2019:未解析的外部符号“double\u cdecl ComputedDynamicThreshold(类别cv::Mat const&,double)”(?ComputedDynamicThreshold@@YANABVMat@cv@@N@Z)在函数“类别cv::Point\uuuuu cdecl findEyeCenter(类别cv::Mat,类别cv::Rect\uuuu,类别std::basic\uString)”中引用(?findEyeCenter@@YA?AV?$Point)_@H@cv@@VMat@2@V?$Rect_@H@2@V?$basic_string@DU?$char_traits@D@性病病毒$allocator@D@2@@@std@@@Z)
1> hkjn.obj:错误LNK2019:未解析的外部符号“class cv::Mat\uu cdecl MatrixMagnite(class cv::Mat const&,class cv::Mat const&)”(?MatrixMagnite@@YA?AVMat@cv@@ABV12@0@Z) 在函数“类别cv::Point\uuuuu cdecl findEyeCenter(类别cv::Mat,类别cv::Rect\uuuu,类别std::basic\uString)”中引用(?findEyeCenter@@YA?AV?$Point)_@H@cv@@VMat@2@V?$Rect_@H@2@V?$basic_string@DU?$char_traits@D@性病病毒$allocator@D@2@@@std@@@Z)
1> hkjn.obj:错误LNK2019:未解析的外部符号“bool\uu cdecl inMat(类cv::Point\uu,int,int)”(?inMat@@YA\u NV?$Point)_@H@cv@@HH@Z)在函数“bool\uu cdecl floodShouldPushPoint(class cv::Point\uuconst&,class cv::Mat const&)”中引用(?floodShouldPushPoint@@YA_NABV?$Point)_@H@cv@@ABVMat@2@@Z)
1> msvcrdt.lib(crtexe.obj):错误LNK2019:未解析的外部符号u main在函数uuuu_utmaincrtstartup中引用
1> C:\Users\AA\Documents\Visual Studio 2010\Projects\MNOpenCV\Debug\MNOpenCV.exe:致命错误LNK1120:4个未解析的外部
======生成:0成功,1失败,0最新,0跳过==========

也许您忘了为“双循环(双x)”功能添加include

1>------ Build started: Project: MNOpenCV, Configuration: Debug Win32 ------
1>hkjn.obj : error LNK2019: unresolved external symbol "double __cdecl computeDynamicThreshold(class cv::Mat const &,double)" (?computeDynamicThreshold@@YANABVMat@cv@@N@Z) referenced in function "class cv::Point_<int> __cdecl findEyeCenter(class cv::Mat,class cv::Rect_<int>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?findEyeCenter@@YA?AV?$Point_@H@cv@@VMat@2@V?$Rect_@H@2@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>hkjn.obj : error LNK2019: unresolved external symbol "class cv::Mat __cdecl matrixMagnitude(class cv::Mat const &,class cv::Mat const &)" (?matrixMagnitude@@YA?AVMat@cv@@ABV12@0@Z) referenced in function "class cv::Point_<int> __cdecl findEyeCenter(class cv::Mat,class cv::Rect_<int>,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?findEyeCenter@@YA?AV?$Point_@H@cv@@VMat@2@V?$Rect_@H@2@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z)
1>hkjn.obj : error LNK2019: unresolved external symbol "bool __cdecl inMat(class cv::Point_<int>,int,int)" (?inMat@@YA_NV?$Point_@H@cv@@HH@Z) referenced in function "bool __cdecl floodShouldPushPoint(class cv::Point_<int> const &,class cv::Mat const &)" (?floodShouldPushPoint@@YA_NABV?$Point_@H@cv@@ABVMat@2@@Z)
1>MSVCRTD.lib(crtexe.obj) : error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup
1>C:\Users\AA\Documents\Visual Studio 2010\Projects\MNOpenCV\Debug\MNOpenCV.exe : fatal error LNK1120: 4 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
#包括
如果不是,可能是您的pragma指令有问题


致以最诚挚的问候!

感谢您的帮助。并且有新的错误。如以下主题:@AydınAyaydın尝试删除VS创建的sdf文件,右键单击解决方案,选择“清理”,然后重新构建。希望它能起作用!
#include <math.h>