File size: 1,869 Bytes
567a717
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
40
41
42
43
44
45
46
47
48
49
{% extends 'layout.html' %}

{% block body %}
    <div class="container">
        <br><br>
        <form action="#" method="POST" enctype="multipart/form-data">
            <div class="input-group">
                <input type="file" class="form-control" name="image_name" required>
                <input type="submit" value="Upload" class="btn btn-outline-secondary">
            </div>
        </form>
    </div>

    {% if upload %}
        <div class="container">
            <br><br>
            <table style="margin-bottom: 20px;"> <!-- Added margin-bottom for spacing -->
                <tr style="border: solid black;">
                    <th style="font-size: 20px;">Original Image</th>
                    <th style="font-size: 20px;">Corresponding bounding box Image</th>
                </tr>
                <tr>
                    <td>
                        <img class="rounded float-left img-fluid" src="/static/upload/{{ upload_image }}" alt="">
                    </td>
                    <td>
                        <img class="rounded float-right img-fluid" src="/static/predict/{{ upload_image }}" alt="">
                    </td>
                </tr>
            </table>

            <table style="border: solid black; width: 100%;">
                <tr style="border: solid black; text-align: center;">
                    <th style="font-size: 26px;">Number Plate of the Car</th>
                </tr>
                <tr style="border: solid black;">
                    <td>
                        <img class="img-fluid" src="/static/roi/{{ upload_image }}" alt="">
                    </td>
                    <td style="background-color: yellow;">
                        <h1 class="display-2"> {{ text }}</h1>
                    </td>
                </tr>
            </table>
        </div>
    {% endif %}

{% endblock  %}