Updating square detector TO pose estimator