Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
That error shouldn't be happening, and is most likely some kind of error in mss. If you haven't already, I'd suggest trying to update your mss (e.g. python3 -m pip install --upgrade mss, and if that doesn't help then you should create an Issue on the GitHub page, mentioning your OS and what you're doing that's causing that error.
If you're interested in doing this as a realtime processing thing, you might be interested in my library pythonic-cv, which provides a pythonic and efficient wrapper for OpenCV video streams and allows using mss as a backend, which means you get to focus on the processing instead of setting up the video stuff.