| <!DOCTYPE html> |
| <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>VN OCR</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"> |
| <img id="captured-image" src="" alt="Captured Image" style="display: none;"> |
| </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> |