I am loading a cascade classifier from a file in OpenCV using python. Since the CascadeClassifier()
method requires the filename to be the absolute filename, I have to load the absolute filename.
However, I am deploying and using it on Heroku and I can't seem to get the absolute path of the file. I've tried using os.getcwd() + '\cascader_file.xml'
, but that still does not work.
I would like to know how to load the classifier on the Heroku deployment