Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
search_book
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘鑫
search_book
Commits
103dd785
Commit
103dd785
authored
Jul 10, 2025
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
36d45731
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
12670279-2025版《锦上添花(期末大赢家)》下册.xlsx
12670279-2025版《锦上添花(期末大赢家)》下册.xlsx
+0
-0
README.md
README.md
+13
-8
No files found.
12670279-2025版《锦上添花(期末大赢家)》下册.xlsx
0 → 100644
View file @
103dd785
File added
README.md
View file @
103dd785
...
...
@@ -19,7 +19,7 @@ conda虚拟环境:conda activate search_book
```
准备工作:
1、将习题图书拆分为独立的一张张图片,
2、后端对整本书进行解析,得到每个题的ocr结果,以及整张图片的paddleOCR结果,整理为一个excel文档,通过接口上传进es数据库(excel文档样例:)
2、后端对整本书进行解析,得到每个题的ocr结果,以及整张图片的paddleOCR结果,整理为一个excel文档,通过接口上传进es数据库(excel文档样例:
“12670279-2025版《锦上添花(期末大赢家)》下册.xlsx”
)
流程:
...
...
@@ -30,9 +30,11 @@ conda虚拟环境:conda activate search_book
```
#### 3、接口
```
```
python
# 1、excel数据插入es数据库接口
def
insert_excel
(
data
):
...
...
@@ -55,12 +57,15 @@ def insert_excel(data):
print
(
f
"响应内容: {response.json()}"
)
data = {'book_id': '126
63121', 'book_name': '衔接教材地理', "file_path": '12663121-衔接教材 地理.pdf
.xlsx' }
data
=
{
'book_id'
:
'126
70279'
,
'book_name'
:
'衔接教材地理'
,
"file_path"
:
'12670279-2025版《锦上添花(期末大赢家)》下册
.xlsx'
}
insert_excel
(
data
)
```
```
```python
# 2、依据 book_id 删除es库中整本书所有数据 接口
def delete_es_book(book_id="12663121"):
...
...
@@ -87,7 +92,9 @@ book_id = "12667382"
delete_es_book(book_id)
```
```
```python
# 3、搜图搜题接口
def search_book_question(book_id, image_ocr):
...
...
@@ -122,11 +129,9 @@ print(res)
#### 4、启动服务
```
```
linux
# 61.170.32.8 服务器
$ cd /home/liuxin/work/search_book
$ conda activate search_book
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment