Commit 06ca6a44 authored by liuhy's avatar liuhy
Browse files

修改路径错误

parent 825266f8
......@@ -9,7 +9,7 @@ FilePath: \lpr\cut_ccpd.py
# @Author: liuhy
# @Email: 17603873430@163.com
# @Date: 2023-02-28 15:14:13
# @Last Modified time: 2023-03-01 17:52:20
# @Last Modified time: 2023-03-08 10:09:56
# coding:utf-8
import os
import cv2
......@@ -25,7 +25,7 @@ def cut_img(img_path, save_path):
for i, image in enumerate(images):
try:
print('\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bProcessing:%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('-')
r1, r2, l1, l2 = info[3].split('_')
rx1, ry1 = r1.split('&')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment