First time here? Check out the FAQ!
answered 2018-03-26 12:50:45 -0600
"Why do I encounter this error" -- because the path to the cascade file is wrong.
you probably did not run this from within the samples/cpp folder.
try to give an absolute path to the cascade files instead.