-
-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: ScreenGear's options wrong names #372
Comments
Thanks for opening this issue, a maintainer will get back to you shortly! In the meantime:
|
@xiety This is not a bug. VidGear follows pillow's Coordinate System which states as follows:
That would look like this: Pillow's XY coordinate system, which is different from what you're targeting for. Kindly make changes according to it. |
@abhiTronix, I'm sorry, but I can't understand why I need to put |
I never said it should |
But the fact of the matter is that now in the |
@xiety let me check. |
@xiety Yes |
I'm doing a simple test:
The result is |
@xiety Apologies, visually this is really hard to see. Yeah you're correct, since all those backend libraries are following PIL.ImageGrab.grab bbox |
@xiety I'll add this to ScreenGear documentation. |
…d. (Fixes #372) - 🩹 Fixed "mss" backend disabled when `monitor` parameter is not defined. Stabilizer Class: - 🔥 Removed redundant code - ✏️ Fixed typos.
…ixes #372) - 📝 Updated information related to Supported Dimensional Attributes in ScreenGear docs. - ✏️ Fixed typos and context. - 🍱 Added new asset `screengear_region.png`. - 📄 Fixed missing `compression_mode` flags in WriteGear API docs.
Successfully resolved and merged in commit 3c0dd5d |
Description
I need to capture an exact rectangle starting from
x
,y
and with size ofwidth
andheight
I've came up with following working code, but it looks strange:
Why
top
should bex
and noty
?Why
width
must be calculated like it isright
?I think it should be
or
Issue Checklist
Expected behaviour
Correct bounding box
Actual behaviour
Incorrect bounding box
Steps to reproduce
irrelevant
Terminal log output
No response
Python Code(Optional)
VidGear Version
0.3.1
Python version
3.10.7
OpenCV version
4.8.0
Operating System version
Windows 10
Any other Relevant Information?
No response
The text was updated successfully, but these errors were encountered: