File size: 1,863 Bytes
18ac549
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f0f0f0;
}
.container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h1 {
    color: #333;
    text-align: center;
}
.video-container {
    margin: 20px 0;
    text-align: center;
    position: relative;
}
video {
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
}
canvas {
    position: absolute;
    left: 0;
    top: 0;
    max-width: 100%;
}
button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 10px 5px;
    cursor: pointer;
    border-radius: 4px;
}
button:hover {
    background-color: #45a049;
}
button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}
.controls {
    text-align: center;
    margin-bottom: 20px;
}
.status {
    text-align: center;
    color: #666;
    margin: 10px 0;
    font-style: italic;
}
.detection-info {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}
.fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.5);
    color: white;
    padding: 5px;
    border-radius: 3px;
    font-size: 12px;
}
.alarm {
    background-color: #ff0000;
    color: white;
    padding: 15px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    display: none;
}
@keyframes alarm-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.alarm-active {
    display: block;
    animation: alarm-flash 1s infinite;
}