i tried to write the path in cascadeclassifier and the haarcascade_frontalface_default.xml and haarcascade_eye.xml are already in the same folder as my code. But it still shows the same error. Someone please help me
your paths are wrong.
you need to quote the backslashes in those strings. or use r-strings, a feature of python.
please work through this introduction to python
it worked!! thank you man. It seems i need to learn more the basic
'\' has special meaning in any string - even in path
'\n' means new line,
'\t' means tabulator, etc.
And you have
'\test' in path so it treats
You may use prefix
'r' to create
'raw' string and then
'\'will be treated as normal char
or you have to use double
or you can try to use
'/' like in Linux