2023-08-18 15:21:28.203 Uncaught app exception
Traceback (most recent call last):
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/scriptrunner/script_runner.py”, line 552, in _run_script
exec(code, module.dict)
File “/mount/src/hand_detection/hand_detection.py”, line 2, in
import cv2
ModuleNotFoundError: No module named ‘cv2’
I am getting this error while deploying.
My github repo: https://github.com/AyushMehta1702/Hand_Detection/tree/main
In my requirement.txt file, i have tried these all types of opencv installation possibilities:
opencv-python
opencv-python-headless
opencv-contrib-python-headless
But still i am getting the same above error.
In am requirements file i have used
Numpy
Opencv-python (other type also)
Streamlit
Ultralytics
Please someone help in that.
Thank you very much in advance.