【发布时间】:2019-08-26 13:29:09
【问题描述】:
我正在制作适合拼图并识别完美配对的图像。 这是我的数据
solution.head()
id pair
0 1 686
1 2 540
2 3 971
3 4 910
4 5 616
我有这样的图像形状:
png = []
for image_path in glob.glob("training/training/*.png"):
png.append(misc.imread(image_path))
im = np.asarray(png)
print ('Importing done...', im.shape)
Importing done... (1000,)
array([array([[[247, 255, 102],
[247, 255, 102],
[247, 255, 102],
...,
[247, 255, 102],
[247, 255, 102],
[247, 255, 102]],
[[247, 255, 102],
[247, 255, 102],
[247, 255, 102],
...,
[247, 255, 102],
[247, 255, 102],
[247, 255, 102]],
[[247, 255, 102],
[247, 255, 102],
[247, 255, 102],
...,
[247, 255, 102],
[247, 255, 102],
[247, 255, 102]],
...,
[[247, 255, 102],
[247, 255, 102],
[247, 255, 102],
...,
[247, 255, 102],
[247, 255, 102],
[247, 255, 102]],
[[247, 255, 102],
[247, 255, 102],
[247, 255, 102],
...,
[247, 255, 102],
[247, 255, 102],
[247, 255, 102]],
[[247, 255, 102],
[247, 255, 102],
[247, 255, 102],
...,
[247, 255, 102],
[247, 255, 102],
[247, 255, 102]]], dtype=uint8),
array([[[165, 255, 102],
[165, 255, 102],
[165, 255, 102],
...,
[165, 255, 102],
[165, 255, 102],
[165, 255, 102]],
[[165, 255, 102],
[165, 255, 102],
[165, 255, 102],
...,
[165, 255, 102],
[165, 255, 102],
[165, 255, 102]],
[[165, 255, 102],
[165, 255, 102],
[165, 255, 102],
...,
[165, 255, 102],
[165, 255, 102],
[165, 255, 102]],
...,
[[165, 255, 102],
[165, 255, 102],
[165, 255, 102],
...,
我不明白如何找到完美的配对图像。我正在尝试调整它们的大小并转换为 gray ,但它会出错。请帮我找到成对组合在一起的图像。 这是我的 colab 链接: https://colab.research.google.com/drive/1bCQUHrXNjdWX8-WKSq6LK01XpR4D52J_
【问题讨论】:
标签: image-processing deep-learning computer-vision image-segmentation