CN111856759B - Lens parameter adjusting method and device - Google Patents
Lens parameter adjusting method and device Download PDFInfo
- Publication number
- CN111856759B CN111856759B CN202010746578.7A CN202010746578A CN111856759B CN 111856759 B CN111856759 B CN 111856759B CN 202010746578 A CN202010746578 A CN 202010746578A CN 111856759 B CN111856759 B CN 111856759B
- Authority
- CN
- China
- Prior art keywords
- brightness
- lens
- target
- parameter
- sub
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 239000011521 glass Substances 0.000 claims abstract description 71
- 210000001508 eye Anatomy 0.000 claims abstract description 55
- 238000000605 extraction Methods 0.000 claims description 5
- 238000010295 mobile communication Methods 0.000 abstract description 3
- 235000002673 Dioscorea communis Nutrition 0.000 description 20
- 241000544230 Dioscorea communis Species 0.000 description 20
- 208000035753 Periorbital contusion Diseases 0.000 description 20
- 230000000694 effects Effects 0.000 description 14
- 230000008569 process Effects 0.000 description 13
- 230000006870 function Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 210000000744 eyelid Anatomy 0.000 description 4
- 239000000284 extract Substances 0.000 description 3
- 210000005252 bulbus oculi Anatomy 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 239000003086 colorant Substances 0.000 description 2
- 230000001815 facial effect Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000019612 pigmentation Effects 0.000 description 2
- 239000004984 smart glass Substances 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000003796 beauty Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 230000005684 electric field Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 210000000720 eyelash Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B27/00—Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
- G02B27/01—Head-up displays
- G02B27/017—Head mounted
- G02B27/0172—Head mounted characterised by optical features
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/18—Eye characteristics, e.g. of the iris
- G06V40/19—Sensors therefor
-
- G—PHYSICS
- G02—OPTICS
- G02B—OPTICAL ELEMENTS, SYSTEMS OR APPARATUS
- G02B27/00—Optical systems or apparatus not provided for by any of the groups G02B1/00 - G02B26/00, G02B30/00
- G02B27/01—Head-up displays
- G02B27/017—Head mounted
- G02B2027/0178—Eyeglass type
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Ophthalmology & Optometry (AREA)
- Multimedia (AREA)
- Optics & Photonics (AREA)
- Eyeglasses (AREA)
Abstract
The application discloses a lens parameter adjusting method and device, and belongs to the field of mobile communication. The method comprises the following steps: acquiring a target image comprising a periocular region of eyes of a user, and extracting a periocular image corresponding to the periocular region in the target image; determining brightness parameters of each sub-region in the periocular image; adjusting lens parameters of a target lens area of the glasses corresponding to the sub-area according to the brightness parameters; the lens parameters include at least one of transparency and brightness. The embodiment of the application solves the problem that in the prior art, the appearance of the intelligent glasses is usually single.
Description
Technical Field
The application belongs to the field of mobile communication, and particularly relates to a lens parameter adjusting method and device.
Background
With the rapid development of mobile communication technology, various wearable devices gradually enter people's lives. The function of wearable equipment is also perfect gradually, not only is a hardware equipment, realizes various functions through modes such as software support and data interaction, high in the clouds interaction more, has brought great transformation to user's life, perception.
The intelligent glasses are used as wearable equipment, have the characteristics of simplicity and convenience in use, small size and the like, and have a good development prospect in recent years. In particular, smart glasses are wearable glasses devices with independent operating systems that can implement various functions such as map navigation, taking photos and videos, interacting with friends, etc. by installing software. However, in the prior art, the smart glasses only have multiple forms in terms of functions, and the appearance is generally single and has fewer varieties.
Disclosure of Invention
The embodiment of the application aims to provide a lens parameter adjusting method and device, and the problem that in the prior art, the appearance of intelligent glasses is generally single can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a method for adjusting lens parameters, where the method is applied to eyeglasses, and the method includes:
acquiring a target image comprising a periocular region of eyes of a user, and extracting a periocular image corresponding to the periocular region in the target image;
determining brightness parameters of each sub-region in the periocular image;
adjusting lens parameters of a target lens area of the glasses corresponding to the sub-area according to the brightness parameters; the lens parameters include at least one of transparency and brightness.
In a second aspect, an embodiment of the present application further provides a lens parameter adjusting device, where the lens parameter adjusting device is applied to eyeglasses, and the device includes:
the image extraction module is used for acquiring a target image comprising a periocular region of the eyes of a user and extracting a periocular image corresponding to the periocular region in the target image;
a parameter determination module for determining brightness parameters of each sub-region in the periocular image;
the parameter adjusting module is used for adjusting lens parameters of a target lens area of the glasses corresponding to the subarea according to the brightness parameters; the lens parameters include at least one of transparency and brightness.
In a third aspect, embodiments of the present application further provide an electronic device, which includes a memory, a processor, and a program or instructions stored on the memory and executable on the processor, and the processor executes the program or instructions to implement the steps in the lens parameter adjustment method described above.
In a fourth aspect, the present application also provides a readable storage medium, on which a program or instructions are stored, and when the program or instructions are executed by a processor, the program or instructions implement the steps in the lens parameter adjustment method described above.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a target image comprising a periocular region of the eyes of a user is obtained, and a periocular image corresponding to the periocular region in the target image is extracted; determining brightness parameters of each sub-area in the eye periphery image, adjusting lens parameters of a target lens area of the glasses corresponding to the sub-area according to the brightness parameters, offsetting brightness difference with other sub-areas, and improving the aesthetic degree of the glasses worn by a user.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the description of the embodiments of the present application will be briefly described below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings may be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of a method for adjusting lens parameters according to an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of a first example provided by an embodiment of the present application;
FIG. 3 illustrates a schematic diagram of a second example provided by an embodiment of the present application;
fig. 4 is a flowchart of a third example provided in an embodiment of the present application;
FIG. 5 is a block diagram of a lens parameter adjustment apparatus provided in an embodiment of the present application;
FIG. 6 shows one of the block diagrams of an electronic device provided by an embodiment of the application;
fig. 7 shows a second block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application without making any creative effort belong to the protection scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be implemented in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The lens parameter adjusting method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, an embodiment of the present application provides a method for adjusting parameters of a lens, optionally, the method may be applied to glasses, where the glasses may be wearable devices, and the method includes:
Wherein the target image comprises a periocular region of the user's eyewear; the periocular region, i.e., the area around the lens; optionally, a camera may be arranged on the glasses, and the image of the user is acquired through the camera, and facial recognition is performed to obtain the eyes of the user; then, the area around the eye, which is a predetermined distance range from the center of the eyeball, is used as the periocular area. As a first example, referring to fig. 2, a portion between a broken-line frame S1 and a broken-line frame S2 in fig. 2 is a periocular region.
After the periocular region is determined, extracting a periocular image corresponding to the periocular region in the target image; that is, the periocular image is an image of the periocular region in the target image.
It is understood that, in the embodiment of the present application, the user refers to a user wearing the eyeglasses.
Dividing the eye periphery image into a plurality of sub-regions so as to improve the accuracy of adjusting the parameters of the lens; optionally, in the process of the molecular region, a preset number of pixel points may be used as one sub-region, the eye periphery image is divided into a plurality of sub-regions, and brightness parameters are respectively determined; specifically, the brightness parameter is brightness of the sub-region, and brightness is also called brightness, which is how bright a color is. Lightness is one of three elements (hue, lightness and saturation) of color, and different colors have difference of light and shade, and the same color also has change of light and shade, for example, various colored objects generate light and shade of color due to difference of reflected light quantity of the colored objects. For eyes, areas affecting the appearance, such as dark circles and various pigmentation, are common; therefore, the brightness parameter of each sub-region in the periocular image is determined to determine whether the sub-region has a condition that affects the appearance.
After determining the brightness parameters of each sub-area, adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area based on the brightness parameters of all the sub-areas. The transparency is the transparency of the lens, and the brightness is the color brightness of the light source of the glasses.
For example, a corresponding relationship is preset, the corresponding relationship includes a target parameter value corresponding to each brightness value, and the lens parameters of the lens area are adjusted to the target parameter values; for example, taking the example that the lens parameter includes transparency, after determining the brightness parameter, according to the correspondence, a target transparency value corresponding to the brightness parameter is determined, and then the transparency of the lens area corresponding to the sub-area is adjusted to the target transparency value.
The parameters of the lenses are adjusted through the brightness parameters, so that the aesthetic degree of the intelligent glasses is improved; for example, by adjusting the parameters of the lens, the technical effect of covering the eye shadow on the eyelid of the user is achieved; or the technical effect of removing black eyes.
In the embodiment of the application, a target image comprising a periocular region of eyes of a user is obtained, and a periocular image corresponding to the periocular region in the target image is extracted; according to the brightness parameters, the lens parameters of the target lens area of the glasses corresponding to the sub-area are adjusted, brightness difference with other sub-areas is offset, and the attractiveness of the glasses worn by a user is improved. The embodiment of the application solves the problem that in the prior art, the appearance of the intelligent glasses is usually single.
Optionally, in this embodiment of the application, the step of adjusting the lens parameter of the target lens area of the glasses corresponding to the sub-area according to the brightness parameter includes:
determining brightness parameters of each sub-region in the periocular image;
determining a target parameter of the periocular image according to the brightness parameter;
and adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the target parameters and the brightness parameters.
Wherein the target parameter is used for evaluating the brightness of the whole periocular image; alternatively, the target parameter may be a mean or median of all the brightness parameters, or the like.
After determining the target parameter and the brightness parameter, for each sub-area, adjusting the lens parameter of the target lens area based on the difference between the brightness parameter of the sub-area and the target parameter; the target lens area is a lens part corresponding to the subarea in the lens; for example, for a first sub-area of the sub-areas, a portion of the lens corresponding to the first sub-area is a first lens area, and the lens parameter of the first lens area is adjusted according to a difference between the brightness parameter of the first lens area and the target parameter.
The lens parameters include at least one of transparency and brightness. When the lens parameter comprises transparency, for sub-regions having brightness lower than the target parameter, the transparency of the target lens region may be increased; otherwise, the brightness is reduced, so that the brightness around the eyes of the user can be balanced; for example, if the user has a black eye around the user's eyes, and the brightness of the sub-region of the black eye is lower than that of the other sub-regions, the transparency of the sub-region of the black eye is increased to offset the brightness difference with the other sub-regions, so as to eliminate the visual effect of the black eye, thereby playing the effect of hiding the black eye, and improving the aesthetic degree of the user wearing the glasses.
When the lens parameters include brightness, taking the black eye sub-area as an example, the brightness of the target lens area can be increased for the sub-area with brightness lower than the target parameter; otherwise, the brightness is reduced, so that the brightness around the eyes of the user can be balanced; for example, if the user has black eyes around the eyes, and the brightness of the black eye sub-region is lower than that of the other sub-regions, the brightness difference between the black eye sub-region and the other sub-regions is offset by increasing the brightness of the black eye sub-region, so as to achieve the effect of hiding the black eyes.
In an optional embodiment, a camera module is arranged on one side of the glasses facing the face of the user;
the step of acquiring an image comprising a periocular region of a user's eye comprises:
through the camera module, gather the image including the periocular region of user's eyes.
As a second example, as shown in fig. 3, a camera module C is disposed on a side of the glasses G facing the face of the user, and the camera module C is configured to collect images of the eye circumference area of the eyes of the user, so as to obtain the eye circumference images of the eye circumference area of the user in real time, and improve the wearing beauty in real time by adjusting the lens parameters.
In an alternative embodiment, where the lens parameter comprises the transparency,
the step of adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the brightness parameters includes:
determining a first brightness difference value between the brightness parameter and the target parameter;
determining a first transparency adjustment value corresponding to the first brightness difference value according to a preset corresponding relation between the brightness difference value and the transparency adjustment value;
and adjusting the transparency of the target lens area of the glasses corresponding to the sub-area according to the first transparency adjustment value.
The preset corresponding relationship includes a corresponding relationship between each brightness difference value and the transparency adjustment value. The brightness difference is obtained by subtracting the target parameter from the brightness parameter, and therefore, the brightness difference may be a positive number or a negative number, and therefore, the brightness differences having the same absolute value in the corresponding relationship have different transparency adjustment values.
The transparency adjustment value is used for adjusting the transparency of the target lens area so as to adjust the brightness of the sub-area and reduce the brightness difference between the brightness parameter of the sub-area and the target parameter. For the case that the brightness difference value is negative, namely the brightness is lower than the sub-area of the target parameter, the transparency adjustment value is positive number to increase the transparency of the target lens area; otherwise, the transparency adjustment value is a negative number so as to reduce the transparency of the target lens area and realize the brightness balance around the eyes of the user; for example, if the user has a black eye around the user's eyes, and the brightness of the sub-region of the black eye is lower than that of the other sub-regions, the transparency of the sub-region of the black eye is increased to offset the brightness difference with the other sub-regions, so as to eliminate the visual effect of the black eye, thereby playing the effect of hiding the black eye, and improving the aesthetic degree of the user wearing the glasses.
As a third example, taking the elimination of the black eye as an example, the lens parameter adjusting method provided in the embodiment of the present application includes the following steps:
in step 401, the eyewear identifies a user's periocular image.
When the glasses detect that the wearer starts to use the glasses, the micro-camera (camera module) collects the periocular images of the wearer.
According to the periocular image, firstly, the outline of the eye is identified, and then the color brightness of the periocular is calculated through a preset algorithm.
The brightness value range is between 0 and 1, 0 is the place with the lowest brightness, 1 is the place with the highest brightness, and the average value of the brightness is calculated and is used as the target parameter.
And determining a transparency adjustment value of the lens area of the corresponding lens according to the brightness difference value of each subarea, and adjusting the lens area according to the transparency adjustment value.
Optionally, the lens may be a Light Emitting Diode (LED), and in the process of adjusting the transparency, different electric fields may be set for different areas of the liquid crystal lens according to different transparency adjustment values, so as to increase the transparency of the lens correspondingly in an area where the brightness is lower than the average value, and conversely, decrease the transparency, balance the brightness around the eye of the wearer, and achieve the technical effect of hiding the black eye.
In an alternative embodiment, where the lens parameter comprises the brightness,
the step of adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the brightness parameters comprises:
determining reference brightness of a reference sub-region corresponding to the target parameter in the sub-region;
if the brightness parameter of the sub-area is lower than the target parameter, adjusting the brightness of the target lens area of the glasses corresponding to the sub-area to the reference brightness.
The reference sub-region is a sub-region with brightness parameters closest to the target parameters; determining reference brightness of a reference sub-area, and for the sub-area with brightness parameters lower than the target parameters, adjusting the brightness of a target lens area of the glasses corresponding to the sub-area to be the reference brightness; that is, the sub-region closest to the target parameter is selected as the standard region, and the brightness of the sub-region with brightness lower than that of the standard region is adjusted to the brightness of the standard region to balance the brightness around the eyes of the user; for example, if the user has black eyes around the eyes, and the brightness of the black eye sub-region is lower than that of the other sub-regions, the brightness difference between the black eye sub-region and the other sub-regions is offset by increasing the brightness of the black eye sub-region, so as to achieve the effect of hiding the black eyes.
Taking the example of eliminating the dark eye circles, for the sub-area with brightness lower than the target parameter, the lens area corresponding to the lens emits light with specified brightness, and the specified brightness is the reference brightness of the reference sub-area; thus, the lower the brightness, the brighter the light emitted from the lens, thereby achieving the effect of hiding the dark circles.
In an optional embodiment, the method further comprises:
identifying a target sub-region of the sub-regions; target sub-areas such as eyelid areas, eyelash areas, etc.;
determining preset lens parameters corresponding to the target subarea; the preset lens parameters may include a preset value for each lens parameter; the lens parameters can also comprise the color of the LED light source and the like besides the transparency and the brightness;
controlling the lens parameters of the target lens area of the glasses corresponding to the target subarea to be the preset lens parameters so as to improve the aesthetic degree of wearing the glasses; for example, if the target sub-area includes an eyelid area, the lens parameters include light of a preset color, and the light of the eye shadow color is emitted through the LED light source, so that the technical effect of presenting the eye shadow when the user wears the eye shadow is achieved, and the wearing aesthetic degree is improved.
In the embodiment of the application, a target image comprising a periocular region of eyes of a user is obtained, and a periocular image corresponding to the periocular region in the target image is extracted; determining brightness parameters of each sub-region in the periocular image; according to the brightness parameters, the lens parameters of the target lens area of the glasses corresponding to the sub-area are adjusted, brightness difference with other sub-areas is offset, and the attractiveness of the glasses worn by a user is improved.
With the above description of the lens parameter adjusting method provided in the embodiment of the present application, the lens parameter adjusting device provided in the embodiment of the present application will be described with reference to the accompanying drawings.
It should be noted that, in the lens parameter adjusting method provided in the embodiment of the present application, the executing main body may be a lens parameter adjusting device, or a control module used for executing the lens parameter adjusting method in the lens parameter adjusting device. In the embodiments of the present application, a lens parameter adjusting method performed by a lens parameter adjusting device is taken as an example to describe the lens parameter adjusting method provided in the embodiments of the present application.
Referring to fig. 5, an embodiment of the present application further provides a lens parameter adjusting apparatus 500, where the apparatus 500 is applied to eyeglasses, and includes:
the image extraction module 501 is configured to acquire a target image including a periocular region of an eye of a user, and extract a periocular image corresponding to the periocular region in the target image.
Wherein the target image comprises a periocular region of the user's glasses; the periocular region, i.e., the area around the lens; optionally, a camera may be arranged on the glasses, and the image of the user is acquired through the camera, and facial recognition is performed to obtain the eyes of the user; then, the area around the eye, which is a predetermined distance range from the center of the eyeball, is used as the periocular area. As a first example, referring to fig. 2, a portion between the dashed line boxes S1 and S2 in fig. 2 is a periocular region.
After the periocular region is determined, extracting a periocular image corresponding to the periocular region in the target image; that is, the periocular image is an image of the periocular region in the target image.
It is understood that, in the embodiment of the present application, the user refers to a user wearing the eyeglasses.
A parameter determining module 502, configured to determine brightness parameters of each sub-region in the periocular image;
dividing the eye periphery image into a plurality of subareas to improve the precision of adjusting the lens parameters; optionally, in the process of the molecular region, a preset number of pixel points may be used as one sub-region, the eye periphery image is divided into a plurality of sub-regions, and brightness parameters are respectively determined; specifically, the brightness parameter is brightness of the sub-region, and brightness is also called brightness, which is how bright a color is. Lightness is one of three elements (hue, lightness and saturation) of color, and different colors have difference of light and shade, and the same color also has change of light and shade, for example, various colored objects generate light and shade of color due to difference of reflected light quantity of the colored objects. For eyes, dark circles, various pigmentation and other areas affecting the appearance are common; therefore, the brightness parameter of each sub-region in the eye periphery image is determined to determine whether the sub-region has a condition that affects the appearance.
A parameter adjusting module 503, configured to adjust lens parameters of a target lens area of the glasses corresponding to the sub-area according to the brightness parameter; the lens parameters include at least one of transparency and brightness.
After determining the brightness parameters of each sub-area, adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area based on the brightness parameters of all the sub-areas. The transparency is the transparency of the lens, and the brightness is the color brightness of the light source of the glasses.
For example, a corresponding relationship is preset, the corresponding relationship includes a target parameter value corresponding to each brightness value, and the lens parameters of the lens area are adjusted to the target parameter values; for example, taking the example that the lens parameter includes transparency, after determining the brightness parameter, according to the correspondence, a target transparency value corresponding to the brightness parameter is determined, and then the transparency of the lens area corresponding to the sub-area is adjusted to the target transparency value.
The parameters of the lenses are adjusted through the brightness parameters, so that the aesthetic degree of the intelligent glasses is improved; for example, by adjusting the parameters of the lens, the technical effect of covering the eye shadow on the eyelid of the user is achieved; or, the technical effect of removing black eye circles.
Optionally, in this embodiment of the present application, the parameter adjusting module 503 includes:
a first determining sub-module, configured to determine a brightness parameter of each sub-region in the periocular image;
the second determining submodule is used for determining a target parameter of the periocular image according to the brightness parameter;
and the adjusting submodule is used for adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the target parameters and the brightness parameters.
Optionally, in an embodiment of the present application, the adjusting sub-module includes:
a difference determination unit for determining a first brightness difference between the brightness parameter and the target parameter;
an adjustment value determining unit, configured to determine a first transparency adjustment value corresponding to the first brightness difference value according to a preset correspondence between the brightness difference value and the transparency adjustment value;
and the adjusting value determining unit is used for adjusting the transparency of the target lens area of the glasses corresponding to the sub-area according to the first transparency adjusting value.
Optionally, in an embodiment of the present application, the adjusting sub-module includes:
the brightness determining unit is used for determining the reference brightness of a reference sub-area corresponding to the target parameter in the sub-area;
a second adjusting unit, configured to adjust the brightness of the target lens area of the glasses corresponding to the sub-area to be the reference brightness if the brightness parameter of the sub-area is lower than the target parameter.
Optionally, the lens parameter adjusting apparatus 500 further comprises:
an adjustment module for identifying a target sub-region of the sub-regions;
determining preset lens parameters corresponding to the target subarea;
and controlling the lens parameters of the target lens area of the glasses corresponding to the target subarea to be the preset lens parameters.
Optionally, a camera module is arranged on one side of the glasses facing the face of the user;
the image extraction module 501 includes:
and the acquisition submodule is used for acquiring an image of a periocular region including eyes of a user through the camera module.
In the embodiment of the present application, the image extraction module 501 obtains a target image including a periocular region of an eye of a user, and extracts a periocular image corresponding to the periocular region in the target image; the parameter determination module 502 determines the brightness parameter of each sub-region in the periocular image; the parameter adjusting module 503 adjusts the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the brightness parameters, so as to offset the brightness difference with other sub-areas, thereby improving the aesthetic degree of the glasses worn by the user.
The lens parameter adjusting device in the embodiment of the present application may be a device, and may also be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiment of the present application is not particularly limited.
The lens parameter adjusting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The lens parameter adjusting device provided in the embodiment of the present application can implement each process implemented by the lens parameter adjusting device in the method embodiments of fig. 1 to fig. 4, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and executable on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the above lens parameter adjustment method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 7 is a schematic hardware structure diagram of an electronic device 700 for implementing various embodiments of the present application;
the electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The input unit 704 includes a camera module in this embodiment, and is configured to acquire a target image including a periocular region of an eye of a user, and extract a periocular image corresponding to the periocular region in the target image;
a processor 710 for determining a brightness parameter for each sub-region in the periocular image;
adjusting lens parameters of a target lens area of the glasses corresponding to the sub-area according to the brightness parameters; the lens parameters include at least one of transparency and brightness.
Optionally, a processor 710 for determining brightness parameters of each sub-region in the periocular image;
determining a target parameter of the periocular image according to the brightness parameter;
and adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the target parameters and the brightness parameters.
Optionally, a processor 710 for determining a first brightness difference value between the brightness parameter and the target parameter if the lens parameter comprises the transparency;
determining a first transparency adjustment value corresponding to the first brightness difference value according to a preset corresponding relation between the brightness difference value and the transparency adjustment value;
and adjusting the transparency of the target lens area of the glasses corresponding to the sub-area according to the first transparency adjustment value.
Optionally, the processor 710 is configured to determine a reference brightness of a reference sub-area corresponding to the target parameter in the sub-area if the lens parameter includes the brightness;
if the brightness parameter of the sub-area is lower than the target parameter, adjusting the brightness of the target lens area of the glasses corresponding to the sub-area to be the reference brightness.
Optionally, a processor 710 for identifying a target sub-region of said sub-regions;
determining preset lens parameters corresponding to the target subarea;
and controlling the lens parameters of the target lens area of the glasses corresponding to the target subarea to be the preset lens parameters.
Optionally, the camera module is arranged on one side of the glasses facing the face of the user;
the camera module is used for acquiring images of periocular regions including the eyes of the user.
In the embodiment of the application, a target image comprising a periocular region of eyes of a user is obtained, and a periocular image corresponding to the periocular region in the target image is extracted; determining brightness parameters of each sub-region in the eye periphery image, adjusting lens parameters of a target lens region of the glasses corresponding to the sub-region according to the brightness parameters, offsetting brightness difference with other sub-regions, and improving the aesthetic degree of the glasses worn by a user.
The embodiments of the present application further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above lens parameter adjustment method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above lens parameter adjustment method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one of 8230, and" comprising 8230does not exclude the presence of additional like elements in a process, method, article, or apparatus comprising the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the present embodiments are not limited to those precise embodiments, which are intended to be illustrative rather than restrictive, and that various changes and modifications may be effected therein by one skilled in the art without departing from the scope of the appended claims.
Claims (8)
1. A lens parameter adjusting method is applied to glasses, and is characterized by comprising the following steps:
acquiring a target image comprising a periocular region of eyes of a user, and extracting a periocular image corresponding to the periocular region from the target image;
determining brightness parameters of each sub-region in the periocular image;
adjusting lens parameters of a target lens area of the glasses corresponding to the subarea according to the brightness parameters; the lens parameters comprise at least one of transparency and brightness;
when the lens parameter includes the brightness, the step of adjusting the lens parameter of the target lens area of the glasses corresponding to the sub-area according to the brightness parameter includes:
determining the reference brightness of a reference sub-area corresponding to the target parameter in the sub-area; the target parameter is the mean value or median of the lightness parameter of each sub-region;
if the brightness parameter of the sub-area is lower than the target parameter, adjusting the brightness of the target lens area of the glasses corresponding to the sub-area to be the reference brightness.
2. The lens parameter adjusting method according to claim 1, wherein the step of adjusting the lens parameter of the target lens area of the glasses corresponding to the sub-area according to the brightness parameter comprises:
determining brightness parameters of each sub-region in the periocular image;
determining a target parameter of the periocular image according to the brightness parameter;
and adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the target parameters and the brightness parameters.
3. The lens parameter adjustment method according to claim 2, wherein, in the case where the lens parameter includes the transparency,
the step of adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the brightness parameters comprises:
determining a first brightness difference value between the brightness parameter and the target parameter;
determining a first transparency adjustment value corresponding to the first brightness difference value according to a preset corresponding relation between the brightness difference value and the transparency adjustment value;
and adjusting the transparency of the target lens area of the glasses corresponding to the sub-area according to the first transparency adjustment value.
4. The lens parameter adjustment method according to claim 1, characterized in that the method further comprises:
identifying a target sub-region of the sub-regions;
determining preset lens parameters corresponding to the target subarea;
and controlling the lens parameters of the target lens area of the glasses corresponding to the target subarea to be the preset lens parameters.
5. A lens parameter adjusting device applied to eyeglasses, which is characterized by comprising:
the image extraction module is used for acquiring a target image comprising a periocular region of the eyes of a user and extracting a periocular image corresponding to the periocular region in the target image;
a parameter determination module for determining brightness parameters of each sub-region in the periocular image;
the parameter adjusting module is used for adjusting lens parameters of a target lens area of the glasses corresponding to the subarea according to the brightness parameters; the lens parameters comprise at least one of transparency and brightness;
in a case where the lens parameter includes the brightness, the parameter adjustment module includes:
the brightness determining unit is used for determining the reference brightness of a reference sub-area corresponding to the target parameter in the sub-area; the target parameter is the mean value or median of the brightness parameters of each sub-region;
a second adjusting unit, configured to adjust, if the brightness parameter of the sub-area is lower than the target parameter, the brightness of the target lens area of the glasses corresponding to the sub-area to be the reference brightness.
6. The lens parameter adjustment device of claim 5, wherein the parameter adjustment module comprises:
a first determining sub-module, configured to determine a brightness parameter of each sub-region in the periocular image;
the second determining submodule is used for determining a target parameter of the periocular image according to the brightness parameter;
and the adjusting submodule is used for adjusting the lens parameters of the target lens area of the glasses corresponding to the sub-area according to the target parameters and the brightness parameters.
7. The lens parameter adjustment device of claim 6, wherein, in the case where the lens parameter comprises the transparency,
the adjustment submodule includes:
a difference determination unit for determining a first brightness difference between the brightness parameter and the target parameter;
an adjustment value determining unit, configured to determine a first transparency adjustment value corresponding to the first brightness difference value according to a preset correspondence between the brightness difference value and the transparency adjustment value;
and the adjusting value determining unit is used for adjusting the transparency of the target lens area of the glasses corresponding to the sub-area according to the first transparency adjusting value.
8. The lens parameter adjustment device of claim 5, further comprising:
an adjustment module for identifying a target sub-region of the sub-regions;
determining preset lens parameters corresponding to the target subarea;
and controlling the lens parameters of the target lens area of the glasses corresponding to the target subarea to be the preset lens parameters.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010746578.7A CN111856759B (en) | 2020-07-29 | 2020-07-29 | Lens parameter adjusting method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010746578.7A CN111856759B (en) | 2020-07-29 | 2020-07-29 | Lens parameter adjusting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111856759A CN111856759A (en) | 2020-10-30 |
CN111856759B true CN111856759B (en) | 2022-12-27 |
Family
ID=72945343
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010746578.7A Active CN111856759B (en) | 2020-07-29 | 2020-07-29 | Lens parameter adjusting method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111856759B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114415372B (en) * | 2021-12-24 | 2023-08-04 | 歌尔科技有限公司 | AR (augmented reality) glasses contrast control method, storage medium and AR glasses |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552097A (en) * | 2020-07-13 | 2020-08-18 | 南京微纳科技研究院有限公司 | Glasses, eye imaging method and device, electronic equipment and storage medium |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202404323U (en) * | 2012-01-17 | 2012-08-29 | 北京启明视嘉眼镜有限公司 | Beautifying spectacle lens |
CN110873970A (en) * | 2018-08-31 | 2020-03-10 | 党凤瑶 | Eye-protecting glasses |
CN110618530A (en) * | 2019-05-22 | 2019-12-27 | 上海猫虎网络科技有限公司 | Novel AR (augmented reality) glasses capable of dynamically adjusting transparency |
CN110727109A (en) * | 2019-10-18 | 2020-01-24 | 蒂姆维澳(上海)网络技术有限公司 | AR glasses and control method thereof |
-
2020
- 2020-07-29 CN CN202010746578.7A patent/CN111856759B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552097A (en) * | 2020-07-13 | 2020-08-18 | 南京微纳科技研究院有限公司 | Glasses, eye imaging method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111856759A (en) | 2020-10-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12073509B2 (en) | Spatially-resolved dynamic dimming for augmented reality device | |
CN110929651B (en) | Image processing method, image processing device, electronic equipment and storage medium | |
CN109993115B (en) | Image processing method and device and wearable device | |
CN110113534B (en) | Image processing method, image processing device and mobile terminal | |
CN110168562B (en) | Depth-based control method, depth-based control device and electronic device | |
CN107077751B (en) | Virtual fitting method and device for contact lenses and computer program for implementing method | |
US20160110846A1 (en) | Automatic display image enhancement based on user's visual perception model | |
CN104766590A (en) | Head-mounted display device and backlight adjusting method thereof | |
US10964070B2 (en) | Augmented reality display method of applying color of hair to eyebrows | |
CN109785228B (en) | Image processing method, image processing apparatus, storage medium, and server | |
TW201737237A (en) | Electronic device, system and method for adjusting display device | |
CN103945104A (en) | Information processing method and electronic equipment | |
CN106941588B (en) | Data processing method and electronic equipment | |
CN105005390A (en) | Terminal adjusting method, terminal adjusting device, and terminal | |
CN106157930A (en) | Brightness adjusting method based on wear-type visual device and device | |
CN109729281A (en) | Image processing method, device, storage medium and terminal | |
CN114138215B (en) | Display method and related equipment | |
CN112289278A (en) | Screen brightness adjusting method, screen brightness adjusting device and electronic equipment | |
CN113010126A (en) | Display control method, display control device, electronic device, and medium | |
CN110473156B (en) | Image information processing method and device, storage medium and electronic equipment | |
CN111856759B (en) | Lens parameter adjusting method and device | |
CN111179877B (en) | Screen display effect adjusting method, mobile device and storage device | |
CN111127367A (en) | Method, device and system for processing face image | |
CN117785357A (en) | Information display method, information display device, electronic equipment and computer readable storage medium | |
CN111968605A (en) | Exposure adjusting method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |