So I used the find edges function and it gets an image in black and white. What I want to do with the image is to analyze the pixels and look at the surrounding pixels white to determine if there’s breakage. What I don’t know what to do how to interact with the processed image so that we can look at the individual pixels. Would having a sensor.snapshot() function have the post-processed image?
Here is what I thought should work with the edge detection image be used in conjunction with the find lines function but the image didn’t have any segment lines in it.
img = sensor.snapshot()
pros_img=img.find_edges(image.EDGE_CANNY, threshold=(50, 80))
for l in img.find_lines(threshold = 1000, theta_margin = 25, rho_margin = 25):
if (min_degree <= l.theta()) and (l.theta() <= max_degree):
img.draw_line(l.line(), color = (255, 0, 0))
Appreciate the Help