# Patent

## Title
Method of determining eyeglass frame measurements from an image by executing computer-executable instructions stored on a non-transitory computer-readable medium

## Abstract

A method of determining eyeglass fitting measurements from an image for a vision treatment analyzes a source image of an individual wearing a known pair of eyeglass frames. Dimensions specifications are acquired from the manufacturer of the frames, and corresponding dimensions are measured from the image using image recognition software. Various scaling and trigonometric calculations are performed in order to acquire measurements specific to the patient for fitted eyeglass frames.

## Background
The current application claims a priority to the U.S. Provisional Patent application Ser. No. 62/151,270 filed on Apr. 22, 2015.


FIELD OF THE INVENTION
The present invention relates generally to eye care. More particularly, the present invention relates to a method for accurately determining eyeglass fitting measurements from a digital image.
BACKGROUND OF THE INVENTION
In most cases an individual must go to an eye care professional to have measurements of their head taken to determine the correct eyeglass frame dimensions. Going to an eye care professional requires appointments to be made, which may not align with an individual's schedule. This method can prove to be time consuming and inconvenient for busy individuals and serves to standardize the skill set to take the measurements, which, when done manually, can lead to significant errors. Alternatively, there are methods of determining eyeglass fitting measurements using multiple images with attachments to the frame which currently exist in the market. Many times methods such as this still involve the individual having to go in to see an eye care professional to get the proper pictures taken, leading to the same issue of time and convenience. Further, some methods do not require an individual to physically visit an eye care professional as they can take the required photos on their own and upload them onto the eye care provider's website. Although this method is quicker and more convenient than the aforementioned methods, an individual may not properly take the photos. This may result in inaccurate and incomplete results, having to retake the photos and overall may lead to more inconvenience and time wasted, and existing methods cannot complete all measurements required to make modern eyewear.
The present invention aims to solve the problems with determining eyeglass fitting measurements mentioned above. With the present invention, an individual will be able to take any front facing photo of themselves wearing a known pair of eye glass frames and determine accurate eyeglass fitting measurements for that individual. In addition, existing photos can be used as long as the individual is wearing a known pair of eyeglass frames. Through scaling methods and trigonometry, an individual will not need to take multiple images (of the sides of the head, etc.) to accurately fit eye glass frames. Frame measurements can accurately be taken in the comfort of one's home, saving time and energy, as well as ensuring consistency that may not be adequately provided by an eye care professional.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a stepwise flow diagram depicting the general process of the present invention.
FIG. 2 is an illustrated front view of the lenses of an eyeglass frame showing various dimensions of the frame.
FIG. 3 is an illustrated side view depicting the right triangle used to calculate the pantoscopic tilt angle.
FIG. 4 is an illustrated top view depicting the right triangle used to calculated the wrap angle.
FIG. 5 is a stepwise flow diagram describing the steps for implementing the general method of the present invention.
FIG. 6 is a stepwise flow diagram describing steps for identifying the plurality of given frame dimensions.
FIG. 7 is a stepwise flow diagram describing steps for further identifying a diagonal dimension as one of the given frame dimensions.
FIG. 8 is a stepwise flow diagram describing steps for calculating the pantoscopic tilt angle.
FIG. 9 is a stepwise flow diagram describing steps for calculating the wrap angle.



