python-mss

how to capture the mouse pointer in screenshot


I use the python-mss to capture the screenshot and use these screenshot with opencv to generate a video recording. As I want to capture the mouse movement in the video. But it seems that the mouse pointer can not be captured in snapshot. How can I capture the mouse pointer with python-mss?

Thanks in advance if anyone can help.


Solution

  • There is an opened issue for that: #55. You can find some clues in the comments.

    Edit 2023-04-09: as of MSS 8.0.0, it's possible to capture the cursor on GNU/Linux (doc).