Skip to content

When requested, captures the screen and returns the image data.

License

Notifications You must be signed in to change notification settings

parkchamchi/screencaptureserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screen Capture Server

When requested, captures the screen and returns the image data.

Usage

Open the server.

python screencaptureserver.py

Send a GET request (utilize test.py)

GET localhost:5000/scserver/default/jpg

To capture the second monitor:

GET localhost:5000/scserver/default/jpg?monitor_num=2

Set the margin by {left, right, up, down}. To cut the left half:

GET localhost:5000/scserver/default/jpg?monitor_num=2&left=50

gui.py is a simple tkinter script to set the margin. Use left/right mouse to set the borders.
gui

GET localhost:5000/scserver/gui/jpg

Supported methods

  • jpg
  • png
  • ppm

Benchmark

For 1080p, I could get 20fps for videos and 30fps for relatively still screens.

Misc

This program uses python-mss
This program is a side project for DepthViewer

About

When requested, captures the screen and returns the image data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages