i have error that opencv not work why?
!pip install streamlit tensorflow pillow
!pip install beautifulsoup4 requests nltk
!pip install opencv-python
!pip install opencv-contrib-python
!pip install opencv-python-headless
!pip install opencv-contrib-python-headless
%%writefile app.py
import os
import cv2
import numpy as np
import streamlit as st
from PIL import Image
from tensorflow.keras.models import load_model
the above is my installations
You can try re-installing the opencv package. It’s best to use python virtual env when installing other libraries as it may cause issues with the existing ones.
Also, your query isn’t related to Streamlit but to the Python setup. You can read more here .
Goyo
May 22, 2024, 7:13am
3
Looks like you forgot to install opencv in streamlit cloud.
You need a requirements.txt file for the deployment.
Search for opencv keyword here, there are dozens of threads…
system
Closed
November 18, 2024, 9:48am
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.