如何将图像数据集转换为 Numpy 数组

问题描述 投票:0回答:1

因此,我正在开展一个计算机视觉项目,以构建基于 CNN 的模型来检测面部的关键点。 我的数据集包含一组 120 张 jpg 格式的图像。我想将它们转换为 numpy 数组以进行进一步处理。

using opencv and numpy libraries to convert the jpg images to an array

While the data object is non empty, I am not able to access them for further processing

我如何继续使用 numpy 数组来构建模型,使用这些数据训练它们并测试它以产生结果?

python numpy image-processing deep-learning conv-neural-network
1个回答
0
投票

你应该使用 kwargs 而不是 args

np.savez(path, images=images)
© www.soinside.com 2019 - 2024. All rights reserved.