File size: 3,299 Bytes
34097e9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
<!DOCTYPE html>
<html>
<head>
<title>Posex - Estimated Image Generator for Pose2Image</title>
<link rel="icon" type="image/png" href="image/favicon.png">
<link rel="stylesheet" href="css/main.css">
<script async src="js/es-module-shims.js"></script>
<script type="importmap">
{
"imports": {
"three": "./js/three.module.js",
"three-trackballcontrols": "./js/TrackballControls.js",
"three-dragcontrols": "./js/DragControls.js",
"three-meshline": "./js/THREE.MeshLine.Module.min.js",
"posex": "./js/posex.js"
}
}
</script>
<script type="esms-options">
{
"noLoadEventRetriggers": true
}
</script>
<script defer type="module" src="js/app.js"></script>
</head>
<body>
<div id="cont">
<button id="all_reset" class="box">🔄 All Reset</button>
<div style="display: flex; flex-direction: row; gap: 0 0.5em;">
<button id="reset_camera" class="box" style="flex: 1 1 0">🎥 Reset Camera</button>
<button id="reset_pose" class="box" style="flex: 1 1 0">🧍 Reset Pose</button>
</div>
<div style="display: flex; flex-direction: row; ">
<canvas width="512" height="512" id="main_canvas"></canvas>
<div style="margin-left: 1em; display: flex; flex-direction: column; gap: 0.25em; font-size: smaller;">
<div>- Camera</div>
<label><input type="checkbox" id="fixed_roll">Fixed Roll</label>
<div>- Body</div>
<button id="add_body" style="width: max-content; min-width: 100%; text-align: left;">➕ Add</button>
<button id="remove_body" style="width: max-content; min-width: 100%; text-align: left;">➖ Remove</button>
<div>- Canvas Size</div>
<input type="number" id="canvas_width" value="512" min="64" />
<input type="number" id="canvas_height" value="512" min="64" />
<div>- Background</div>
<div style="display: flex; flex-direction: row; gap: 0 0.25em;">
<label style="flex: 0 0 0;"><button onclick="document.querySelector('#bg_file').click();">🖼 Set</button><input type="file" id="bg_file" style="display: none;"/></label>
<button id="reset_bg" style="flex: 0 0 0;">❌ Del</button>
</div>
<div>- Joints and Limbs</div>
<!-- <label><input type="range" id="joint_radius" min="1" max="16" value="4" />Joint Radius</label> -->
<label><input type="range" id="limb_width" min="1" max="16" value="4" />Limb Width</label>
<label><input type="checkbox" id="elliptic_limbs" checked />Elliptic Limbs</label>
<div>- Others</div>
<label><input type="checkbox" id="low_fps" />Low fps</label>
</div>
</div>
<div id="body_indicator2"></div>
<div id="body_indicator1"></div>
<div style="display: flex; flex-direction: row; gap: 0 0.25em;">
<a id="save_button" class="box" style="flex: 1 1 0;" href="#">💾 Save Image</a>
<a id="copy_button" class="box" style="flex: 1 1 0;" href="#">📋 Copy to clipboard</a>
</div>
<button id="save_pose" class="box">💾🧍 Save Pose</button>
<div id="saved_poses"></div>
</div>
<p id="notation"></p>
<div id="notifications"></div>
</body>
</html> |