Skip to content

Commit

Permalink
デモに画像を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ics-iwama committed Jul 11, 2024
1 parent 41c3fad commit 23cff3b
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 11 deletions.
1 change: 1 addition & 0 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,4 @@ body {
background-color: rgb(51 51 51);
box-shadow: 3px 3px 0 rgb(51 51 51);
}

Binary file added images/demo_cheek_heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/demo_finger_heart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/demo_peace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
52 changes: 41 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta name='viewport' content='width=device-width, initial-scale=1.0'/>
<title>Tensorflow.jsでポーズ認識</title>
<link rel='stylesheet' href='css/reset.css'/>
<link rel='stylesheet' href='css/style.css'/>
<!-- TensorFlow.js -->
<script src='https://cdn.jsdelivr.net/npm/@tensorflow/tfjs'></script>
<script src='https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet'></script>
Expand All @@ -14,26 +13,57 @@
<script src='https://cdn.jsdelivr.net/npm/@mediapipe/hands'></script>
<script
src='https://cdn.jsdelivr.net/npm/@tensorflow-models/hand-pose-detection/dist/hand-pose-detection.js'></script>
<style>
body {
font-family: "Kiwi Maru", serif;
}

.wrapper {
display: flex;
justify-content: center;
align-items: center;
gap: 50px;
height: 100dvh;
}

.pose-list {
display: flex;
flex-direction: column;
gap: 50px;
}

.pose-list > img {
width: 50px;
}
</style>
</head>
<body>
<div id='app'>
<video
style='
<div class="wrapper">
<div id='app'>
<video
style='
visibility: hidden;
height: 0;
width: 0;
position: fixed;
pointer-events: none;
'
id='webcam'
muted
autoplay
playsinline
></video>
<div id='canvasWrapper'>
<canvas id='canvas'></canvas>
id='webcam'
muted
autoplay
playsinline
></video>
<div id='canvasWrapper'>
<canvas id='canvas'></canvas>
</div>
</div>
<div class="pose-list">
<img src="./images/demo_peace.png" alt="">
<img src="./images/demo_finger_heart.png" alt="">
<img src="./images/demo_cheek_heart.png" alt="">
</div>
</div>

<script type='module' src='js/main.js'></script>
</body>
</html>

0 comments on commit 23cff3b

Please sign in to comment.