-
-
Notifications
You must be signed in to change notification settings - Fork 242
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]: Zero(0
) index device bug in StreamGear
#289
Comments
0
) index device bug in StreamGear's Single-Source Mode0
) index device bug in StreamGear
- 🐛 Fixed debug logs even when `logging=False` in StreamGear's Real-time Mode. (patch suggested by @enarche-ahn) - 🎨 Added length check to `"-video_source"` attribute to correctly infers it as empty(or invalid). - 💡 Updated code comments. ✏️ Docs: Fixed typos in formatting.
Hi @enarche-ahn, can you test if logging problem is fixed in StreamGear by installing # clone the repository and get inside
git clone https://github.com/abhiTronix/vidgear.git && cd vidgear
# checkout the latest development branch
git checkout development
# install normally
pip install .[core]
# OR install with asyncio support
pip install .[asyncio] After installing, run your test example again. Kindly test it as soon as possible and share your results here. Goodluck! |
Just now I finished testing with the development branch, and it worked fine in both case, 'logging=True' and 'logging=False' option.
|
@enarche-ahn Thanks. 👍🏽 |
Successfully resolved and merged in commit 1b9b413 |
Brief Description
There's a hidden bug in StreamGear which incorrectly infers
-video_source
attribute ofstream_params
dictionary parameter as empty when a Zero(0
) index camera device is used as input, and thereby even iflogging=False
StreamGear API outputs debug logs.Acknowledgment
Environment
Actual Behavior
If we use
-video_source
attribute instream_params
dictionary parameter0
(or use zero index camera device), it makesself.__video_source
in StreamGearTrue
, since string("0") is not false or"0"!=False
in python language.Expected Behavior
Must able to handle
-video_source
attribute value properly.Steps to reproduce
Credits
This bug was discovered by @enarche-ahn
The text was updated successfully, but these errors were encountered: