Using Request functions in signal_function
#1332
-
|
Section 6.5 of the picamera2 manual talks about performing asynchronous captures, and the use of the But the section also states:
I found this a little big vague. Does this mean all functions in the library, or just the camera control ones? Are the methods on the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
I'm sorry this is a bit vague. The functions that will definitely cause trouble in the Where you have an array, or a request, I think fishing data out of it, saving it, that kind of thing is fine. I think you can probably even set controls and release a request too. Though bear in mind that you are inside the camera loop here, so you probably don't want to do anything super-expensive either - but I guess it's a case of trying it and seeing how it works. |
Beta Was this translation helpful? Give feedback.
I'm sorry this is a bit vague. The functions that will definitely cause trouble in the
signal_functioncallback will be ones that can block waiting for camera frames to arrive. So that would include all thecapture_xxxmethods,stop,switch_modemethods.Where you have an array, or a request, I think fishing data out of it, saving it, that kind of thing is fine. I think you can probably even set controls and release a request too. Though bear in mind that you are inside the camera loop here, so you probably don't want to do anything super-expensive either - but I guess it's a case of trying it and seeing how it works.