ramrudram Ответов: 0

Ошибка Dlib ..как решить


"D:\Ram\Projects\DLib19\dlib-19.0\examples\build\ALL_BUILD.vcxproj" (default target) (1) ->
"D:\Ram\Projects\DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj" (default target) (5) ->
(ClCompile target) ->
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(109): error C2872: 'rectangle' : ambiguou
s symbol [D:\Ram\Projects\DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(109): error C2923: 'std::vector' : 'cv::r
ectangle' is not a valid template type argument for parameter '_Ty' [D:\Ram\Projects\DLib19\dlib-19.0\examples\build\fa
ce_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(109): error C2514: 'std::vector' : class
has no constructors [D:\Ram\Projects\DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(110): error C2662: '_Vector_alloc<!std::i
s_empty<_Alloc_types::_Alloc>::value,std::_Vec_base_types<_Ty,_Alloc_types::_Alloc>>::size_type std::vector<_Ty,_Alloc>
::size(void) throw() const' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &' [D:
\Ram\Projects\DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(115): error C2662: '_Vector_alloc<!std::i
s_empty<_Alloc_types::_Alloc>::value,std::_Vec_base_types<_Ty,_Alloc_types::_Alloc>>::size_type std::vector<_Ty,_Alloc>
::size(void) throw() const' : cannot convert 'this' pointer from 'std::vector' to 'const std::vector<_Ty,_Alloc> &' [D:
\Ram\Projects\DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(117): error C2678: binary '[' : no operat
or found which takes a left-hand operand of type 'std::vector' (or there is no acceptable conversion) [D:\Ram\Projects\
DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(117): error C2780: 'dlib::full_object_det
ection dlib::shape_predictor::operator ()(const image_type &,const dlib::rectangle &) const' : expects 2 arguments - 1
provided [D:\Ram\Projects\DLib19\dlib-19.0\examples\build\face_landmark_detection_exram.vcxproj]
  D:\Ram\Projects\DLib19\dlib-19.0\examples\face_landmark_detection_exram.cpp(117): error C2780: 'dlib::full_object_det
ection dlib::shape_predictor::operator ()(const image_type &,const dlib::rectangle &,std::vector<std::pair<_Ty1,_Ty2>,s
td::allocator<_Ty>> &) const' : expects 3 arguments - 1 provided [D:\Ram\Projects\DLib19\dlib-19.0\examples\build\face_
landmark_detection_exram.vcxproj]


Что я уже пробовал:

Компиляция программы Dlib, которая ссылается на OpenCV

0 Ответов