Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Satini_pvduc
/
ocrpdf
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
tien_nemo
2025-09-09 15:07:05 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
43506d2794e749c3be0c1044c17372303fcdbddd
43506d27
1 parent
43eb109e
file json
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
app/Http/Controllers/OcrController.php
app/Http/Controllers/OcrController.php
View file @
43506d2
...
...
@@ -89,8 +89,8 @@ class OcrController extends Controller
$templateName
=
$request
->
get
(
'template_name'
,
''
);
// Giả sử file OCR JSON & ảnh nằm trong storage/app/public/image/
$jsonPath
=
public_path
(
"image/
Iwasaki_1757404869
_with_table.json"
);
$imgPath
=
(
"image/
Iwasaki_1757404869
.jpg"
);
$jsonPath
=
public_path
(
"image/
nemo_new_3_1757403463
_with_table.json"
);
$imgPath
=
(
"image/
nemo_new_3_1757403463
.jpg"
);
if
(
!
file_exists
(
$jsonPath
))
{
return
response
()
->
json
([
'error'
=>
'File OCR JSON không tìm thấy'
],
404
);
...
...
Please
register
or
sign in
to post a comment