Capturing Mouse Cursor

I’ve been trying to capture the mouse cursor and be able to save it as an image or something else to use in an image processing software like openCV later.

I’ve tried libraries in Python online and some C++ code but they haven’t worked for me. Using MSS on python I was able to capture the mousecursor within my image but the problem was when I tried using it from another thread, the mouse cursor would not appear. How can I fix this in C++ or Python?

Leave a Comment