Error while using the multiscale function

I am trying to execute the code wherein the list of tuples of dimensions is displayed when webcam stream is enabled. But I get the following error in it.

I have the haarcascades folder downloded in the python dorectory where I am executing the code. Should I take my code file inside the haarcascades folder then?