Load classifier on Heroku Python
I figured it out. All I needed to do was use the os.path.abspath() method to convert the relative path to an absolute path
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