File size: 1,112 Bytes
a3bccb5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image OCR</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <div class="container">
        <h1>Image OCR</h1>
        <div class="button-container">
            <button type="button" onclick="window.location.href='/'">Go to Home</button>
            <button type="button" onclick="performOCR()">Perform OCR</button>
        </div>
        <div class="paste-container">
            <h2>Paste your image here</h2>
            <div id="paste-box" contenteditable="true" onpaste="handlePaste(event)">
                <p></p>
            </div>
            <img id="pasted-image" src="" alt="Pasted Image" style="display: none;">
            <button type="button" onclick="saveImage()">Save Image</button>
        </div>
        <div id="ocr-result" class="ocr-result"></div>
        <div id="loading" class="loading" style="display: none;">Loading</div>
    </div>
    <script src="/static/js/other.js"></script>
</body>
</html>