@@ -5944,7 +5944,8 @@ cdef class InitParameters:
5944
5944
camera_image_flip = FLIP_MODE.AUTO, enable_right_side_measure = False ,
5945
5945
sdk_verbose_log_file = " " , depth_stabilization = 1 , input_t = InputType(),
5946
5946
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 ):
5948
5949
if (isinstance (camera_resolution, RESOLUTION) and isinstance (camera_fps, int ) and
5949
5950
isinstance (svo_real_time_mode, bool ) and isinstance (depth_mode, DEPTH_MODE) and
5950
5951
isinstance (coordinate_units, UNIT) and
@@ -5958,7 +5959,7 @@ cdef class InitParameters:
5958
5959
isinstance (optional_opencv_calibration_file, str ) and
5959
5960
isinstance (open_timeout_sec, float ) and
5960
5961
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 ) ) :
5962
5963
5963
5964
filelog = sdk_verbose_log_file.encode()
5964
5965
fileoption = optional_settings_path.encode()
@@ -5971,7 +5972,8 @@ cdef class InitParameters:
5971
5972
enable_right_side_measure,
5972
5973
String(< char * > filelog), depth_stabilization,
5973
5974
< 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))
5975
5977
else :
5976
5978
raise TypeError (" Argument is not of right type." )
5977
5979
0 commit comments