Copied from http://sourceforge.net/projects/aruco/files/1.2.4/