fiducial.py with custome transfomation