easyidp.pix4d.read_cam_ssk#
- easyidp.pix4d.read_cam_ssk(ssk_path)#
Get the camera model name, for
easyidp.reconstruct.Sensor
object- パラメータ:
ssk_path (str) --
- 戻り値:
ssk_info = { "label": str "type": str, e.g. frame / fisheye ... "pixel_size": [h, w] "pixel_size_unit": "mm" "image_size_in_pixels": [h ,w] "orientation": 1 # guess 0 -> w, h? "photo_center_in_pixels": [h, w] }
- 戻り値の型:
dict
注釈
SSK file contents:
begin camera_parameters FC550_DJIMFT15mmF1.7ASPH_15.0_4608x3456 (RGB)(1) focal_length: 15.00522620622411729130 ppac: 0.02793232590500918308 -0.02181191393910364776 ppbs: 0 0 film_format: 13.12498944000000200560 17.49998592000000030566 lens_distortion_flag: off io_required: yes camera_type: frame media_type: digital pixel_size: 3.79774000000000011568 3.79774000000000011568 image_size_in_pixels: 3456 4608 scanline_orientation: 4 photo_coord_sys_orientation: 1 photo_coord_sys_origin: 1727.50000000000000000000 2303.50000000000000000000 focal_length_calibration_flag: off calibrated_focal_length_stddev: 0.03 ppac_calibration_flag: off calibrated_ppac_stddevs: 0.003 0.003 self_calibration_enabled_params: 0 antenna_offsets: 0 0 0 end camera_parameters
サンプル
Data prepare
>>> import numpy as np >>> np.set_printoptions(suppress=True) >>> import easyidp as idp >>> test_data = idp.data.TestData() >>> param_folder = str(test_data.pix4d.maize_folder / "1_initial" / "params") >>> param = idp.pix4d.parse_p4d_param_folder(param_folder)
Then use this function:
>>> idp.pix4d.read_cam_ssk(param['ssk']) { 'label': 'FC550_DJIMFT15mmF1.7ASPH_15.0_4608x3456', 'type': 'frame', 'pixel_size': [3.79774, 3.79774], 'image_size_in_pixels': [3456, 4608], 'orientation': 1, 'photo_center_in_pixels': [1727.5, 2303.5] }