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-08-18 14:36:06 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
d5d6a6b722e08b74ee4809be2241a1dd7207bfff
d5d6a6b7
1 parent
e5209c08
comment
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
resources/views/ocr/index.blade.php
resources/views/ocr/index.blade.php
View file @
d5d6a6b
...
...
@@ -911,10 +911,10 @@
// Kiểm tra xem box OCR có giao nhau với vùng manual không
const
isOverlapping
=
!
(
inner
[
2
]
<
outer
[
0
]
||
//
box bên trái vùng chọn
inner
[
0
]
>
outer
[
2
]
||
//
box bên phải vùng chọn
inner
[
3
]
<
outer
[
1
]
||
//
box phía trên vùng chọ
n
inner
[
1
]
>
outer
[
3
]
//
box phía dưới vùng chọn
inner
[
2
]
<
outer
[
0
]
||
//
inner.right < outer.left → hoàn toàn bên trái
inner
[
0
]
>
outer
[
2
]
||
//
inner.left > outer.right → hoàn toàn bên phải
inner
[
3
]
<
outer
[
1
]
||
//
inner.bottom < outer.top → hoàn toàn phía trê
n
inner
[
1
]
>
outer
[
3
]
//
inner.top > outer.bottom → hoàn toàn phía dưới
);
// Trả về true nếu box OCR nằm hoàn toàn trong hoặc giao nhau đáng kể
...
...
Please
register
or
sign in
to post a comment