I tried using import cv2 and various combinations of opencv and cv2 codes in the requirements.txt as well as the app.py.
I get this ImportError:
  File "/home/user/.local/lib/python3.8/site-packages/cv2/__init__.py", line 8, in <module>
    from .cv2 import *
ImportError: libGL.so.1: cannot open shared object file: No such file or directory

I’ve seen a couple of Spaces that have the same error, and have not been able to see a Space that does deploy a program with a cv2 successfully.  I would suggest leads on how to address this Import Error, or some samples of working code.
Thank you!
Maria