Skip to content

Commit 2ddf824

Browse files
authored
Merge pull request #221 from oarriaga/refactor_hand_estimation
Refactor hand estimation
2 parents 34ba528 + 1815585 commit 2ddf824

36 files changed

+139
-3091
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ PAZ is used in the following examples (links to **real-time demos** and training
1616
|---------------------------|--------------------------| -----------------------|
1717
|<img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/emotion.gif" width="250">| <img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/keypoints.png" width="410">| <img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/mask.png" width="400">|
1818

19-
|[Semantic segmentation](https://github.com/oarriaga/paz/tree/master/examples/semantic_segmentation) | [Hand pose estimation](https://github.com/oarriaga/paz/tree/master/examples/minimal_hand) | [Human pose estimation](https://github.com/oarriaga/paz/tree/master/examples/human_pose_estimation_2D) |
19+
|[Semantic segmentation](https://github.com/oarriaga/paz/tree/master/examples/semantic_segmentation) | [Hand pose estimation](https://github.com/oarriaga/paz/tree/master/examples/hand_pose_estimation) | [Human pose estimation](https://github.com/oarriaga/paz/tree/master/examples/human_pose_estimation_2D) |
2020
|---------------------------|-----------------------|-----------------|
2121
| <img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/semantic_segmentation.png" width="325">| <img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/minimal_hand_example.jpg" width="330"> |<img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/human_pose.gif" width="250"> |
2222

23-
| [3D keypoint discovery](https://github.com/oarriaga/paz/tree/master/examples/discovery_of_latent_keypoints) | [Hand closure detection](https://github.com/oarriaga/paz/tree/master/examples/minimal_hand) | [6D pose estimation](https://github.com/oarriaga/paz/tree/master/examples/pix2pose) |
23+
| [3D keypoint discovery](https://github.com/oarriaga/paz/tree/master/examples/discovery_of_latent_keypoints) | [Hand closure detection](https://github.com/oarriaga/paz/tree/master/examples/hand_pose_estimation) | [6D pose estimation](https://github.com/oarriaga/paz/tree/master/examples/pix2pose) |
2424
|---------------------------|-----------------------| --------------------------|
2525
|<img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/discovery_keypoints.png" width="335"> | <img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/hand_closure_detection.gif" width="250">| <img src="https://raw.githubusercontent.com/oarriaga/altamira-data/master/images/pix2pose_example.jpg" width="330"> |
2626

docs/structure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,8 @@
504504
'page': 'processors/pose.md',
505505
'classes': [
506506
processors.SolvePNP,
507-
processors.SolveChangingObjectPnPRANSAC
507+
processors.SolveChangingObjectPnPRANSAC,
508+
processors.Translation3DFromBoxWidth
508509
]
509510
},
510511

@@ -551,7 +552,8 @@
551552
processors.UnwrapDictionary,
552553
processors.Scale,
553554
processors.AppendValues,
554-
processors.BooleanToTextMessage
555+
processors.BooleanToTextMessage,
556+
processors.PrintTopics
555557
]
556558
},
557559

examples/hand_detection/pose_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
help='Camera device ID')
1010
args = parser.parse_args()
1111

12-
pipeline = SSD512MinimalHandPose(right_hand=False, offsets=[0.25, 0.25])
12+
pipeline = SSD512MinimalHandPose(right_hand=False, offsets=[0.5, 0.5])
1313
camera = Camera(args.camera_id)
1414
player = VideoPlayer((640, 480), pipeline, camera)
1515
player.run()

examples/hand_pose_estimation/HandPoseEstimation.py

Lines changed: 0 additions & 312 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
### This example detects hand pose from an image.
2+
3+
To test the live hand pose estimation from camera, run:
4+
```py
5+
python demo.py
6+
```
7+
8+
To test the hand pose estimation on image, run:
9+
```py
10+
python demo_image.py
11+
```
12+
13+
To test the live hand closure status with the pose estimation from camera, run:
14+
```py
15+
python is_open_demo.py
16+
```
17+
18+
To test the live hand pose estimation from camera and visualize keypoints in 3D, run (This module has an extra dependency of matplotlib):
19+
```py
20+
python demo3D.py
21+
```
22+
23+
### Additional notes
24+
To test a more robust hand pose estimation and open / close classification try out the "paz/examples/hand_detection/pose_demo.py"
25+

0 commit comments

Comments
 (0)