Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

进行图像提取的会,内存炸了 #186

Open
limaoyue1 opened this issue Aug 28, 2024 · 0 comments
Open

进行图像提取的会,内存炸了 #186

limaoyue1 opened this issue Aug 28, 2024 · 0 comments

Comments

@limaoyue1
Copy link

def read_imgs(img_list):
# 创建一个空列表用于存放读取的图片
frames = []
# 打印提示信息
print('reading images...')
# 遍历图片路径列表
for img_path in tqdm(img_list):
# 使用 OpenCV 的 imread 函数读取图片
frame = cv2.imread(img_path)
# 将读取的图片添加到 frames 列表中
frames.append(frame)
# 返回包含所有图片的列表
return frames
在进行这一步的会,内存炸了
cceb700b2ad6f45685c01a382c6e7ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant