Dear CVB team,
I’m facing a problem with images acquired sparsely in time on a CVB connected camera. To be precise the application handles TCP requests. For each request it grabs one image from the camera and tags it with an ID (extracted from the request).
This looks like a quite simple task but we noticed that the call to stream.wait_for(1000) does not gives the latest image form the stream but an old one the one that should have been returned 2 or 3 requests before and this is just not possible for us as the tag should be applied onto the right image.
We temporarily fixed the issue by calling several time stream.wait_for(1000) for each image grabbing keeping only the last one but it is a quite awful fix, isn’t it? Nevertheless if I believe the documentation, the wait_for(timeout) is intended to send the “next” frame an not “one of the past ones”. Is this issue potentially linked to a missed configuration of the camera that we are not using to stream images but mor to take a snapshot at a random time?
We tried to use the get_snapshot() instead of wait_for(timeout) as this function is told to provide one image for the stream but it always returns an error (WaitError if I’m not wrong). do you have an example of using this function in the python API to provide me?
Here are some configuration data:
OS Ubuntu 18.04
python version 3.6.5
Camera Jaï GO 5100 USB
Std::DeviceVendorName = “JAI Corporation”
Std::DeviceModelName = “GO-5100M-USB”
Std::DeviceManufacturerInfo = “See the possibilities”
Std::DeviceVersion = “0.1.0.5”
Std::DeviceFirmwareVersion = “0.2.0.2”
Cust::DeviceFpgaVersion = “0.1.3.5”