System hangs when fetching images from SceneScanPro
Posted: Tue Dec 05, 2023 10:02 am
Hi Konstantin,
I am working with 2 SceneScanPro and using python api of SDK. Below is the code used to fetch device information and image.
Until yesterday, the code almost always hanged when fetching data for the second camera, however today even single camera is not working. The code hangs on receive call. I have tested the code with AsyncTransfer api as well, but the issue persists. Both cameras are available on firefox and depth data can be seen on preview tab.
Approx 2-3 times, the sdk hangs on param fetch, but this gets fixed on restarting camera.
During my tests, I have made sure to close firefox before running code. This didnt help.
Please let me know if there is any more information needed that might be needed to trouble shoot the issue.
I am working with 2 SceneScanPro and using python api of SDK. Below is the code used to fetch device information and image.
Code: Select all
import visiontransfer
import logging
from typing import List, Optional
import open3d
from open3d.camera import PinholeCameraIntrinsic
logging.basicConfig(level=logging.INFO)
device_enum = visiontransfer.DeviceEnumeration()
devices: List[visiontransfer.DeviceInfo] = device_enum.discover_devices()
for device in devices:
logging.info(f"FPS - {device.get_status().get_last_fps()}")
camera_serial_id = device.get_ip_address()
logging.info(f"Device Info - {device}")
logging.info(f"Device {device} is set to work with {device.get_network_protocol()}.")
params = visiontransfer.DeviceParameters(device)
params.set_operation_mode(visiontransfer.OperationMode.STEREO_MATCHING)
transfer = visiontransfer.ImageTransfer(device)
image_set = transfer.receive()
rec3d = visiontransfer.Reconstruct3D()
rgbd = rec3d.create_open3d_rgbd_image(image_set, depth_trunc=7.0, min_disparity=1)
open3d.visualization.draw_geometries([rgbd])
Approx 2-3 times, the sdk hangs on param fetch, but this gets fixed on restarting camera.
During my tests, I have made sure to close firefox before running code. This didnt help.
Please let me know if there is any more information needed that might be needed to trouble shoot the issue.