Can't convert object to 'str' for 'filename' Using Opencv.imread and Streamlit

image_path = st.file_uploader(“Browse image file in format of jpeg or png”, type=([“jpeg”,“png”]))
image = cv2.imread(image_path)

throwing error like : Can’t convert object to ‘str’ for ‘filename’

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.