Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
LPRNet_pytorch
Commits
06ca6a44
Commit
06ca6a44
authored
Mar 08, 2023
by
liuhy
Browse files
修改路径错误
parent
825266f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
cut_ccpd.py
cut_ccpd.py
+2
-2
No files found.
cut_ccpd.py
View file @
06ca6a44
...
@@ -9,7 +9,7 @@ FilePath: \lpr\cut_ccpd.py
...
@@ -9,7 +9,7 @@ FilePath: \lpr\cut_ccpd.py
# @Author: liuhy
# @Author: liuhy
# @Email: 17603873430@163.com
# @Email: 17603873430@163.com
# @Date: 2023-02-28 15:14:13
# @Date: 2023-02-28 15:14:13
# @Last Modified time: 2023-03-0
1
1
7:52:20
# @Last Modified time: 2023-03-0
8
1
0:09:56
# coding:utf-8
# coding:utf-8
import
os
import
os
import
cv2
import
cv2
...
@@ -25,7 +25,7 @@ def cut_img(img_path, save_path):
...
@@ -25,7 +25,7 @@ def cut_img(img_path, save_path):
for
i
,
image
in
enumerate
(
images
):
for
i
,
image
in
enumerate
(
images
):
try
:
try
:
print
(
'
\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b
Processing:%s'
%
i
,
end
=
''
,
flush
=
True
)
print
(
'
\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b
Processing:%s'
%
i
,
end
=
''
,
flush
=
True
)
img
=
cv2
.
imread
(
os
.
path
.
join
(
'ccpd_base'
,
image
))
img
=
cv2
.
imread
(
os
.
path
.
join
(
img_path
,
image
))
info
=
image
.
split
(
'-'
)
info
=
image
.
split
(
'-'
)
r1
,
r2
,
l1
,
l2
=
info
[
3
].
split
(
'_'
)
r1
,
r2
,
l1
,
l2
=
info
[
3
].
split
(
'_'
)
rx1
,
ry1
=
r1
.
split
(
'&'
)
rx1
,
ry1
=
r1
.
split
(
'&'
)
...
...
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