Open johnnynunez opened 1 month ago
It sound like you need a separate process for streaming in the data and another for rendering the frames. We have a multiprocessing example that uses zmq: https://github.com/fastplotlib/fastplotlib/tree/main/examples/notebooks/multiprocessing_zmq
It sound like you need a separate process for streaming in the data and another for rendering the frames. We have a multiprocessing example that uses zmq: https://github.com/fastplotlib/fastplotlib/tree/main/examples/notebooks/multiprocessing_zmq
I have one thread for capture using vidgear, another for videowrite and in the main thread the GUI But opencv is terrible for showing a simple video if you want high fps or same as real time
https://github.com/STCE-Detector/small-fast-detector/tree/demo/demo
You can use fastplotlib to display frames received from another process, the zmq example I linked above shows how to do it. The CONFLATE option in zmq allows you to display only the most recent frame so that the rendering process doesn't create a backlog (you may receive frames faster than the refresh rate of your monitor).
fig = fpl.Figure()
^^^^^^^^^^
AttributeError: module 'fastplotlib' has no attribute 'Figure'
My installation was with pip. Should I install from the repository?
fig = fpl.Figure() ^^^^^^^^^^
AttributeError: module 'fastplotlib' has no attribute 'Figure'
My installation was with pip. Should I install from the repository?
fixed with pip install git+https://github.com/fastplotlib/fastplotlib.git
Yes, we're rapidly developing and the API is evolving but we're happy to help out if you need anything :)
I have discovered this fantastic repository and it looks great. But it would be ideal to have tutorials to migrate code from other libraries like opencv. An example:
How to replace this type of loops by fastplotlib? I want to avoid cv2 and waitkey that drops 50% of the fps. https://forum.opencv.org/t/fps-drop-due-to-the-waitkey-function/3717