1from __future__
import annotations
6from ids_peak_icv
import lib_loader
14 Class for holding a calibration plate.
16 @ingroup ids_peak_icv_python_calibration
17 @since ids_peak_icv 1.1
24 Creates an instance of CalibrationPlate by loading the calibration plate from a file.
26 For a camera calibration a calibration plate is needed.
28 @param file_path: An existing file path to a JSON file containing the calibration plate.
30 @exception IOException: If the given file_path does not exist, or the permissions are not sufficient
32 @exception CorruptedException: If the file content is corrupted.
33 @return A new instance of CalibrationPlate
35 @since ids_peak_icv 1.1
37 c_file_path = file_path.encode(
'utf-8')
41 execute_and_map_return_codes(lib_loader.dll().peak_icv_Calibration_Plate_CreateFromFile,
42 ctypes.pointer(handle),
43 ctypes.c_char_p(c_file_path),
44 ctypes.c_size_t(len(c_file_path)))
45 return cls(_handle=handle)
50 execute_and_map_return_codes(lib_loader.dll().peak_icv_Calibration_Plate_Create,
51 ctypes.pointer(handle))
55 def __init__(self, *args: Any, **kwargs: Any) ->
None:
58 In order to create a CalibrationPlate, please refer to the classmethods.
60 @since ids_peak_icv 1.1
62 self.
_handle = check_init_for_classes_with_classmethods_only(self.__class__.__name__,
63 peak_icv_calibration_plate_handle,
67 if hasattr(self,
'_handle'):
68 lib_loader.dll().peak_icv_Calibration_Plate_Destroy(self.
_handle)
Class for holding a calibration plate.
None __init__(self, *Any args, **Any kwargs)
In order to create a CalibrationPlate, please refer to the classmethods.
CalibrationPlate _create_empty(cls)
CalibrationPlate create_from_file(cls, str file_path)
Creates an instance of CalibrationPlate by loading the calibration plate from a file.