First time here? Check out the FAQ!
answered 2018-10-31 06:34:17 -0600
Just add slash.
cv2.circle(img_dst,(idx % w, idx // w) , 3, (0,0,255), -1)