DETAIL DESCRIPTIONS OF THE INVENTION
All illustrations of the drawings are for the purpose of describing selected versions of the present invention and are not intended to limit the scope of the present invention. The present invention is to be described in detail and is provided in a manner that establishes a thorough understanding of the present invention. There may be aspects of the present invention that may be practiced without the implementation of some features as they are described. It should be understood that some details have not been described in detail in order to not unnecessarily obscure focus of the invention.
The present invention takes patient measurements for properly fitting eyeglasses with the use of a single image of the wearer who is wearing a known frame. By using an image of the patient wearing a selected frame, image scaling methods and trigonometric functions, the measurements specific to the patient can be accurately and consistently determined. The user will no longer have to take a plurality of specific photos to properly fit eyeglass frames using this method. In other words, one front facing photo will be all that is needed. The general process is depicted in FIG. 1.
To facilitate the present invention, an image recognition software must be provided for use. The image recognition software may be any collection of programming code, compiled or otherwise, machine instructions, or any type of computer-executable instructions that provides the ability to analyze an image in order to recognize the required components from the image as detailed hereinafter. The image recognition software may be a single software package with all the necessary capabilities, or the image recognition software may be multiple software packages each providing one or more of said capabilities.
In reference to FIG. 5, to initiate the general process of the present invention, a source image is received. The source image may be received from any applicable digital file transfer means and may be stored on and read from any digital file storage implementation. To properly enable the present invention, the source image must contain a front facing photo of a person's head, with the person wearing a known pair of eyeglasses. The eyeglasses worn by the user must be recognizable enough to look up the manufacturers details on the dimensions. This is the key to making the present invention function correctly. The real dimensions obtained from the manufacturer will be used to properly scale the image to the correct size as the photos used for the present invention may vary in size. The individual must be wearing a known pair of glasses. The user does not necessarily need to take a new photograph. An existing photograph of an individual wearing a known pair of glasses will work with the present invention. For example, an individual may be able to use one of their photos from a social media website.
The source image is then analyzed with the image recognition software in order to identify an eyeglass frame from the source image. Identifying the presence of an eyeglass frame is critical to the purpose of the present invention, and if no eyeglass frame can be identified from the source image the present invention cannot function properly.
It is further important to identify the specific model of the eyeglass frame in the source image in order to facilitate the acquisitions of manufacturer specifications for the dimensions of the eyeglass frame. In one embodiment, a frame model designation is received through a user interface. In another embodiment, the frame model designation of the eyeglass frame is identified from the source image with the image recognition software.
Referring to FIG. 2, a plurality of given frame dimensions of the eyeglass frame are then identified. In the preferred embodiment of the present invention, the plurality of given frame dimensions comprises a given, or real, lens width (Ar), a given lens height (Br), and a given lens separation (DBLr). In one embodiment described in FIG. 7, a diagonal dimension (EDr) may further be identified as one of the plurality of given frame dimensions. The diagonal dimension EDr is the furthest diagonal distance across a lens of the eyeglass frame traversing through the center of the lens. The subscript “r” herein refers to the “real” dimension as specified by the manufacturer of the eyeglass frame. It should be understood that all variable nomenclature herein is arbitrary and is not intended in any way to limit the scope of the present invention.
Referring to FIG. 6, the plurality of given frame dimensions may be identified by various different means. In one embodiment, after the frame model designation is identified, a database is then searched for the frame model designation in order to identify the plurality of given frame dimensions. In one embodiment, a user must manually retrieve the plurality of given frame dimensions from a manufacturer database or other data source. The user then enters the plurality of given frame dimensions through a user interface, thus identifying the plurality of given frame dimensions.
The image recognition software additionally analyzes the source image in order to identify a plurality of measured frame dimensions (denoted by the subscript “m” herein). In the preferred embodiment of the present invention, the plurality of measured frame dimensions comprises a measured lens width (Am), a measured lens height (Bm), a measured lens separation (DBLm), a measured pupil distance (PDm), and a measured segment height (SHm). In one embodiment, a measured diagonal dimension (EDm) is further identified from the source image with the image recognition software as one of the plurality of measured frame dimensions.
The measured lens width Am is the furthest horizontal dimension of the lens. The measured lens height Bm is the furthest vertical dimension of the lens. The measured lens separation SHm is the closest horizontal distance between the two lenses of the eyeglass frame in the source image. The measured pupil distance PDm is the horizontal distance measured between the subject's pupils in the source image. The measured segment height SHm is the vertical distance from the bottom of the lens to the beginning of a progressive addition on a progressive lens, or to the top line of a lined bifocal. The measured diagonal dimension EDm is the measured furthest diagonal distance across the lens of the eyeglass frame which traverses through the center of the lens.
After the plurality of given frame dimensions and the plurality of measured frame dimensions are identified, various calculations are subsequently performed. Using the known dimensions of the frame given by the vendor and the measured dimensions of the frame from the photo, the correct scaling factors are determined. By dividing the real values by the measured, a scaling factor can be determined. The term real will refer to the given dimensions from the manufacturer and the term measured will refer to the measured dimensions from the photos.
A width scaling factor (As) is calculated between Ar and Am. More specifically, As is calculated as a ratio of Ar to Am, and even more specifically, in one embodiment As is calculated according to the equation




  
    A
    s
  
  =
  
    
      
        A
        m
      
      
        A
        r
      
    
    .
  




It should be understood herein that while various ratios and scaling factors are defined, the numerators and denominators may be reversed in various relevant instances to produce the same result.

Similarly, a height scaling factor (Bs) is calculated between Br and Bm. More specifically, Bs is calculated as a ratio of Br to Bm, and even more specifically, in one embodiment Bs is calculated according to the equation




  
    B
    s
  
  =
  
    
      
        B
        m
      
      
        B
        r
      
    
    .
  




The scaling factors As and Bs will enable the user to scale any measured dimensions on the frame to their true values. Once these values have been obtained, the measured PD and segment height will be scaled to their true values, giving an accurate measurement of these two dimensions.
A true pupil distance (PDt) is then calculated from PDm and As. More specifically, PDt is calculated according to the equation




  
    PD
    t
  
  =
  
    
      
        PD
        m
      
      
        A
        s
      
    
    .
  




A true segment height (SHt) is also calculated from SHm and Bs. More specifically, SHt is calculated according to the equation





  
    SH
    t
  
  =
  
    
      
        SH
        m
      
      
        B
        s
      
    
    .
  




Both PD and SH can also be calculated with half of the DBL to the scaled PD of either the left or right eyes. The SH can be calculated monocularly by performing the SH equation for both the right and left eye. In order to ensure proper PD, the Am of each eye is compared, by dividing the shorter Am by the longer Am, giving a ratio that is applied to the shortest PD, and then the inverse is applied to the longest PD and compared to the total PD: shortest PD+Longest PD+DBL=total PD.
Referring to FIGS. 3 and 8, in one embodiment, a pantoscopic tilt angle (PA) is further calculated. The pantoscopic tilt requires the vertical measurements of the frame. By using the real, measured and scaled values, a right triangle can be formed to determine the correct pantoscopic tilt angle. This angle is calculated from using trigonometric formulas as shown below.
To this end, a lens height scaled by the lens width scale (Bpanto) is calculated as a ratio of Bm to As, and subsequently PA is calculated as the inverse cosine of the ratio of Br to Bpanto. More specifically, Bpanto is calculated according to the equation




  
    
      B
      panto
    
    =
    
      
        B
        m
      
      
        A
        s
      
    
  
  ,




and PA is calculated according to the equation





  PA
  =
  
    
      cos
      
        -
        1
      
    
    ⁢
    
      
        
          B
          r
        
        
          B
          panto
        
      
      .
    
  




Referring to FIGS. 4 and 9, in one embodiment, the final step will be the calculation of the wrap angle (WA). This calculation is done similarly to the pantoscopic tilt calculation, but in the horizontal direction, rather than the vertical. By using the real, measured and scaled values, a right triangle can be formed to determine the correct wrap angle. This angle is calculated from using trigonometric formulas as shown below.
To this end, a lens width scaled by the lens height scale (Awrap) is calculated as a ratio of the sum of Am and




  
    DBL
    m
  
  2




to Bs, and WA is calculated as the inverse cosine of the ratio of the sum of Ar and





  
    DBL
    r
  
  2




to Awrap. More specifically, Awrap is calculated according to the equation





  
    
      A
      wrap
    
    =
    
      
        
          A
          m
        
        +
        
          
            1
            2
          
          ⁢
          
            DBL
            m
          
        
      
      
        B
        s
      
    
  
  ,




and WA is calculated according to the equation





  WA
  =
  
    
      cos
      
        -
        1
      
    
    ⁢
    
      
        
          
            A
            r
          
          +
          
            
              1
              2
            
            ⁢
            
              DBL
              r
            
          
        
        
          A
          wrap
        
      
      .
    
  




After the aforementioned calculations, PDt, SHt, PA and WA are stored in a database and displayed on the user interface in a formatted manner PDt, SHt, PA and WA may then be used to adequately fit a new eyeglass frame for the subject in the source image.
In summary, the entire process will be automated using software. The software will perform all of the necessary calculations. The user will only have to input specific information relating to the image at the beginning of the program. First, the user will be able to select the specific type of eyeglass frames the user is wearing in the photo. The software will automatically search a database for the dimension information for that specific frame. Measurements of the frame within the image will be taken and inputted by the user. The dimensions that must be entered may be listed with empty cells so that the user can simply enter the data that is needed. This will also prevent the user from taking any unnecessary measurements. From here on, the software will perform all necessary calculations to display the fitted frame dimensions. The dimensions will then be formatted and presented to the user.
Although the invention has been explained in relation to its preferred embodiment, it is to be understood that many other possible modifications and variations can be made without departing from the spirit and scope of the invention as hereinafter claimed.

