<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Webcam Capture</title> | |
<link rel="stylesheet" href="/static/css/style.css"> | |
</head> | |
<body> | |
<div class="container"> | |
<h1>Webcam Capture</h1> | |
<div class="button-container"> | |
<button type="button" onclick="startWebcam()">Start Webcam</button> | |
<button type="button" onclick="captureImage()">Capture Image</button> | |
<button type="button" onclick="performOCR()">Perform OCR</button> | |
<button type="button" onclick="window.location.href='/'">Go to Home</button> | |
</div> | |
<div id="webcam-container"> | |
<video id="webcam" autoplay playsinline width="640" height="480"></video> | |
</div> | |
<div id="image-container"> | |
<h2>Captured Image</h2> | |
<div class="image-frame"> | |
<img id="captured-image" src="" alt="Captured Image" style="display: none;"> | |
</div> | |
</div> | |
<div id="ocr-result" class="ocr-result"></div> | |
<div id="loading" class="loading" style="display: none;">Loading</div> | |
</div> | |
<script src="/static/js/script.js"></script> | |
</body> | |
</html> |