Starting and stopping f455 camera with Python
Hi Yu-Chern Peh , Munesh , Kahren
In the examples we looked at by considering the "viewer.py" code in Python, we can start the camera and take its image with the following two lines.
"p = rsid_py.Preview(preview_cfg)
p.start(on_image)"
However, in the stop part of the camera, the application is closed directly by using the "os._exit(0)" line. I would appreciate if you can help us how to stop the camera without closing the application.
-
Hi Kahren
yes, I tried, but it didn't work. I thought of adding a condition to the endless loop in the code.
-
Hello,
Regarding this request, let's wait for the developers in GitHub to comment about this.
From my side, I tried exiting the thread by using thread.join() or set daemon=False, but resulting in the application hangs.
Regards,
Yu-Chern
Intel Customer Support
-
Hi Yu-Chern Peh
Yes, I'm running the tests with thread.join(). However, since the application crashes on the python side, the images are corrupted.
Please sign in to leave a comment.
Comments
4 comments