Error:
File “/home/appuser/venv/lib/python3.7/site-packages/streamlit/script_runner.py”, line 338, in _run_script
exec(code, module.dict)
File “/app/sketchbot/main.py”, line 15, in
img1 = cv2.imread(input) # reading the image file
TypeError: Can’t convert object of type ‘bool’ to ‘str’ for ‘filename’
Opencv cannot read the uploaded image file.
Github repo : GitHub - HarisankarSNair/Sketchbot: App for converting an image into its pencil sketch.
Any help is highly appreciated!