Hi, I am following this multiple devices experiment, my goal is to capture images from the PoE cameras and save it into our storage account.
In the code from the link above, I only modified the part where it shows the frame. Instead of showing it I used cv2.imwrite to save the current frame
for q_rgb, stream_name in q_rgb_list:
in_rgb = q_rgb.tryGet()
if in_rgb is not None:
cv2.imwrite(stream_name, in_rgb.getCvFrame())
-and also changed the resolution from 1080p to 4k
At first we are getting frames and successfully saving it. But it suddenly stopped after running it around 3 to 4 hours.
We are deploying it as an edge module but right now I am just testing it directly to the device (Ubuntu) and it is just stucked in the "print" part where it detects the devices and loads the pipeline. It is stuck in the part where it executes in_rgb = q_rb.tryGet()
and blocked by if in_rgb is not None:
because yeah the in_rgb is indeed None.
Also the last images before the capturing stopped from one of the PoE cameras (we have 2), is blurry and a bit dark. I configured the capturing to be 4k so I expect it is clear and because the other PoE camera captured clear images.
When executing also the code directly to the Ubuntu device, most of the time it shows these errors after detecting the devices connected and loading their pipelines
RuntimeError: Communication exception - possible device error/misconfiguration. Original message 'Couldn't read data from stream: 'rgb' (X_LINK_ERROR)'
#0 Object "[0x7fd368000bb0]", at 0x7fd368000bb0, in
Segmentation fault (Invalid permissions for mapped object [0x7fd368000bb0])
Segmentation fault (core dumped)
Do you know what can be the issue in here? Thanks.