When using the findContours() function I get an array. I am confused as to what the numbers in the array mean and also what a 'dtype' is.
code:
contour = str(cv2.findContours(edges, cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE))
print(contour)
output:
([array([[[21, 21]],
[[21, 90]],
[[90, 90]],
[[90, 21]]], dtype=int32), array([[[21, 22]],
[[22, 21]],
[[89, 21]],
[[90, 22]],
[[90, 89]],
[[89, 90]],
[[22, 90]],
[[21, 89]]], dtype=int32), array([[[23, 23]],
[[23, 88]],
[[88, 88]],
[[88, 23]]], dtype=int32), array([[[23, 24]],
[[24, 23]],
[[87, 23]],
[[88, 24]],
[[88, 87]],
[[87, 88]],
[[24, 88]],
[[23, 87]]], dtype=int32)], array([[[-1, -1, 1, -1],
[-1, -1, 2, 0],
[-1, -1, 3, 1],
[-1, -1, -1, 2]]], dtype=int32))
How would I go about parsing this array to use later? I plan on making a turtle application that reads instructions from a file containing image data. I want to know how I would be able to convert this into said instructions.