Issue when using point_cloud_res

Hi,

I have been trying to run the concurrent_object_detection_body_tracking.py from the Zed SDK Github.

Line 96 - Line 100 corresponding to the error:

 # Create OpenGL viewer
    viewer = gl.GLViewer()
    point_cloud_res = sl.Resolution(min(camera_infos.camera_configuration.resolution.width, 720), min(camera_infos.camera_configuration.resolution.height, 404)) 
    point_cloud_render = sl.Mat()
    viewer.init(camera_infos.camera_model, point_cloud_res, obj_param.enable_tracking)

Error:

Traceback (most recent call last):
  File "<string>", line 10, in <module>
  File "C:\Users\12016\OneDrive\Documents\Vizard\Camelot\concurrent_object_detection_body_tracking.py", line 100, in <module>
    viewer.init(camera_infos.camera_model, point_cloud_res, obj_param.enable_tracking)
TypeError: init() missing 1 required positional argument: 'res'

I have tried by changing the ‘point_cloud_res’ to ‘pcr’.
It still gives the same error. There is no other variable named ‘res’.

IDE: Vizard 7

Hi @sn3hit,

Sorry for the delay.

I am able to run the sample on my end, please make sure that you are using all of the files present in this directory: zed-sdk/object detection/concurrent detections/python at master · stereolabs/zed-sdk · GitHub
in order to run the sample.

There may be incompatibilities with the files if you have copied them outside of the repository.

Yes, thank you! I was inadvertently using the ogl_viewer files from the example code for Depth Sensing. Once I replaced the files it runs fine now.