Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
周伟奇
/
bmw-ocr
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
e6de9f63
authored
2025-09-04 14:54:39 +0800
by
冯轩
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'feature/portal-reocr' into feature/uat-tmp
2 parents
183adc9e
629427cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/apps/doc/views.py
src/apps/doc/views.py
View file @
e6de9f6
...
...
@@ -2288,8 +2288,8 @@ class InvoiceQueryInfoView(GenericView):
url
,
json
.
dumps
(
body
),
traceback
.
format_exc
()))
class
DocReOcrView
(
GenericView
,
DocHandler
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
# required_scopes = ['write']
...
...
@@ -2344,8 +2344,8 @@ class DocReOcrView(GenericView, DocHandler):
return
response
.
ok
()
class
BatchReOcrView
(
GenericView
,
DocHandler
):
permission_classes
=
[
IsAuthenticated
]
authentication_classes
=
[
OAuth2AuthenticationWithUser
]
#
permission_classes = [IsAuthenticated]
#
authentication_classes = [OAuth2AuthenticationWithUser]
# 现有文件批量重新识别接口
@use_args
(
batch_reocr_args
,
location
=
'data'
)
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment