Center of the ArucoGridBoard

i want to detect a QR code and design a 3d landmark in the centre of this QR code thats why i need an exemple of a code (python) if you have some one , thank you