Skip to content

What coordinate system is the generated mesh based on? #132

Description

@uguirgl-39

I extracted meshes from images using SAM 3D Body.

I'm generating OBJ files based on the code from https://github.com/facebookresearch/sam-3d-body/blob/main/notebook/demo_human.ipynb:

if outputs:
    # Get image name without extension
    image_name = os.path.splitext(os.path.basename(image_path))[0]

    # Create output directory
    output_dir = f"output/{image_name}"

    # Save all results (PLY meshes, overlay images, bbox images)
    ply_files = save_mesh_results(img_cv2, outputs, estimator.faces, output_dir, image_name)

    print(f"\n=== Saved Results for {image_name} ===")
    print(f"Output directory: {output_dir}")
    print(f"Number of PLY files created: {len(ply_files)}")

else:
    print("No results to save - no people detected")

My question: I'm not sure about the orientation and coordinate system of the generated mesh data.

Specifically, I'd like to understand:

・What coordinate system is used (camera coordinates, world coordinates, etc.)?
・Which direction is the mesh facing (which axis represents "forward")?
・What is the reference point/origin?
Am I missing some documentation about this? Any clarification would be greatly appreciated!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions