回答編集履歴
1
説明の追補
answer
CHANGED
@@ -25,8 +25,10 @@
|
|
25
25
|
# Draw red points
|
26
26
|
image[dst>0.01*dst.max()]= [0,0,255]
|
27
27
|
|
28
|
+
# Detect red pixel
|
28
29
|
coord = np.where(np.all(image == (0, 0, 255), axis=-1))
|
29
30
|
|
31
|
+
# Print coordinate
|
30
32
|
for i in range(len(coord[0])):
|
31
33
|
print("X:%s Y:%s"%(coord[1][i],coord[0][i]))
|
32
34
|
|