The getPeriod returns 0.1 seconds, meaning updateModule should get called in sync with the internal clock.
However, within updateModule, the function acquirePointsFromBlob calls a blocking read, meaning that you're trying to be in sync with the incoming images (i.e. asynchronously with the internal clock).
There's thus an inconsistency you should address somehow. To be synchronous or to be asynchronous: what's the best solution and how should you modify your code accordingly?
The
getPeriod
returns0.1
seconds, meaningupdateModule
should get called in sync with the internal clock.However, within
updateModule
, the functionacquirePointsFromBlob
calls a blockingread
, meaning that you're trying to be in sync with the incoming images (i.e. asynchronously with the internal clock).There's thus an inconsistency you should address somehow. To be
synchronous
or to beasynchronous
: what's the best solution and how should you modify your code accordingly?