Skip to content

Add YeadonTable.from_video #126

Description

@EveCharbie

ChatGPT pipeline suggestion:
┌────────────────────────────────────────────────────────────────
│ 1. DATA ACQUISITION │
└────────────────────────────────────────────────────────────────

         Smartphone
      ┌───────────────┐
      │   Camera      │
      │               │
      │   📱          │
      └───────┬───────┘
              │
              │ .MOV / .MP4
              │
              ▼
    ┌─────────────────────┐
    │   Video processing  │
    │                     │
    │ frame extraction    │
    │ quality checking    │
    │ person detection    │
    └──────────┬──────────┘
               │
               │ .JPG / .PNG
               ▼

┌────────────────────────────────────────────────────────────────
│ 2. 3-D HUMAN RECONSTRUCTION │
│ 4D-Humans / HMR2 │
└────────────────────────────────────────────────────────────────

               .JPG / .PNG
                    │
                    ▼
          ┌──────────────────┐
          │     ViTDet       │
          │ person detection │
          └────────┬─────────┘
                   │
                   ▼
          ┌──────────────────┐
          │      HMR2        │
          │                  │
          │ image → SMPL     │
          │ body parameters  │
          └────────┬─────────┘
                   │
         ┌─────────┴─────────┐
         │                   │
         ▼                   ▼
   SMPL parameters       SMPL mesh
         │                   │
         │                   │
         ▼                   ▼
   .NPZ / .PKL           .OBJ
   (depending             6890 × 3
    on pipeline)          vertices

┌────────────────────────────────────────────────────────────────
│ 3. BODY MODEL REPRESENTATION │
└────────────────────────────────────────────────────────────────

             SMPL parameters
                   │
    ┌──────────────┼──────────────┐
    │              │              │
    ▼              ▼              ▼
  betas           pose        camera/scale
 (10,)          (72,)           parameters
    │
    │
    └──────────────┐
                   │
                   ▼
          ┌──────────────────┐
          │  SMPL body model │
          │                  │
          │  SMPL .pkl       │
          │  + parameters    │
          └────────┬─────────┘
                   │
                   ▼
            V = 6890 × 3
            SMPL vertices


                     OR


             directly use
               reconstructed
                vertices
                   │
                   ▼
            V = 6890 × 3

┌────────────────────────────────────────────────────────────────
│ 4. ANTHROPOMETRIC MEASUREMENT │
│ SMPL-Anthropometry │
└────────────────────────────────────────────────────────────────

                   V
              (6890 × 3)
                   │
                   ▼
         ┌────────────────────┐
         │  SMPL-Anthropometry│
         │                    │
         │  from_verts(V)     │
         └─────────┬──────────┘
                   │
      ┌────────────┼─────────────┐
      │            │             │
      ▼            ▼             ▼
  landmarks     joints       mesh sections
      │            │             │
      └────────────┼─────────────┘
                   │
                   ▼
         lengths + circumferences
                   │
                   ▼
             measurements
                .JSON
                   │
                   │
                   │
         e.g. {"A": ..., "B": ...}
                   │
                   ▼

┌────────────────────────────────────────────────────────────────
│ 5. YEADON-SPECIFIC CONVERSION │
│ YOUR REPOSITORY │
└────────────────────────────────────────────────────────────────

              SMPL measurements
                   │
                   ▼
      ┌─────────────────────────┐
      │ Yeadon measurement      │
      │ definitions             │
      │                         │
      │ SMPL → Yeadon mapping   │
      └────────────┬────────────┘
                   │
                   ▼
         Yeadon measurement
              dictionary
                   │
                   │ .JSON
                   ▼

         ┌───────────────────┐
         │ YeadonModelGenerator│
         │                   │
         │ yeadon.Human()    │
         └─────────┬─────────┘
                   │
                   ▼

┌────────────────────────────────────────────────────────────────
│ 6. FINAL MODEL │
└────────────────────────────────────────────────────────────────

              Yeadon Human
                   │
      ┌────────────┼─────────────┐
      ▼            ▼             ▼
    mass          COM         inertia
    [kg]          [m]          [kg·m²]
      │            │             │
      └────────────┼─────────────┘
                   ▼
          ┌─────────────────┐
          │  .bioMod /     │
          │  .json / .pkl  │
          │  or other      │
          │  biomechanical │
          │  model format  │
          └─────────────────┘

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