-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
How to do a snapshoot while displaying video stream? #10113
Comments
Hi @ZhongQingliang If you wanted to be able to save an RGB image snapshot whilst video streaming continues seamlessly then that might require the use of multithreading like the Python case linked to below, where a RealSense user had one thread for the live-captured images and another thread to write the captured images to video. Another Python discussion about multithreading is at #6039 If having continuous RGB streaming wasn't a requirement then a simpler Python example at #9448 (comment) demonstrates how to save an image using imwrite |
@MartyG-RealSense It seems the pipeline.wait_for_frame() method can be called by different threads at the same time, isn't it? |
You can move frames from one thread to another when using wait_for_frames(), as described in the section of Intel's Frame Management documentation linked to below. https://dev.intelrealsense.com/docs/frame-management#section-frames-and-threads |
Hi @ZhongQingliang Do you require further assistance with this case, please? Thanks! |
Case closed due to no further comments received. |
Issue Description
I'm using the pyrealsense for convenience to develop an application. How can I do an RGB snapshoot by a hot key meanwhile displaying video stream?
The text was updated successfully, but these errors were encountered: