Questions tagged [python-mss]

An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.

77 questions
0
votes
0 answers

Recording full screen at lower resolution (mss)

I am trying to make a Python script that records my entire screen but on a 70x34 resolution while cutting off as little as possible on a 16:9 monitor. I have this example code down below that uses the "mss" library to take screenshots of the monitor…
Eli
  • 1
  • 1
0
votes
2 answers

OpenCV Not Properly Writing Adding Frames to Video

I'm using mss, numpy, and OpenCV to make my own recording software, but when I record, all of my videos end up with a 258 bytes file size (no matter the length of the video), and I can't view the video. No frames seem to be in my videos. What am I…
0
votes
1 answer

python-mss speedup grab until 60fps

I have this simple multiprocessing script which: I define grabber process with using mss module to get screenshot I define displayer process with using pygame module to display current screenshot (current frame) Even though I'm applying…
0
votes
0 answers

Mss grab to numpy to cv2MatchTemplate

sorry in advance if the question as been requested . I want to take a screenshot with MSS , send it to CV2 ( for template matching ) with NUMPY (and after do euclidian distance for fin the closest from a point ) . But i can't :( I think is a…
BaxiDi
  • 1
  • 1
0
votes
0 answers

cannot import name 'mss' from partially initialized module 'mss' (most likely due to a circular import)

mss library bug, I was trying most simple Example Program. I have reinstall that library but still same error. from mss import mss with mss() as sct: sct.shot() And that's what I got.
0
votes
1 answer

Can I get the screenshot data as a file-like object or the image in bytes without saving any file?

I want to send a screenshot over a discord webhook. I am using the dhooks module for this. To send a file, I need a "file-like object" so I want to get a file-like object without having the need to store the screenshot as a file. Any idea how to do…
0
votes
1 answer

Can't seem to properly run python MSS library

I am trying to learn the MSS python library to stream/reflect what's in the monitor. My intention is to use it with OpenCV to process the image. I got this source code from a youtube tutorial but I am getting the this error: (I can't solve this to…
Ryan Webb
  • 334
  • 1
  • 2
  • 7
0
votes
0 answers

How to extract word from screen using pytesseract

I'm trying to extract word from the screen using pytesseract. the word is white and the background of it is in other colors. screenshot image the word of the screenshot is always white but background might be changed. A straightforward method using…
0
votes
0 answers

Rtsp stream python mss screen captures using gstreamer

No Stream content when view from rtsp player. I have captured screen using python mss, converted to opencv frame and trying to live stream using gstreamer ffplay rtsp://127.0.0.1:8554/test doesnot play any stream neither gives any error. I have…
Amulya Acharya
  • 701
  • 14
  • 17
0
votes
0 answers

ValueError: String length does not equal format and resolution size

I need help I have attempted to implement the following code into my current project: Screen sharing in python However the client returns ValueError:String length does not equal format and resolution size. Everything seems to be working except for…
AwesomeDude091
  • 71
  • 1
  • 12
0
votes
1 answer

Capturing screen of another windows user with python-mss

I'm working on screen capture on Windows using Python and mss, and I'm wondering if I can capture the screen of another user on the same machine. I have two windows users on the machine: one running a kiosk application in a browser on full screen…
mkisantal
  • 644
  • 6
  • 13
0
votes
0 answers

How can I effectively compress a frame in memory?

I'm testing out screen-casting in Python. The code for both the client and server is relatively simple. In sum, what I was previously doing was: On the server: Grabbing screen with mss Serializing with pickle Sending data Repeating for every…
zeval
  • 147
  • 1
  • 10
0
votes
1 answer

How to record my computer screen with high FPS?

I'm trying to add a high FPS screen recorder to my application. I use Python 3.7 on Windows. The modules and methods I've tried are mss (python-mss) and d3dshot, but I'm still only achieving 15-19 FPS for a long video (more than 20 seconds). The…
0
votes
1 answer

Faster screen capture

Is it possible to capture the screen in gray? Will it speed up screen capture versus color capture? If it speeds up the capture, it will be better than applying filters. Is it possible to record with more fps than monitor Hz? For example: I…
userpy
  • 17
  • 4
0
votes
3 answers

TclError: image "pyimage3" doesn't exist (works only on first run)

I'm trying to create a screenshot area tool which can be triggered from python code. It works at first call but, on second call I get bellow error: TclError: image "pyimage2" doesn't exist Only after I restart the kernel will work, but only once,…
Alin Climente
  • 117
  • 1
  • 2
  • 14