I want to detect corners from a image with boxes, although i created the chessboard edge lines with the EDlines algorithm. Now, I have some problems to join them to create perfect boxes. Could you help me maybe?
ed_anti=cvX.createEdgeDrawing()
ed_anti.detectEdges(binarized)
edges_anti=ed_anti.getEdgeImage(None)
segments_anti=ed_anti.getSegments()#gets the segments of the edges
gradiant_anti=ed_anti.getGradientImage(None)#detects the gradient of the edges
ed_lines_anti=ed_anti.detectLines(None)#detects the lines
if ed_lines_anti is not None:
lines_anti = np.uint16(np.around(ed_lines_anti))
for i in range(len(ed_lines_anti)):
cv.line(anti_black_image, (lines_anti[i][0][0], lines_anti[i][0][1]), (lines_anti[i][0][2], lines_anti[i][0][3]), (250, 0, 250), 1, cv.LINE_AA)