✨
This commit is contained in:
@ -15,7 +15,21 @@ def find_aruco(arlo):
|
|||||||
for bounding, n in zip(corners, ids):
|
for bounding, n in zip(corners, ids):
|
||||||
bounding_box = [(int(x), int(y)) for x, y in bounding.reshape((4,2))]
|
bounding_box = [(int(x), int(y)) for x, y in bounding.reshape((4,2))]
|
||||||
print(bounding_box)
|
print(bounding_box)
|
||||||
cv2.line(image, bounding_box[0], bounding_box[1], (0,255,0))
|
|
||||||
|
cv2.line(image, bounding_box[0], bounding_box[1], (0,255,0), 3)
|
||||||
|
cv2.line(image, bounding_box[1], bounding_box[2], (0,255,0), 3)
|
||||||
|
cv2.line(image, bounding_box[2], bounding_box[3], (0,255,0), 3)
|
||||||
|
cv2.line(image, bounding_box[3], bounding_box[0], (0,255,0), 3)
|
||||||
|
|
||||||
|
cv2.putText(
|
||||||
|
image,
|
||||||
|
str(n),
|
||||||
|
bounding_box[0],
|
||||||
|
cv2.FONT_HERSHEY_COMPLEX,
|
||||||
|
0.5,
|
||||||
|
(0,255,0),
|
||||||
|
2
|
||||||
|
)
|
||||||
|
|
||||||
return image
|
return image
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user