CN109003298A - virtual glasses matching method and system - Google Patents
virtual glasses matching method and system Download PDFInfo
- Publication number
- CN109003298A CN109003298A CN201710406144.0A CN201710406144A CN109003298A CN 109003298 A CN109003298 A CN 109003298A CN 201710406144 A CN201710406144 A CN 201710406144A CN 109003298 A CN109003298 A CN 109003298A
- Authority
- CN
- China
- Prior art keywords
- frame
- user
- nose
- glasses
- indicates
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 239000011521 glass Substances 0.000 claims abstract description 46
- 238000012216 screening Methods 0.000 claims abstract description 43
- 238000012545 processing Methods 0.000 claims description 28
- 238000004891 communication Methods 0.000 claims description 16
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000005259 measurement Methods 0.000 claims description 2
- 230000001815 facial effect Effects 0.000 abstract description 54
- 210000001508 eye Anatomy 0.000 description 24
- 210000003128 head Anatomy 0.000 description 16
- 210000005069 ears Anatomy 0.000 description 14
- 238000010586 diagram Methods 0.000 description 12
- 210000001747 pupil Anatomy 0.000 description 7
- 210000005252 bulbus oculi Anatomy 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 6
- 230000003190 augmentative effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000008676 import Effects 0.000 description 4
- 210000001331 nose Anatomy 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000007405 data analysis Methods 0.000 description 3
- 210000001061 forehead Anatomy 0.000 description 3
- 230000001179 pupillary effect Effects 0.000 description 3
- 210000000988 bone and bone Anatomy 0.000 description 2
- 238000012937 correction Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 1
- 210000000744 eyelid Anatomy 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002715 modification method Methods 0.000 description 1
- 238000010187 selection method Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Geometry (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种提供使用者选择眼镜的技术,特别是一种以软体方法透过影像处理的方式提供用户在平面影像或立体影像中选配虚拟眼镜的方法与系统。The present invention relates to a technology for providing users with selecting glasses, in particular to a method and system for providing users with selecting and matching virtual glasses in plane images or stereoscopic images by using software methods through image processing.
背景技术Background technique
一般市面上眼镜公司是选择配戴眼镜的消费者的首选,消费者会在眼镜公司或是医院取得验光的资讯后,可至眼镜公司或是医院配合的配眼镜的店家选配镜框与镜片,常见由公司员工介绍各式镜框,让消费者在镜子前试戴,之后再选择所需的镜片样式,接着业者将根据消费者的一些配戴数据制作眼镜,配戴数据如眼镜度数,以及瞳距、两眼位置、在鼻梁上的配戴高度、镜面弯度和镜架倾斜角度等。大部分数据是让消费者在领取眼镜时由自我配戴感觉来告知服务者才即时调整。Generally, eyewear companies in the market are the first choice for consumers who choose to wear glasses. Consumers will obtain optometry information from eyewear companies or hospitals, and then go to eyewear companies or eyewear stores that cooperate with hospitals to choose frames and lenses. It is common for employees of the company to introduce various frames and let consumers try them on in front of the mirror, and then choose the lens style they need. Then the company will make glasses according to some wearing data of consumers, such as the degree of glasses, and the number of pupils. The distance between the eyes, the position of the eyes, the wearing height on the bridge of the nose, the curvature of the mirror surface and the inclination angle of the frame, etc. Most of the data is to allow consumers to inform the service provider based on their self-wearing feeling when receiving the glasses, so that they can adjust in real time.
发明内容Contents of the invention
为了克服现有技术的上述不足,本发明揭露一种虚拟眼镜选配方法,提供使用者使用电脑装置或手持装置拍摄或扫描自己的影像,在根据自己的脸部或头部特征选配符合的眼镜,并能即时将配戴虚拟眼镜的影像显示在电脑装置的显示萤幕上,达到如照镜子一般即时预览的效果,以及让使用者弹性选择眼镜样式的虚拟体验的目的。In order to overcome the above-mentioned deficiencies in the prior art, the present invention discloses a method for matching virtual glasses, which provides users with a computer device or a handheld device to shoot or scan their own images, and then choose suitable glasses according to their own face or head features. glasses, and can instantly display the image of wearing the virtual glasses on the display screen of the computer device, achieving the effect of real-time preview like looking in a mirror, and allowing the user to flexibly choose the virtual experience of the glasses style.
本发明的虚拟眼镜选配方法包括影像取得步骤:拍摄或取得使用者脸部的一数位影像;脸部特征数值量测步骤:解析或量测所述数位影像而得到用户的瞳距、脸宽、鼻梁高度、鼻梁宽度、及眼耳距离的脸部特征中任一种;镜框筛选步骤:基于所述脸部特征数值资料、及使用方程式1:P=-1.036X2+23.365X-2.089Y+Z±5(其中,P为镜框宽度(mm);X为使用者的鼻梁高度(mm);Y为使用者的鼻梁宽度(mm);Z为使用者的眼耳距离(mm))从镜框资料库中筛选出复数个备选镜框;以及镜框决定步骤:藉由配镜应用程序用户对于所述复数个备选镜框依次进行虚拟试戴而选出适合的镜框;其中所述配镜应用程序为至少包括影像传输接口、镜框筛选接口、及镜框虚拟试戴界面;其中所述影像传输接口为用以接收及传送用户的脸部影像;所述镜框筛选接口为用以接受用户的镜框筛选条件并基于所述镜框筛选条件从镜框资料库中选出复数个备选镜框;所述镜框虚拟试戴接口为让用户对于所述复数个备选镜框依次进行虚拟试戴。The virtual glasses matching method of the present invention includes an image acquisition step: taking or obtaining a digital image of the user's face; a facial feature value measurement step: analyzing or measuring the digital image to obtain the user's pupillary distance and face width , nose bridge height, nose bridge width, and facial features of eye-ear distance; frame screening step: based on the numerical data of the facial features, and using equation 1: P=-1.036X 2 +23.365X-2.089Y +Z±5 (wherein, P is the frame width (mm); X is the user's nose height (mm); Y is the user's nose width (mm); Z is the user's eye-ear distance (mm)) from A plurality of candidate frames are screened out from the frame database; and a frame decision step: the user of the glasses application program conducts virtual try-ons on the plurality of candidate frames in turn to select a suitable frame; wherein the glasses application The program at least includes an image transmission interface, a frame screening interface, and a virtual frame try-on interface; wherein the image transmission interface is used to receive and transmit the user's facial image; the frame screening interface is used to accept the user's frame screening conditions and select a plurality of candidate frames from the frame database based on the frame screening conditions; the frame virtual try-on interface allows users to perform virtual try-ons on the plurality of candidate frames in turn.
本发明更提出一种虚拟眼镜选配方法,其是进一步包括将识别对象配戴于用户的脸部中,并拍摄用户用以建立数位影像;根据识别对象的位置识别立体影像中用户的两眼睛、鼻子与两耳朵的位置以获得脸部特征资讯步骤;基于所述脸部特征筛数值资料、及使用方程式1:P=-1.036X2+23.365X-2.089Y+Z±5(其中,P为镜框宽度(mm);X为使用者的鼻梁高度(mm);Y为使用者的鼻梁宽度(mm);Z为使用者的眼耳距离(mm));或者使用方程式3:R=Z+13+F(其中,R表示镜脚长度(mm);Z表示眼耳距离(mm);F表示上下限值(mm),一般介于0~40mm的范围)从镜框资料库中选出复数个备选镜框;藉由上述配镜应用程序用户对于所述复数个备选镜框依次进行虚拟试戴而选出适合的镜框。The present invention further proposes a method for matching virtual glasses, which further includes wearing the identification object on the user's face, and photographing the user to create a digital image; identifying the user's two eyes in the stereoscopic image according to the position of the identification object , the position of the nose and two ears to obtain the facial feature information step; based on the facial feature screening value data, and using equation 1: P=-1.036X 2 +23.365X-2.089Y+Z±5 (wherein, P is the width of the frame (mm); X is the height of the bridge of the user's nose (mm); Y is the width of the bridge of the user's nose (mm); Z is the distance between the eyes and ears of the user (mm); or use Equation 3: R=Z +13+F (where, R represents the length of temples (mm); Z represents the distance between eyes and ears (mm); F represents the upper and lower limits (mm), generally ranging from 0 to 40mm) selected from the frame database A plurality of candidate frames; the user of the above-mentioned glasses matching application program sequentially performs virtual try-ons on the plurality of candidate frames to select a suitable frame.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中所述数位影像可以是二维影像、三维影像、或扩增实境影像。According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein the digital image can be a 2D image, a 3D image, or an augmented reality image.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中在所述镜框筛选步骤之中进一步包含基于至少两个以上的所述脸部特征筛选出复数个备选镜框;例如,使用方程式2:M=180-Q=180-Tan-1(X/(Y/2))(其中,M为鼻托角度;Y表示鼻梁宽度;X表示鼻梁高度:Q表示鼻梁倾斜度。);或者例如使用方程式3:R=Z+13+F(其中,R表示镜脚长度(mm);Z表示眼耳距离(mm);F表示上下限值(mm),一般介于0~40mm的范围)。According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein the frame screening step further includes selecting a plurality of candidate frames based on at least two facial features ; for example, using Equation 2: M=180-Q=180-Tan -1 (X/(Y/2)) (where M is the angle of the nose pad; Y is the width of the bridge of the nose; X is the height of the bridge of the nose: Q is the tilt of the bridge of the nose degrees.); or for example, use equation 3: R=Z+13+F (where R represents the length of the temples (mm); Z represents the distance between the eyes and ears (mm); F represents the upper and lower limits (mm), generally between 0 ~ 40mm range).
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,本发明还可以提供一种虚拟眼镜选配方法,其中所述镜框决定步骤进一步包括在一显示萤幕中将所述数位影像与所述备选镜框结合,以供使用者决定镜框是否适合。According to a specific embodiment, the present invention may also provide a method for matching virtual glasses, and the present invention may also provide a method for matching virtual glasses, wherein the frame determining step further includes displaying the The digital image is combined with the candidate frame for the user to decide whether the frame is suitable.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中所述镜框筛选步骤之后进一步包括镜框精选步骤:由使用者手动输入筛选条件,并且基于所述筛选条件筛选出复数个备选镜框。According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein after the frame screening step, a frame selection step is further included: the user manually inputs filter conditions, and filters glasses based on the filter conditions. Come up with multiple alternative frames.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中所述筛选条件可以是镜框的宽度、鼻梁倾斜度、鼻托距宽度、鼻托距长度、镜脚长度、形状、及颜色中的任一种或一种以上。According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein the screening conditions can be the width of the frame, the inclination of the bridge of the nose, the width of the nose pad distance, the length of the nose pad distance, the length of the temples, Any one or more of shape and color.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中所述脸部宽度符合下列关是式:According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein the width of the face conforms to the following formula:
脸宽T=-1.036X2+23.365X-2.089Y+ZFace width T=-1.036X 2 +23.365X-2.089Y+Z
(其中,T为使用者的脸宽、X为使用者的鼻梁高度、Y为使用者的鼻梁宽度、Z为使用者的眼耳距)。(Wherein, T is the width of the user's face, X is the height of the bridge of the user's nose, Y is the width of the bridge of the user's nose, and Z is the distance between the user's eyes and ears).
又,因为镜框宽度的筛选范围P为约略等于脸部宽度加减一上下限阈值。所述上下限阈值,例如,可以是5mm或者其他的数值。因此,当所述上下限阈值设为5mm时,所述镜框宽度的筛选范围P就满足以下方程式1:Also, because the screening range P of the frame width is approximately equal to the face width plus or minus one upper and lower threshold. The upper and lower limit thresholds, for example, may be 5mm or other numerical values. Therefore, when the upper and lower limit thresholds are set to 5 mm, the screening range P of the frame width satisfies the following equation 1:
P=-1.036X2+23.365X-2.089Y+Z±5-------(方程式1)P=-1.036X 2 +23.365X-2.089Y+Z±5-------(equation 1)
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中所述镜框确定步骤的后进一步包含实体配戴步骤:从仓库中取出使用者所选择的镜框实体供使用者配戴并确认是否符合需求。According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein the frame determination step further includes a physical wearing step: taking out the frame entity selected by the user from the warehouse for the user Wear it and confirm whether it meets your needs.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配方法,其中所述镜框筛选步骤、所述镜框精选步骤、及所述镜框决定步骤可以重复实施。According to a specific embodiment, the present invention can also provide a method for matching virtual glasses, wherein the frame selection step, the frame selection step, and the frame determination step can be implemented repeatedly.
除前述实施态样外,本发明另提出一种虚拟眼镜选配系统,其是包括镜框资料库与电脑装置。云端服务器用于存储复数笔眼镜镜框模型;电脑装置具有处理单元、摄像单元、显示单元、通讯单元与储存单元,处理单元电性连接于摄像单元、显示单元、通讯单元与储存单元,通讯单元网路连接于云端服务器,储存单元存储配镜应用程序。摄像单元用于对用户拍摄数位影像,处理单元用以执行配镜应用程序,并得到用户的第一脸部特征与第二脸部特征,;配镜应用程序为至少包括影像传输接口、镜框筛选接口、及镜框虚拟试戴界面;其中所述影像传输接口为用以接收及传送用户的脸部影像;所述镜框筛选接口为用以接受用户的镜框筛选条件并基于所述镜框筛选条件从镜框资料库中选出复数个备选镜框;所述镜框虚拟试戴接口为让用户对于所述复数个备选镜框依次进行虚拟试戴;。In addition to the aforementioned implementation aspects, the present invention further proposes a virtual glasses matching system, which includes a frame database and a computer device. The cloud server is used to store multiple glasses frame models; the computer device has a processing unit, a camera unit, a display unit, a communication unit and a storage unit, and the processing unit is electrically connected to the camera unit, display unit, communication unit and storage unit, and the communication unit network The road is connected to the cloud server, and the storage unit stores the matching application program. The camera unit is used to take digital images of the user, and the processing unit is used to execute the matching application program to obtain the first facial features and the second facial features of the user; the matching application program includes at least an image transmission interface, a frame screening interface, and a virtual frame try-on interface; wherein the image transmission interface is used to receive and transmit the user's facial image; the frame screening interface is used to accept the user's frame screening conditions and select the frames based on the frame screening conditions A plurality of candidate frames are selected from the database; the frame virtual try-on interface is for the user to perform virtual try-on for the plurality of candidate frames in turn;
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配系统,其包括:一镜框资料库,用于存储复数副镜框;以及一电脑装置,所述电脑装置具有一处理单元、一摄像单元、一显示单元、一通讯单元与一储存单元,所述处理单元电性连接于所述摄像单元、一显示单元、所述通讯单元与所述储存单元,所述通讯单元网路连接于所述镜框资料库,所述储存单元存储一配镜应用程序,所述处理单元执行所述配镜应用程序;其中所述配镜应用程序可以包括:用以接收及传送用户的脸部影像的影像传输接口、用以接受用户的镜框筛选条件并基于所述镜框筛选条件从镜框资料库中筛选出复数个备选镜框的镜框筛选界面、及对于所述复数个备选镜框依次进行虚拟试戴的镜框虚拟试戴界面;其中所述镜框筛选是基于所述脸部特征数值资料、及使用方程式1:P=-1.036X2+23.365X-2.089Y+Z±5(其中,P为镜框宽度(mm);X为使用者的鼻梁高度(mm);Y为使用者的鼻梁宽度(mm);Z为使用者的眼耳距离(mm))从镜框资料库中筛选出复数个备选镜框。According to a specific embodiment, the present invention can also provide a virtual glasses matching system, which includes: a frame database for storing a plurality of secondary frames; and a computer device, the computer device has a processing unit, A camera unit, a display unit, a communication unit and a storage unit, the processing unit is electrically connected to the camera unit, a display unit, the communication unit and the storage unit, and the communication unit is connected to the network In the frame database, the storage unit stores a matching application program, and the processing unit executes the matching application program; wherein the matching application program may include: for receiving and transmitting the user's facial image an image transmission interface, a frame screening interface for accepting the user's frame screening conditions and screening out a plurality of candidate frames from the frame database based on the frame screening conditions, and performing virtual tests on the multiple candidate frames in sequence The virtual try-on interface of the frame to be worn; wherein the frame screening is based on the facial feature numerical data, and using equation 1: P=-1.036X 2 +23.365X-2.089Y+Z±5 (wherein, P is the frame Width (mm); X is the height of the bridge of the user's nose (mm); Y is the width of the bridge of the user's nose (mm); Z is the distance between the user's eyes and ears (mm)) Select multiple options from the frame database picture frame.
依据某一特定的实施例,本发明还可以提供一种虚拟眼镜选配系统,其中所述数位影像可以经由摄像单元拍摄、或经由所述通讯单元传送至所述处理单元而得。According to a specific embodiment, the present invention can also provide a virtual eyewear matching system, wherein the digital image can be obtained by taking a picture through the camera unit, or transmitting it to the processing unit through the communication unit.
本发明所提供的虚拟眼镜选配方法与系统提供使用者可以透过图形用户接口选择镜框类型与镜框相关参数,本发明的眼镜选配系统可以根据瞳距的条件提供眼镜镜框模型。选配系统可以将所选择的眼镜镜框模型即时的绘制在用户的数位影像上,并且根据使用者的脸型自动调整镜框大小、鼻托位置或镜脚长短等。The virtual glasses matching method and system provided by the present invention provide users with the ability to select frame types and frame-related parameters through a graphical user interface, and the glasses matching system of the present invention can provide glasses frame models according to pupillary distance conditions. The matching system can draw the selected spectacle frame model on the user's digital image in real time, and automatically adjust the size of the frame, the position of the nose pad or the length of the temples, etc. according to the user's face shape.
有关本发明的特征与实作,兹配合图式作最佳实施例详细说明如下。Regarding the features and implementation of the present invention, the preferred embodiments are described in detail below in conjunction with the drawings.
附图说明Description of drawings
下面结合附图和具体实施方式对本发明作进一步详细的说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
图1是本发明的硬体架构示意图。FIG. 1 is a schematic diagram of the hardware architecture of the present invention.
图2是本发明的实施态样的流程示意图。Fig. 2 is a schematic flow chart of an embodiment of the present invention.
图3是本发明的眼睛高度示意线示意图。Fig. 3 is a schematic diagram of eye height in the present invention.
图4是本发明的使用者头部的立体数位影像示意图。FIG. 4 is a schematic diagram of a three-dimensional digital image of a user's head according to the present invention.
图5是本发明拍摄使用者侧脸的数位影像的示意图。FIG. 5 is a schematic diagram of a digital image taken of a side face of a user according to the present invention.
图6是本发明的一实施例中的影像上传示意图。FIG. 6 is a schematic diagram of image uploading in an embodiment of the present invention.
图7是本发明的一实施例中的镜框筛选示意图。Fig. 7 is a schematic diagram of frame screening in an embodiment of the present invention.
图8是本发明的一实施例中的虚拟试戴示意图。Fig. 8 is a schematic diagram of a virtual try-on in an embodiment of the present invention.
图9是本发明的另一实施例中的立体头部影像拍摄示意图。FIG. 9 is a schematic diagram of shooting stereo head images in another embodiment of the present invention.
主要组件符号说明:110:镜框资料库;111:眼镜镜框模型;112:镜框基础数据;120:电脑装置;121:处理单元;122:摄像单元;123:显示单元;124:通讯单元;125:储存单元;131:数位影像;132:配镜应用程序;30:人脸影像;301:眼睛高度示意线;510:识别物件;520:使用者;601、602:耳朵;611、612:耳朵特征描述点;603:鼻子;631、632、633:鼻子特征描述点;613:眉骨弯度示意线;d:距离;701:耳朵头部连接示意线;702:眼球表面示意线。Description of main component symbols: 110: frame database; 111: spectacle frame model; 112: basic frame data; 120: computer device; 121: processing unit; 122: camera unit; 123: display unit; 124: communication unit; 125: Storage unit; 131: digital image; 132: glasses app; 30: face image; 301: eye height line; 510: object recognition; 520: user; 601, 602: ear; 611, 612: ear features Description point; 603: nose; 631, 632, 633: nose feature description points; 613: schematic line of browbone curvature; d: distance; 701: schematic line connecting ear and head; 702: schematic line on eyeball surface.
具体实施方式Detailed ways
请参考图1所示,其是本发明的虚拟眼镜选配系统架构示意图。本发明的虚拟眼镜选配系统包括镜框资料库110与电脑装置120。镜框资料库110网路连结于电脑装置120。镜框资料库110中存储多笔眼镜镜框模型111与镜框基础数据112。本发明的眼镜镜框模型111除了平面眼镜镜框图形外,也可以是立体的眼镜镜框影像。每一组眼镜镜框模型111具有各自的预设的镜框基础数据112,镜框基础数据112至少包括镜片材质、镜脚长度、鼻托角度、鼻托宽度、镜框宽度、及镜框颜色。本发明的电脑装置120经由比对镜框基础数据112及使用在镜框筛选步骤中所指定的镜框筛选范围而选出的数个备选镜框后,再根据使用者的指定从备选框中识别被指定的镜框而自动地配戴于用户脸部影像并进行相应的调整,以让使用者自身进行评价及决定是否符合其需求。Please refer to FIG. 1 , which is a schematic diagram of the architecture of the virtual glasses matching system of the present invention. The virtual glasses matching system of the present invention includes a frame database 110 and a computer device 120 . The frame database 110 is connected to the computer device 120 through the network. The frame database 110 stores multiple eyeglass frame models 111 and frame basic data 112 . The spectacle frame model 111 of the present invention can also be a three-dimensional spectacle frame image in addition to the planar spectacle frame figure. Each group of spectacle frame models 111 has its own preset frame basic data 112, which at least includes lens material, temple length, nose pad angle, nose pad width, frame width, and frame color. The computer device 120 of the present invention selects several candidate frames by comparing the frame basic data 112 with the frame screening range specified in the frame screening step, and then identifies the selected frames from the candidate frames according to the user's designation. The specified frame is automatically worn on the user's face image and adjusted accordingly, so that the user can evaluate and decide whether it meets his needs.
电脑装置120具有处理单元121、摄像单元122、显示单元123、通讯单元124与储存单元125。处理单元121电性连接于摄像单元122、显示单元123、通讯单元124与储存单元125。电脑装置120的种类不限定是计算机(computer),也可以是行动电话(mobile phone)或平板电脑(tablet)等具有所述计算能力的电子装置。摄像单元122用于拍摄数位影像131(digital image)。本发明中所述的数位影像131可以是经由摄像单元122所拍摄或录制得到的用户的平面二维影像或立体影像;或者也可以是经由通讯单元124传送至处理单元121的用户的平面二维影像或立体影像。The computer device 120 has a processing unit 121 , a camera unit 122 , a display unit 123 , a communication unit 124 and a storage unit 125 . The processing unit 121 is electrically connected to the camera unit 122 , the display unit 123 , the communication unit 124 and the storage unit 125 . The type of the computer device 120 is not limited to a computer, and may also be an electronic device with the computing capability, such as a mobile phone or a tablet. The camera unit 122 is used for shooting a digital image 131 (digital image). The digital image 131 described in the present invention may be a plane two-dimensional image or a three-dimensional image of the user captured or recorded by the camera unit 122; images or stereoscopic images.
显示单元123,除了显示所拍摄的数位影像131,也可以显示扩充实境(AugmentedReality,简称AR)的影像与操作扩充实境影像中的对象。为方便说明,本发明的显示单元123透过触控显示屏幕以供使用者观看画面与输入操作指令。举例来说,当电脑装置120拍摄立体影像时,用户可以透过显示单元123缩放观看数位影像131中的对象,或是旋转数位影像131中的对象等动作。在其他应用的状况中,电脑装置120可以透过人机接口(HID)进行相关的操作。通讯单元124用于连接于镜框资料库110,通讯单元124可以透过网路连接外,也可以以电缆方式连接于镜框资料库110。In addition to displaying the captured digital image 131 , the display unit 123 can also display an Augmented Reality (AR) image and manipulate objects in the Augmented Reality image. For the convenience of description, the display unit 123 of the present invention allows the user to view the screen and input operation commands through a touch display screen. For example, when the computer device 120 shoots a stereoscopic image, the user can view the object in the digital image 131 through the display unit 123 , or rotate the object in the digital image 131 . In the case of other applications, the computer device 120 can perform related operations through a human-machine interface (HID). The communication unit 124 is used to connect to the frame database 110 , and the communication unit 124 can be connected to the frame database 110 through a network or a cable.
储存单元125存储配镜应用程序132与用户的选配记录历程。配镜应用程序132包括能够用于识别用户的数位影像131中的两眼睛、鼻子与两耳朵等的各个脸部特征的位置及量测上述各种脸部特征的距离、角度等的数值资料;。配镜应用程序132除了具有人脸识别与自动追踪的功能外,也提供用户选择眼镜镜框模型111的相关接口;包括:用以接收及传送用户的脸部影像的影像传输接口、用以接受用户的镜框筛选条件并基于所述镜框筛选条件从镜框资料库中选出复数个备选镜框的镜框筛选界面、及对于所述复数个备选镜框依次进行虚拟试戴的镜框虚拟试戴界面。为进一步说明各种数位影像131的脸部特征的识别过程与眼镜镜框模型111的配对过程,请配合参考图2所示,本发明虚拟眼镜选配方法包括以下步骤:The storage unit 125 stores the matching record history of the matching application program 132 and the user. The glasses application program 132 includes numerical data that can be used to identify the position of each facial feature such as eyes, nose, and ears in the user's digital image 131 and measure the distance, angle, etc. of the above-mentioned various facial features; . In addition to the functions of face recognition and automatic tracking, the glasses application program 132 also provides relevant interfaces for the user to select the spectacle frame model 111; including: an image transmission interface for receiving and transmitting the user's facial image, for accepting user A frame screening interface for selecting a plurality of candidate frames from the frame database based on the frame screening conditions, and a frame virtual try-on interface for sequentially performing virtual try-ons on the plurality of candidate frames. In order to further illustrate the recognition process of the facial features of various digital images 131 and the pairing process of the glasses frame model 111, please refer to FIG. 2, the virtual glasses matching method of the present invention includes the following steps:
步骤S210:拍摄或取得用户脸部的数位影像;Step S210: taking or obtaining a digital image of the user's face;
步骤S220:解析或量测所述数位影像而得到脸部特征;Step S220: Analyzing or measuring the digital image to obtain facial features;
步骤S230:基于所述脸部特征筛选出复数个备选镜框;Step S230: Screen out a plurality of candidate frames based on the facial features;
步骤S240:使用者对于所述复数个备选镜框依次进行虚拟试戴而选出适合的镜框。Step S240: The user performs virtual try-on on the plurality of candidate frames in order to select a suitable frame.
在本实施态样中,经由步骤S210可以进一步解析用户的脸部平面影像或立体影像以获得脸部影像特征数据资料,脸部影像特征数据资料包括脸部中的两眼睛的间的瞳距、瞳距、脸宽、鼻梁高度、鼻梁宽度、及眼耳距离的脸部特征中任一种。首先,例如,经由摄像取得用户的数位影像的情况下,电脑装置120拍摄使用者的正面的数位影像131。随即,处理单元121运行配镜应用程序132,且载入数位影像131并显示影像在显示单元123的中。若是使用者未曾记录于电脑装置120中,则可以启动配镜应用程序132对于数位影像131进行影像特征的辨识。接着,经由步骤220可以进一步解析或量测所述使用者的脸部的数位影像;换言之,配镜应用程序132可以从数位影像131中自动定位或是由使用者自行选取瞳孔、脸宽、鼻梁高度、鼻梁宽度、及眼耳距离的各个脸部的特征位置,藉以得到瞳距、脸宽、鼻梁高度、鼻梁宽度、及眼耳距离的各个脸部的特征的数据资料。In this embodiment, through step S210, the plane image or stereoscopic image of the user's face can be further analyzed to obtain facial image feature data. The facial image feature data includes the interpupillary distance between the two eyes in the face, Any of facial features such as pupillary distance, face width, nose bridge height, nose bridge width, and eye-ear distance. First, for example, when a digital image of the user is acquired through imaging, the computer device 120 captures a digital image 131 of the front of the user. Then, the processing unit 121 runs the glasses application 132 , and loads the digital image 131 and displays the image on the display unit 123 . If the user has not recorded in the computer device 120 , the glasses matching application program 132 can be activated to identify the image features of the digital image 131 . Next, through step 220, the digital image of the user's face can be further analyzed or measured; in other words, the glasses application 132 can automatically locate the pupil, face width, and bridge of the nose from the digital image 131 or the user can choose Height, nose width, and eye-ear distance feature positions of each face, so as to obtain the data of each face feature of pupil distance, face width, nose height, nose width, and eye-ear distance.
此外,显示单元123会跳现另一输入接口,用于提供输入使用者的镜框筛选范围。在所述镜框筛选步骤之中,配镜应用程序132能够由数位影像131中所包含的至少两个以上的所述脸部特征做为镜框筛选范围而筛选出复数个备选镜框。In addition, another input interface will pop up on the display unit 123 for inputting the user's frame selection range. In the frame screening step, the glasses matching application program 132 can use at least two or more facial features included in the digital image 131 as a frame screening range to filter out a plurality of candidate frames.
举例来说,配镜应用程序132可以使用例如方程式2:M=180-Q=180-Tan-1(X/(Y/2))(其中,M为鼻托角度(°);Y表示鼻梁宽度(mm);X表示鼻梁高度(mm):Q表示鼻梁倾斜度(°)。);或者例如使用方程式3:R=Z+13+F(其中,R表示镜脚长度(mm);Z表示眼耳距离(mm);F表示上下限值(mm),一般介于0~40mm的范围)来筛选出复数个备选镜框。For example, the optician application 132 may use, for example, Equation 2: M=180-Q=180-Tan -1 (X/(Y/2)) (where M is the nose pad angle (°); Y represents the bridge of the nose Width (mm); X represents nose bridge height (mm): Q represents nose bridge slope (°).); or for example using equation 3: R=Z+13+F (where R represents temple length (mm); Z Indicates the eye-ear distance (mm); F indicates the upper and lower limits (mm), generally between 0 and 40mm) to screen out a plurality of alternative frames.
另外,使用者可以从电脑装置120上开启眼镜镜框模型选择接口,并且指定筛选条件为瞳距、脸宽、眼耳距、或鼻梁宽度。处理单元130基于使用者所指定的筛选条件从镜框资料库110中筛选出符合所述筛选条件的镜框后显示在选择界面上。用户可以从选择接口上观看各项眼镜镜框模型111并且选择偏好的款式进行虚拟试戴。当用户选择任一眼镜镜框模型111时,处理单元130将眼镜镜框模型111与数位影像131结合,并将结合画面显示于虚拟试戴接口供用户查看试戴画面。In addition, the user can open the glasses frame model selection interface from the computer device 120, and specify the filter condition as pupil distance, face width, eye-ear distance, or nose bridge width. The processing unit 130 screens out frames meeting the filter conditions from the frame database 110 based on the filter conditions specified by the user and displays them on the selection interface. The user can view various spectacle frame models 111 from the selection interface and select a preferred style for virtual try-on. When the user selects any spectacle frame model 111, the processing unit 130 combines the spectacle frame model 111 with the digital image 131, and displays the combined picture on the virtual try-on interface for the user to view the try-on picture.
在本实施态样中,使用者所拍摄的数位影像131是为用户人脸影像30。在进行虚拟试戴的步骤S240中,处理单元121还可以进一步包括执行根据用户的鼻梁位置与眼镜镜框模型111的鼻托位置来判断并决定列为备选的眼镜镜框模型111是否合适的机能。。此外,处理单元121也可以根据使用者的双眼进一步绘制相应的眼睛高度示意线,如图3所示。处理单元121也可以经由配镜应用程序132进一步根据前述的鼻托与眼睛高度示意线来判断并决定列为备选的眼镜镜框模型111是否合适。一般而言,眼镜镜框模型对于用户的脸部的最佳位置为「用户以眼睛下眼睑与镜架的水准基准线相切的水平线」,此一水平线亦可以定义为如眼睛高度示意线301。另外,使用者也可以自行移动眼镜镜框模型111在用户脸部的位置,藉以观察及判断所述列为备选的复数个眼镜镜框模型111的中哪一者才是最合适的。In this embodiment, the digital image 131 captured by the user is the user's face image 30 . In step S240 of virtual try-on, the processing unit 121 may further include performing a function of judging and determining whether the spectacle frame model 111 listed as an alternative is suitable according to the position of the bridge of the user's nose and the position of the nose pad of the spectacle frame model 111 . . In addition, the processing unit 121 may further draw corresponding eye height schematic lines according to the user's eyes, as shown in FIG. 3 . The processing unit 121 can also further judge and determine whether the spectacle frame model 111 listed as an alternative is suitable according to the aforementioned nose pad and eye height schematic line through the glasses application program 132 . Generally speaking, the optimal position of the spectacle frame model for the user's face is "a horizontal line tangent to the horizontal reference line of the spectacle frame with the lower eyelid of the user". This horizontal line can also be defined as the eye height schematic line 301 . In addition, the user can also move the position of the spectacle frame model 111 on the user's face, so as to observe and judge which one of the plurality of spectacle frame models 111 listed as options is the most suitable.
除了前述的实施态样外,本发明另可以应用在使用者与眼镜镜框模型111的扩增实境的结合。在本实施态的虚拟眼镜选配系统包括镜框资料库110与电脑装置120,硬体架构与组成请配合参考图1。本实施态样的硬体架构与组件作用与图1相同,对于硬件的连接就不重复说明。In addition to the aforementioned embodiments, the present invention can also be applied to the combination of the augmented reality between the user and the spectacle frame model 111 . The virtual glasses matching system in this embodiment includes a frame database 110 and a computer device 120 , please refer to FIG. 1 for the hardware structure and composition. The hardware architecture and component functions of this embodiment are the same as those in FIG. 1 , and the description of the hardware connection will not be repeated.
本实施态样的摄像单元122除了拍摄单一的影像外,也可以持续的拍摄数位影像131,藉以应用于用户的立体影像与眼镜镜框模型111的影像合成。本实施态样包括将识别对象配戴于用户的脸部中,并拍摄用户用以建立数位影像;根据识别对象的位置识别立体影像中用户的两眼睛、鼻子与两耳朵的位置以获得脸部特征资讯;基于所述脸部特征筛选出复数个备选镜框;以及使用者进行虚拟试戴,以选出适合的镜框。In addition to shooting a single image, the camera unit 122 of this embodiment can also continuously shoot a digital image 131 , so as to combine the user's stereoscopic image with the image of the spectacle frame model 111 . This implementation aspect includes wearing the recognition object on the user's face, and taking pictures of the user to create a digital image; recognizing the positions of the user's eyes, nose and ears in the stereoscopic image according to the position of the recognition object to obtain the face feature information; screening a plurality of candidate frames based on the facial features; and the user virtual try-on to select a suitable frame.
在本实施态样中,首先,可以将识别对象510配戴于用户520的脸上。识别对象510可以是眼镜、卡片或侦测器。一般而言,识别对象510的配戴位置可以根据开发厂商进而设定不同的位置。举例来说,可以将识别对象510放置于用户520额头、脸颊两侧或鼻头。假设识别对象510配置于用户520的额头上。配镜应用程序132可以根据识别对象510的实际大小判别数位影像131中识别对象510的影像缩放比例。处理单元121可以具备根据影像缩放比例进一步自动识别使用者520的两眼睛、鼻子与两耳朵的位置的机能。配镜应用程序132可以依据将眼睛、鼻子与耳朵的位置的第一脸部特征做为镜框筛选范围而从资料库中选出复数个备选镜框。又,所述第一脸部特征可以是用户520的正面影像中的两耳朵与眼睛连接形成的直线距离(脸宽)。In this embodiment, firstly, the identification object 510 may be worn on the face of the user 520 . The identification object 510 can be glasses, a card or a detector. Generally speaking, the wearing position of the identification object 510 can be further set to different positions according to the developer. For example, the identification object 510 can be placed on the forehead, both sides of the cheeks or nose of the user 520 . Assume that the recognition object 510 is placed on the forehead of the user 520 . The glasses application 132 can determine the image scaling ratio of the identified object 510 in the digital image 131 according to the actual size of the identified object 510 . The processing unit 121 may further have a function of automatically recognizing the positions of the eyes, the nose and the ears of the user 520 according to the zoom ratio of the image. The glasses matching application 132 can select a plurality of candidate frames from the database according to the first facial features of the positions of the eyes, nose and ears as the frame screening range. In addition, the first facial feature may be the straight line distance (face width) formed by the connection between the two ears and the eyes in the front image of the user 520 .
另外,在本实施态样中,还可以藉由电脑装置120拍摄使用者520的脸部的其他位置所得到的影像,进而从所述影像中取得额头、脸颊两侧或鼻头等的距离、高度角度等的数据资料来做为所述第一脸部特征。举例来说,例如可以使用由俯视拍摄使用者520的左右侧脸或脸型的影像。本发明根据拍摄不同脸部位置分别定义各自的脸部特征。In addition, in this embodiment, the computer device 120 can also use the computer device 120 to capture images obtained from other positions of the face of the user 520, and then obtain the distance and height of the forehead, both sides of the cheeks, or the tip of the nose from the images. Data such as angles are used as the first facial feature. For example, images of the left and right side faces or face shapes of the user 520 taken from a top view can be used. The present invention defines respective facial features according to shooting different facial positions.
另外,在本实施态样中,还可以使用第二脸部特征、第三脸部特征、第四脸部特征、或其他的特征。具体而言,例如,第二脸部特征可以是使用者520正面时同侧边的眼睛的切面至耳朵的距离(即,眼耳距)。第三脸部特征可以是使用者520正面时两眼睛内侧的间距的鼻宽度,与数位影像131于用户520侧面时鼻子的鼻高度。第四脸部特征可以是于数位影像131于俯视用户520时两眼睛的一眉骨弯度。In addition, in this embodiment, the second facial feature, the third facial feature, the fourth facial feature, or other features can also be used. Specifically, for example, the second facial feature may be the distance from the sectional plane of the eyes on the same side of the user 520 to the ears (ie, the eye-to-ear distance) when facing the front. The third facial feature may be the nose width of the inner distance between the two eyes when the user 520 is facing the front, and the nose height of the nose when the digital image 131 is on the side of the user 520 . The fourth facial feature may be a brow bone curvature of the eyes when the digital image 131 looks down on the user 520 .
图4为使用者520头部的立体数位影像131。立体数位影像是透过立体摄影机扫描使用者520头部得到,取得使用者520头部的数位影像131。如图4所示,用户的头部影像60包括有耳朵601,602的影像,以及鼻子603的影像。在一实施态样中,可以使用耳朵特征描述点611,612来做为第二脸部特征;也可以根据鼻子603的位置并绘制鼻子特征描述点631,632,633来做为第三脸部特征;还可以是以眉骨弯度示意线613的曲率半径或弧度来做为第四脸部特征。FIG. 4 is a stereoscopic digital image 131 of the head of a user 520 . The stereoscopic digital image is obtained by scanning the head of the user 520 through a stereo camera to obtain the digital image 131 of the head of the user 520 . As shown in FIG. 4 , the user's head image 60 includes images of ears 601 , 602 and a nose 603 . In an embodiment, the ear feature description points 611, 612 can be used as the second facial features; the nose feature description points 631, 632, 633 can also be drawn according to the position of the nose 603 as the third facial features; The curvature radius or radian of the browbone line 613 is used as the fourth facial feature.
另外,也可以如图5所示,利用由拍摄使用者520侧脸所得到的数位影像131中的一耳朵头部连接示意线701,与眼球表面示意线702间的距离,即耳朵至眼球表面的距离d来做为第二脸部特征。以上所使用的第二脸部特征、第三脸部特征、第四脸部特征仅是用以举例而已,在不脱离本发明精神范围内可以进行随意的变更与修正,熟习本项技术皆应明了此等亦包括在本发明的范围以内。In addition, as shown in FIG. 5 , the distance between an ear-head connection schematic line 701 and the eyeball surface schematic line 702 in the digital image 131 obtained by shooting the side face of the user 520, that is, the distance between the ear and the eyeball surface can also be used. The distance d is used as the second facial feature. The second facial feature, the third facial feature, and the fourth facial feature used above are only for example, and can be changed and modified at will without departing from the spirit of the present invention. It is understood that these are also included within the scope of the present invention.
配合图4所示,电脑装置120根据配镜应用程序132得出的数位影像131撷取眼睛、鼻子、耳朵与头型影像特征,例如,当将脸宽长度设为T毫米、鼻梁高度设为X毫米、鼻子宽度设为Y毫米、以及耳朵至鼻(眼球表面)的垂直距离设为Z毫米时;藉由如上述的作法取得大量的脸部特征资料并利用数学拟合进行大数据分析后,本发明人等研究发现镜框宽度(P)、鼻梁高度(X)、鼻梁宽度(Y)、及眼耳距离(Z)之间,具有如以下方程序1所示的一定的函数比例关系:As shown in FIG. 4 , the computer device 120 captures the image features of eyes, nose, ears and head shape according to the digital image 131 obtained by the glasses application program 132. For example, when the face width and length are set to T mm and the nose bridge height is set to When X mm, the nose width is set to Y mm, and the vertical distance from the ear to the nose (eyeball surface) is set to Z mm; a large amount of facial feature data is obtained by the above-mentioned method, and after big data analysis is performed by mathematical fitting , the present inventors have found that there is a certain functional proportional relationship as shown in the following formula 1 between the frame width (P), nose bridge height (X), nose bridge width (Y), and eye-ear distance (Z):
P=T±5=-1.036X2+23.365X-2.089Y+Z±5…(方程式1)P=T±5=-1.036X2 + 23.365X-2.089Y+Z±5...(Equation 1)
(其中,P为镜框宽度(mm);(Wherein, P is the frame width (mm);
T为使用者的脸宽(mm);T is the user's face width (mm);
X为使用者的鼻梁高度(mm);X is the height of the bridge of the nose of the user (mm);
Y为使用者的鼻梁宽度(mm);Y is the width of the bridge of the user's nose (mm);
Z为使用者的眼耳距离(mm)。)Z is the user's eye-ear distance (mm). )
又,本发明人进一步对于为数众多的眼镜框进行测量与并利用数学拟合进行大数据分析的结果,发现脸宽(T)、鼻梁倾斜度(Q)、镜脚长度(R)、镜框宽度(P)、鼻托角度(M)、鼻梁高度(X)、鼻梁宽度(Y)、及眼耳距离(Z)之间具有某种程度以上的相关性。例如,鼻托角度M与鼻梁倾斜度(Q)脸宽存在如以下方程序2所示的关系:In addition, the inventor further measured a large number of spectacle frames and used mathematical fitting to carry out large data analysis results, and found that the face width (T), the inclination of the bridge of the nose (Q), the length of the temples (R), the width of the spectacle frame (P), nose pad angle (M), nose bridge height (X), nose bridge width (Y), and eye-ear distance (Z) have more than a certain degree of correlation. For example, there is a relationship between nose pad angle M and nose bridge inclination (Q) and face width as shown in the following formula 2:
鼻托角度M=180-Q=180-Tan-1(X/(Y/2))…(方程式2)Nose pad angle M=180-Q=180-Tan -1 (X/(Y/2))...(Equation 2)
(其中,M表示鼻托角度(°)(Wherein, M represents the nose pad angle (°)
Y表示鼻梁宽度(mm);Y represents the width of the bridge of the nose (mm);
X表示鼻梁高度(mm):X represents the height of the bridge of the nose (mm):
Q表示鼻梁倾斜度(°)。)Q represents the inclination of the bridge of the nose (°). )
另外,本发明人进一步对于为数众多的眼镜框进行测量与并利用数学拟合进行大数据分析的结果,发现镜脚长度(R)、及眼耳距离(Z)之间存在如以下方程序3所示的关系:In addition, the inventors further measured a large number of spectacle frames and used mathematical fitting to carry out large data analysis results, and found that there is a relationship between the temple length (R) and the eye-ear distance (Z) as follows: The relationship shown:
R=Z+13+F…(方程式3)R=Z+13+F...(Equation 3)
(其中,Z表示眼耳距离(mm);(Wherein, Z represents the eye-ear distance (mm);
R表示镜脚长度(mm)R indicates the length of the temple (mm)
F表示上下限值(mm),一般介于0~40mm的范围。)F represents the upper and lower limits (mm), generally in the range of 0 to 40mm. )
接着,使用者可以从电脑装置120上开启镜框筛选界面,并且指定筛选条件为瞳距、脸宽、眼耳距、鼻梁宽度、或鼻梁高度。处理单元130基于使用者所指定的筛选条件从镜框资料库110中筛选出符合所述筛选条件的镜框后显示在镜框筛选界面上。用户可以从镜框筛选接口上观看各项眼镜镜框模型111并且选择偏好的款式进行虚拟试戴。当用户选择任一眼镜镜框模型111时,处理单元130将眼镜镜框模型111与数位影像131结合,并将结合画面显示于虚拟试戴接口供用户观看试戴画面。Then, the user can open the frame screening interface from the computer device 120, and specify the filter condition as pupil distance, face width, eye-ear distance, nose bridge width, or nose bridge height. The processing unit 130 screens out frames meeting the filter conditions from the frame database 110 based on the filter conditions specified by the user and displays them on the frame filter interface. The user can view various spectacle frame models 111 from the frame screening interface and select a preferred style for virtual try-on. When the user selects any spectacle frame model 111, the processing unit 130 combines the spectacle frame model 111 with the digital image 131, and displays the combined picture on the virtual try-on interface for the user to watch the try-on picture.
另外,在本发明的另一个实施态样中,使用者也可以进一步手动方式输入筛选条件,包括镜框的宽度、鼻托角度、镜脚长度、颜色、或形状,藉以调整备选镜框的数量。In addition, in another embodiment of the present invention, the user can further manually input filter conditions, including frame width, nose pad angle, temple length, color, or shape, so as to adjust the number of candidate frames.
当使用者进一步选择镜框的宽度为筛选条件时,可以脸宽加上一上下限度范围做为筛选条件的修正值,例如,以脸宽±5mm做为镜框的筛选条件;接着,处理单元121将依据所述使用者所设定的所述镜框筛选条件而筛选出复数个备选的镜框。When the user further selects the width of the picture frame as the filter condition, the face width plus an upper and lower limit range can be used as the correction value of the filter condition, for example, the face width ± 5mm is used as the filter condition of the picture frame; then, the processing unit 121 will A plurality of candidate frames are screened out according to the frame filter conditions set by the user.
以上所例示的框筛选条件的修正方式仅是用以举例而已,在不脱离本发明精神范围内可以进行随意的变更与修正,熟习本项技术皆应明了此等亦包括在本发明的范围以内。The modification method of the box screening conditions illustrated above is only for example, and can be changed and modified at will without departing from the spirit of the present invention. Those who are familiar with this technology should understand that these are also included in the scope of the present invention. .
当使用者输入鼻托角度作为筛选条件时,处理单元121会依据表1筛选出相应的镜框。另外,鼻托角度M也可以经由以下方程序2换算而得。When the user inputs the angle of the nose pad as the filter condition, the processing unit 121 will filter out the corresponding frame according to Table 1 . In addition, the nose pad angle M can also be converted through the following formula 2.
M=180-Q=180-Tan-1(X/(Y/2))…(方程式2)M=180-Q=180-Tan -1 (X/(Y/2))...(Equation 2)
(其中,M表示鼻托角度(°)(Wherein, M represents the nose pad angle (°)
Y表示鼻梁宽度(mm);Y represents the width of the bridge of the nose (mm);
X表示鼻梁高度(mm):X represents the height of the bridge of the nose (mm):
Q表示鼻梁倾斜度(°)。)Q represents the inclination of the bridge of the nose (°). )
表1Table 1
备注:Q表示鼻梁倾斜度(度);Y表示鼻梁宽度(mm);X表示鼻梁高度Remarks: Q indicates the inclination of the bridge of the nose (degrees); Y indicates the width of the bridge of the nose (mm); X indicates the height of the bridge of the nose
(mm);W表示鼻托距宽度(mm);S表示鼻托距长度(mm)(mm); W means the width of the nose pads (mm); S means the length of the nose pads (mm)
又,当使用者选择镜脚长度作为筛选条件时,可以输入镜脚长的校正值;接着,处理单元121会依据以下方程序3筛选出符合使用者设定的镜框:In addition, when the user selects the length of the temples as the filter condition, the correction value of the length of the temples can be input; then, the processing unit 121 will filter out the mirror frames that meet the user's settings according to the following procedure 3:
R=Z+13+F…(方程式3)R=Z+13+F...(Equation 3)
(其中,Z表示眼耳距离(mm);(Wherein, Z represents the eye-ear distance (mm);
R表示镜脚长度(mm);R indicates the length of the temple (mm);
F表示上下限值(mm),一般介于0~40mm的范围。)F represents the upper and lower limits (mm), generally in the range of 0 to 40mm. )
以上实施态样中,拍摄或扫描用户520脸部影像时执行脸部辨识的技术可参考本专利发明人前案:美国专利申请第14/447652号(申请日期:2014年7月31日);而透过已知尺寸参考对象计算真实瞳距与虚拟瞳距的比例的技术可参考相同发明人的专利申请案:美国专利申请第14/469569号(申请日期:2014年8月26日)与第14/447652号。并且,透过立体摄影机的3D镜头扫描人脸部精细的脸部影像的技术可参考3D地图与人脸算法,如本案发明人美国专利申请第13/649170号、中国专利申请第CN201310117970.5号等,使得系统匹配资料库中的眼镜镜框模型111后,让用户可直接透过电脑装置120以自动取得符合自己尺寸以及好看的真实镜框。In the above implementations, the technology for performing facial recognition when shooting or scanning the facial image of the user 520 can refer to the inventor's previous filing: U.S. Patent Application No. 14/447652 (application date: July 31, 2014); and The technology of calculating the ratio of real pupil distance to virtual pupil distance through a known size reference object can refer to the patent application of the same inventor: US patent application No. 14/469569 (application date: August 26, 2014) and No. 14/447652. In addition, the technology of scanning fine facial images through the 3D lens of the stereo camera can refer to 3D maps and face algorithms, such as the inventor of this case US Patent Application No. 13/649170, Chinese Patent Application No. CN201310117970.5 etc. After the system matches the spectacle frame model 111 in the database, the user can directly use the computer device 120 to automatically obtain a real spectacle frame that fits his size and looks good.
为清楚说明本发明对于不同脸形的使用者的选择过程,以下兹以实施例1-3具体说明本发明的虚拟眼镜选配方法。In order to clearly illustrate the selection process of the present invention for users with different face shapes, the following examples 1-3 are used to illustrate the virtual glasses matching method of the present invention in detail.
实施例1Example 1
首先,开启本发明的配镜应用程序。接着,请参阅图6,其为用户影像上传示意图,使用者A可以辨识目标来源中选择影像的来源:包含3D摄像、2D摄像、上传摄像;或是选择汇入脸部资讯将先前已分析脸部资讯档案汇入程序中;另外,也可以选择输入脸部资讯以手动方式直接输入脸部各个特征的数值。在本实施例中,用户A是从影像传输接口中点选上传摄像的选项,然后从目标来源选择接口中选择数位影像档的所在路径,将脸部正面及侧面的数位影像档上传至配镜系统中,影像传输接口中的摄像辨识状态显示成功,可知本发明的配镜应用程序已取得如下表2所示的使用者的脸部特征资料。First of all, start the glasses application program of the present invention. Next, please refer to Figure 6, which is a schematic diagram of user image upload. User A can identify the source of the selected image in the target source: including 3D camera, 2D camera, and uploaded camera; or choose to import face information to use the previously analyzed face Import the internal information file into the program; in addition, you can also choose to input facial information to manually input the values of each feature of the face directly. In this embodiment, user A clicks the option of uploading video from the image transmission interface, then selects the path of the digital image file from the target source selection interface, and uploads the digital image file of the front and side of the face to the glasses In the system, the camera identification status in the image transmission interface shows success, and it can be seen that the optical matching application program of the present invention has obtained the facial feature data of the user as shown in Table 2 below.
接着,利用上述的方程式1、方程式2、方程式3、分别计算出镜框宽度(mm)、鼻托角度(度)、镜脚长度(mm)等并以的为镜框的筛选条件A1、A3。Next, use the above-mentioned equation 1, equation 2, and equation 3 to calculate the frame width (mm), nose pad angle (degrees), temple length (mm), etc., and use them as the filter conditions A1 and A3 of the frame.
表2Table 2
P=-1.036X2+23.365X-2.089Y+Z±5……(方程式1)P=-1.036X2 + 23.365X-2.089Y+Z±5...(Equation 1)
M=(180-Q)=180-Tan-1(X/(Y/2))…………(方程式2)M=(180-Q)=180-Tan -1 (X/(Y/2))…………(Equation 2)
R=Z+13+F(mm)……………………(方程式3)R=Z+13+F(mm)…………………(Equation 3)
接着,请参考图7,其为镜框筛选示意图;在镜框筛选接口中显示出用户A的脸部特征资讯,包括脸部宽度、鼻梁高度、鼻梁宽度、及眼耳距离。用户A在辨识资讯接口指定以上述的镜框筛选条件A1、A3中的交集者。例如,以A1镜框宽度138.7mm做为镜框的筛选条件,然后应用程序自动从镜框资料库中进行筛选,总计筛选出318副符合上述条件的备选镜框;而由镜脚长度进行筛选出387副。镜脚长度落在131mm至141mm之间的眼镜镜框;鼻托角度为在47.82度至55.68度之间,平均值为53.26度,确认出货时调整到适合消费者的角度。A1、A3中的交集数量为184只,消费者可就筛选后的镜框试戴。Next, please refer to FIG. 7 , which is a schematic diagram of frame screening; the face feature information of user A is displayed in the frame screening interface, including face width, nose bridge height, nose bridge width, and eye-ear distance. User A specifies the intersection of the above-mentioned frame filter conditions A1 and A3 in the identification information interface. For example, take the A1 frame width of 138.7mm as the filter condition of the frame, and then the application will automatically filter from the frame database, and a total of 318 pairs of candidate frames that meet the above conditions will be screened out; and 387 pairs will be screened out based on the length of the temples. . Spectacle frames whose temple length falls between 131mm and 141mm; the angle of the nose pad is between 47.82 degrees and 55.68 degrees, with an average of 53.26 degrees. It is confirmed to adjust the angle suitable for consumers when shipping. The number of intersections in A1 and A3 is 184, and consumers can try on the selected frames.
接着,请参考图8,其为进行虚拟试戴的示意图,使用者A在于备选镜框中点选偏好的镜框款式,接着应用程序自动将被选取的镜框与用户A的脸部影像进行结合,并将结合画面显示在虚拟试戴接口之中,以便用户A从虚拟试戴接口之中查看试戴的效果。Next, please refer to FIG. 8 , which is a schematic diagram of a virtual try-on. User A selects a preferred frame style from the available frame options, and then the application program automatically combines the selected frame with user A's facial image. And the combination screen is displayed in the virtual try-on interface, so that user A can view the effect of the try-on from the virtual try-on interface.
使用者A经反复选择备选镜框并察看试戴画面后,选定外观造型符合期待的镜框,在虚拟试戴界面中右侧的筛选镜框款式中选择「是」的选项,表示已选定镜框;接着店家会根据使用者A所选定的镜框资料从仓库中取出相符的镜框实体供使用者A配戴并确认是否符合需求。User A repeatedly selects alternative frames and checks the try-on screen, then selects the frame whose appearance meets expectations, and selects the option "Yes" in the filter frame style on the right side of the virtual try-on interface, indicating that the frame has been selected ; Then the store will take out a matching frame entity from the warehouse according to the frame information selected by user A for user A to wear and confirm whether it meets the demand.
实施例2Example 2
首先,开启本发明的配镜应用程序。与实施例1相同地,使用者B可以辨识目标来源中选择影像的来源,包含3D摄像、2D摄像、上传摄像;或是选择汇入脸部资讯将先前已分析脸部资讯档案汇入程序中;另外,也可以选择输入脸部资讯以手动方式直接输入脸部各个特征的数值。在本实施例中,使用者B是选择3D摄像做为影像来源;请参阅图9,其为使用者B的立体头部影像拍摄示意图,使用立体摄影机扫描使用者B的头部以获得使用者B的立体头部影像后经由无线网路直接将影像传输至配镜系统中,影像传输接口中的摄像辨识状态显示成功,可知本发明的配镜应用程序已取得如下表所示的使用者B的脸部特征资料。First of all, start the glasses application program of the present invention. Similar to Embodiment 1, user B can identify the source of the selected image in the target source, including 3D camera, 2D camera, uploaded camera; or choose to import facial information to import the previously analyzed facial information file into the program ;In addition, you can also choose to input face information to manually input the values of each feature of the face directly. In this embodiment, user B selects 3D camera as the image source; please refer to FIG. After the stereoscopic head image of B is directly transmitted to the optical dispensing system via the wireless network, the camera identification status in the image transmission interface shows success, and it can be seen that the optical dispensing application program of the present invention has obtained user B as shown in the following table facial feature data.
接着,利用上述的方程式1、方程式2、方程式3、分别计算出镜框宽度(mm)、鼻托角度(度)、镜脚长度(mm)等并以的为镜框的筛选条件B1、B3。Next, use the above-mentioned equation 1, equation 2, and equation 3 to calculate the frame width (mm), nose pad angle (degrees), temple length (mm), etc. and use them as the filter conditions B1 and B3 of the frame.
表3table 3
接着,在镜框筛选接口指定以上述的镜框筛选条件B1、B3中的交集者。例如,以B1镜框宽度(133.5mm)、及B3镜脚长度(138mm)做为镜框的筛选条件,然后应用程序自动从镜框资料库进行筛选,总计筛选出58副符合上述条件的备选镜框。所述58副眼镜镜框的宽度落在128.5mm至138.5mm之间,平均值为133.5mm;镜脚长度落在133mm至143m之间,平均值为138mm;鼻托宽度落在11.5至15.5mm之间,平均值为在13.9mm。Next, specify the intersection of the above-mentioned frame filtering conditions B1 and B3 in the frame screening interface. For example, take B1 frame width (133.5mm) and B3 temple length (138mm) as frame filtering conditions, and then the application will automatically filter from the frame database, and screen out a total of 58 pairs of candidate frames that meet the above conditions. The frame width of the 58 pairs of glasses falls between 128.5mm and 138.5mm, with an average of 133.5mm; the length of the temples falls between 133mm and 143m, with an average of 138mm; the width of the nose pads falls between 11.5 and 15.5mm Between, the average value is 13.9mm.
然后,使用者B于备选镜框中点选偏好的镜框款式,接着应用程序自动将被选取的镜框与用户B的头部影像进行结合,并将结合画面显示在虚拟试戴接口之中,以便用户B从虚拟试戴接口之中查看试戴的效果。Then, user B selects the preferred frame style from the available frame options, and then the application program automatically combines the selected frame with user B's head image, and displays the combined screen in the virtual try-on interface, so that User B checks the effect of the try-on from the virtual try-on interface.
使用者B经反复选择备选镜框并察看试戴画面后,选定外观造型符合期待的镜框,在虚拟试戴界面中右侧的筛选镜框款式中选择「是」的选项,表示已选定镜框;接着,店家会根据使用者B所选定的镜框资料从仓库中取出相符的镜框实体供使用者B配戴并确认是否符合需求。User B repeatedly selects alternative frames and checks the try-on screen, selects a frame whose appearance meets expectations, and selects the option "Yes" in the filter frame style on the right side of the virtual try-on interface, indicating that the frame has been selected ; Then, the store will take out a matching frame entity from the warehouse according to the frame information selected by user B for user B to wear and confirm whether it meets the demand.
实施例3Example 3
首先,开启安装于行动装置的本发明的配镜应用程序。接着,直接以行动装置的摄像镜头对准使用者C,使得用户C的头部影像出现在行动装置的显示萤幕上,藉由使用者C在摄像镜头前转动头部以取得如下表4所示的使用者C的脸部特征资料。Firstly, start the glasses application program of the present invention installed on the mobile device. Next, point the camera lens of the mobile device directly at user C, so that the head image of user C appears on the display screen of the mobile device. By turning the head of the user C in front of the camera lens, the following table 4 can be obtained. The facial feature data of user C.
接着,利用上述的方程式1、方程式2、方程式3、分别计算出镜框宽度(mm)、鼻托角度(度)、镜脚长度(mm)等并以的为镜框的筛选条件C1、C3。Next, use the above-mentioned equation 1, equation 2, and equation 3 to calculate the frame width (mm), nose pad angle (degrees), temple length (mm), etc., and use them as the filter conditions C1 and C3 of the frame.
表4Table 4
接着,在镜框筛选接口指定以上述的镜框筛选条件C1、C3中的交集者。例如,以C1镜框宽度(125.5mm)、C3镜脚长度(125mm)或鼻梁宽度做为镜框的筛选条件,然后应用程序自动从镜框资料库进行筛选,总计筛选出45副符合上述条件的备选镜框。所述45副眼镜镜框的宽度落120.2至130.2mm之间,平均值为125.2mm;镜脚长度落在120至130mm之间,平均值为125mm;鼻梁倾斜度为在27.4度至33.8度之间,平均值为31.4度。Next, specify the intersection of the above-mentioned frame filter conditions C1 and C3 in the frame filter interface. For example, take C1 frame width (125.5mm), C3 temple length (125mm) or nose bridge width as the frame filter conditions, and then the application will automatically filter from the frame database, and screen out a total of 45 pairs of candidates that meet the above conditions picture frame. The frame width of the 45 pairs of glasses falls between 120.2 and 130.2mm, with an average of 125.2mm; the length of the temples falls between 120 and 130mm, with an average of 125mm; the inclination of the bridge of the nose falls between 27.4 and 33.8 degrees , with an average of 31.4 degrees.
然后,使用者C于备选镜框中点选偏好的镜框款式,接着应用程序自动将被选取的镜框显示在虚拟试戴接口之中,而用户C可以透过行动装置的摄像镜头将其头部影像同步显示于虚拟试戴接口,并且经由移动头部调整其头部影像在虚拟试戴接口之中的位置,藉以查看试戴的效果。Then, user C selects the preferred frame style from the available frame options, and then the application program automatically displays the selected frame in the virtual try-on interface, and user C can view his head through the camera lens of the mobile device. The images are synchronously displayed on the virtual try-on interface, and the position of the head image in the virtual try-on interface is adjusted by moving the head, so as to check the effect of the try-on.
使用者C经反复选择备选镜框并察看试戴画面后,选定外观造型符合期待的镜框,在虚拟试戴界面中右侧的筛选镜框款式中选择「是」的选项,表示已选定镜框;接着店家会根据使用者C所选定的镜框资料从仓库中取出相符的镜框实体供使用者C配戴并确认是否符合需求。User C repeatedly selects alternative frames and checks the try-on screen, then selects the frame whose appearance meets expectations, and selects the option "Yes" in the filter frame style on the right side of the virtual try-on interface, indicating that the frame has been selected ; Then the store will take out a matching frame entity from the warehouse according to the frame information selected by user C for user C to wear and confirm whether it meets the demand.
综上所述,根据上述实施例描述的虚拟眼镜选配方法与系统,其中除了利用平面影像得出决定眼镜镜框模型的瞳距外,亦采用了立体眼镜模拟技术,使用者透过图形用户接口选择镜框类型与镜框相关参数,系统可以根据瞳距的条件提供眼镜镜框模型,然而,更能进一步根据眼球与耳朵位置取得耳朵至眼球表面的距离、根据鼻子的特征取得鼻梁高度与宽度,以及眉骨弯度,让使用者可以透过电脑装置,如行动装置,就可以自动地找到符合自己尺寸以及喜好而决定眼镜的样式,达到如同亲至眼镜公司配眼镜的虚拟眼镜选配的目的。To sum up, according to the virtual glasses selection method and system described in the above embodiments, in addition to using the plane image to determine the pupil distance of the glasses frame model, the three-dimensional glasses simulation technology is also used. Select the frame type and frame-related parameters, and the system can provide the spectacle frame model according to the interpupillary distance. However, it can further obtain the distance from the ear to the surface of the eyeball according to the position of the eyeball and ear, and the height and width of the bridge of the nose according to the characteristics of the nose. Bone curvature allows users to automatically find glasses that match their size and preferences through computer devices, such as mobile devices, to achieve the purpose of choosing virtual glasses as if they were going to an optical company to get glasses in person.
虽然本发明以前述的较佳实施例揭露如上,然其并非用以限定本发明,任何熟习相像技艺者,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,因此本发明的专利保护范围须视本说明书所附的申请专利范围所界定者为准。Although the present invention is disclosed above with the aforementioned preferred embodiments, it is not intended to limit the present invention. Any person familiar with the similar art can make some changes and modifications without departing from the spirit and scope of the present invention. Therefore, The scope of patent protection of the present invention must be defined by the scope of patent application attached to this specification.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710406144.0A CN109003298A (en) | 2017-06-02 | 2017-06-02 | virtual glasses matching method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710406144.0A CN109003298A (en) | 2017-06-02 | 2017-06-02 | virtual glasses matching method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109003298A true CN109003298A (en) | 2018-12-14 |
Family
ID=64572649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710406144.0A Pending CN109003298A (en) | 2017-06-02 | 2017-06-02 | virtual glasses matching method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109003298A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109978655A (en) * | 2019-01-14 | 2019-07-05 | 明灏科技(北京)有限公司 | A kind of virtual frame matching method and system |
CN112674710A (en) * | 2021-01-04 | 2021-04-20 | 首都医科大学附属北京同仁医院 | Digital high-precision glasses manufacturing and producing device and method |
US20220300728A1 (en) * | 2021-03-22 | 2022-09-22 | Snap Inc. | True size eyewear experience in real time |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070098230A1 (en) * | 2005-10-28 | 2007-05-03 | Konica Minolta Holdings, Inc. | Authentication system, registration system, and program |
CN105469072A (en) * | 2015-12-14 | 2016-04-06 | 依视路国际集团(光学总公司) | Method and system for evaluating matching degree of glasses wearer and the worn glasses |
CN106023068A (en) * | 2016-05-18 | 2016-10-12 | 广东工业大学 | Glasses frame try-on method, apparatus and system |
-
2017
- 2017-06-02 CN CN201710406144.0A patent/CN109003298A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070098230A1 (en) * | 2005-10-28 | 2007-05-03 | Konica Minolta Holdings, Inc. | Authentication system, registration system, and program |
CN105469072A (en) * | 2015-12-14 | 2016-04-06 | 依视路国际集团(光学总公司) | Method and system for evaluating matching degree of glasses wearer and the worn glasses |
CN106023068A (en) * | 2016-05-18 | 2016-10-12 | 广东工业大学 | Glasses frame try-on method, apparatus and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109978655A (en) * | 2019-01-14 | 2019-07-05 | 明灏科技(北京)有限公司 | A kind of virtual frame matching method and system |
CN112674710A (en) * | 2021-01-04 | 2021-04-20 | 首都医科大学附属北京同仁医院 | Digital high-precision glasses manufacturing and producing device and method |
US20220300728A1 (en) * | 2021-03-22 | 2022-09-22 | Snap Inc. | True size eyewear experience in real time |
US12067804B2 (en) * | 2021-03-22 | 2024-08-20 | Snap Inc. | True size eyewear experience in real time |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102056333B1 (en) | Method and apparatus and computer program for setting the indication of spectacle lens edge | |
EP3004976B1 (en) | Method for determining at least one value of a parameter for customising a visual compensation device | |
CN103501406B (en) | Image collecting system and image collecting method | |
US20140293220A1 (en) | Fitting glasses frames to a user | |
AU2015218530B2 (en) | Multiple-reference based system and method for ordering eyeglasses | |
EP2901209B1 (en) | Method for helping determine the vision parameters of a subject | |
US12008711B2 (en) | Determining display gazability and placement of virtual try-on glasses using optometric measurements | |
KR102231239B1 (en) | Eyeglasses try-on simulation method | |
CN102221750A (en) | Spectacle lens selection system and spectacle lens selection method | |
KR102444768B1 (en) | Method and apparatus for measuring local power and/or power distribution of spectacle lenses | |
CN104160416B (en) | For ordering the method and associated system of spectacle lens | |
JP4536329B2 (en) | Eye point position determination method and eye point measurement system | |
CN109003298A (en) | virtual glasses matching method and system | |
CN111512217B (en) | Method for determining an optical parameter of an ophthalmic lens | |
CN119156632A (en) | Scaling system and method based on predicted facial features | |
JP2020140630A (en) | Gaze point estimation system, gaze point estimation method, gaze point estimation program, and information recording medium on which this is recorded. | |
CN103690171A (en) | Glasses measuring and matching device, glasses measuring and matching server and glasses measuring and matching method | |
TWI663561B (en) | Virtual glasses matching method and system | |
CN110832387B (en) | Design method of eyeglass lens, eyeglass lens ordering device, and eyeglass lens ordering and ordering acceptance system | |
US9091867B1 (en) | System, method and device for measuring pupillary distance | |
JP2013226397A (en) | Apparatus for measuring objective near field distance and method and system for manufacturing spectacle lens using the apparatus for measuring objective near field distance | |
EP3720335A1 (en) | Method and apparatus for determining a reference head posture of a subject | |
TWI492174B (en) | Cloud body-sensory virtual-reality eyeglasses prescription system | |
CN111417893B (en) | Method and assembly for verifying the mounting of an ophthalmic lens in a frame | |
KR20110111830A (en) | Spectacle mouse system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20181214 |
|
WD01 | Invention patent application deemed withdrawn after publication |