SYSTEM AND METHOD FOR DIGITAL MEASUREMENT OF AN OBJECT - Patent application
Patent Information
- Application Number
- JP2023577197
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-06-08
- Filing Date
- 2022-06-10
- Publication Date
- 2024-08-30
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
【0007】 開示される実施形態は、眼鏡士がアイウェアをフィットさせるために必要な仮想顔面測定値を自動的に取得するためのモジュールを含む。実施形態は、ユーザが様々な眼鏡フレームを試着できるようにする拡張現実モジュールを含み得る。実施形態は、ユーザの特徴、例えばPD及びOCを測定して、選択されたフレームにレンズを適正にフィットさせることができるようにするモジュールも含む。このモジュールは、グラフィックスによるフィードバックをユーザに直ちに提供して、ユーザが測定のために自らの頭を正しく位置付けることができるようにし、そのため、測定の正確度が向上する。
Smart Images

Figure 2024531840000001
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of and priority to U.S. Provisional Patent Application No. 63 / 209,219, filed June 10, 2021, and U.S. Provisional Patent Application No. 63 / 350,369, filed June 8, 2022, the disclosures of both of which are incorporated by reference in their entireties herein.
[0002] The present disclosure relates to digital mirrors, and more particularly to digital mirrors that are specifically configured for virtual measurements of a user reflected in the mirror or any other virtual try-on that would benefit from improved sizing of virtual items such as jewelry, accessories, etc. [Background technology]
[0003] A conventional mirror (i.e., a reflective surface) is the common and most reliable tool for an individual to closely check his or her actual appearance. Several alternatives have been proposed, centering around combining a camera and a screen instead of the conventional mirror. However, these techniques are not convincing and have yet to be accepted as providing a reliable image of an individual as if the user were looking at themselves in a conventional mirror. This is mainly because the image produced by a camera is very different from the image produced by a mirror.
[0004] Applicants have previously disclosed novel techniques for converting and transforming still images or 2D or 3D videos created by one or more cameras with or without other sensors into a mirror or video conferencing experience. Examples of Applicants' embodiments are described, for example, in U.S. Patent Nos. 7,948,481 and 8,982,109. The embodiments disclosed therein may be implemented for any general use of a mirror. Applicants have subsequently made further disclosures relating to adapting the mirror to specific needs, for example, a clothing store. Examples of Applicants' embodiments are described, for example, in U.S. Patent Nos. 8,976,160 and 8,982,110. Applicants' product, Memory Mirror®, commercially available from Memomi Labs, has won many awards and has been widely covered in media worldwide, and can be found with a simple Google search. Summary of the Invention [Problem to be solved by the invention]
[0005] In previous disclosures, applicants have also provided methods and systems for taking measurements, such as, for example, weight measurements. Such measurements may be advantageous in applications related to the fashion industry, such as virtual shopping and real or virtual try-on (VTO) of clothing. In addition, applicants have previously disclosed augmented reality applications in which virtual items are added to the image of a digital mirror for VTO and other applications. Among such applications is the ability to try on frames for virtual shopping for glasses. However, to actually order glasses, various measurements required to properly fabricate the glasses must be known. Examples of such measurements include PD (interpupillary distance - the horizontal distance between the centers of two pupils), OC height (optical center height - the vertical distance from the center of the pupil to the lowest point of the rim of the lens or frame), and SH (bead height - the vertical measurement in millimeters from the bottom of the framed lens to the start of the progressive addition of a progressive lens). Attempts have been made to allow self-measurements, such as by standing in front of a mirror holding a ruler over the eye. However, improved automated methods of measurement could increase the efficiency and accuracy of such measurements, especially when purchasing frames using digital mirrors. [Means for solving the problem]
[0006] The following summary of the disclosure is included to provide a basic understanding of some aspects and features of the invention. This summary is not an extensive overview of the invention and as such is not intended to particularly identify key or critical elements of the invention or to delineate the scope of the invention. Its sole purpose is to present some concepts of the invention in a simplified form as a prelude to the more detailed description that follows.
[0007] The disclosed embodiments include a module for automatically acquiring virtual facial measurements necessary for an optician to fit eyewear. The embodiments may include an augmented reality module that allows a user to try on various eyeglass frames. The embodiments also include a module that measures the user's features, such as PD and OC, to allow lenses to be properly fitted to the selected frame. This module provides immediate graphical feedback to the user to allow the user to properly position their head for the measurement, thus improving the accuracy of the measurement.
[0008] Optionally, a transformation module is included, which transforms the video stream received from the camera to generate a transformed stream, so that when projected onto a monitor screen, the image appears to be a mirror image. As may be experienced with an apparatus having a camera mounted above the screen (e.g., video conferencing with a laptop), the generated image is not subjective because the user appears to be looking further than the camera. This is indeed the case, since the user looks directly at the screen, but the camera is positioned above the screen. Thus, the transformation module transforms each frame (i.e., each image) to appear as if it was taken with a camera positioned behind the screen, i.e., the image appears as if the user were looking directly at the camera positioned behind the screen, but the image was taken by a camera positioned above or to the side of the screen, while the user is not looking at the camera, but at the screen.
[0009] According to a disclosed aspect, a system is provided for generating virtual facial measurements required for an optician to fit eyewear. The system includes a camera, a monitor screen, and a processor, the processor being preprogrammed to perform the steps of: projecting a graphical target onto the monitor screen; receiving a video frame from the camera and identifying that a user's head appears in the video frame; generating a virtual 3D spheroid that matches the user's head using the measurement points of the user's head; projecting a graphical representation of the virtual spheroid onto the monitor screen; receiving another video frame and adjusting the graphical representation in correlation with changes in the measurement points until the graphical representation matches the graphical target; and measuring the distance between the pupil centers when it is determined that the graphical representation matches the graphical target. The processor can also perform the steps of virtually projecting an eyeglass frame onto the monitor screen to mimic a user putting on the eyeglasses, and measuring the vertical distance between the center of each pupil and the bottom of the frame.
[0010] According to a disclosed aspect, a method is disclosed that includes the steps of obtaining a video stream that includes an image of a user, using an element appearing in the video stream to generate a conversion coefficient for converting pixel distances in the video stream to actual physical distances in the real world, using the image of the user appearing in the video stream to generate an avatar of the user, projecting the avatar onto a monitor screen in an orientation corresponding to an orientation of the user, continuously monitoring the orientation of the user in the video stream and adjusting the orientation of the avatar on the monitor screen to correspond to the change in the orientation of the user, and taking a measurement of a pre-specified item on the video screen when the orientation of the avatar reaches a required orientation. The element can be the iris of the user. The method also includes the further steps of projecting a graphical target onto the monitor screen and determining that the avatar has reached the required orientation when the avatar is aligned with the graphical target.
[0011] Aspects of the invention include a method of taking digital measurements, including acquiring a first video stream of a user at a first distance to a camera, using an element appearing in the first video stream to generate a conversion factor for converting pixel distances in the first video stream to actual physical distances in the real world, acquiring a first digital measurement in the first video stream using the conversion factor, acquiring a second video stream at a second distance greater than the first distance, and determining a second distance measurement using the first digital measurement and an angle measurement to an item appearing in the second video stream. The element may include the user's iris, and the conversion factor may be determined using the iris measurement. The iris measurement may be obtained by fitting a virtual circle to the iris and using a diameter of the virtual circle as the iris measurement. The first digital measurement may include the user's interpupillary distance.
[0012] The method may further include retrieving the virtual article from memory, scaling a size of the article using the determined second distance, and overlaying the article onto an image of the user at the second distance. The items appearing in the second video stream may include the user's feet, and the angle measurements may include a vertical position of a pixel belonging to the feet. The method may further include acquiring a third video of the user at a third distance greater than the second distance, and determining the third distance using the second angle measurements. The method may further include retrieving the virtual article from memory, scaling a size of the article using the determined third distance, and overlaying the article onto an image of the user at the third distance.
[0013] The method may further include identifying a second digital measurement of a target on the user using the determined third distance and the first digital measurement. The target may include a body part of the user. The method may further include, prior to obtaining the first digital measurement, forming an avatar of the user, projecting the avatar on a screen in an orientation corresponding to an orientation of the user's body, monitoring changes in the orientation of the user's body and imparting corresponding changes to the orientation of the avatar, and obtaining the first digital measurement when the avatar is identified as being in an acceptable orientation.
[0014] The method may further include projecting a graphical target onto the screen and identifying the avatar as being in an acceptable orientation when the avatar is aligned with the graphical target. The avatar may be three-dimensional, and the orientation includes translation, rotation, elevation, and distance. The method may further include projecting a graphical overlay onto the digital screen showing the measurement point of the first digital measurement, and further projecting a user interface that allows a user to move the graphical overlay over the digital screen to change the first digital measurement. The method may further include recalculating the first digital measurement using a conversion factor whenever the user interface is manipulated to move the graphical overlay. The method may further include transforming the first video stream to generate a mirrored video stream to generate an image on the video screen that mimics the projection of a mirror.
[0015] Another aspect includes a system for body measurements including a digital screen, a video grabber positioned to generate a video stream of a user, a calibration module that generates length-per-pixel coefficients that correlate pixel lengths in frames of the video stream with actual lengths of objects appearing in the frames of the video stream, an alignment module that projects a graphical target superimposed on the frames of the video stream projected on the digital screen, the alignment module further generating an avatar of the user that appears in the frames of the video stream and superimposing the avatar on the frames of the video stream projected on the digital screen, and a calculation module that calculates body measurements of the user utilizing the length-per-pixel coefficients received from the calibration module and an indication from the alignment module that the avatar has been aligned with the graphical target.
[0016] In one aspect, a calibration factor for the digital image is obtained by obtaining a digital image including a user's face, identifying at least a partial circumference of the left iris and a partial circumference of the right eye, obtaining a first set of multiple diameter measurements using the partial circumference of the left iris expressed in number of pixels, obtaining a first average diameter from the first set of multiple diameter measurements, obtaining a second set of multiple diameter measurements using the partial circumference of the right iris expressed in number of pixels, obtaining a second average diameter from the second set of multiple diameter measurements, calculating a difference between the first average diameter and the second average diameter, validating the measurements by comparing the difference to a tolerance threshold, calculating an overall diameter from the first average diameter and the second average diameter, and calculating the calibration factor by taking the difference between the overall diameter expressed in number of pixels and an average iris size for a person expressed in millimeters.
[0017] In one aspect, the calibration length is obtained by using a first calibration factor to identify two landmark targets in a digital image, measuring the distance in pixels between the two landmarks, converting the distance in pixels to a distance in millimeters using the first calibration factor, and setting the distance in millimeters and the calibration length. In an embodiment, the calibration length can be one or more of the interpupillary distance, the width of the eyeglass frame, the distance between the two ears, and the distance between the tip of the nose and the tip of the chin. In one embodiment, the calibration length is used to generate a second calibration factor on a second digital image (usually where the user is further away from the camera than in the first digital image), and an updated length in pixels between the two landmarks is measured in the second digital image, and the second configuration factor is obtained by taking the ratio between the calibration length and the updated length expressed in pixels.
[0018] Other aspects and features of the present invention will become apparent from the following detailed description taken in conjunction with the drawings, in which it is understood that the detailed description and drawings provide various non-limiting examples of various embodiments of the invention as defined by the appended claims.
[0019] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain and illustrate the principles of the invention. The drawings generally illustrate major features of exemplary embodiments. The drawings do not attempt to depict every feature of an actual embodiment, nor the relative dimensions of the depicted elements, and are not drawn to scale. [Brief description of the drawings]
[0020] [Figure 1A-1C] FIG. 1 illustrates a process for aligning an avatar with a graphical target according to one embodiment. [Diagram 2] 1 is a flowchart illustrating a process for facial measurement according to one embodiment. [Diagram 3] 1 illustrates a PD measurement image that can be saved as a still image or an active interface along with calibration data, according to an embodiment. [Figure 4] 13 shows OC and SH (ball height) measurement images that can be saved as still images or active interfaces along with calibration data, according to one embodiment. [Diagram 5] 1 illustrates an example of a user interface for trying on a virtual frame according to one embodiment of the present invention. [Figure 6] FIG. 1 is a block diagram of a system for performing PD measurements, according to an embodiment. [Figure 7] FIG. 1 shows a system block diagram for progressive, multifocal or PAL measurements, according to an embodiment. [Figure 8A-8D] 1 shows diagrams of various channels according to an embodiment. [Figure 9] FIG. 1 is a block diagram of a system for taking physical measurements, according to an embodiment. [Figure 10] FIG. 2 is a block diagram illustrating a digital mirror with measurement capabilities, according to one embodiment. [Figure 11] 1 illustrates an embodiment in which the calibration is performed in multiple steps. [Figure 12] FIG. 2 is a block diagram illustrating a system process for digital measurement according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0021] Now, an embodiment of the digital mirror of the present invention configured for virtual measurement will be described with reference to the drawings. Various embodiments or combinations thereof can be used for different applications or to achieve different results or benefits. Depending on the results sought, the various features disclosed herein can be utilized alone or in combination with other features, either partially or to the fullest extent, balancing the benefits with requirements and constraints. Thus, certain benefits are highlighted with respect to the different drawings, but are not limited to the disclosed embodiments. That is, the features disclosed herein are not limited to the embodiments in which they are described, but can be "mixed and matched" with other features.
[0022] As will become apparent from the following description, various embodiments of the present disclosure include the ability to digitally measure items appearing in a video stream. Improved accuracy is achieved using various calibration and alignment methods. For better understanding, the description begins with a discussion of the measurements required for eyeglass fitting, and moves to other applications and more comprehensive implementations as the disclosure progresses.
[0023] It has been proposed in the prior art to measure interpupillary distance using a digital image of a user. See, for example, U.S. Pat. No. 6,535,223. However, to date, these proposed methods and systems have not been accurate enough for market acceptance. The inventors have recognized that at least some of the inaccuracies arise from uncertainty in the line of sight of the user's head relative to the plane of the image. That is, since the prior art methods rely on an estimate of the distance from the user's face to the screen, if the plane of the face and the plane of the image are perfectly parallel, the PD measurement will be accurate enough. However, if these two planes are not perfectly parallel, the measurement will be less accurate. Therefore, the inventors have addressed this problem in order to provide accurate PD measurements with a high degree of confidence.
[0024] Importantly, the inventors have recognized that measurement accuracy issues are more severe with horizontal accuracy of the face versus vertical, but both are necessary, and vertical alignment is more important to obtain good measurements for OC and SH. Thus, in aspects of the present disclosure, different accuracy thresholds are assigned to vertical or horizontal gaze errors to determine whether an image is good enough for measurement.
[0025] An embodiment of the present invention may be implemented with a hardware and software design specifically adapted for use as a close-up digital mirror, i.e., in a situation where a user is observing his / her own face, with the addition of a virtual reality module that optionally adds virtual items to the image projected on the digital mirror. The disclosed embodiments may be used in a variety of applications for various face measurements. In one exemplary application, the digital mirror is used to purchase eyeglasses, allowing various screen measurements necessary for ordering the eyeglasses. Part of the difficulty in making accurate measurements arises from the fact that the monitor screen must be placed relatively close to the user's face, and therefore the camera is also very close, which creates distortions. That is, while the user is looking directly at the screen, the camera captures an image from above the screen, so that the user does not appear to be looking directly at the camera. In addition, there are also measurement distortions caused by the orientation of the user's head, and the user's line of sight may cause the user's face to be non-parallel to the plane of the digital mirror.
[0026] For proper facial or body measurements, it is advantageous for the user's image to be centered within the image frame. Methods for positioning the user's image within the frame have been disclosed in the applicant's previous disclosures, see also US Patent Application Publication No. 2013 / 0169827. For example, a circle may be drawn on the screen and the user may be asked to move his / her image within the circle. However, such options allow for placing the image at a desired position within the frame, but do not address the issues of gaze and head orientation, i.e., ensuring that the user is in the correct orientation relative to the screen.
[0027] 1A-1C show an embodiment that guides a user to properly position his / her head in the correct orientation relative to the camera to perform highly accurate facial measurements. FIG. 1A shows an initial position, and a caricature 100 shows an image of the user's face. A graphical target 105 indicates where the user's head should be for the measurement. Due to page limitations in FIG. 1A, the targets are shown as two two-dimensional graphics, but this can also be projected onto the screen as a three-dimensional graphic. In FIG. 1A, the graphical target is shown as a combination of a dashed ellipse 105 and a dashed cross 105'. FIG. 1A also shows an avatar 110 drawn in the same position and orientation as well as the user's face. The avatar in FIG. 1A is a dashed ellipse 110 and a dashed cross 110'. The avatar is constructed as a spheroid that mimics the shape, position and orientation of the user's head, and is shown as a two-dimensional graphic in FIG. 1A, but can also be projected onto the screen as a three-dimensional spheroid. The size and shape of the spheroid is configured according to predefined measurement points, examples of which may include, for example, the horizontal distance between the ears, the vertical distance from the base of the chin to the top of the head, the location of the apex of the noise, etc.
[0028] The avatar 110 is moved on the screen in response to the user's movements. That is, the user controls the appearance of the avatar 110 on the screen by the user's movements. Importantly, the avatar's movements are controlled spatially and rotationally (horizontal, vertical, roll), although in some embodiments, depending on the measurement sensitivity to angles, it may be a subset or suppression of the effect of rotation. That is, since the avatar is a 3D spheroid, the spatial position of the avatar is controlled in terms of its xy position on the screen. In addition, the rotational orientation of the spheroid representation on the screen is controlled according to the user's line of sight. When the user controls the avatar by moving his / her head, the goal is to align the avatar with the graphical target 105. Thus, in FIG. 1B, the user has moved his / her head so that the avatar's position is aligned with the target, but is not rotationally aligned with the target, which can be seen by looking at the two crosses. In FIG. 1B, the head is tilted with respect to the target. Therefore, the user must move (tilt) his / her head further to control the avatar to align with the target as shown in FIG. 1C. Once the avatar is aligned with the graphical target in the correct position, rotation and line of sight, a display can be made to the user and an image (frame) can be taken of that position and also used to take measurements.
[0029] Although not shown in Figures 1A-1C, the Z distance from the face to the camera may also be adjusted. For example, the size of the avatar spheroid 110 may be enlarged or reduced as the user moves closer to or further away from the screen. The goal is for the user to position the face at the correct distance so that the size of the avatar spheroid matches the size of the graphical target. Such positioning may also be beneficial for the calibration process, which is described below with respect to Figure 2.
[0030] FIG. 2 is a flow chart showing a digital measurement process according to an embodiment. The process of FIG. 2 can be pre-programmed into a processor to be executed using a video stream received from a camera and displayed on a monitor screen. The steps shown in FIG. 2 do not necessarily have to be executed in the order in which they are shown and described herein. For example, a calibration step 200 can be executed after the alignment step 205. The calibration step 200 is performed to convert the distances measured in the digital image as pixels to physical distances in the real world, e.g. to obtain a conversion factor for converting pixels to millimeters. Various methods are available for performing such a calibration, and any method can be used, provided that it corresponds to the level of accuracy required for the measurement step 210.
[0031] In one example, a known object in the image is used to generate the calibration 200. For example, the user may be asked to hold a credit card at a predetermined distance from the camera. Since the size of the credit card is known, the image may be calibrated according to the size of the credit card in the image. According to another example, a coin is held against the user's face, and since the size of the coin is known, it may be used as a calibration factor. In some embodiments disclosed herein, the user's iris is used. Since the size of the iris does not vary significantly from person to person, its size in the image may be used as a good estimate for the calibration. In another embodiment, a graphical circle is placed around the iris to estimate the size of the iris, especially if the eye is not fully open and the iris is partially obscured, and the diameter of the circle is used as the calibration factor. As mentioned above, if the calibration process is performed after the matching process, matching the size of the avatar spheroid with the graphical target also increases the accuracy of the calibration, since the distance from the face to the camera is known in this case.
[0032] Alignment step 205 proceeds as described with respect to Figures 1A-1C to ensure the user's gaze and head orientation are properly positioned for accurate measurements. Once calibration and alignment are performed, measurement step 210 can be performed. As previously described, this may be performed by saving the aligned images and making measurements on the saved images. Using the calibration obtained in calibration step 200, pixel measurements obtained on the saved images can be converted to physical measurements. The measurements may include, for example, PD and OC measurements.
[0033] According to an embodiment, while the user moves his head to match the avatar with the graphical target, the processor may record only the video or sample images to look for the best symmetry and / or the best gaze and / or the open eye state and / or the iris exposure or any combination thereof and select the best image to be further analyzed for calibration and measurement. In particular, the frames may be analyzed locally on the device or in the cloud via an internet connection. From the analysis, the best frame / position may be returned that can identify the pupils and the center of the nose bridge between the eyes. The nose position may be defined as the intersection of the y-axis with the line connecting both pupils or any other position on the nose.
[0034] Thus, while the prior art only concerns the correct calibration method, the present invention improves the calibration process and adds an alignment process to take into account the orientation of the user's head relative to the camera. As a result, the process shown in FIG. 2 includes both a calibration step and an alignment step, improving the accuracy of the measurement. In addition, the disclosed embodiment leaves the measurement step together with the graphical representation of the measurement, which also allows for further human correction and / or improved accuracy using machine learning or neural networks. An example of leaving the measurement step is described below with respect to FIGS. 3 and 4.
[0035] FIG. 3 shows a PD measurement image that may be saved with the calibration data as a static image or as an active interface. In the image, a user's face 300 is shown with a graphical overlay 305 showing the obtained PD measurement and the location of the center of the nose. If the image is saved as an active interface, the user (or the optician) may adjust the graphical overlay 305 using the interface arrows 310 if an improvement of the measurement is required. The graphical overlay may be moved separately for the left and right eye. As the calibration data is saved with the image, by moving the graphical overlay it can be translated into a physical measurement, which is shown by the example numerical values next to the interface arrows. Here, the example numerical values are shown in millimeters.
[0036] FIG. 4 shows an OC and SH measurement image that may be saved with calibration data as a static image or an active interface, according to an embodiment. In FIG. 4, a user's face 400 is shown wearing selected glasses. The glasses may be physically worn by the user in the image, or may be virtually placed on the user's image using augmented reality. A graphical overlay 405 shows the obtained bead height and OC height measurements. These measurements are important for centering the lens shape and during bifocal lens fabrication. If the image is saved as an active interface, the user (or optician) may adjust the graphical overlay 405 using the interface arrows 410 if improvements to the measurements are needed. The graphical overlay may be moved separately for the left and right eyes. Since the calibration data is saved with the image, the movement of the graphical overlay may be translated into physical measurements, which is shown by example numerical values next to the interface arrows, where the example numerical values are shown in millimeters.
[0037] To obtain the measurements shown in Fig. 4, the system needs to identify pixels that belong to the frame, whether the frame is actually worn by the user or virtually placed in the image. In one embodiment, the nadir of the frame can be found by a neural network trained to find the intersection of the glasses and the inner frame on the line below the pupil estimator. In one embodiment, the points on the frame are estimated by an edge filter with or without horizontal emphasis.
[0038] Similarly, the system needs to identify the eye contour. In one embodiment, the nadir can be found from neural network landmarks that define the eye position, and the eye contour can be defined. The estimate of the OC point is the intersection of a line that descends from the pupil and intersects with the eye contour. OC is a measurement from the eye contour to the inner part of the frame, which is useful for PAL (progressive lenses) or bifocal or multifocal measurements. The SH measurement is a vertical estimate from the pupil center to the inner part of the frame, which is used in the calculation of progressive lenses.
[0039] Furthermore, if a particular eyeglass frame is known, for example by reading or entering the frame's SKU number, the physical measurements of the frame can be pre-stored in the system. Thus, the actual measurements of the frame can be used to facilitate accurate pixel calibration. In one example, the physical width of each lens frame is known in advance, and thus the width is measured as a pixel length in the image. The pixel length and the actual physical width are then used to generate a calibration factor.
[0040] As mentioned above, for the orientation step, the method constructs an avatar of the user's head in the form of a 3D shell or a 3D spheroid. However, the monitor screen forms a 2D surface and the image of the user's head is formed in a 2D plane. Therefore, a method is used to fit a 3D object to a 2D plane, for example by solving a PNP (Perspective-n-Point) or SVD (Singular Value Decomposition) equation. Perspective-n-Point is the problem of estimating the pose of a calibrated camera given a cloud of n 3D points in the world and their corresponding 2D projections in the image. The camera pose consists of 6 degrees of freedom (DOF) consisting of rotations (roll, pitch, yaw) and a 3D translation of the camera with respect to the world. Therefore, by using a given cloud of points on the user's face, performing either PnP or SVD, the process can construct a corresponding 3D spheroid corresponding to the user's face and its orientation with respect to the camera. The spheroid can be projected onto a 2D screen with the corresponding state of the orientation of the user's head. Note that although the discussion herein is in terms of spheroids, any other shape may be used as an avatar.
[0041] In the disclosed embodiment, the user is provided with the ability to virtually try on different frames using augmented reality, i.e., by digitally overlaying an image of the frame onto a projected image of the user. Since the frames worn by different users may vary, a user interface is provided to allow the user to adjust the fit of the virtual glasses on their face. FIG. 5 shows an example of a user interface 510 that allows various adjustments of the virtual frames. The adjustments may include XY (left-right) translation, horizontal rotation, front-to-back tilt, roll, Z (elevation) position, temple opening, etc. Once the user is satisfied with the adjustments, an indication may be provided and the parameters for the adjustments may be saved for future use, such as trying on different frames.
[0042] In addition to the virtual try-on of frames, the system also allows for the virtual try-on of lenses. The user can try on different lenses, and the virtual simulation can show the user different eyeglass thicknesses, lens prescriptions, eyeglass colors, UV coating effects, etc., so that the user can evaluate the options. In addition to this real-time configuration on the user's live video, the system can also show this 3D asset configurator without a camera or actual try-on. The 3D configuration can be performed on the user's image or a model on a static background.
[0043] In one embodiment, the effect of different lens options can be virtually projected onto the user image along with the actual physical frame. Segmentation of the image to outline the inner portion of the frame can be done using neural networks with or without computer vision techniques. Thus, the inner region of the frame can be extended with virtual lens features, such as the shade effect of eyeglass thickness, UV coating, tint color, and tint opacity. This helps the user to see the frame along with different types of lenses and lens treatments.
[0044] When performing a virtual fitting of frames, it is important to scale the size of the frame to the image of the user using a magnification factor. As mentioned above, the size of the frame is known and pre-stored in the system. However, when rendering the frame on the screen, the disclosed embodiment scales the frame to fit the correct size on the user's head and its distance from the screen. In one embodiment, the PD measurements are used to calibrate the size of the virtual glasses on the customer's face projected on the screen. In various implementations, the elements simulated by the augmented reality are scaled to a standard head size. As a result, if a child tries on the virtual glasses and / or if the user is further away from the camera and the head appears smaller than the programmed standard, the virtualized item (e.g., glasses) will not fit correctly. Therefore, using the accurate PD measurements disclosed herein, it is possible to calculate the actual size of the customer's head and / or its distance from the camera and fit the size of the glasses according to that distance, so that the glasses appear on the screen at the correct size.
[0045] In one embodiment for correcting the size of the glasses, the virtual glasses are split into three different elements: the front frame and two separate temples. Thus, the magnification is applied separately to the front frame and the temples, thereby eliminating distortion. To do so, the system also needs to correct the new position of the temples or translate the frame when the length and / or width of the frame are scaled so that the temples always appear to be correctly connected to the frame. Once the system has fixed the correct size of the front frame on the customer's face, an animation of the temples can be added for augmented reality.
[0046] 6 is a block diagram of a system for performing PD measurements, according to an embodiment. Any of the modules shown in FIG. 6 may be implemented in other general purpose computers, DSPs, CPUs, GPUs, camera DSP / ASICs, monitor screen DSP / ASICs, standalone computing devices FPGA cards, DSP devices, ASICs, cloud parallel computing. Although specific functionality is described with respect to specific modules, the functionality of each module may also be implemented in other modules to optimize the performance of the computing method.
[0047] The camera capture module 600 may have one or more of the following functionalities: The camera capture module 600 may capture live video or still images (frames). It may include IR (infrared), 2D and / or 3D capabilities, it may include one or n cameras and capture different angles. The camera module may have the ability to perform geometric transformations, vertical translation of the cameras, 1:n stream switching of the cameras, etc. The camera capture module 600 may also apply filters to improve the quality of the image, such as a smoothing high pass filter that smooths the appearance of the skin but leaves the eyes sharp, apply cropping or in some embodiments image resizing as necessary for computational method optimization, move the face higher in the screen, and apply image translation to allow the user to see the camera and themselves directly under the camera (without translation, the customer's head would be centered when looking at the camera, which is not good as it may cause the user some projection distortion that may affect the overall accuracy). In some embodiments, the module applies other transformations to eliminate distortions in the face position in or relative to the camera, such as radial barrel distortion correction, fisheye correction, projective tilt rotation, face pointer based on mesh polynomials or distortion correction, and neural network training based distortion correction. The camera capture module 600 streams images to the trigger event module 601 and acts as an image grabber.
[0048] The trigger event module 601 implements a process whose input can be taken directly from the camera module. The input image to the module 601 can be optimized for size and bandwidth as well as the rate at which it performs the required functions. The main functionality of the event module 601 is to estimate the current view in terms of rotation, translation, horizontal symmetry, eye state or any combination to ensure that an accurate image is obtained for further analysis and that the image is optimized in terms of rotation and translation. The output from this module 601 is an absolute value or an offset from a nominal position.
[0049] The following are examples of additional possibilities that may be present within the trigger event module 601. The module 601 may identify that the user is standing in front of the camera, for example based on a head detection classifier or simple background removal and changes in predefined zones, pattern recognition, etc. The module 601 may also measure the distance to the user, for example by correlation between stereo cameras, 3D IR cameras, or using a novel single camera measurement that makes certain geometric assumptions to determine the distance. For example, the assumptions may include that the user is standing on a flat floor approximately in front of the mirror, and the distance in the mirror, the height of the user, or the theoretical viewpoint of the user may be estimated from measurements of the position of the user's shoes and the user's particular offset from the screen.
[0050] According to one embodiment, a mobile device with a front and rear camera is used. A user stands in front of a conventional mirror with the front camera facing the user and the rear camera facing the mirror, so that the user's face can be viewed from both cameras simultaneously, alternately or nearly simultaneously. In one embodiment, the front and rear cameras are not on the same horizontal and / or vertical axis, so that the resulting effect is like a stereo camera, but using one mobile device.
[0051] Facial recognition may also be implemented to facilitate user interface identification: the platform may store information for each user, and once a user is recognized by the system, the system may upload its own data, store more data about that person's account, suggest items, etc. Using facial recognition, users do not need to identify themselves, thereby saving time and improving ease of use.
[0052] Visual feedback module 602 takes the output from module 601 as an absolute state or offset from an optimal view and converts it into visual feedback (e.g., a 3D spheroid or a 2D form cropped from a 3D projection in a 2D plane) so that the user can change their head position to align the avatar with the graphical target, for example changing their gaze, head rotation, head translation and eye opening state to get into the best possible condition for capturing an optimal image.
[0053] The pixel coefficient module 603 calculates the mm / pixel value used to make the measurement, i.e. it performs the calibration step 200. In one embodiment, the mm / pixel coefficient is calculated using a known reference in the image itself, such as a magnetic card, eyeglasses, iris, light pointer or other reference. A credit card has a reference of 85.6 mm wide, the detection of which can be fairly simple. If the card is held next to the face, this can be used to calculate the mm / pixel coefficient. In one embodiment, it is known that the size of the iris in a large proportion of the population is very similar and an average can be used to calculate the coefficient. The challenge in this embodiment is to capture the iris with high accuracy, so individual pixel errors are significant, as the error increases by a factor of 3-4 in the measurement of PD, thus necessitating the use of multiple techniques for the measurement of the iris. In one embodiment, accurate edge detection neural network landmarks and / or segmentation are used, optionally together with one or more of averaging results within a circle, measuring the iris horizontally only when viewed side-to-side, overlaying a graphic circle over the visible portion of the iris and using the diameter of the circle, etc. Additionally, in order to use data from both eyes, some sanity check logic should be applied.
[0054] One embodiment for measuring the diameter of the iris is shown in the inset of FIG. 6. As shown, the eye may not be fully opened to expose the entire circumference of the iris. Each eye may be open to a different extent. Therefore, for each eye, multiple landmarks LM are identified on the visible circumference of the iris. The number of landmarks will depend on the amount of circumference that is visible. Therefore, for each eye, multiple opposing landmark pairs are used to measure the diameter, which is illustrated by the dashed and dotted lines. A line can also be drawn through the center of the iris of both eyes and the diameter of the iris of both eyes can be measured on that line. The multiple measured diameters for each eye are averaged to obtain a left mean diameter and a right mean diameter. Thus, the left mean diameter and the right mean diameter are compared to a threshold value and if the difference is above the threshold value, the entire measurement is discarded as unreliable. The entire process can then be repeated. If the difference is less than the threshold value, the average of the left mean diameter and the right mean diameter can be calculated to generate the resulting diameter.
[0055] The resulting diameter is expressed in number of pixels, since the measurement is made on a digital image. It is known that the diameter of a human iris is about 12 mm, so by taking the ratio of the average iris diameter in millimeters to the average measured diameter in pixels, a scale factor in mm / pixel can be obtained to use for other measurements in the image. For example, for PD measurement, a first measurement can be obtained as the number of pixels from the left edge of one iris to the left edge of the other iris, and a second measurement can be obtained as the number of pixels from the right edge of one iris to the right edge of the other iris, and the average of the two measurements is taken. The result is then multiplied by the scale factor to obtain the PD in millimeters.
[0056] The Initial PD Calculation module 604 uses the mm / pixel coefficients calculated by the Pixel Coefficients module 603 to calculate the overall PD, left PD, right PD along with the first pupil estimate and is used to return an image with a pointer to the pupil and / or markers for the location of other elements in the image such as the bridge of the nose, iris, etc. as shown in FIG. 3.
[0057] The adjustment tool 605 generates and activates an adjustment interface that allows the optician or user to fine-tune and refine the position of the superimposed landmarks if the iris center is not good enough or the nose position is not accurate with respect to where the glasses should be, as shown in FIG. 3. In one embodiment, only the pupil is positioned. The adjustment can be click-based or slider or any other interface. When an adjustment is made, a new PD calculation is made, which can be done multiple times, so that each time there is a change in the adjustment tool a new result is shown.
[0058] A final result 606 is generated once the calibration is finished, so that the measurements are final and can be used further or exported to the user. In one embodiment, the user can get the results by responsive QR scanning, by SMS, email or any other secure sharing format.
[0059] Figure 7 shows a system block diagram for progressive, multifocal or PAL measurements, according to an embodiment. Some modules shown in Figure 7 may be the same as those shown in Figure 6, may work together with the modules shown in Figure 6, or may be additional or extensions of the modules in Figure 6. The modules in Figure 7 may be in the same hardware as those in Figure 6, or in different hardware, and may communicate with the modules in Figure 6 using a network, such as the Internet or a cellular network.
[0060] Camera capture module 700 may be the same as or similar to module 600 of Figure 6. However, for the operation of Figure 7, the image of the user includes a frame or glasses, either physical or virtual, so that the position of the pupils relative to the actual position of the glasses can be obtained. See, for example, Figure 4.
[0061] In one embodiment, when the user tries on the virtual frames / glasses, the virtual model of the frames / glasses is scaled according to the PD measurements made without the glasses, so that the user knows the exact proportion of the frames and their face. In one embodiment, the virtual glasses are adjustable so that the user can place them in the same position as the user would like the glasses to be on the nose and on the ears as illustrated in FIG. 5. The scale can be calculated based on the proportion of one or more eyeglass elements and the interocular distance PD. In some examples, the size of the virtual lens in number of pixels with respect to the interocular distance is calculated. In some examples, the size of the virtual lens is measured by directly extracting a layer from the grabbing graphic layer of the RGB or alpha channel of the frame. An example is shown in FIGS. 8A-8D, where FIG. 8A is an image of the user without the glasses, FIG. 8B is an image of the user with the glasses, FIG. 8C is the alpha channel of the frame only, and FIG. 8D is the RGB channel of the frame. Using these four separate channels is also advantageous for artificial intelligence processing. Separating these channels also helps to determine the proper location of the iris when a dark lens is used. In this regard, the alpha channel is a special channel that represents transparency. If an image has an alpha channel, it allows you to adjust the transparency level of the image, making it bits semi-transparent or completely see-through.
[0062] In one embodiment, a 3D mesh of the face is also captured to provide more accurate measurements in the 3D domain, so that the depth of the eyes and the angle of the glasses relative to the lenses can be obtained. Once the virtual model is set up or the physical glasses are in the correct position, the results can be transferred to module 701.
[0063] The trigger event module 701 is the same or similar to module 601 and implements a process that can take its input directly from the camera module 700 for the user to try on the frames physically or virtually. The input images to the model 701 can be optimized in terms of size and bandwidth as well as the rate of performing the required functionality. The main functionality of the trigger event module 701 is to estimate the current view in terms of rotation, translation, horizontal symmetry, eye state or any combination to ensure that the correct image is obtained for further analysis and that the image is optimized in terms of rotation and translation. The output from this module 701 is an absolute value or an offset from a nominal position.
[0064] A visual feedback module 702 takes the output from module 701 as an absolute state or offset from an optimal view and converts it into visual feedback shown on a monitor screen so that the user can change his head position, for example his line of sight, head rotation, translation and eye opening state to be in the best possible state to capture the optimal image. This corresponds to the alignment process 205 described with respect to FIG. 2.
[0065] The pixel coefficient module 703 can be the same or similar to module 603, but in one embodiment can use mm / pix from PD along with some proportional adjustment between the centers of the eyes or any other measurement in number of pixels that can be obtained in both PD without glasses and SH / OC with glasses images.
[0066] For SH / OC measurements, in one embodiment, the angle of the glasses versus the user's posture must be taken into account, especially if the glasses are worn low on the nose. The effective angle of the physical glasses can be calculated by calculating the projection distortion of the lenses in the image. If the measurements are done on virtual glasses, this angle can be calculated in 3D space as well after the user has finished fitting the glasses in the correct orientation.
[0067] The initial PD calculation module 704 can utilize the mm / pixel factor to calculate SH, OC along with an initial pupil estimate and return an image showing markers for the pupil pointer location and / or the location of other elements in the image such as the bridge of the nose, iris, etc. The user can use this display of the markers to correct the location of the markers on the image if fine tuning is required.
[0068] The optional adjustment tool 705 presents an adjustment interface that allows the optician or user to adjust the position of the eye and landmarks on the glasses to improve accuracy when the center of the iris is not good enough, or the position of the nose is not correct with respect to where the glasses should be, or the inside of the glasses is not in the correct position, as shown in FIG. 4. In one embodiment, only the pupil is positioned. The adjustment can be click-based or slide or other interface. Once an adjustment is made, a new calculation is made. This can be repeated multiple times, whereby each change in the adjustment tool generates a new measurement that is shown to the user and / or optician.
[0069] A final result 706 is provided after adjustments are made and the measurements are final and can be used further or exported to the user or framemaker. In one embodiment where the user is using this in-store, the user can get the results by responsive QR scanning or SMS, email or any other secure sharing format.
[0070] FIG. 10 is a block diagram illustrating a digital mirror with measurement capabilities, according to an embodiment. Various elements are described herein, but the elements relating to the digital mirror technology may be implemented according to any of the disclosures in the applicant's previous patents mentioned above, the disclosures of which are incorporated herein by reference. In this example, a video camera 1010 of the mirror system 1000 transmits a captured video stream 1015 to a conversion module 1020. The conversion module 1020 operates on the video stream 1015 to generate a real-time mirrored stream 1025. The conversion module 1020 may be implemented according to any of the embodiments described in the applicant's patents, and converts the video stream from the camera 1010 according to any of the methods and processes described therein to generate an image on the screen 1005 that mimics the image of a mirror.
[0071] The real-time mirrored video stream 1025 is sent to the screen 1005 and also to the AR (Augmented Reality) module 1030 and the image analysis module 1035. The image analysis module 1035 continuously analyzes the real-time mirrored video stream 1025 and performs calibration, alignment and measurement functions. The AR renderer 1030 generates AR renderings, such as graphical targets, avatars and virtual items such as frames, lenses, gems, etc. The system shown in FIG. 10 may incorporate modules and may be utilized to perform the processes disclosed herein, particularly those described with respect to FIGS. 6-8D. Additionally, additional measurements may be performed by incorporating an optional module device 1050 in communication with the system, which will be further described below.
[0072] As can be seen from the above description, the disclosed aspects include a system for projecting a mirrored image of a user and digitally capturing measurements of the user's body, including a video grabber that provides a video stream of the user, a transformation module that receives the video stream and applies a transformation mapping to generate a transformed video therefrom that mimics the reflection of a mirror, a display screen that receives and displays the transformed video, a calibration module that receives the video stream and generates calibration coefficients therefrom, an interactive interface that is projected onto the display screen to assist the user in reaching a desired body orientation (tilt and angle relative to the plane of the display screen), and a measurement module that receives an indication that the user has reached the desired body orientation and generates measurements of the user's body using a still image from the transformed video and the calibration coefficients.
[0073] Reference is now made to FIG. 9, which is a block diagram showing a body measurement system, according to an embodiment, particularly suitable for measurements by an optician. As in the previous embodiment, the camera capture module generates a video stream, which may be of a user without glasses, wearing physical glasses, or wearing virtual glasses added by a virtual reality module. The video stream is input to a trigger module 901, which is programmed to identify that the user's head appears in the video stream and then estimate the head orientation (gaze, tilt, rotation, translation, roll depth, etc.). The trigger module provides a virtual feedback module 902 with an indication of the head orientation, which overlays a visual representation of the user's head orientation on the monitor screen. As mentioned before, this may be in the form of an avatar, which may be a simple spheroid, for example a 3D spheroid projected onto a flat screen, such as by solving PNP or SVD equations. The virtual feedback module 902 may also project a graphical target to indicate the desired orientation to the user. Thus, when the user moves his / her head, the change in orientation is detected by the trigger module 901 and sent to the visual feedback module 902 to make a corresponding change to the visual display. That is, the graphical target is static, but the avatar is dynamic and moves with the user's movements in the video stream. When the visual display matches, e.g., aligns, with the graphical target, the trigger event 901 grabs a still image (frame) from the video and sends it to the coefficient module 903.
[0074] The coefficient module 903 generates coefficients that are used to convert pixel distances in the image to actual distances in the real world. The coefficients also help calculate the distances of various objects that appear in the image from the camera module 900. As pointed out, various methods can be used to generate the coefficients, such as by measuring the iris, or measuring glasses of known size, or measuring any other item that appears in the image whose actual size is known. In one embodiment, the size of the iris is used to generate the coefficients. Thus, the coefficients are sent to the glasses measurement module 904. In this module, the physical size (e.g., width and height) of the frame of the actual glasses worn by the user in the image is determined using the coefficients and pixel measurements. For example, as shown in FIG. 10, a rectangle or other polygon (see dotted line) can be drawn around the frame, and the width and height of the rectangle can be set as the size of the frame.
[0075] In the embodiment disclosed in this application, the system needs to identify pixels that belong to the frame appearing in the image. As a first level implementation, the system may detect the lens contour using trained object detection and / or any consumer contour tracking algorithm. Contour tracking is a technique applied to a digital image to extract its boundary. Examples include Square Tracing algorithm, Moore-Neighbor Tracing, Radial Sweep, Canny filter and Theo Pavlidis'Algorithm. Contour tracking may be sufficient when the glasses have a full frame. However, many glasses only have the top part of the frame, the bottom part is held by a transparent thread, and some glasses do not have a frame, and the temples and nose pads are attached directly to the lens itself. In such a situation, the contour tracking algorithm may fail or may not provide reliable results.
[0076] Thus, in one embodiment, the second process uses neural networks and / or deep learning to identify which pixels belong to the lens based on general training or target distortion detection. The target seen through the lens is distorted because it is behind the lens, i.e., due to the optical effects of light passing through the lens. To aid in learning to identify pixels distorted by the lens, as indicated by module 905 and depicted in FIG. 10, the user may be asked to place the glasses between the camera and a designated target. The target may be printed on paper or projected on a screen, and the user may take a photo of the target behind the glasses using a mobile device. As shown, a simple target may be a chessboard with known square size. When the glasses are placed between the camera and the target, the block image appearing through the lens is distorted, thereby making it impossible to identify the shape of the lens.
[0077] The various measurements obtained herein can also be used to confirm or improve other measurements. For example, once a frame or lens measurement is obtained, it can be checked against an image of a user wearing the glasses using iris measurements. The PD measurements disclosed herein can also be used to confirm or improve iris and / or lens measurements. As shown in 905, the lens or glasses size measurements can also be used to calculate the distance of the glasses from the camera and the orientation of the glasses, making sure that the frame is correctly positioned in front of the camera (i.e., held approximately parallel to the camera sensor, which is important when measuring the optical power of the lens). In one embodiment, the system can calibrate the size of a target by using the measured size of the glasses as a reference and holding it close to the target.
[0078] Knowing the distance of the glasses from the camera helps to measure the user's current glasses prescription (if the user does not know the prescription). Specifically, module 906 verifies that the user is holding the glasses at the required distance and orientation relative to the camera. In module 907, the system identifies the inner areas of the lens versus the outer areas of the lens by checking which pixels are distorted as described above. When the glasses are positioned between the camera and a known target, in 908, the amount of distortion seen in different areas of the lens can be used to determine the optical power of the lens. In particular, if the lens is monofocal, one measurement per lens may be sufficient, but if it is bifocal, progressive or multifocal, multiple measurements may be needed in areas of the lens to understand the different powers and their locations within the lens. In 909, the amount of distortion is used to calculate the prescription. As shown, this process can be repeated multiple times to reduce errors and increase the accuracy of the measurement.
[0079] According to another embodiment, the system can be used to perform an eye test. As mentioned above, a calibration factor obtained, for example, by iris size or from PD measurements, can be used to measure the distance of the user from the camera. If the camera is attached to a screen, the calculated user distance is also the distance to the screen. So, the screen can be used to perform an eye test by asking the user to stand, for example, 10 feet away from the screen and performing the eye test. The distance to the user can then be verified, for example, by measuring the size / width of the face in the correct posture based on the factor. In addition, landmarks can be measured when the user is close to the screen and the same landmarks can be measured when the user is further away and the distance can be estimated based on the percentage change and the factor. This is very beneficial for the eye test to ensure that the user is standing at the correct distance to the eye test projected on the monitor screen.
[0080] To improve accuracy, the calibration measurements can be performed in several steps. Such an approach is advantageous for many applications, especially those using augmented reality, where virtual items are overlaid on a real image of the user and it is desirable to properly scale the size of the virtual items to match the appearance of the user on the screen. So, for example, in a virtual try-on (VTO) application, the user should see the virtual items in their proportionate size relative to the user, e.g. the size of a virtual court overlaid on the user should be shown in the correct proportion to the real size of that court at the distance from the camera where the user is standing.
[0081] Figure 11 illustrates an embodiment in which calibration is performed in multiple steps. Although Figure 11 illustrates various hardware elements that can be used for multi-step calibration, this process can be performed using a variety of hardware elements, and the diagram of Figure 11 is merely used to illustrate some possible implementations. In the example of Figure 11, a camera 14 is positioned above a video screen 12. The camera 14 and screen 12 communicate with and are controlled by a controller 18. The user may also have a mobile device 16, such as a camera phone, which may communicate with the controller 18 via wired or wireless technology.
[0082] In an initial calibration process, the user stands close to the screen 12, for example 1-3 feet from the screen 12, and a live video stream is provided from the camera 14 to the controller 18. The controller measures the size of the iris in the image using any of the methods described herein and generates an initial calibration coefficient for converting pixel distances to real distances. Such a calibration works if all items being measured and scaled are projected close to the screen. However, if the user stands farther from the screen, the measurement of the size of the iris may not be as accurate and therefore the magnification may not be precise. Thus, using the magnification obtained from the iris when in a close position (for example 1-3 feet), the controller 18 measures the distance between two identifiable spots on the user at the close position, such as the distance between the ears, PD, the distance from the base of the chin to the top of the head, etc. Now, as the user walks further away from the camera, the controller does not need to identify the iris, but may instead use the distance between two identifiable spots as a calibration, since the calibration distance may be more easily identified from a distance.
[0083] Calibration can be further performed in additional optional steps. In a first example, the user may be asked to walk backwards to the point where the user's feet are first seen at the bottom of the video frame. Since the field of view of the camera is known, and the calibration of the distance between two points on the user is known, the angle of the camera relative to the user's feet can now be used to calculate the distance from the camera 14 to where the user is standing. Now, as the user continues to walk backwards, the angle relative to the feet in the frame or the vertical height of the feet on the frame can be used to accurately calculate the distance from the camera to where the user is standing. As a result, each time a VTO is performed, the virtual items superimposed on the user can be properly scaled according to the measurement of the distance from the camera to where the user is standing.
[0084] Further, the distance to the user can be determined from the angle relative to the user's feet, and a calibration factor has been obtained from two points on the user so that various items or body parts appearing in the image can now be measured. For example, using the known distance of the user and a calibration factor of the distance between two points (e.g., PD), the system can now determine the waist size of the user. Furthermore, as disclosed herein, the system can determine the orientation of the user relative to the camera (e.g., using an avatar and stationary targets), so that subsequent measurements can be performed using the orientation process described herein to increase the accuracy of the measurements.
[0085] Another feature shown in Figure 11 is the use of internet or cloud computing 181 to provide services related to transformation, mirror display, calibration, measurement and virtual reality. For example, according to one embodiment, a transformation is performed on the video generated by the camera 14 to mimic a mirror image, which is then displayed on the screen 12. This transformation can be performed by the controller 18 or by the cloud computing 181. In such a case, the feed from the camera 14 can be fed to the server 181, which applies the transformation and sends it back to the controller 18 to be displayed on the monitor screen 11.
[0086] According to other embodiments, images from the camera 14 or converted images from the camera 14 can be stored in the cloud and streamed to devices such as smartphones 183, tablets 187 and other monitor screens 189 such as flat panel TVs. This can be done in real time while the user is trying on the outfit, allowing the user to share the experience with and get input from other people at remote locations. After the user leaves the store, the user can also access all of the captured images by using a smartphone, tablet, PC, etc. It should be noted that to facilitate the user interface, thumbnail images of the various tries-on images may be displayed along with the current image for the user to select from within the view, as shown on the monitor 189 in FIG. 11.
[0087] In certain applications, it is desirable to perform eye tests using a closer distance to confirm the quality of the visual field or to approve eyeglass prescriptions. This technology would perform the same or similar tests that are currently performed at distances of 10 feet or more using a shorter distance. This technology implements a combination of spatial blurring in the gray domain, such as a Gabor filter on a gray background, at multiple rotation angles, while constantly measuring the distance so that the user does not get too close and "invalidate" the test. This technology can also combine the projection of items to different locations on the test screen, requiring the user to indicate where on the screen the test is being performed. Detection of the sine and angle at various sine frequencies is an indication of the quality of the visual field and any aberrations. By constantly checking the validity of the user's facial distance and posture / gaze, the system ensures that the user is performing the test correctly. Additionally, using image recognition, the system ensures that the requirements of the test are performed properly, such as the user not simply closing their eyes, but covering each eye with the palm of their hand, one at a time.
[0088] A person's field of view (FOV) is also an important part of eye testing. Using head distance measurements together with calibration factors and identifying the user's head pose, the system can display items on the screen that should or should not be visible to the user, thereby measuring the customer's FOV horizontally and vertically. The pose measurements ensure that the projected items are only detected when the user is posed / gazing at the correct orientation / direction.
[0089] Using the disclosed embodiments, a user can also perform an eye test wearing their glasses, and the test will confirm the quality of their vision and provide an indication of whether any changes are needed to their prescription. In such a scenario, accuracy is ensured by real-time visual pose and distance detection and feedback to the user. The system can constantly monitor these parameters and inform the user how to position their face to perform a proper measurement. In addition, visual field-based AI is used to detect whether the customer is using their glasses during the test, covering the correct eye, and generally following the instructions. In some embodiments, the distance can be measured on the glasses themselves relative to the PD. For example, once one or more sizes of glasses are detected at a short distance, glasses detection can be used to detect glasses at other distances to estimate distance and / or posture.
[0090] In the embodiment of Figure 7, when the user is photographed wearing his glasses, optional module 705 may be used to make adjustments. However, in embodiments that use a neural network to identify the frames and other features of the user's head, module 705 is not necessary, as the system can make the necessary adjustments or take them into account in the calculations.
[0091] PD measurements are also more accurate if the user is not wearing glasses. However, if the user is not wearing glasses, neural networks or other processing can be used to remove the physical glasses from the image. FIG. 12 is a block diagram of an embodiment that handles user video streams where either virtual or physical glasses are used. At 1200, the video stream is of a user wearing virtual glasses, and at 1200a, the user is videotaped wearing real glasses, so the system removes the display of glasses in the video stream. For virtual glasses, an optional module 1204 allows the user to adjust the glasses on their face. In the case of virtual glasses, the user may try on different frames at 1205 and take measurements using the different frames.
[0092] Thus, disclosed embodiments include a system for body measurements that includes a digital screen, a video grabber positioned to generate a video stream of a user, a calibration module that generates a length-per-pixel coefficient correlating pixel lengths in frames of the video stream with actual lengths of objects appearing in the frames of the video stream, a matching module that projects a graphical target that is overlaid on the frames of the video stream projected on the digital screen, the matching module further generating an avatar of the user that appears in the frames of the video stream and overlaying the avatar on the frames of the video stream projected on the digital screen, and a measurement module that calculates body measurements of the user utilizing the length-per-pixel coefficients received from the calibration module and an indication from the matching module that the avatar has been matched with the graphical target. The calibration module may generate the length-per-pixel coefficients using measurements of the user's iris that appear in the frames of the video stream. The calibration module may obtain the iris measurements by fitting a virtual circle over the iris and using the diameter of the virtual circle as the iris measurement. The alignment module may construct an avatar in the form of a three-dimensional spheroid corresponding to the user's head as it appears in a frame of the video stream, and may repeatedly perform the steps of identifying an orientation of the user's head as it appears in a next frame of the video stream, and projecting the avatar in a projection orientation corresponding to the orientation of the user's head on the digital screen. The alignment module may continually track the movement of the user's head as it appears in the frames of the video stream, and impart the corresponding movement to the avatar projected on the digital screen. The alignment module may store a still image whenever the avatar is aligned with the graphical target.
[0093] The system may further include a virtual reality module that digitally overlays a virtual eyeglass frame onto a face of a user appearing in a frame of the video stream. The measurement module may calculate an interpupillary distance of an eye of the user appearing in the frame of the video stream, and / or an optical center height of an eye of the user appearing in the frame of the video stream, and / or an eye drop height of the user appearing in the frame of the video stream.
[0094] The above-described system may further include a virtual reality module that digitally overlays a virtual eyeglass frame onto the user's eye surface appearing in the frames of the video stream, and the measurement module uses the virtual eyeglass frame to calculate the bead height. The virtual reality module may scale the eyeglass frame using a length-per-pixel factor.
[0095] The above-mentioned system may further include an adjustment module for projecting a graphical overlay on the digital screen, the graphical overlay corresponding to the measurement points of the measurement module, the adjustment module further projects a user interface allowing to move the graphical overlay on the digital screen. The calculation module may recalculate the body measurements whenever the user interface is manipulated to move the graphical overlay.
[0096] The above system may further include a segmentation module that identifies all pixels belonging to the eyeglass frame appearing in the frame of the video stream. The calibration module may generate the coefficients using stored data of the eyeglass frame. The measurement module may generate four images: an image of the user without the eyeglasses, an image of the user with the eyeglasses, an alpha channel of the eyeglasses only, and an RGB image of the eyeglasses only. The calibration module may further estimate the distance of the user from the camera. The distance of the user may be calculated using measurements of the user's iris.
[0097] Thus, aspects of the present disclosure include generating a calibration factor for a first digital image, the calculation factor providing a conversion between pixel length and physical length, and using the calibration factor to obtain a calibration length expressed as a physical distance between two landmarks appearing in the first digital image. Further, the calibration length is used to generate a second calibration factor for the second digital image by identifying two landmarks in a second digital image and measuring the pixel length between the two landmarks in the second digital image, and taking a ratio between the calibration length and the pixel length to generate the second calibration factor. Further, the distance from the camera to the landmark in the second digital image is obtained using the ratio of the first and second calibration factors. In practice, a look-up table can be stored, where the ratio between the first and second calibration factors is correlated with the distance from the camera.
[0098] The above-mentioned systems / circuits / modules are described with respect to interactions between several components / blocks. It can be understood that such systems / circuits and components / blocks can include these components or the subcomponents specified, some of the specified components or subcomponents, and / or additional components according to various permutations and combinations thereof. Subcomponents can also be implemented as components that are communicatively coupled to other components rather than being contained within a component (hierarchical). In addition, it should be noted that one or more components can be combined into one component that combines to provide a collective functionality or can be divided into several separate subcomponents, and any one or more intermediate layers, such as a management layer, communicatively coupled to such subcomponents to provide an integrated functionality can also be provided. Any component described herein can also interact with one or more other components not explicitly described herein but known to those skilled in the art.
Claims
1. 1. A method for making a digital measurement, comprising: acquiring a first video stream of a user at a first distance to a camera; generating conversion coefficients using elements appearing in the first video stream to convert pixel distances in the first video stream to actual physical distances in the real world; using the conversion coefficients to obtain a first digital measurement within the first video stream; acquiring a second video stream at a second distance greater than the first distance; determining the second distance measurement using the first digital measurement and an angle measurement to an item appearing in the second video stream; The method includes:
2. The method of claim 1 , wherein the element includes an iris of the user, and the conversion factor is determined using a ratio of a pixel measurement of the iris to an average physical diameter of a human iris.
3. The method of claim 2 , wherein the measurements of the iris are obtained by measuring a plurality of iris diameters for the right iris and the left iris, and taking an average of the plurality of iris diameters.
4. The method of claim 1 , wherein the first digital measurement comprises an interpupillary distance of the user.
5. Retrieving the virtual object from the memory; Scaling the size of the article using the determined second distance; and superimposing the item onto an image of the user at the second distance; The method of claim 1 further comprising:
6. The method of claim 1 , wherein the items appearing in the second video stream include the user's feet.
7. The method of claim 6 , wherein the angle measurements include vertical positions of pixels belonging to the foot, the head, or both the foot and the head.
8. 8. The method of claim 7, further comprising: acquiring a third video of the user at a third distance that is greater than the second distance; and determining the third distance using a second angle measurement.
9. Retrieving the virtual object from the memory; scaling the size of the article using the determined third distance; superimposing the item onto an image of the user at the third distance; The method of claim 8 further comprising:
10. The method of claim 7 , further comprising determining a second digital measurement of a target on the user using the determined third distance and the first digital measurement.
11. The method of claim 10 , wherein the target comprises a body part of the user.
12. prior to obtaining said first digital measurement; creating an avatar of the user; projecting the avatar onto a screen in an orientation corresponding to a body orientation of the user; monitoring changes in body orientation of the user and imparting corresponding changes to the orientation of the avatar; obtaining said first digital measurement when said avatar is identified as being in an acceptable orientation. The method of claim 1 further comprising:
13. The method of claim 12 , further comprising projecting a graphical target onto the screen and determining that the avatar is in an acceptable orientation when the avatar is aligned with the graphical target.
14. The method of claim 12 , wherein the avatar is three-dimensional and the orientation includes translation, rotation, elevation and distance.
15. 2. The method of claim 1, further comprising projecting a graphical overlay onto a digital screen indicating a measurement point of the first digital measurement value, and further projecting a user interface that enables the user to move the graphical overlay over the digital screen to modify the first digital measurement value.
16. 16. The method of claim 15, further comprising the step of recalculating the first digital measurement using the conversion factor whenever the user interface is manipulated to move the graphical overlay.
17. 10. The method of claim 1, further comprising converting the first video stream to generate a mirrored video stream to generate an image on a video screen that mimics the projection of a mirror.
18. 1. A method for making a digital measurement, comprising: obtaining a video stream including an image of a user; generating conversion factors using elements appearing in the video stream to convert pixel distances in the video stream into actual physical distances in the real world; generating an avatar of the user using the image of the user appearing in the video stream; projecting said avatar onto a monitor screen in an orientation corresponding to an orientation of said user; continuously monitoring the orientation of the user in the video stream and adjusting the orientation of the avatar on the monitor screen to correspond to changes in the orientation of the user; taking measurements of a pre-specified item on said video screen when said orientation of said avatar reaches a required orientation. The method includes:
19. The method of claim 18 , wherein the element includes an iris of the user.
20. 20. The method of claim 18, further comprising projecting a graphical target onto the monitor screen and determining that the avatar has reached the required orientation when the avatar is aligned with the graphical target.
Citation Information
Patent Citations
Image processor, image processing method, and program
JP2011070623A
Measuring apparatus for glasses, and three-dimensional measuring apparatus
JP2012239566A
Apparatus, system and method for imaging and displaying appearance
JP2016509683A
Method and device for irradiating light for photographing the iris
JP2018511124A
Apparatus and method for two eye imaging for iris identification
US20100110374A1
