-
Notifications
You must be signed in to change notification settings - Fork 0
/
webcam.css
104 lines (91 loc) · 1.45 KB
/
webcam.css
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
/* Global styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
main {
max-width: 800px;
margin: 0 auto;
padding: 20px;
text-align: center;
}
h1 {
font-size: 2em;
margin-top: 0;
}
p {
font-size: 1.2em;
margin-bottom: 30px;
}
.container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}
/* Webcam display */
#canvas {
width: 100%;
height: 480px;
margin-bottom: 20px;
background-color: #333;
position: relative;
}
#canvas video {
width: 100%;
height: 100%;
object-fit: cover;
}
/* Inference text */
#inference {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 10px;
background-color: rgba(0, 0, 0, 0.7);
color: #fff;
font-size: 1.5em;
}
#buttons-container {
display: flex;
justify-content: center;
margin-top: 20px;
}
button {
padding: 10px;
margin: 0 10px;
border: none;
border-radius: 5px;
background-color: #017995;
color: white;
cursor: pointer;
}
button:hover {
background-color: #017995;
}
#container {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
background-color: #f2f2f2;
}
#canvas-container {
width: 640px;
height: 480px;
border: 2px solid black;
margin-bottom: 20px;
}
#toggle-button {
padding: 10px 20px;
font-size: 18px;
background-color: #017995;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}