Abhishek Thakur

Results 105 comments of Abhishek Thakur

@AlphaArslan What do you mean by redirect? Do you want to use this PR? If so, then you can clone and install this as follows: ```sh git clone https://github.com/abhiTronix/py-qmc5883l.git cd...

@roninpawn Thank you for detailed and well-explained post. It sounds very interesting to me and you've made some very good suggestions. But let's get down to the nitty-gritty and practically...

> Many Python developers (including me) expect objects with an "open/start -> close" workflow to behave as context managers, i.e. support the with ... as ... construct. > There are...

@sueskind And most importantly **Python Context managers are not backward compatible with current API but current API can be converted to Python Context managers easily and safely using wrapper**. Here's...

> First, I think there is a small misunderstanding. I don't want to remove or replace the old methods (start()/stop()/close()/...) but add the __enter__ and __exit__ methods which simply call...

@sueskind I'm looking into adding this Context Manager feature for non-multithreaded gears like WriteGear and StreamGear, and it will be a great idea. I'm also implementing this feature for DeFFcode...

**Context manager support for WriteGear API implemented in commit 0d1592c5ed8708a7887a42a815a68ace3fcc104c**

> The idea would be to replace the OpenCV VideoStream API with something more performant, like ffmpeg, since ffmpeg is capable of outputting raw video into stdout. @golyalpha **I Don't...

> @abhiTronix, how open are you to using PyAV instead of FFMpeg in a subprocess? @golyalpha PyAV directly provides Pythonic binding for the FFmpeg libraries, so there's no need of...

> I should probably investigate if the ffmpeg backend for opencv works better though. @Thomasedv Nope. It works worse according to my experience.