Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,9 @@ video_to_pose --format mediapipe -i example.mp4 -o example.pose \

# Recursively search for videos within a directory, and process them 10 at a time
videos_to_poses --format mediapipe -num-workers 10 --recursive --directory /path/to/videos

```

#### 3. Reading `.pose` Files:
#### 3. Reading and Writing `.pose` Files:

To load a `.pose` file, use the `Pose` class.

Expand Down Expand Up @@ -94,6 +93,13 @@ pose.torch()
pose.tensorflow()
```

Finally, to write a `Pose` object to a file:

```python
with open(pose_filepath, "wb") as data_buffer:
pose.write(data_buffer)
```

#### 4. Data Manipulation:

Once poses are loaded, the library offers many ways to manipulate the created `Pose` objects.
Expand Down Expand Up @@ -194,6 +200,14 @@ v.save_gif("test.gif", v.draw())
display(Image(open('test.gif','rb').read()))
```

There is also a CLI command for visualizing poses:

```bash
visualize_pose -i example.pose -o example.mp4 --normalize
```

Normalizing the pose before creating the mp4 output file (`--normalize`) is optional.

#### 6. Integration with External Data Sources:
If you have pose data in OpenPose or MediaPipe Holistic format, you can easily import it.

Expand Down