March 2019
Intermediate to advanced
532 pages
13h 2m
English
The aruco_detect_markers_draw_square.py script can be easily modified in order to overlay a more advanced augmentation.
In this case, we are going to overlay the image of a tree, which can be seen in the next screenshot:

To perform this augmentation, we have coded the draw_augmented_overlay() function, as shown in the following:
def draw_augmented_overlay(pts_1, overlay_image, image): """Overlay the image 'overlay_image' onto the image 'image'""" # Define the squares of the overlay_image image to be drawn: pts_2 = np.float32([[0, 0], [overlay_image.shape[1], 0], [overlay_image.shape[1