CPC G06T 11/60 (2013.01) [G06F 16/535 (2019.01); G06T 3/40 (2013.01); G06T 7/12 (2017.01); G06T 7/66 (2017.01); G06T 2207/20021 (2013.01); G06T 2207/30201 (2013.01); G06T 2210/62 (2013.01)] | 17 Claims |
1. A method for expanding an image database for evaluation of eyewear compatibility, comprising:
receiving a user image of a face of a user;
receiving a frame image of a frame of eyewear from a plurality of images of frames of eyewear;
processing, by processing circuitry, the received frame image by setting, as transparent, pixels of the received frame image except for an anterior face of the frame of the eyewear;
defining, within the processed frame image, a left boundary and a right boundary of the anterior face of the frame of the eyewear, the defined left boundary and the defined right boundary corresponding to the left eye and the right eye, respectively;
receiving a filter image of a filter modeling a lens coating of the eyewear;
processing, by the processing circuitry, the received filter image by setting, as transparent, pixels in the received filter image outside the frame of the eyewear based on the defined left boundary and the defined right boundary of the anterior face of the frame of the eyewear;
merging the processed frame image and the processed filter image; and
overlaying, by the processing circuitry, the merged processed frame image and the processed filter image onto the received user image of the face of user.
|