Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Dung Diego
/
ocr-tool
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
Dung Diego
2026-07-16 14:08:53 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
eff5f308d6190a7c3edab13ea40fe195af2b9e28
eff5f308
1 parent
213bc4f5
up
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
app/Http/Controllers/OcrController.php
app/Http/Controllers/OcrController.php
View file @
eff5f30
...
...
@@ -21,7 +21,8 @@ public function preview_pdf(Request $request){
}
public
function
import_pdf
(
Request
$request
){
try
{
[
$image_path
,
$js_path
]
=
$this
->
ocr_process
(
$request
);
if
(
$request
->
is_test
)
[
$image_path
,
$js_path
]
=
[
$request
->
image_path
,
$request
->
js_path
];
else
[
$image_path
,
$js_path
]
=
$this
->
ocr_process
(
$request
);
$json_data
=
json_decode
(
file_get_contents
(
$js_path
),
true
);
$ocr
=
[];
$ocr
[
'json_data'
]
=
$json_data
;
...
...
Please
register
or
sign in
to post a comment