Error while deploying an app with mediapipe

@ajaygithub2 Try this one:

requirements.txt

streamlit
mediapipe

packages.txt

libgl1-mesa-glx
libglib2.0-0

test.py

import streamlit as st
import cv2
import mediapipe as mp

print(st.__version__)
print(cv2.__version__)
print(mp.__version__)

gave me the folowing log output in a Python 3.9. environment

1.21.0
4.7.0
0.9.2.1

The above quick solution should work. IMHO the problem with mediapipe is, that it enforces the installation of a non-headless version of opencv, which causes issues in a headless environment. If i have the time, i will elaborate more on this.