## Claims

1. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium comprises the steps of:
providing an image recognition software;
providing a user interface;
receiving a source image;
analyzing the source image with the image recognition software in order to identify an eyeglass frame from the source image;
identifying a plurality of given frame dimensions of the eyeglass frame, wherein the plurality of given frame dimensions comprises a given lens width (Ar), a given lens height (Br), and a given lens separation (DBLr);
analyzing the source image with the image recognition software in order to identify a plurality of measured frame dimensions of the eyeglass frame, wherein the plurality of measured frame dimensions comprises a measured lens width (Am), a measured lens height (Bm), a measured lens separation (DBLm), a measured pupil distance (PDm), and a measured segment height (SHm);
calculating a width scaling factor (As) between the given lens width (Ar) and the measured lens width (Am);
calculating a height scaling factor (Bs) from the given lens height (Br) and the measured lens height (Bm);
calculating a true pupil distance (PDt) from the measured pupil distance (PDm) and the width scaling factor (As);
calculating a true segment height (SHt) from the measured segment height (SHm) and the height scaling factor (Bs);
displaying the true pupil distance (PDt) and the true segment height (SHt) on the user interface; and
obtaining a frame model designation of the eyeglass frame by performing at least one of receiving the frame model designation of the eyeglass frame through the user interface and identifying the frame model designation of the eyeglass frame with the image recognition software.

2. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the step of:
receiving the plurality of given frame dimensions through the user interface in order to identify the plurality of given frame dimensions.

3. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
in response to receiving the frame model designation of the eyeglass frame through the user interface, searching a database for the frame model designation in order to identify the plurality of given frame dimensions.

4. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
in response to identifying the frame model designation of the eyeglass frame with the image recognition software, searching a database for the frame model designation in order to identify the plurality of given frame dimensions.

5. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
identifying a diagonal dimension (EDr) as one of the plurality of given frame dimensions, wherein the diagonal dimension (EDr) is the furthest diagonal distance across a lens of the eyeglass frame traversing through the center of the lens; and
analyzing the source image with the image recognition software in order to identify a measured diagonal dimension (EDm) as one of the plurality of measured frame dimensions.

6. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
calculating As as a ratio of Ar to Am;
calculating a lens height scaled by the lens width scale (Bpanto) as a ratio of Bm to As; and
calculating a pantoscopic tilt angle (PA) as the inverse cosine of the ratio of Br to Bpanto.

7. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
calculating As according to the equation





  
    
      A
      s
    
    =
    
      
        A
        m
      
      
        A
        r
      
    
  
  ;



calculating a lens height scaled by the lens width scale (Bpanto) according to the equation





  
    
      B
      panto
    
    =
    
      
        B
        m
      
      
        A
        s
      
    
  
  ;



calculating a pantoscopic tilt angle (PA) according to the equation





  
    PA
    =
    
      
        cos
        
          -
          1
        
      
      ⁢
      
        
          B
          r
        
        
          B
          panto
        
      
    
  
  ;



 and
displaying PA on the user interface.

8. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
calculating Bs as a ratio of Br to Bm;
calculating a lens width scaled by the lens height scale (Awrap) as a ratio of the sum of Am and





  
    DBL
    m
  
  2



 to Bs; and
calculating a wrap angle (WA) as the inverse cosine of the ratio of the sum of Ar and





  
    DBL
    r
  
  2



 to Awrap.

9. A method of determining eyeglass fitting measurements from an image for a vision treatment by executing computer-executable instructions stored on a non-transitory computer-readable medium as claimed in claim 1 comprises the steps of:
calculating Bs according to the equation





  
    
      B
      s
    
    =
    
      
        B
        m
      
      
        B
        r
      
    
  
  ;



calculating a lens width scaled by the lens height scale (Awrap) according to the equation





  
    
      A
      wrap
    
    =
    
      
        
          A
          m
        
        +
        
          
            1
            2
          
          ⁢
          
            DBL
            m
          
        
      
      
        B
        s
      
    
  
  ;



calculating a wrap angle (WA) according to the equation





  
    WA
    =
    
      
        cos
        
          -
          1
        
      
      ⁢
      
        
          
            A
            r
          
          +
          
            
              1
              2
            
            ⁢
            
              DBL
              r
            
          
        
        
          A
          wrap
        
      
    
  
  ;



 and
displaying WA on the user interface.