Skip to content

Commit

Permalink
Add Benchmark 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
NiiightmareXD authored Nov 10, 2023
1 parent b1a4c26 commit c9191f6
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions windows-capture-python/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Windows Capture
![Crates.io](https://img.shields.io/crates/l/windows-capture) ![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/NiiightmareXD/windows-capture/rust.yml) ![PyPI - Version](https://img.shields.io/pypi/v/windows-capture)

**Windows Capture** is a highly efficient Rust and Python library that enables you to effortlessly capture the screen using the Graphics Capture API. This library allows you to easily capture the screen of your Windows-based computer and use it for various purposes, such as creating instructional videos, taking screenshots, or recording your gameplay. With its intuitive interface and robust functionality, Windows-Capture is an excellent choice for anyone looking for a reliable and easy-to-use screen capturing solution.
**Windows Capture** is a highly efficient Rust and Python library that enables you to capture the screen using the Graphics Capture API effortlessly. This library allows you to easily capture the screen of your Windows-based computer and use it for various purposes, such as creating instructional videos, taking screenshots, or recording your gameplay. With its intuitive interface and robust functionality, Windows Capture is an excellent choice for anyone looking for a reliable, easy-to-use screen-capturing solution.

**Note** this README.md is for [Python library](https://github.com/NiiightmareXD/windows-capture/tree/main/windows-capture-python) Rust library can be found [here](https://github.com/NiiightmareXD/windows-capture)

Expand Down Expand Up @@ -39,7 +39,7 @@ capture = WindowsCapture(
def on_frame_arrived(frame: Frame, capture_control: CaptureControl):
print("New Frame Arrived")

# Save The Frame As An Image To Specified Path
# Save The Frame As An Image To The Specified Path
frame.save_as_image("image.png")

# Gracefully Stop The Capture Thread
Expand All @@ -56,6 +56,11 @@ def on_closed():
capture.start()
```

## Benchmark

Windows Capture Is The Fastest Python Screen Capture Library
![Benchmark](https://github.com/NiiightmareXD/windows-capture/assets/90005793/650f58c1-46b4-4c14-9b45-3b3ed44d85fa)

## Contributing

Contributions are welcome! If you find a bug or want to add new features to the library, please open an issue or submit a pull request.
Expand Down

0 comments on commit c9191f6

Please sign in to comment.