mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-23 23:53:55 +08:00
add:测试页面增加拍照识物功能
This commit is contained in:
@@ -444,6 +444,15 @@ body {
|
||||
background: rgba(237, 66, 69, 1);
|
||||
}
|
||||
|
||||
/* 摄像头按钮特殊样式 */
|
||||
#cameraBtn.camera-active {
|
||||
background: rgba(237, 66, 69, 0.9);
|
||||
}
|
||||
|
||||
#cameraBtn.camera-active:hover {
|
||||
background: rgba(237, 66, 69, 1);
|
||||
}
|
||||
|
||||
/* 录音按钮脉冲动画 */
|
||||
@keyframes pulse {
|
||||
0% {
|
||||
@@ -1233,4 +1242,41 @@ body {
|
||||
.modal-body::-webkit-scrollbar-thumb:hover,
|
||||
.mcp-tools-list::-webkit-scrollbar-thumb:hover {
|
||||
background: #4f545c;
|
||||
}
|
||||
|
||||
/* ==================== 摄像头显示区域样式 ==================== */
|
||||
.camera-container {
|
||||
position: fixed;
|
||||
top: 20px;
|
||||
left: 20px;
|
||||
width: 240px;
|
||||
height: 180px;
|
||||
background: rgba(0, 0, 0, 0.5);
|
||||
backdrop-filter: blur(10px);
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgba(255, 255, 255, 0.2);
|
||||
z-index: 1000;
|
||||
display: none;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
||||
cursor: move;
|
||||
}
|
||||
|
||||
.camera-container.active {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.camera-container.dragging {
|
||||
cursor: grabbing;
|
||||
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
|
||||
border-color: rgba(88, 101, 242, 0.5);
|
||||
}
|
||||
|
||||
#cameraVideo {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
background: #1a1a1a;
|
||||
pointer-events: none;
|
||||
transform: scaleX(-1);
|
||||
}
|
||||
Reference in New Issue
Block a user