Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the edges image from Canny will have the same shape as your input. it only "highlights" edges, it does not retrieve coords. (you probably need findContours() as a next step).

print(edges[0]) will print out the 1st row of your edges image, and yes, most of it will be black(0), that's normal. ;)

maybe you should try to visualize it:

cv2.imshow("canny", edges)
cv2.waitKey()

or, using matplotlib:

plt.imshow(edges)