Help getting started on a identification/location problem

Hi guys,

So, a few years ago I’ve worked with openCV for face recognition and others. It was in academic context so I never got to deep in it.

I’m working now on a project where I need to identify the placement of a metalic part in a shelf that can vary dimensions and shape. To make it easier I’ve uploaded a simplified version of my idea on how to solve it.

In this example, I have a 3x2 shelf and a box. I need to know the location of the box on the shelf. I’m thinking in attaching ArUco Markers on each corner of the shelf and one also on the box. Then using openCV to read the markers and calculate the distance between the marker on the box and the markers on the shelf and based on that determine the location? Will it work? Is this a solid approach? What can I be missing here? How good needs the camera to be?

As a starting point I saw this: OpenCV: Detection of ArUco Markers. Any other docs recommendations to make it work?

Thank you for the ongoing support,
Best regards,
Fernando Fontes