From 74f1673cb35e06220b61776fdb41e4ea0eeaf7ad Mon Sep 17 00:00:00 2001 From: davidpagnon Date: Sun, 17 Sep 2023 20:47:39 +0200 Subject: [PATCH] set up for new goals --- Pose2Sim/Demo/User/Config.toml | 15 ++++--- Pose2Sim/Demo/User/test.toml | 13 +++++-- Pose2Sim/Demo/calibration/Calib_qualisys.toml | 39 +++++++++++++++++++ Pose2Sim/Empty_project/User/Config.toml | 13 +++++-- 4 files changed, 69 insertions(+), 11 deletions(-) create mode 100644 Pose2Sim/Demo/calibration/Calib_qualisys.toml diff --git a/Pose2Sim/Demo/User/Config.toml b/Pose2Sim/Demo/User/Config.toml index 7a27e5b..3979ab5 100644 --- a/Pose2Sim/Demo/User/Config.toml +++ b/Pose2Sim/Demo/User/Config.toml @@ -20,9 +20,15 @@ opensim_folder_name = 'opensim' [pose] -pose_model = 'BODY_25B' #CUSTOM, BODY_25B, BODY_25, BODY_135, BLAZEPOSE, HALPE_26, HALPE_68, HALPE_136, COCO_133, COCO, MPII are available, -# from DeepLabCut, OpenPose, MediaPipe BlazePose, and AlphaPose -# See Pose2Sim\skeleton.py for their skeleton hierarchy +pose_model = 'BODY_25B' #With openpose: BODY_25B, BODY_25, BODY_135, COCO, MPII. + #With mediapipe: BLAZEPOSE. + #With alphapose: HALPE_26, HALPE_68, HALPE_136, COCO_133. + #With deeplabcut: CUSTOM + # See Pose2Sim\skeleton.py for their skeleton hierarchy +# What follows has not been implemented yet +pose_framework = 'openpose' # 'openpose', 'mediapipe', 'alphapose', 'deeplabcut' +overwrite_pose = false +openpose_path = '' # only checked if OpenPose is used [calibration] @@ -54,7 +60,7 @@ calibration_type = 'convert' # 'convert' or 'calculate' # 'board' should be large enough to be detected when laid on the floor. # 'scene' involves manually clicking any point of know coordinates on scene. Usually more accurate if points are spread out moving_camera = false # Not implemented yet - calculate_extrinsics = true # true or false (lowercase) + calculate_extrinsics = true # true or false (lowercase) show_reprojection_error = true # true or false (lowercase) extrinsics_extension = 'png' # any video or image extension @@ -112,4 +118,3 @@ display_figures = true # true or false (lowercase) kernel_size = 9 [opensim] - diff --git a/Pose2Sim/Demo/User/test.toml b/Pose2Sim/Demo/User/test.toml index 574ae51..b16057e 100644 --- a/Pose2Sim/Demo/User/test.toml +++ b/Pose2Sim/Demo/User/test.toml @@ -20,9 +20,15 @@ opensim_folder_name = 'opensim' [pose] -pose_model = 'BODY_25B' #CUSTOM, BODY_25B, BODY_25, BODY_135, BLAZEPOSE, HALPE_26, HALPE_68, HALPE_136, COCO_133, COCO, MPII are available, -# from DeepLabCut, OpenPose, MediaPipe BlazePose, and AlphaPose -# See Pose2Sim\skeleton.py for their skeleton hierarchy +pose_model = 'BODY_25B' #With openpose: BODY_25B, BODY_25, BODY_135, COCO, MPII. + #With mediapipe: BLAZEPOSE. + #With alphapose: HALPE_26, HALPE_68, HALPE_136, COCO_133. + #With deeplabcut: CUSTOM + # See Pose2Sim\skeleton.py for their skeleton hierarchy +# What follows has not been implemented yet +pose_framework = 'openpose' # 'openpose', 'mediapipe', 'alphapose', 'deeplabcut' +overwrite_pose = false +openpose_path = '' # only checked if OpenPose is used [calibration] @@ -53,6 +59,7 @@ calibration_type = 'convert' # 'convert' or 'calculate' extrinsics_board_type = 'scene' # 'checkerboard', 'scene' ('charucoboard' not supported yet) # 'board' should be large enough to be detected when laid on the floor. # 'scene' involves manually clicking any point of know coordinates on scene. Usually more accurate if points are spread out + moving_camera = false # Not implemented yet calculate_extrinsics = true # true or false (lowercase) show_reprojection_error = true # true or false (lowercase) extrinsics_extension = 'png' # any video or image extension diff --git a/Pose2Sim/Demo/calibration/Calib_qualisys.toml b/Pose2Sim/Demo/calibration/Calib_qualisys.toml new file mode 100644 index 0000000..f291f73 --- /dev/null +++ b/Pose2Sim/Demo/calibration/Calib_qualisys.toml @@ -0,0 +1,39 @@ +[cam_01] +name = "cam_01" +size = [ 1088.0, 1920.0] +matrix = [ [ 1681.244873046875, 0.0, 532.97369384375], [ 0.0, 1681.075439453125, 948.137390140625], [ 0.0, 0.0, 1.0]] +distortions = [ -0.000721609375, 0.002187234375, 9.5e-06, 1.078125e-05] +rotation = [ 1.6882754799999993, 1.0483220499999997, -0.41955852000000016] +translation = [ 0.3211048899999996, 0.9563320600000009, 2.8907130499999996] +fisheye = false + +[cam_02] +name = "cam_02" +size = [ 1088.0, 1920.0] +matrix = [ [ 1673.729614265625, 0.0, 534.494567875], [ 0.0, 1673.79724121875, 963.225891109375], [ 0.0, 0.0, 1.0]] +distortions = [ -0.000747609375, 0.00213728125, 1.51875e-05, 4.546875e-06] +rotation = [ 1.34975875, 1.5963809099999993, -1.1983285799999999] +translation = [ -0.11152829000000017, 0.7766184800000001, 3.0675519599999994] +fisheye = false + +[cam_03] +name = "cam_03" +size = [ 1088.0, 1920.0] +matrix = [ [ 1681.598388671875, 0.0, 513.20837403125], [ 0.0, 1681.509887703125, 955.005126953125], [ 0.0, 0.0, 1.0]] +distortions = [ -0.000729765625, 0.00215034375, -8.46875e-06, -8.078125e-06] +rotation = [ 0.8109654899999995, -2.1972129299999996, 1.3760277799999996] +translation = [ -0.7934803899999996, 0.32283594000000126, 4.353514870000001] +fisheye = false + +[cam_04] +name = "cam_04" +size = [ 1088.0, 1920.0] +matrix = [ [ 1675.234985359375, 0.0, 540.106201171875], [ 0.0, 1675.204223640625, 964.0302734375], [ 0.0, 0.0, 1.0]] +distortions = [ -0.000744265625, 0.002104171875, 4.328125e-06, 3.109375e-06] +rotation = [ 1.4045571699999995, -1.3887412699999993, 0.42535743000000026] +translation = [ 0.5030217200000007, 0.04894934000000083, 4.406564460000002] +fisheye = false + +[metadata] +adjusted = false +error = 0.0 diff --git a/Pose2Sim/Empty_project/User/Config.toml b/Pose2Sim/Empty_project/User/Config.toml index 60f5469..5a8f8a7 100644 --- a/Pose2Sim/Empty_project/User/Config.toml +++ b/Pose2Sim/Empty_project/User/Config.toml @@ -20,9 +20,15 @@ opensim_folder_name = 'opensim' [pose] -pose_model = 'BODY_25B' #CUSTOM, BODY_25B, BODY_25, BODY_135, BLAZEPOSE, HALPE_26, HALPE_68, HALPE_136, COCO_133, COCO, MPII are available, -# from DeepLabCut, OpenPose, MediaPipe BlazePose, and AlphaPose -# See Pose2Sim\skeleton.py for their skeleton hierarchy +pose_model = 'BODY_25B' #With openpose: BODY_25B, BODY_25, BODY_135, COCO, MPII. + #With mediapipe: BLAZEPOSE. + #With alphapose: HALPE_26, HALPE_68, HALPE_136, COCO_133. + #With deeplabcut: CUSTOM + # See Pose2Sim\skeleton.py for their skeleton hierarchy +# What follows has not been implemented yet +pose_framework = 'openpose' # 'openpose', 'mediapipe', 'alphapose', 'deeplabcut' +overwrite_pose = false +openpose_path = '' # only checked if OpenPose is used [calibration] @@ -53,6 +59,7 @@ calibration_type = 'convert' # 'convert' or 'calculate' extrinsics_board_type = 'scene' # 'checkerboard', 'scene' ('charucoboard' not supported yet) # 'board' should be large enough to be detected when laid on the floor. # 'scene' involves manually clicking any point of know coordinates on scene. Usually more accurate if points are spread out + moving_camera = false # Not implemented yet calculate_extrinsics = true # true or false (lowercase) show_reprojection_error = true # true or false (lowercase) extrinsics_extension = 'png' # any video or image extension