@@ -5944,7 +5944,8 @@ cdef class InitParameters:
59445944 camera_image_flip = FLIP_MODE.AUTO, enable_right_side_measure = False ,
59455945 sdk_verbose_log_file = " " , depth_stabilization = 1 , input_t = InputType(),
59465946 optional_settings_path = " " ,sensors_required = False ,
5947- enable_image_enhancement = True , optional_opencv_calibration_file = " " , open_timeout_sec = 5.0 , async_grab_camera_recovery = False , grab_compute_capping_fps = 0 ):
5947+ enable_image_enhancement = True , optional_opencv_calibration_file = " " ,
5948+ open_timeout_sec = 5.0 , async_grab_camera_recovery = False , grab_compute_capping_fps = 0 ):
59485949 if (isinstance (camera_resolution, RESOLUTION) and isinstance (camera_fps, int ) and
59495950 isinstance (svo_real_time_mode, bool ) and isinstance (depth_mode, DEPTH_MODE) and
59505951 isinstance (coordinate_units, UNIT) and
@@ -5958,7 +5959,7 @@ cdef class InitParameters:
59585959 isinstance (optional_opencv_calibration_file, str ) and
59595960 isinstance (open_timeout_sec, float ) and
59605961 isinstance (async_grab_camera_recovery, bool ) and
5961- isinstance (grab_compute_capping_fps, float )) :
5962+ isinstance (grab_compute_capping_fps, float ) or isinstance (grab_compute_capping_fps, int ) ) :
59625963
59635964 filelog = sdk_verbose_log_file.encode()
59645965 fileoption = optional_settings_path.encode()
@@ -5971,7 +5972,8 @@ cdef class InitParameters:
59715972 enable_right_side_measure,
59725973 String(< char * > filelog), depth_stabilization,
59735974 < CUcontext> 0 , (< InputType> input_t).input, String(< char * > fileoption), sensors_required, enable_image_enhancement,
5974- String(< char * > filecalibration), < float > (open_timeout_sec), async_grab_camera_recovery, < float > (grab_compute_capping_fps))
5975+ String(< char * > filecalibration), < float > (open_timeout_sec),
5976+ async_grab_camera_recovery, < float > (grab_compute_capping_fps))
59755977 else :
59765978 raise TypeError (" Argument is not of right type." )
59775979
0 commit comments