Skip to content
Snippets Groups Projects
Commit d4ce87c2 authored by Cees Voesenek's avatar Cees Voesenek
Browse files

Example on how to use 3D-reconstructor settings

parent 579e5dc2
No related branches found
No related tags found
No related merge requests found
...@@ -66,20 +66,20 @@ def gen_dlt(nb_cam, img_size, xyz_path, xy_path, save_path, points_to_remove=[], ...@@ -66,20 +66,20 @@ def gen_dlt(nb_cam, img_size, xyz_path, xy_path, save_path, points_to_remove=[],
class Reconstructor3D: class Reconstructor3D:
def __init__(self, nb_cam, img_size): def __init__(self, nb_cam, img_size, settings):
""" """
Class used to reconstruct 3d coordinates of object from 2d coordinates on images Class used to reconstruct 3d coordinates of object from 2d coordinates on images
Args: Args:
nb_cam: number of camera (minimum 2) nb_cam: number of camera (minimum 2)
img_size: size of the images in pixel (width, height) img_size: size of the images in pixel (width, height)
settings: Settings for the 3D reconstruction.
""" """
self.nb_cam = nb_cam self.nb_cam = nb_cam
self.img_size = img_size self.img_size = img_size
# TODO this use of dataclass Reconstructor3DSettings doesn't seems really useful self.recon3d_settings = settings
self.recon3d_settings = Reconstructor3DSettings()
self.dlt_coefs = np.zeros((self.nb_cam, 12)) self.dlt_coefs = np.zeros((self.nb_cam, 12))
self.pts_dict = {} self.pts_dict = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment