質問するログイン新規登録

回答編集履歴

1

説明の追補

2017/08/07 13:00

投稿

退会済みユーザー
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