<html lang="en"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title>Photo to Emoji</title> | |
<link rel="stylesheet" href="/static/style.css"> | |
</head> | |
<body> | |
<h1>Photo to Emoji Converter</h1> | |
<video autoplay="true" id="videoElement"></video> | |
<br /> | |
<!-- π Flip Camera button --> | |
<button onclick="toggleCamera()">π Flip Camera</button> | |
<button onclick="captureAndSend()">Capture & Predict</button> | |
<div id="capturedImagePreview" style="margin-top: 1rem;"> | |
<h3 style="margin-bottom: 10px;">Captured Image:</h3> | |
<canvas id="snapshotCanvas" style="border-radius: 10px; box-shadow: 0 0 10px rgba(255,255,255,0.2);"></canvas> | |
</div> | |
<div id="emojiDisplay"></div> | |
<div id="emotionText"></div> | |
<!-- Download link --> | |
<a id="downloadEmoji" download="emoji.png" style="display: none;">β¬οΈ Download Emoji</a> | |
<script src="/static/scripts.js"></script> | |
</body> | |
</html> | |