Open laminggg opened 1 year ago
replace cv::String Str = imagepath;
for std::string Str = imagepath;
replace
cv::String Str = imagepath;
forstd::string Str = imagepath;
thanks for your reply, i replace cv::String Str = imagepath; for std::string Str = imagepath in the line 221 and line 248 of main.cpp, it seems to encounter anothor problem in line 248 "std::string &Str = NameFaces[i];" with error "cannot initialize a reference of type "std::__cxx11::string &" with a value of type "cv::String" (non-const qualified)", how can i address it, thank you.
Dear @laminggg,
cv::String is linked to std::string. They are almost identical. Somehow your OpenCV installation doesn't support all the std::string calls. Best to use not cv::String but std::string. This way you know for sure everything works well. I have updated the code. Please replace main.cpp with the new version found in this repo.
thank you very much!
i got error ‘class cv::String’ has no member named ‘erase’ when i build this project in codeblocks, how can i address it?