PylonCapture lags with PredictPose--part II #2429
-
|
Hi, I'm having the same issue as #1233. I am unable to do either in the near term, and in exploring workarounds, I had several questions + observations: Firstly, I managed to avoid the lags for
I used TimeInterval to measure how fast each chain is--and I was surprised that PredictPose basically slows down whatever VideoWriter is doing, or essentially, the output of the PublishSubject itself. In other words, VideoWriter is forced to wait for frames at the same speed that PredictPose is operating on, and lag accumulates. Alternatively, Dammy O. suggested this hack: Is there a more correct way of achieving this split between VideoWriter (where I want all frames), and PredictPose (where I'm ok with dropping a few frames here and there), and not having any lag? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
You can decouple the bottleneck by using ObserveOn. This way the videowriter/acquisition should not have to wait on the thread from the pose estimation. Alternatively (which is a simpler solution) simply use a Slice operator to downsample the input to the inference operator. |
Beta Was this translation helpful? Give feedback.


You can decouple the bottleneck by using ObserveOn. This way the videowriter/acquisition should not have to wait on the thread from the pose estimation.
Alternatively (which is a simpler solution) simply use a Slice operator to downsample the input to the inference operator.