Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

I can not load xml file

$
0
0
Hi. i want write face detection in opencv by c++ (in vs 2012) but i have problem to load xml file.i uploaded xml file in solution project and give relative address to load xml file but can not load the file,also placed xml file in drive "i" and give the absolute address , But the program is not able to load files. also all library added by property sheet.please help me to solve this problem, this is my code: CascadeClassifier face; if (face.load("haarcascade_frontalface_alt.xml")) { cout << "face_xml file is load"; } else { cout << " face_xml file doesn't load"; } and : if (face.load("i:/haarcascade_frontalface_alt.xml")) { cout << "face_xml file is load"; } else { cout << " face_xml file doesn't load"; } and in both way cout "face_xml file doesn't load" . thanks.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>