diff --git a/dsLightRag/Util/ShiTiRecognizer.py b/dsLightRag/Util/ShiTiRecognizer.py
index 6c8e5ff0..a0c5d6a3 100644
--- a/dsLightRag/Util/ShiTiRecognizer.py
+++ b/dsLightRag/Util/ShiTiRecognizer.py
@@ -165,7 +165,8 @@ if __name__ == '__main__':
try:
recognizer = ShiTiRecognizer()
# 传入固定的图片URL
- image_url = "https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Backup/ShiTi.jpg"
+ #image_url = "https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Backup/ShiTi.jpg"
+ image_url="https://dsideal.obs.cn-north-1.myhuaweicloud.com/HuangHai/Backup/ShouXieTi.jpg"
result = recognizer.recognize_question(image_url)
print("识别结果:")
diff --git a/dsLightRag/Util/ShouXieShiBie.py b/dsLightRag/Util/ShouXieShiBie.py
new file mode 100644
index 00000000..feb7bf65
--- /dev/null
+++ b/dsLightRag/Util/ShouXieShiBie.py
@@ -0,0 +1 @@
+# https://cloud.baidu.com/product/ocr_education
diff --git a/dsLightRag/Util/__pycache__/ShiTiRecognizer.cpython-310.pyc b/dsLightRag/Util/__pycache__/ShiTiRecognizer.cpython-310.pyc
index fea2efaf..e1ad8395 100644
Binary files a/dsLightRag/Util/__pycache__/ShiTiRecognizer.cpython-310.pyc and b/dsLightRag/Util/__pycache__/ShiTiRecognizer.cpython-310.pyc differ
diff --git a/dsLightRag/static/RecognizeEduQuestionOcr.html b/dsLightRag/static/RecognizeEduQuestionOcr.html
index 09ffaa36..76b30e43 100644
--- a/dsLightRag/static/RecognizeEduQuestionOcr.html
+++ b/dsLightRag/static/RecognizeEduQuestionOcr.html
@@ -4,7 +4,7 @@
教育场景识别
-
+
@@ -25,6 +25,38 @@
background-color: #f5f5f5;
}
+ .tab-container {
+ display: flex;
+ border-bottom: 1px solid #ccc;
+ margin-bottom: 20px;
+ }
+
+ .tab-button {
+ padding: 10px 20px;
+ border: none;
+ background: #f1f1f1;
+ cursor: pointer;
+ transition: all 0.3s ease;
+ }
+
+ .tab-button.active {
+ background: #4CAF50;
+ color: white;
+ }
+
+ .tab-button:hover:not(.active) {
+ background: #ddd;
+ }
+
+ .tab-content {
+ display: none;
+ padding: 10px;
+ }
+
+ .tab-content.active {
+ display: block;
+ }
+
.container {
max-width: 1200px;
margin: 0 auto;
@@ -181,6 +213,7 @@
background-color: #f9f9f9;
line-height: 1.8; /* 优化行高 */
}
+
.option-item {
margin: 8px 0; /* 为选项添加上下间距 */
background-color: #f9f9f9;
@@ -212,7 +245,7 @@
animation: spin 1s linear infinite !important;
margin-bottom: 10px;
}
-
+
.result-area {
margin-top: 20px;
min-height: 200px;
@@ -224,14 +257,19 @@
position: relative; /* 关键:作为动画容器的定位基准 */
overflow: hidden; /* 防止动画溢出 */
}
+
.option-item {
margin: 8px 0; /* 为选项添加上下间距 */
background-color: #f9f9f9;
}
@keyframes spin {
- 0% { transform: rotate(0deg); }
- 100% { transform: rotate(360deg); }
+ 0% {
+ transform: rotate(0deg);
+ }
+ 100% {
+ transform: rotate(360deg);
+ }
}
/* 图片模态框样式 */
@@ -245,7 +283,7 @@
width: 100%;
height: 100%;
overflow: auto;
- background-color: rgba(0,0,0,0.9);
+ background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
@@ -276,58 +314,51 @@
教育场景识别
-
-
+
+
+
-
-
-
-
示例公式图片
-
-
-

-
数学公式示例
-
-
-
+
+
公式识别内容...
+
试题识别内容...
+
手写识别内容...
-