This is an streamlit app of brain tumor detector that can automatically detect brain tumor of image from MRI machine.
- Open terminal and cd to this directory
- Create python environment
python -m venv .\
- Activate environment
venv\scripts\activate
- Install dependencies
pip install tensorflow streamlit opencv-python-headless imutils pipreqs
- Start streamlit
streamlit run tumor_detector_app.py
- Open terminal and cd to this directory
- Create python environment
python -m venv .\
if not - Activate environment
venv\scripts\activate
- Install dependencies
pip install tensorflow streamlit opencv-python imutils pipreqs
- Make sure streamlit app is working
streamlit run tumor_detector_app.py
- Ouput requirements.txt
pipreqs .\
- Modify requirements.txt, remove any packages except following:
- imutils
- opencv_python_headless
- tensorflow
Note:
- We must use opencv-python-headless package instead of opencv-python when deploy to streamlit otherwise an error will appear when app start
Importerror: libgl.so.1: cannot open shared object file: no such file or directory opencv error
. Same error was discussed here - Python 3.9 is recommend