Contact Lens Virtual Fitting Method and Device, and Computer Program for Executing Contact Lens Virtual Fitting Method
The virtual contact lens alignment method and program address the challenges of cumbersome fitting and hygiene issues by accurately aligning lenses with eye regions, ensuring proper fit and reducing waste and health risks.
Patent Information
- Application Number
- SA517381617
- Authority / Receiving Office
- SA · SA
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2017-05-28
- Publication Date
- 2021-03-25
- Estimated Expiration
- 2035-07-16
AI Technical Summary
Existing methods for selecting and fitting contact lenses are cumbersome, hygiene-dependent, and lack accurate virtual fitting tools, leading to potential eye health risks and lens waste.
A virtual contact lens alignment method and computer program that captures contact lens and face images, aligns lens size with eye regions, and applies transparency to create a natural view, preventing eye diseases and reducing waste.
Enables accurate virtual fitting of contact lenses, ensuring proper alignment and hygiene, reducing eye health risks and waste, while providing a natural view of lens wear.
Smart Images

Figure 1EF212AC-B271-4B49-ADA6-CC62C57326A1 
Figure 23DB4E3B-34C4-472D-8BCB-4BEE1CC9078A 
Figure 3E1DEA45-0979-45A7-8A3F-324DB9A6B852
Abstract
Description
Full description Background of the invention The present invention relates to a method and means of virtual fitting of a contact lens, and a computer program to implement the method. Specifically, the invention relates to a method and means of virtual fitting of a contact lens, and a computer program to implement the method, which can display a view of wearing contact lenses by synthesizing images of contact lenses and a photographed face, directly without wearing contact lenses by recognizing the shapes of contact lenses and eyes. Contact lenses are widely used, primarily for cosmetic purposes, as well as for vision correction. Round lenses, colored lenses, and similar types are commonly known as cosmetic lenses. Round and colored lenses have a color in the lens rim or the lens itself. These colored and round lenses are popular among teenagers and those in their twenties who are concerned about their appearance, even though they are not intended for vision correction. All contact lenses, including cosmetic lenses, are not guaranteed to be safe and carry a high risk of side effects if not prescribed by an ophthalmologist. Teenagers, in particular, should pay extra attention to this, as their pupils are still developing and vision may deteriorate due to lens side effects. When purchasing contact lenses, it's essential to select lenses that fit your eyes. Generally, the shape of the lenses can be assessed using a magnifying glass or by looking directly at your eyes. While the buyer is permitted to wear the lenses as part of the service provided, this can be cumbersome. For hygiene reasons, users should maintain proper hand hygiene when handling contact lenses. The lens should be placed on the tip of a finger and inserted into the center of the eye by opening the eye and looking in a mirror. Once worn, contact lenses cannot be reused for hygiene reasons. Since things are this way, it is not easy for the buyer to choose contact lenses that suit him when buying contact lenses. At the same time, a software application from a particular app store eliminates this annoyance, as a viewer application can merge a pre-made lens image with a user's face image in a computer program to allow the user to recognize their own style (their own look) after wearing contact lenses according to the merge. The software application can only synthesize a face to a pre-edited lens image; moreover, the image quality is low, and the actual lens image differs from the edited lens image in many cases, in addition to the lens image not being easy to work with. A method and a virtual contact lens alignment tool and computer software are needed to implement the method to display a view of wearing contact lenses without wearing the contact lenses by dynamically photographing the contact lenses and synthesizing the contact lens images with a face image obtained by face recognition. General description of the invention Technical problem The present invention is designed to solve the problems described above. The present invention aims to provide a method and a virtual fixation tool for a contact lens, and a computer program to implement the method, which can display a virtual view of wearing certain contact lenses by taking a picture of the contact lenses, taking a picture of the face, and dynamically synthesizing the two pictures. In addition, another objective of the present invention is to provide a method and means for the virtual alignment of a contact lens, and a computer program to implement the method, which can provide a natural vision of wearing contact lenses by aligning the size of the contact lenses with the eye regions identified from a face image and giving a degree of transparency to the image of an eye lens according to the image of the contact lens and the shape of the eye regions. In addition, the present invention also aims to provide a method and means for virtual contact lens fitting, and a computer program to implement the method, which can prevent eye disease problems that arise when a contact lens user wears them directly and reduce the costs resulting from contact lens waste. The problems solved by the present invention are not limited to those listed above, but skilled artisans can clearly understand other problems not mentioned through the following description. Technical solution A virtual contact lens alignment method for achieving the objectives described above involves the following steps: capturing an image of a contact lens mounted on a contact lens holder through a second optical lens in a case that forms a dark room, identifying a contact lens region from the captured image of the contact lens, assigning a degree of transparency to the pixels corresponding to the contact lens region based on the color of the contact lens holder or the color of the contact lens case, synthesizing the contact lens image emerging through the second optical lens with the pupil of a defined eye region based on the degree of transparency assigned to the contact lens image, and displaying the synthesized image. In addition, the virtual alignment method for the contact lens also includes—before the tuning step—the following steps: capturing a face image through a first optical lens, identifying an eye area from the captured face image, and the contact lens image capture step is accomplished when light comes out of a set of LED lights provided in the darkroom and the light is diffused through a diffusion plate provided in the darkroom so that uniform illumination can be provided in the darkroom. In addition, the contact lens area determination step for the virtual contact lens alignment method includes the following steps: determining one or more curves from the captured image, determining circles according to the deflection of points on each one or more curves, determining the largest circle among the determined circles as the circle corresponding to the shape of the contact lens, and creating a contact lens image that includes the determined circle, where the transparency step includes steps to grant a degree of transparency based on the colors of the pixels in the determined circle so that they correspond to the contact lens, and granting a degree of transparency greater than a predefined threshold value for the pixels outside the circle. In addition, the eye area determination step for the virtual contact lens alignment method includes a determination step of points placed on a dividing line between the pupil and the skin adjacent to the pupil. In addition, the synthesis step of the virtual alignment method for the contact lens includes the following steps: identifying a circle corresponding to the pupil using a set of points, reducing the resulting contact lens image using the size of the circle identified by the set of points, and also giving a degree of transparency to the pixels of an area identified in the reduced contact lens image using a first circle identified by the first points and a second circle identified by the second points from among the set of points. In addition, the pixels of the selected area are adjusted for the default contact lens alignment method to be transparent, and the tuning step involves step-by-step granting a degree of transparency to the selected area, aligning the center of the circle of the reduced contact lens with the center corresponding to the pupil, and tuning by overlapping all pixels after alignment. In addition, a special computer program dedicated to achieving the objectives described above performs each step of the virtual contact lens alignment method. The virtual contact lens alignment method includes the following steps: capturing an image of a contact lens mounted on a contact lens holder through a second optical lens mounted on a case formed in a dark room, identifying a contact lens region from the captured image of the contact lens, assigning a degree of transparency to the pixels corresponding to the contact lens region based on the color of the contact lens holder or the color of the contact lens case, synthesizing the contact lens image emerging through the second optical lens with the pupil of a defined eye region according to the degree of transparency assigned to the contact lens image, and displaying the synthesized image. In addition, the virtual contact lens alignment fitting method – to achieve the objectives described above – includes: a primary camera unit comprising a primary optical lens to capture a face image; a secondary camera unit comprising a second optical lens and a contact lens holder, assembled in a case that forms a darkroom to capture a contact lens image mounted on the contact lens holder through the second optical lens; a control unit to define a contact lens area from the captured contact lens image, assigning a degree of transparency to the pixels corresponding to the contact lens area based on the color of the contact lens holder or based on the color of the contact lens case; defining an eye area from the captured face image; synthesizing the contact lens image generated by the second optical lens with the pupil of the eye area defined according to the degree of transparency assigned to the contact lens image; and a display unit to display the composed image. In addition, the second camera unit of the virtual contact lens alignment device also includes an array of LEDs to output light and a diffuser plate to spread the light, and the controller captures the contact lens image through the second optical lens in a light-emitting environment using an array of LEDs and a diffuser plate. In addition to the above, in order to define the contact lens area, the controller of the virtual contact lens alignment tool identifies one or more curves from the captured contact lens image, identifies circles according to the deflection of points on each of the one or more curves, identifies the largest of the identified circles as the circle corresponding to the shape of the contact lens, creates a contact lens image that includes the identified circle, and in order to give a degree of transparency, the controller gives a degree of transparency based on the colors of the pixels in the identified circle so that they correspond to the contact lens, and gives a degree of transparency greater than a predefined threshold value for the pixels outside the circle. In addition to the above, to define the eye area, the controller of the virtual alignment device for the contact lens defines a set of points placed on a dividing line between the pupil and the skin adjacent to the pupil. In order to synthesize the image, the controller defines a circle corresponding to the pupil using the set of points and reduces the resulting image of the contact lens using the size of the circle defined by the set of points. It gives a degree of transparency to the pixels of a defined area in the reduced contact lens image using a first circle defined by the first points and a second circle defined by the second points from among the set of points. In addition to the above, the virtual contact lens alignment method also includes: a storage unit to store the contact lens image and a contact lens ID corresponding to the contact lens image, and an input unit to receive the contact lens ID, where the controller searches for a contact lens image stored in the storage unit using the contact lens ID received via the input unit and synthesizes a contact lens area specific to the contact lens image searched from the storage unit in order to synthesize the image with the pupil of the eye area. Beneficial effects The method and means of virtual fitting of contact lenses, and a computer device to implement the method according to the present invention as described above, shall have an effect on displaying a view of a virtual wearing of certain contact lenses by photographing the contact lens image, photographing the face image, and dynamically synthesizing the two images. In addition, the method and means of virtual contact lens alignment, and a computer device to implement the method according to the present invention as described above, have an effect on providing a natural view of wearing contact lenses by aligning the size of the contact lenses with the eye regions identified from a face image and giving a degree of transparency to the contact lens image according to the contact lens image and the shape of the eye regions. In addition, the method and means of virtual alignment of contact lenses, and a computer device to implement the method according to the present invention as described above, will have an effect on preventing eye disease problems arising from a user directly wearing contact lenses and reducing the cost caused by contact lens waste. The results that can be obtained from the present invention are not limited to the effects mentioned above, and those skilled in the art will clearly understand the other effects through the following description. Brief explanation of the drawings Figure 1 is a projection showing a mass diagram representing a virtual alignment device for a contact lens. Figure 2 is a projection showing a schematic representation of a hypothetical contact lens alignment. Figure 3 is a flowchart that illustrates a specific path for the contact lens identification step. Figure 4 is a flowchart that explains a specific path for the eye recognition step. Figure 5 is a flowchart that explains a specific path for a synthesis step. Figures 6A, 6B and 6C are projections showing the images captured by a contact lens. Figure 7 is a projection showing parts of an eye region in a face image showing eye regions. Figure 8 is a projection showing the circles defined in the step of synthesizing a contact lens image and a face image. Figure 9 is a projection showing an example of defining an area to give an additional degree of transparency using the defined circles. Figure 10 is a projection showing an example of the structure of a second camera unit. Detailed description: Description of symbols 100: A virtual contact lens alignment tool 101: Input unit 103: Output unit 105: Communication unit 107: Storage unit 109: First camera unit 111: Second camera unit 111-1 LED Light 111-2: Diffusing Plate 111-3: Contact lens holder 111-4: Optical lens 111-5: Contact Lens 113: Display unit 115: Connection unit 117: Control Unit The aims, features, and characteristics described above will become clearer through the detailed description below, illustrated with accompanying figures. This will enable skilled artists to easily create models of the present invention. Furthermore, in the following description of the present invention, if a detailed description of known techniques associated with the invention would unnecessarily obscure its subject matter, such a detailed description will be omitted. Figure 1 is a projection showing a representative mass graph of a virtual alignment device for a 100 contact lens. According to Figure 1, a default alignment method for a contact lens 100 includes an input unit 101, an output unit 103, a communication unit 105, a storage unit 107, a first camera unit 109, a second camera unit 111, a display unit 113, a connection unit 115, and a control unit 117. The default alignment method for a contact lens 100 can also include other certain templates based on the addition of functions, or certain templates can be omitted in Figure 10. Ideally, the templates in Figure 1 should show a functional structural diagram. The 100 virtual contact lens fitting can be configured into a single case or distributed across multiple cases. For example, the 113 display unit can be configured as a single display unit, the second camera unit, 111, can be configured in a separate case containing a darkroom, and the remaining units can be configured as a laptop or a custom product. Alternatively, all units can be configured as a single product. In this way, a product that incorporates the 100 virtual contact lens fitting can be configured as a single product or as a product set. In brief, for each of the contact lens virtual alignment templates (Contact Lens Virtualization 100), Input Unit 101 receives user input. Input Unit 101 is equipped with one or more input devices such as a mouse, buttons, touchscreen, touchpad, numeric keypad, keyboard, microphone, light pen, etc. A controller or user of Contact Lens Virtualization 100 can, via Input Unit 100, invoke or terminate a function provided by Contact Lens Virtualization 100 or confirm a result based on function performance. For example, Input Unit 101 receives user input requesting the syncing of a face image with a contact lens image and transmits the user input to Control Panel 117. The 103 output unit produces a processing result in response to user input or according to the performance of a specific function in the default alignment method of the 100 contact lens. The 103 output unit is equipped with one or more output methods such as a printer interface, speaker, LED display, and the like. Communication Unit 105 is connected to a network and transmits received data. Communication Unit 105 includes an electronic communication chip for connection, for example, to a local area network (LAN). It can transmit data received from Control Unit 117 as network packets and transmit network packet data received from the network to Control Unit 117. The LAN can be, for example, a wired LAN, a wireless LAN, Bluetooth, ZigBee, or similar. Through the 105 communication unit, the 100 virtual contact lens alignment device can transmit various types of images, data, and / or programs stored in the 107 storage unit to a remote device or site, and receive images, data, programs, and so on from a remote location device. The remote location device can be a server accessible via the internet or a mobile terminal accessible via a mobile network. The mobile terminal could be, for example, a smartphone, tablet, or similar device. Storage Unit 107 stores various types of data and programs permanently and / or temporarily. Storage Unit 107 includes volatile memory, non-volatile memory, and / or large-capacity storage media such as a hard drive. Storage Unit 107 contains various types of programs used by the 100 contact lens virtual alignment method, captured face images, captured contact lens images, and face images synthesized with contact lens images. Each image is stored alongside an ID. For example, facial images are stored with the ID of the public user who purchased, or intended to purchase, contact lenses 111-5. A public user's ID is formed from a combination of, for example, one or more names, phone numbers, addresses, unique serial numbers (e.g., a number assigned by the controller of the default alignment method for contact lens 100), and so on. Contact lens images are stored with the ID of the corresponding contact lens 111-5. The 111-5 contact lens identifier is formed from a combination of one or more manufacturer's name, model number, and similar information. The resulting composite facial images are stored with a general user ID and a 111-5 contact lens identifier. This allows a user to verify that the composite images resemble those of various 111-5 contact lens models. The synthesis program is also stored in storage unit 107. This synthesis program can capture images and store them in storage unit 107. Additionally, it can synthesize images and display or store the resulting composite images. Ideally, the synthesis program should be configured to synthesize a contact lens image with an eye area, specifically the pupil, onto a facial image. A degree of transparency is applied to the contact lens image to produce a natural-looking image, and the synthesized contact lens image is then applied to the facial image based on this degree of transparency. The synthesis program is configured to run in conjunction with the hardware components shown in Figure 1 and can be stored and distributed on a storage medium. This storage medium can be, for example, an internet-connected or offline medium. An internet-connected medium might be a server or similar device distributing an application, while an offline medium might be a USB drive, memory card, hard drive, CD, DVD, or similar device. The capture and synthesis of specific images performed by the synthesis program will be described in Figure 2 and the following sections. The first camera unit, 109, includes an optical lens and an image sensor. Camera unit 109 captures an image of a general user's face under the control of controller unit 117. Camera unit 109 outputs the captured facial image to controller unit 117 as an analog or digital signal. The second camera unit, 111, includes an 111-4 optical lens and an image sensor. This unit captures images of a 111-5 contact lens under the control of the 117 controller. Ideally, the second camera unit, 111, should also include an 111-1 light (e.g., an LED 111-1) and a 111-3 contact lens mount to secure the 111-5 contact lens and designate it as the photographic area for the 111-4 optical lens. At a minimum, the light and the 111-3 contact lens mount should be housed in a case that forms the second camera unit, 111, and the case should provide at least a darkroom function. The 111-3 contact lens holder—and in particular a specific area for identifying the 111-5 contact lens—is displayed in a specific color. That is, a specific area of the 111-3 contact lens holder is identified for identifying the 111-5 contact lens based on the same color when taking a picture. For example, a specific area can be captured in white, and this color can then be highlighted as a background color. A degree of transparency can be imparted to the contact lens image by highlighting the background color. The 111-3 contact lens plate holder is painted or applied with a custom ink or paint as a background color. The background color is not limited to white and can be any color. For example, the background color could be red (R), green (G), blue (B), or something similar. The background color can be chosen based on a specific pattern color of a particular 111-5 contact lens and is preferably selected by a media controller. For example, if the 111-5 contact lens pattern is blue, a color other than blue is chosen as the background color. In the following description, we have assumed a white background color for ease of understanding, and other colors will only be mentioned where necessary. The 111-3 contact lens holder is exposed outside the darkroom by sliding jointly with a specific button from the 101 input unit and is placed inside the darkroom by sliding joint according to the input of the same button. Figure 10 is a projection showing an example of the structure of a second camera unit 111. As can be understood from Figure 10, the second camera unit 111 includes one or more LED lights 111-1, one or more diffusion plates 111-2, a contact lens holder 111-3, and an optical lens 111-4. Furthermore, the second camera unit may also include one or more contact lenses 111-5 mounted on the contact lens holder 111-3. We now come to a more detailed description of the second camera unit, 111, by referring to Figure 10, where the 111-3 contact lens holder is configured to mount one or more 111-5 contact lenses. An area of the 111-5 contact lens mounting location is marked with ink, paint, or similar material in a specific background color. The 111-3 contact lens holder can be configured to rotate, and the 111-4 optical lens is configured to image a specific 111-5 contact lens selected by rotation. The 111-3 contact lens holder can be extended outwards by sliding. When a set of 111-5 contact lenses is fitted to a 111-3 contact lens holder, the color of the area in the 111-3 holder where the 111-5 lenses are fitted may differ from the color of the other areas in the holder. For example, one area might be white, another blue, another green, and another red. The second camera unit, 111, in Figure 10, forms a darkroom and includes an array of 111-1 LEDs to provide illumination within the darkroom. The 111-1 LEDs are configured to emit predefined light levels. For example, the 111-1 LEDs emit white light at multiple brightness levels, with the brightness level controlled by the controller, 117. The illumination can be controlled differently depending on the color of a specific contact lens, 111-5. The light coming out of the LED 111-1 lights is diffused by the 111-2 diffusion plate, and uniform lighting can be provided in a dark room by LED 111-1 lights supplied from different angles. The 111-5 contact lens is fitted onto the 111-3 contact lens holder, preferably within a contact lens case. The contact lens case is fitted onto the 111-3 contact lens holder. The contact lens case is formed from a bottom pouch to accommodate the 111-5 contact lens or to include an upper pouch. The bottom pouch is either transparent or painted with a background color. If the bottom pouch is painted with a background color, the background color of the 111-3 contact lens holder can be omitted. The upper pouch is designed to be transparent. The contact lens case may not include a top pouch; in this case, the device operator can attach the 111-5 contact lens to the case using a pair of tweezers or similar tool to replace the 111-5 lens when necessary. When the contact lens case includes a top pouch, the same case containing the 111-5 lens can be attached to or replaced with the 111-3 contact lens holder. Display Unit 113 displays an image produced by Controller Unit 117. Display Unit 113 can be an LCD or LED display. This display may be a computer monitor, a dedicated monitor, or a public television manufactured and distributed by a manufacturer. Display Unit 113 displays an output image from Controller Unit 117, for example, an image resulting from combining a face image with a contact lens image. The 115 interface unit transmits and receives data between the modules. It includes either a parallel or serial bus. Furthermore, the 115 interface unit also includes a dedicated bus depending on the interface type of a particular module. For example, data transmitted from the first camera module (109) and the second camera module (111) to the controller module (117) is transmitted via a bus provided by the image sensor's electronic chip, or by the controller module (117) for image reception. The data transferred from controller 117 to display unit 113 is transmitted via a bus provided by display unit 113 or via a bus provided by controller 117 for image output. Controller 117 controls the modules shown in Figure 1. Controller 117 includes execution units, referred to as CPUs, MPUs, processors, or similar components. It loads programs stored in storage unit 107 into internal memory or registers and controls other modules. For example, controller 117 loads a tuning program stored in storage unit 107 and controls input unit 101, display unit 113, storage unit 107, camera unit 109, camera unit 211, and so on, by executing the tuning program. Control Unit 117 captures images by controlling Camera Unit 109 and / or Camera Unit 111 and stores the captured images in Storage Unit 107. Control Unit 117 combines a captured contact lens image with a captured face image and outputs the combined image via Display Unit 113. In addition, Control Unit 117 can store the captured images and / or the combined face image in Storage Unit 107 and transmit the images to a device at a remote location via Communication Unit 105 if required. The following is a description of a specific control flowchart implemented by controller 117 with reference to Figure 2 and below. Figure 2 is a projection showing a flowchart representing a hypothetical contact lens alignment. The flowchart in Figure 2 consists of contact lens recognition step S1, eye recognition step S2, tuning step S3, and output step S4. The flowchart in Figure 2 is implemented using the default contact lens alignment method 100 and is best accomplished by loading a tuning program stored in storage unit 107, and executing the tuning program and controlling the other templates according to the tuning program using controller 107. We will now briefly describe each step, where the S1 contact lens identification step is a photographic image of the contact lens wearer 111-3 using the 111-4 optical lens, (or) identifying the shape of the 111-5 contact lens from the photographic image, and then processing the image according to the 111-5 contact lens identification. The 111-5 contact lens image can be extracted or generated from the photographic image using the contact lens recognition step, after which a transparency score can be assigned to each pixel in the contact lens image. The contact lens recognition step will be described in detail by referring to Figure 3. The S2 eye recognition step involves photographing a user's face using an optical lens (or) and identifying a specific eye region from a photographic image. The S2 eye recognition step is specifically configured to distinguish the pupil area within the eye region. The pupil area then becomes the contact lens image synthesis area. The S2 eye recognition step is described in detail by referring to Figure 4. The S3 synthesis step is the synthesis of a contact lens image with a facial image. Specifically, this synthesis step synthesizes the pupil area of the facial image with the contact lens image, which is pre-assigned a transparency score. Furthermore, the S3 synthesis step can be further refined by adjusting the size of the contact lens image according to different pupil shapes and by assigning a new transparency score to the contact lens image. The S3 synthesis step will be described in detail by referring to Figure 5. The S4 output step produces a composite image, either through the 113 display unit or through the 105 communication unit. There is no need to perform the steps in Figure 2 sequentially. For example, there is no need for a precedence relationship between the contact lens identification step S1 and the eye identification step S2, as the eye identification step S2 can be performed after the contact lens identification step S1, and vice versa. Additionally, a specific step can be performed at a different point in time. For example, the contact lens identification step S1 can be performed first by the media controller for each contact lens model 111-5, and a contact lens image and corresponding contact lens ID are stored in storage unit 107 in advance. Then, the media controller 117 receives a contact lens ID from the media controller via input unit 101 in response to a request from a general user and searches for the contact lens image and data stored in storage unit 107 using the received ID. The 117 controller can synthesize the contact lens area of the searched contact lens image with the pupil of a known eye area of a photographed face (Step S3) and output a composite image (Step S4). Figure 3 is a diagram that illustrates a specific path for the contact lens identification step (Step S1). The contact lens recognition step in Figure 3 is performed by the templates in Figure 1 and is preferably accomplished by the controller by controlling the other templates using a synthesis program. This path begins when the virtual contact lens alignment controller 100 requests recognition of contact lens 111-5 through input module 101 (step S100) and ends when the path execution is complete or when a termination request is received through input module 101 (step S150). The device controller places a contact lens—as requested by the user for virtual alignment—on the 111-3 contact lens holder (step S101) and slides the 111-3 contact lens holder into the darkroom. It is recommended to include the 111-5 contact lens in a contact lens case for mounting on the 111-3 contact lens holder. If the device controller presses a release button on input unit 101, controller unit 117 sends a control signal to control camera unit 111 based on the release button, and outputs the control signal to camera unit 111. Camera unit 111 controls the LED 111-1 illumination and illuminates upon receiving the control signal. It captures an image that includes the contact lens 111-5, mounted on the contact lens holder 111-3, using the optical lens 111-4. It also captures an exposed image of the image sensor when the image is taken (step S103). The captured image is then transmitted to controller unit 117 by camera unit 111. The captured image is formed from a predetermined number of pixels in the horizontal (X-axis) and vertical (Y-axis) directions based on the resolution of the second camera unit 111 and includes an image showing the shape of the 111-5 contact lens. Pixels are best expressed in color, for example, by RGB pixel values, YCbCr pixel values, or in a color representation formula. Control unit 117 defines a contact lens region that represents the shape of a contact lens from the captured image (step S105). The contact lens region is defined by identifying curves. Curve identification can be achieved using a commonly used image processing algorithm. The curves are represented by points that represent the edges. Figure 6 shows images of a 111-5 contact lens. The 111-5 contact lens in Figure 6 is a colored or circular lens. As can be seen from Figure 6, the images of the 111-5 contact lens contain several curves. The outermost circular curve shows the shape of the 111-5 contact lens, while the other curves show patterns or other features of the lens's interior. Let's describe in detail how to define a contact lens area. The 117 controller identifies the curves of a captured image. Where there are a set of patterns in a 111-5 contact lens, there are a set of curves. The 117 controller sorts the identified curves in descending order of the number of points included in each curve and excludes curves with fewer points than a predefined number of target curves for defining a contact lens area. The 117 controller locates (searches for) a minimum and maximum point on the X-axis (horizontal image direction) and a minimum and maximum point on the Y-axis (vertical image direction) for each sorted curve. Control Unit 117 determines whether each curve is a circle using four points for each curve. Since the shape of a contact lens is generally a circle, the distance from the center point of the circle to a point on the edge (the circumference) must be constant. To determine a circle, Control Unit 117 calculates the center point of four points using the four points it finds and calculates a standard deviation of the distance between the center point and each of the points. If the standard deviation is less than a predefined threshold value, the 117 controller can determine that the corresponding curve is a circle. This predefined threshold value can be set in advance and could be, for example, thirty, twenty, or something similar. When a circle is selected, the 117 controller can select a set of circles corresponding to a set of curves. The 117 controller can then select the largest circle from among the selected circles as the circle representing the shape of the contact lens. The 117 controller sets the center point of a curve corresponding to the largest circle as the center of the selected contact lens 111-5 and sets the greatest distance from the center point of the corresponding curve to the points on the curve as the radius of the selected contact lens 111-5. Additionally, in the contact lens area selection step, the control unit produces 117 contact lens images, each containing a circle representing the shape of the contact lens from the captured image. The resulting contact lens image might be, for example, a square or rectangle containing a circle representing the shape of the contact lens. After the step of defining the contact lens area (Step S105), the controller assigns a degree of transparency to the contact lens image produced in Step S107. The degree of transparency assigned to the contact lens image is accomplished based on the color of each pixel (specifically the background color) of the contact lens image. Specifically, controller 117 looks for the background color of the contact lens image pixels and applies a degree of transparency so that the pixels corresponding to that background color (the pixels within the contact lens shape) become invisible (because they become transparent). For example, the background color might be the same as the 111-3 contact lens holder or the bottom of the contact lens case, or it might be white. Since white generally includes 8-bit RGB values of 255, 255, and 255, in the case of pixel values that can be distinguished as white (for example, each RGB value is 245 or greater), controller 117 applies a degree of transparency to make the pixel transparent. In addition, the 117 controller grants a transparency level higher than a predefined threshold (e.g., 100%) until all pixels outside the circle (a circle defined by a radius and center) of the contact lens shape are transparent. Furthermore, the 117 controller can grant an additional degree of transparency to pixels within the contact lens shape. For example, the 117 controller can change the color of pixels within the contact lens shape to a grayscale value and grant a degree of transparency proportional to that grayscale value for each pixel. For example, the controller gives 117 degrees of transparency from 0% (opaque) if the grayscale color value is zero (black) and gives a degree of transparency from 30% if the grayscale color value is thirty (for example, a yellow or blue grayscale value). After a transparency rating is assigned, controller 117 stores the contact lens image—which has been assigned a transparency rating—in storage unit 107 (step S109). Controller 117 can temporarily store the contact lens image in volatile memory or permanently store it in non-volatile memory or a large-scale storage medium. The contact lens image is stored with data including the center and radius of the 111-5 contact lens. Additionally, the contact lens can be stored with its contact lens ID. A contact lens image can be retrieved through the contact lens recognition step in Figure 3, and a degree of transparency is given to the retrieved image so that a natural image can be provided in the synthesis step later. Figure 4 is a schematic diagram that explains a specific path for the eye recognition step. The eye recognition step in Figure 4 is performed by the templates in Figure 1 and is preferably accomplished by the 117 controller by controlling the other templates using a synthesis program. First, in response to a user's request for virtual contact lens mounting, the media controller transmits the request to controller 117 via input unit 101 by pressing a trigger button to capture a face image (step S200). The trigger button used here may be the same as the one in Figure 3 or a different one. Controller 117 then sends a control signal to control the first camera unit, 109, and outputs a control signal to the first camera unit, 109. Upon receiving the control signal, Camera Unit 109 captures the user's face through the optical lens and takes a photograph of the face exposed to the image sensor according to the photographic process (Step S201). Camera Unit 109 then transmits the captured face image to Control Unit 117. The captured face image is composed of a predefined number of pixels in the horizontal (X-axis) and vertical (Y-axis) directions, based on the resolution of Camera Unit 109. Pixels are best represented by color, for example, by RGB pixel values, YCbCr pixel values, or a color representation. Upon receiving the captured face image, controller 117 identifies an eye region from the image (step S203). Eye region identification is accomplished using a generally known algorithm. For example, the synthesizer program for controller 117 identifies an eye region using a waterfall classifier for face and eye detection with an attribute vector (such as the HAR attribute or the LBP attribute). While defining the eye region, controller 117 also defines the pupil region. Ideally, controller 117 should define a pupil curve to determine the pupil region. Pupil curve determination can be accomplished using an algorithm commonly used in image processing. When a curve is defined, the 117 controller identifies the points on the dividing line between the pupil and the adjacent skin (such as the eyelid, the skin under the pupil (lower eyelid)), which will be used in the synthesis, from among the points included in this curve or the points within the curve. For example, controller 117 selects three points from the line separating the upper eyelid from the pupil and three points from the line separating the pupil from the lower eyelid. Both endpoints and the center point of the line separating the pupil, where the upper eyelid (or lower brow) meets the pupil, are selected as the three points. If there is no line separating the pupil from the skin, the three points are selected from the pupil's periphery (the line separating the pupil). Then the control unit outputs 117 face images showing the eye area via display unit 113. Figure 7 is a projection showing the eye region in a face image. As can be seen from Figure 7, the face image displayed via the 113 display unit shows rectangles representing the right and left eye regions and the points indicated within the pupil regions. The points identified in step S203 are displayed as points, and these points can be modified. A media controller or user can verify that the points are in the correct positions. If the points are found to be incorrectly positioned relative to the adjacent skin, the media controller or similar device can provide input via Input Unit 101 (such as a mouse, touchpad, optical stylus, or similar device) to adjust the points' positions. Control Unit 117 receives inputs to modify the eye area (specifically, modifying the points on the pupil-skin interface) via Input Unit 101 (Step S207), modifies the corresponding point positions according to the received inputs, and outputs an image showing the modified eye area (specifically, the points on the pupil-skin interface) via Display Unit 113 (Step S209). Steps S207 and S209 can be performed repeatedly, so the points on the dividing line of the eye area can be correctly identified. Following step S209, controller 117 stores data representing the selected face image, the location of the eye region on the face image, and the points on the pupillary line of the eye region in volume 107 and terminates the operation (step S250). When controller 117 stores the data in volume 107, a user ID (public) is also stored. Data storage in volume 107 is either volatile memory, non-volatile memory, or a large-volume storage medium. Figure 5 is a diagram that illustrates a specific path for a synthesis step (step S3). The synthesis step in Figure 5 is performed by the templates in Figure 1 and is preferably accomplished by the 117 controller by controlling the other templates using a synthesis program. In response to a tuning request input from a media controller or automatically (Step S300), Controller 117 loads data referring to a contact lens image stored in Storage 107 and given a degree of transparency, the center and radius of a 111-5 contact lens, a face image, the location of an eye area and points on a dividing line, into volatile memory, or the internal memory of Controller 117 or similar (Step S301). The 117 control unit automatically corrects the contact lens image according to the pupil area of the facial image using points on the dividing line (step S303). Automatic correction can be omitted here if needed or if the design is changed. Next, controller 117 determines the pupil-corresponding circle by calculating the center and radius of the circle representing the pupil using points on the dividing line of the face image (step S305). The determination of the pupil-corresponding circle relative to the face image is thus accomplished. Specifically, controller 117 calculates the center and radius of the circle using points on the sides (e.g., three points), rather than the midpoints, from among the points on the dividing line. The center of the circle corresponding to the pupil can be calculated using the normal to each point, and the radius is calculated as the distance of each point from the center. The circle corresponding to the pupil will be denoted as C0. Control Unit 117 reduces the contact lens image (specifically, the contact lens shape circle) to the size of the circle corresponding to the pupil defined in step S305 using the points on the dividing line (step S307). Consequently, the contact lens image is resized to at least the same size as the pupil. Although the contact lens image is reduced in size because its resolution is higher than that of the pupil included in the face image, step S307 can be omitted if necessary. The contact lens image is resized, and the face image and the contact lens image can be synthesized per pixel by aligning the center of the contact lens image with the center of the pupil area of the face image. Since a degree of transparency is already assigned to the contact lens image pixels, a naturally composed image can be created. Here, the shape of the eye (especially the pupil) of a photographed face changes based on the situation at the time the photo was taken, even for the same user. A pupil image might be captured that is close to a round shape at one point in time, and close to an oval shape at another. For a natural-looking image, the 117 controller should consider the shape of the photographed eye and synchronize the contact lens image with only the recognized pupil area along the dividing line. To achieve this, the controller calculates 117 circles and radii using specific points from among those defined for the eye region of the facial image, and calculates another circle and radius using other points (step S309). For example, the points defined for the first two circles and radii are three points on the dividing line where the upper eyelid meets the pupil, and the points defined for the other two circles and radii are three points on the dividing line where the lower eyelid meets the pupil. A circle formed by the points defined for the first two circles and radii will be referred to as C1, and a circle formed by the points defined for the other two circles and radii will be referred to as C2. Figure 8 is a projection showing the circles identified in the contact lens and face image synthesis step. As can be seen from Figure 8, the centers and radii of circles C1 and C2 can be calculated using three-point normals. The example in Figure 8 is performed for the eye region and the face image. As can be seen from Figure 8, C0, a circle corresponding to the pupil region, is also shown. Control unit 117 identifies an area where the pupil is hidden by adjacent skin using circuits C1 and C2 (in addition, circuit C0) (step S311). The identified area is used to apply an additional degree of transparency to the contact lens area circuit of the contact lens image. Figure 9 is a projection showing an example of defining an area to grant an additional degree of transparency using the defined circles. As shown in Figure 9, the 117 control unit defines a region that excludes the intersection of circles C1 and C2 from the rectangular area in the contact lens image of a reduced size or the rectangular area of a corresponding pupil. The defined region is generally composed of two areas: one showing the portion where the pupil is obstructed by the upper eyelid, and the other showing the portion where the pupil is obstructed by the lower eyelid. More specifically, the 117 controller compares the coordinate points of the X (horizontal) and Y (vertical) axes that make up circle C1 with a Y coordinate that includes the same X coordinate for each pixel in the rectangular region. If the Y coordinate of a pixel in the rectangular region is greater than the corresponding Y coordinate of C1, the 117 controller identifies the pixel as a region that should be given a degree of transparency to make the corresponding pixel transparent. The 117 controller can identify pixels with a larger Y-coordinate in the rectangular region as pixels that need to be processed transparently simply by comparing the Y-coordinates that make up C1 with the corresponding Y-coordinates of the rectangular region at the same X-coordinate. The coordinate points that make up the circle C1 can be calculated using the center point and radius of C1. Similarly, Controller 117 compares all the coordinate points of the X (horizontal) and Y (vertical) axes that make up circle C2 with a Y coordinate that includes the same X coordinate for each pixel in the rectangular region. If the Y coordinate of a pixel in the rectangular region is smaller than a corresponding Y coordinate of C2, Controller 117 identifies the pixel as a region that should be given a degree of transparency to make the corresponding pixel transparent. The 117 controller can identify pixels with a smaller Y-coordinate in the rectangular region as pixels that need to be processed transparently simply by comparing the Y-coordinates that make up C2 with the corresponding Y-coordinates of the rectangular region at the same X-coordinate. The coordinate points that make up the circle C2 can be calculated using the center point and radius of C2. Area selection can also be achieved using C0. For example, it's possible to compare only the pixels within C0 to the coordinate points that make up C1 and C2, and then select a transparent area to be processed within C0 based on this comparison. The comparison and selection method is the same as the method using C1, C2, and the rectangular area described above. After selecting the regions, the controller applies 117 additional transparency levels to the pixels of the contact lens image corresponding to the selected region(s) using C1, C2, and C0 (step S313). The transparency level here is set to a value that does not reveal the corresponding pixels of the contact lens image (i.e., it is set to be transparent), and is given, for example, a transparency level of 100%. The transparency rating for the reduced contact lens image is achieved in step S307. A transparency rating (value) is assigned to the pixels corresponding to the selected areas to make them transparent. The selected area is an area selected within C0 or an area selected within the rectangular area including C0. By providing an additional degree of transparency, the 117 control unit does not display contact lens image pixels corresponding to pupil portions obscured by adjacent skin, when synthesizing the contact lens image with the eye area of the face image. After the additional transparency level is applied, controller 117 synthesizes the contact lens image, which has been given a transparency level, with the face image based on the applied transparency level (step S315). Specifically, controller 117 aligns the pupil center of the face image with the circle center of the contact lens image. The controller then overlaps each pixel with a corresponding pixel based on the applied transparency value. Through these processes, the 117 control unit synthesizes the contact lens image that has been adjusted to the pupil size and gives it a degree of transparency based on the shape of the pupil at the pupil of the eye area identified from the facial image. If the transparency of a specific pixel in the contact lens is 0% (opaque), a pixel representing the contact lens image is displayed on the composite image. If the transparency of a specific pixel in the 111-5 contact lens is 100% (transparent), a corresponding pixel representing the face image is displayed on the composite image. If the transparency of a specific pixel in the 111-5 contact lens is 30%, the color value of a pixel representing the face image is added to the color value of the specific pixel by weighting values of 70% and 30%, and the weighted color value is displayed on the pixel's composite image. Next, the 117 controller completes the synthesis process (step S350) and outputs the composed image via the display unit (step S4). Through the process described above, natural and variable images of contact lens wear can be provided based on the varying shapes of the eyes. Industrial applicability Because skilled artisans can make various substitutions, modifications, and alterations without going beyond the scope of the present invention, the present invention described above is not limited to the previously mentioned models and attached figures.
Claims
<h2 style=";text-align:left;direction:ltr">Protection elements<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 1- Virtual contact lens fitting method includes the following steps:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A contact lens mounted on a contact lens holder is photographed by a second optical lens in a bag forming a dark room.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Identify the contact lens area from the captured image of the contact lens,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Gives a degree of transparency to the pixels corresponding to the contact lens area based on the color of the contact lens holder or the color of the contact lens case,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Capture a face with the first optical lens;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Determine an eye area from a captured face image by selecting a set of points whose position is set on a dividing line between the pupil of the eye and the skin near the pupil;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Synthesizes the contact lens image produced by the second optical lens with the pupil of a specific eye area based on the degree of transparency given to the contact lens image, and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Display the composite image,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">The synthesis step includes the following steps: defining a circle corresponding to the pupil using a set of points, reducing the resulting contact lens image using the size of the circle defined by the set of points;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Granting transparency to the pixels of a region with the exception of the intersection of a first circle defined by the first points among the set of points and a second circle defined by the second points among the set of points, in the reduced contact lens image;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The first points are points on the dividing line where the upper eyelid meets the pupil from among the group of points, and the second points are points on the dividing line where the lower eyelid meets the pupil from among the group of points.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 2- The method according to claim 1, wherein the step of capturing a contact lens image is accomplished when light is emitted from a set of LED lights provided in the dark room and the light is diffused through a diffusion plate provided in the dark room so that uniform illumination can be provided in the dark room.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">3- The method according to Clause 1, where the step of determining the contact lens area includes the following steps:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Select one or more curves from the captured image,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Determine circles according to the deviation of points on one or more curves,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Identify the largest circle among the circles selected as being the circle corresponding to the shape of the contact lens, and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Produce a contact lens image that includes the specified circle, where<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The step of giving a degree of transparency includes the steps of giving a degree of transparency based on the colors of the pixels in the selected circle so that they correspond to the contact lens,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Grants a degree of transparency greater than a predefined threshold value to pixels outside the circle.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 4. The method according to claim 1, wherein the synthesis step includes - after the step of granting the transparency attribute to pixels of a region, the step of aligning a circle center of the reduced contact lens with a corresponding center of the pupil and synthesising by overlapping all the pixels after the alignment.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">5- A computer program to implement the steps of the virtual contact lens fitting method according to protection element 1.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 6- Virtual contact lens fitting device including:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A first camera unit includes a first optical lens for capturing a face image,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> a second camera unit comprising a second optical lens and a contact lens holder and being configured in a bag forming a dark chamber for capturing an image of a contact lens mounted on the contact lens holder through the second optical lens;<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> A control unit for identifying a contact lens area from the captured contact lens image, assigning a degree of transparency to the pixels corresponding to the contact lens area based on the color of the contact lens holder or based on the color of the contact lens case, identifying an eye area from the captured face image, and combining the contact lens image produced by the second optical lens with the pupil of the selected eye area according to the degree of transparency assigned to the contact lens image, and<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> Display unit for displaying the composite image,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">Whereas: In order to determine the eye area, the control unit determines a set of points whose position is set on a dividing line between the pupil of the eye and the skin adjacent to the pupil of the eye from the captured face image,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> In order to synthesize the image, the controller defines a circle corresponding to the pupil of the eye using a set of points, reduces the resulting contact lens image using the size of the circle defined by the set of points, and also assigns the transparency attribute to the pixels of an area while excluding the intersection of a first circle defined by the first points among the set of points and a second circle defined by the second points among the set of points, in the reduced contact lens image,<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The first points are points on the dividing line where the upper eyelid meets the pupil from among the group of points, and the second points are points on the dividing line where the lower eyelid meets the pupil from among the group of points.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">7- The method according to claim 6, wherein the second camera unit further includes a plurality of LEDs for emitting light and a diffusion plate for diffusing the light, and the control unit captures the image of the contact lens through the second optical lens in a light illumination environment using the plurality of LEDs and the diffusion plate.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 8. The method according to claim 6, wherein in order to determine the contact lens area, the control unit determines one or more curves from the captured contact lens image, determines circles according to the deviation of the points on each of the one or more curves, determines the largest circle among the determined circles as a circle corresponding to the shape of the contact lens, produces a contact lens image comprising the determined circle, and in order to grant a degree of transparency, the control unit grants a degree of transparency based on the colors of the pixels in the determined circle so that they correspond to the contact lens, and grants a degree of transparency greater than a predetermined threshold value to the pixels outside the circle.<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> 9- The means according to Clause 6, also includes:<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr">A storage unit for storing the contact lens image and a contact lens ID corresponding to the contact lens image, and an input unit for receiving the contact lens ID, wherein<h2 style=";text-align:left;direction:ltr"> <h2 style=";text-align:left;direction:ltr"> The control unit searches for a contact lens image stored in the storage unit using the contact lens ID received via the input unit and synthesizes a contact lens region of the contact lens image searched from the storage unit in order to synthesize the image with the pupil of the eye region.
