An optical method for measuring the form of a profile and use of this process for the internal profile of a spectacle frame