File size: 1,461 Bytes
d25f03f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
35
36
37
38
39
<!doctype html>
<html lang="en">

<head>
    <!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"

        integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">

    <title>Live Streaming Demonstration</title>
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="col-lg-8  offset-lg-2">
                <h3 class="mt-3">Live Streaming</h3>
                <img src="{{ url_for('video_feed') }}" width="100%" class="mb-3">
                <form action="{{ url_for('capture_document') }}" method="post">
                    <button type="submit" class="btn btn-success btn-lg">📸 Capture Image</button>
                </form>
                {% with messages = get_flashed_messages(with_categories=true) %}
                {% for category, message in messages %}
                {% if category == 'error' %}
                <p style="color: red;">{{ message }}</p>
                {% else %}
                <p style="color: green;">{{ message }}</p>
                {% endif %}
                {% endfor %}
                {% endwith %}
            </div>
        </div>
    </div>
</body>

</html>