Patent ID: 9747719
Date: 2017-08-29
CPC Classifications: G06T,H04N

Claim:
1. A method of generating a digital model of a lens of a pair of glasses from images of the pair of glasses with an uniform background, the images being taken with a camera of an acquisition device, the method comprising steps of: generating a silhouette of the lens by clipping the lens in the taken images with an active contour approach; projecting the silhouette on a 3D surface of a digital model of the lens generated by a processor; adjusting a surface of degree 2 to the projected silhouette; cutting the adjusted surface according to the projected silhouette; extruding the adjusted surface from the 3D surface to obtain a desired thickness of the lens; and applying a texture on the digital model of the lens, said texture depends on an angle of view of the lens; automatically generating a clipping path of the lens from the taken images by the processor: generating a threshold by measuring a noise of a sensor of the acquisition device on known areas corresponding to a background of one or more images; for each background, generating a binary mask corresponding to areas of the image that includes the pair of glasses; generating a glasses mask by union of the binary masks; and cutting the lens by the active contour approach in the images according to the glasses mask.