Click here to Skip to main content
15,887,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
"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]


What I have tried:

Compiling a Dlib program which links to OpenCV
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900