Vision based curve reconstruction algorithms and their application to graphical password