Can we do solvePnP on OpenMV?

Hi,
Can we do solvePnP like it in OpenCV on OpenMV? Since we can get the positions of the corners of Apriltags, can we use solvePnP to get the position and orientation of the camera?

We spit out the tag x/y/z translation from the camera along with the rotation. Please use these values to get where the camera is.

I too want to use a function like solvePnP to identify the pose and orientation of head from facial images using pixel coordinates of facial landmarks.
Should I write the code from scratch or any inbuilt function available to assist?

We don’t have any such thing supplied with the firmware as of right now.