File size: 653 Bytes
17eaad0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Image OCR with musadac/vilanocr</title>
</head>
<body>
    <h1>Image OCR with musadac/vilanocr</h1>
    <form action="/upload/" enctype="multipart/form-data" method="post">
        <input type="file" name="image" accept="image/*" required>
        <br>
        <br>
        <button type="submit">Upload</button>
    </form>
    {% if request %}
    <hr>
    <h2>OCR Result:</h2>
    <p>{{ request.result }}</p>
    {% endif %}
</body>
</html>