Spaces:
Sleeping
Sleeping
Update templates/index.html
Browse files- templates/index.html +117 -53
templates/index.html
CHANGED
@@ -1,57 +1,121 @@
|
|
1 |
-
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
<head>
|
4 |
-
<
|
5 |
-
<
|
6 |
-
<script src="https://
|
7 |
-
<script
|
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 |
-
</script>
|
44 |
</head>
|
45 |
-
<body>
|
46 |
-
|
47 |
-
<
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
</body>
|
|
|
|
|
|
|
|
|
57 |
</html>
|
|
|
1 |
+
|
2 |
+
{#L1 labels/object#}
|
3 |
+
{#L2 Logo Detection#}
|
4 |
+
{#L3 Text/OCR#}
|
5 |
+
|
6 |
+
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
|
8 |
+
<html lang="en">
|
9 |
<head>
|
10 |
+
<meta charset="UTF-8">
|
11 |
+
<title>Mohamed sign</title>
|
12 |
+
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
13 |
+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
14 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.6.1/socket.io.js"></script>
|
15 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
|
16 |
+
integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4"
|
17 |
+
crossorigin="anonymous"></script>
|
18 |
+
<script type="text/javascript" src="{{ url_for('static', filename='script.js') }}"></script>
|
19 |
+
<!-- Add this to the <head> section of your HTML file -->
|
20 |
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.css">
|
21 |
+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
|
22 |
+
integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
|
23 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}"/>
|
24 |
+
|
25 |
+
|
26 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/fontawesome.min.css"
|
27 |
+
integrity="sha512-xX2rYBFJSj86W54Fyv1de80DWBq7zYLn2z0I9bIhQG+rxIF6XVJUpdGnsNHWRa6AvP89vtFupEPDP8eZAtu9qA=="
|
28 |
+
crossorigin="anonymous" referrerpolicy="no-referrer"/>
|
29 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/brands.min.css"
|
30 |
+
integrity="sha512-OivR4OdSsE1onDm/i3J3Hpsm5GmOVvr9r49K3jJ0dnsxVzZgaOJ5MfxEAxCyGrzWozL9uJGKz6un3A7L+redIQ=="
|
31 |
+
crossorigin="anonymous" referrerpolicy="no-referrer"/>
|
32 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css"
|
33 |
+
integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g=="
|
34 |
+
crossorigin="anonymous" referrerpolicy="no-referrer"/>
|
35 |
+
|
36 |
+
<link rel="stylesheet" type="text/css"
|
37 |
+
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/5.1.3/css/bootstrap.min.css">
|
38 |
+
|
39 |
+
|
40 |
+
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.12.0/css/dataTables.bootstrap5.min.css">
|
41 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
42 |
+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
|
43 |
+
|
44 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
45 |
+
<link href="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.0/flowbite.min.css" rel="stylesheet" />
|
46 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/flowbite/2.2.0/flowbite.min.js"></script>
|
47 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap">
|
48 |
+
|
|
|
49 |
</head>
|
50 |
+
<body class="bg-gray-900"> <!-- تغيير لون الخلفية إلى رمادي 900 -->
|
51 |
+
|
52 |
+
<div class="grid grid-cols-12 gap-4 mx-8 mt-8" style="color: gray; border-radius: 10px;"> <!-- أضفت أسلوبًا لحاوية الشبكة -->
|
53 |
+
|
54 |
+
<!-- Controls -->
|
55 |
+
<div class="col-span-2 ml-4" style="background-color: lightgrey; border-radius: 10px;"> <!-- أضفت لون خلفية ونصبت دائرة لـ div التحكم -->
|
56 |
+
<h2 class="border-b border-gray-800 py-4 mb-4 text-3xl font-bold leading-none tracking-tight md:text-4xl lg:text-4xl text-gray-500">التحكم</h1> <!-- تغيير لون الحدود والنص -->
|
57 |
+
<div class="border-b border-gray-800" style="padding: 10px;"> <!-- أضفت حشوًا للحدود الداخلية -->
|
58 |
+
<div class="flex gap-3 mb-4">
|
59 |
+
<label class="switch">
|
60 |
+
<input id="turn_off" value="1" name="turn_off" type="checkbox" onclick="toggleOffSwitch()"/>
|
61 |
+
<span class="slider round"></span>
|
62 |
+
</label>
|
63 |
+
<label for="turn_off" class="form-label text-gray-500">عرض الفيديو</label><br>
|
64 |
+
</div>
|
65 |
+
<div class="flex gap-3 mb-4">
|
66 |
+
<label class="switch">
|
67 |
+
<input id="run_detection" value="0" name="run_detection" type="checkbox" onclick="toggleDetSwitch()"/>
|
68 |
+
<span class="slider round"></span>
|
69 |
+
</label>
|
70 |
+
<label for="run_detection" class="form-label text-gray-500">تشغيل الكشف</label><br>
|
71 |
+
</div>
|
72 |
+
<div class="flex gap-3 mb-4">
|
73 |
+
<label class="switch">
|
74 |
+
<input id="mediapipe" value="0" name="mediapipe" type="checkbox" onclick="toggleMediaPipeSwitch()"/>
|
75 |
+
<span class="slider round"></span>
|
76 |
+
</label>
|
77 |
+
<label for="mediapipe" class="form-label text-gray-500">عرض العلامات</label><br>
|
78 |
+
</div>
|
79 |
+
<div class="flex gap-3 mb-4">
|
80 |
+
<label class="switch">
|
81 |
+
<input id="flip-horizontal" value="0" name="flip-horizontal" type="checkbox" onclick="toggleHSwitch()"/>
|
82 |
+
<span class="slider round"></span>
|
83 |
+
</label>
|
84 |
+
<label for="flip-horizontal" class="form-label text-gray-500">قلب الفيديو</label><br>
|
85 |
+
</div>
|
86 |
+
</div>
|
87 |
+
<div class="gap-3 py-4 text-center border-b border-gray-800 mb-5">
|
88 |
+
<form action="/" method="POST" style="text-align: center;" class="mb-4" >
|
89 |
+
<label for="slider" class="form-label text-gray-500">حد الثقة</label>
|
90 |
+
<input type="range" id="slider" name="slider" min="1" max="100">
|
91 |
+
</form>
|
92 |
+
<input type="hidden" id="sliderValue" name="sliderValue" value="75">
|
93 |
+
<span class="rounded-lg py-2 px-3 bg-gray-800 text-gray-500" id="conf_display">75</span> <!-- تغيير لون الخلفية والنص -->
|
94 |
+
</div>
|
95 |
+
<button class="text-white focus:ring-4 focus:outline-none mt-1.5 font-medium rounded-lg text-sm w-full py-2.5 text-center bg-gray-700 hover:bg-gray-800 focus:ring-gray-900" id="stop-button" type="button" onclick="stopProcess('Stop Request')">العودة للصفحة الرئيسية</button> <!-- تغيير نمط الزر -->
|
96 |
+
</div>
|
97 |
+
|
98 |
+
<!-- Video -->
|
99 |
+
<div class="col-span-8 mx-4 mt-3" style="background-color: lightgrey; border-radius: 10px;"> <!-- أضفت لون خلفية ونصبت دائرة لـ div الفيديو -->
|
100 |
+
<div id="container">
|
101 |
+
<img class="center" src="/video_feed" id="videoElement">
|
102 |
+
</div>
|
103 |
+
</div>
|
104 |
+
|
105 |
+
<!-- Terminal -->
|
106 |
+
<div class="col-span-2 mr-4" style="background-color: lightgrey; border-radius: 10px;"> <!-- أضفت لون خلفية ونصبت دائرة لـ div الطرفية -->
|
107 |
+
<h2 class="border-b border-gray-800 py-4 mb-4 text-3xl flex justify-end font-bold leading-none tracking-tight md:text-4xl lg:text-4xl text-gray-500">الناتج</h1> <!-- تغيير لون الحدود والنص -->
|
108 |
+
<div id="terminal" class="w-full"></div>
|
109 |
+
</div>
|
110 |
+
</div>
|
111 |
+
|
112 |
+
<div>
|
113 |
+
<p id="finalSentencePara" class="text-gray-500 mt-4 text-center"> <!-- تغيير لون النص -->
|
114 |
+
</p>
|
115 |
+
</div>
|
116 |
</body>
|
117 |
+
|
118 |
+
|
119 |
+
|
120 |
+
|
121 |
</html>
|