You may be getting this error because you’re missing system libraries that OpenCV depends on. I believe that Vercel’s serverless environment doesn’t include these libraries by default.
Could you try replacing the opencv-python package with opencv-python-headless? So in your requirements.txt file, replace opencv-python==4.10.0.82 with: