File size: 3,044 Bytes
26c453d |
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 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
<!DOCTYPE html>
<html lang="en">
<head>
<!-- meta tags -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- required -->
<link rel="icon" type="image/png" href="/assets/images/sanket-logo.png">
<title>Sanket - Translate - Sign to Text</title>
<!-- page loader stuff -->
<style>
#loader {
width: 70px;
height: 70px;
animation: spin 1s linear infinite;
}
@keyframes spin {
100% {
transform: rotate(360deg);
}
}
.center {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
margin: auto;
}
</style>
<script>
document.onreadystatechange = function() {
if (document.readyState !== "complete") {
document.querySelector(
"body").style.visibility = "hidden";
document.querySelector(
"#loader").style.visibility = "visible";
} else {
document.querySelector(
"#loader").style.display = "none";
document.querySelector(
"body").style.visibility = "visible";
}
};
</script>
<!-- custom styles -->
<link rel="stylesheet" href="style.css">
<!-- fonts-import -->
<!-- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" /> -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@48,400,0,0" />
</head>
<body>
<!-- loader -->
<img src="/assets/images/sanket-logo.png" id="loader" class="center" alt="loader" srcset="">
<!-- navbar -->
<nav class="navbar">
<a href="/" id="nav-left">
<span class="material-symbols-rounded">arrow_back</span>
</a>
<span class="material-symbols-rounded" id="nav-right">cameraswitch</span>
</nav>
<!-- webcam-view -->
<div class="webcam-view">
<img src="https://placehold.co/600x400/0DA778/white?font=montserrat&text=Sign Language to Text" class="webcam-banner" alt="webcam-banner">
<canvas id="canvas"></canvas>
<div class="prediction-overlay">
<span id="prediction">U</span>
</div>
</div>
<!-- transcript -->
<div class="transcript-wrapper">
<div class="transcript-title-bar-wrapper">
<span class="material-symbols-rounded" id="#transcript-settings-btn">tune</span>
<div id="transcript-text">
<span class="material-symbols-rounded" id="gtranslate-btn">subtitles</span> Transcript
</div>
</div>
</div>
</div>
<script async defer src="sign-to-text.js"></script>
</body>
</html> |