CN113723326A - Optical compensation method and device, computer device and storage medium - Google Patents

Optical compensation method and device, computer device and storage medium Download PDF

Info

Publication number
CN113723326A
CN113723326A CN202111031911.7A CN202111031911A CN113723326A CN 113723326 A CN113723326 A CN 113723326A CN 202111031911 A CN202111031911 A CN 202111031911A CN 113723326 A CN113723326 A CN 113723326A
Authority
CN
China
Prior art keywords
light
compensation
brightness parameter
mirror
real
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111031911.7A
Other languages
Chinese (zh)
Inventor
邵明绪
安凯
王妍
李谈
张建华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Shijiusui Information Technology Co ltd
Original Assignee
Xi'an Tiantong Digital Technology Co ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xi'an Tiantong Digital Technology Co ltd filed Critical Xi'an Tiantong Digital Technology Co ltd
Priority to CN202111031911.7A priority Critical patent/CN113723326A/en
Publication of CN113723326A publication Critical patent/CN113723326A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/11Controlling the light source in response to determined parameters by determining the brightness or colour temperature of ambient light
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/105Controlling the light source in response to determined parameters
    • H05B47/115Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings
    • H05B47/125Controlling the light source in response to determined parameters by determining the presence or movement of objects or living beings by using cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection

Abstract

The invention provides an optical compensation method and device, a computer device and a storage medium, wherein the method comprises the steps of obtaining the light transmittance within a preset frequency range, generating a compensation brightness parameter according to the ambient light illumination and the light transmittance, and controlling a light supplement light source to emit compensation light to the front side of a semi-transparent semi-reflective mirror of an intelligent mirror, wherein the brightness parameter of the compensation light is the compensation brightness parameter, and the frequency of the compensation light is within the preset frequency range. The device is used for realizing the optical compensation method. The invention also provides a computer device and a storage medium for realizing the method. The invention solves the problem that the color temperature difference between the face seen by a user from the semi-transparent semi-reflecting mirror and the face seen by a normal total reflecting mirror is larger in the related technology.

Description

Optical compensation method and device, computer device and storage medium
Technical Field
The present invention relates to the field of optical compensation technologies, and in particular, to an optical compensation method and an apparatus for implementing the method, and further, to a computer apparatus and a storage medium for implementing the method.
Background
With the progress of science and technology, technicians add various functions on the basis of a common mirror, and the richer requirements of users are met. The intelligent mirror is an intelligent terminal device which can run application programs, has an independent application store, supports interaction modes such as voice recognition, gesture recognition and multi-point touch control, and can provide rich functions for multiple users.
The cosmetic mirror is a daily article which is commonly used, the existing cosmetic mirror is numerous in types, and functions are more and more diversified.
Beautiful mirror with show function like appearing in recent years, including the casing, fix the semi-transparent semi-reflecting mirror on the casing to and set up the display screen in the semi-transparent semi-reflecting mirror is inboard, when the user uses this kind of beautiful mirror, be in the outside of semi-transparent semi-reflecting mirror, can see the face and the makeup auxiliary information that the display screen shows by the semi-transparent semi-reflecting mirror reflection from the outside of semi-transparent semi-reflecting mirror, thereby play the effect of supplementary makeup, promote user experience.
However, in order to realize the combination of normal mirror reflection and display functions, the cosmetic mirror uses a half-mirror, and the difference of the transmission degree of the mirror body to light with different frequencies is large, so that the difference of color temperature between the face seen by the user through the half-mirror and the face seen by the normal total reflector is large, and the user experience effect is very poor.
As shown in fig. 1, fig. 1 is a schematic view of an application scenario of a cosmetic mirror in the prior art, and as shown in fig. 1, a cosmetic mirror 0 includes a half mirror 01 and a display screen 02 disposed on a back side N1 of the half mirror 01, when a user uses the cosmetic mirror 0, the user is located on a front side P1 of the half mirror 01, and the user can see a face reflected by the half mirror 0 and makeup auxiliary information displayed on the display screen 02 from a front side P1 of the half mirror 01. Since the half mirror 01 has a large difference in the degree of transmission of light of different frequencies, the color temperature difference between the face seen by the user from the half mirror 01 and the face seen by the normal full mirror is large.
Disclosure of Invention
A first object of the present invention is to provide an optical compensation method, which can solve the problem in the prior art that the color temperature difference between the face viewed by a user through a half-mirror and the face viewed through a normal full-mirror is large.
A second object of the present invention is to provide an optical compensation apparatus applied to the above optical compensation method.
A third object of the present invention is to provide a computer apparatus capable of implementing the above optical compensation method.
A fourth object of the present invention is to provide a storage medium that can implement the above optical compensation method when read and executed by a processor.
In order to achieve the first object, the present invention provides an optical compensation method, which includes detecting an ambient light illuminance of an intelligent mirror; acquiring the light transmittance of a preset frequency range; generating a compensation brightness parameter according to the ambient illuminance and the light transmittance; and controlling a light supplementing light source to emit compensation light to the side where the front surface of the semi-transparent and semi-reflective mirror of the intelligent mirror is located, wherein the brightness parameter of the compensation light is the compensation brightness parameter, and the frequency of the compensation light is the preset frequency range.
In a further aspect, the generating a compensation brightness parameter according to the ambient light illuminance and the light transmittance includes: acquiring the illuminance at a first preset position in a luminous area of the light supplement light source in a luminous state of the light supplement light source, wherein the illuminance is a brightness parameter of the light supplement light source when the ambient illuminance is achieved; and generating the compensation brightness parameter according to the light-emitting brightness parameter and the light transmittance, wherein the compensation brightness parameter is positively correlated with the light-emitting brightness parameter and the transmittance.
In a further aspect, the generating the compensated brightness parameter according to the brightness parameter and the transmittance includes: determining the compensation brightness parameter according to a first preset formula, wherein the first preset formula is expressed as formula (1):
B=X×F×a (1)
wherein B is the compensation brightness parameter, X is an adjustment coefficient, F is the light-emitting brightness parameter, a is the light transmittance, and the adjustment coefficient is any value between 0.5 and 2.
In a further aspect, the controlling the light supplement light source to emit compensation light to a side of the front surface of the half-transmitting and half-reflecting mirror of the intelligent mirror includes: identifying face information of a user; and controlling the light supplementing light source to face the face of the user, and emitting compensation light with the brightness parameter of the compensation brightness parameter and the frequency of the preset frequency range.
In a further aspect, the recognizing the face information of the user includes: acquiring a real-time image of the side of the front surface of the semi-transparent and semi-reflective mirror; identifying a center of a face of a user in the real-time image; acquiring a real-time direction from the center of the real-time image to the center of the face of the user; the controlling the supplementary lighting light source to face the face of the user, and sending out the compensation light with the brightness parameter being the compensation brightness parameter and the frequency being the preset frequency range includes: judging whether the real-time distance from the center of the real-time image to the center of the face of the user exceeds a given distance or not; and when the real-time distance exceeds the given distance, controlling the light supplementing light source to swing along the real-time direction so as to enable the real-time distance to be smaller than the given distance.
In a further aspect, the supplementary lighting source includes a supplementary lighting assembly disposed on the intelligent mirror and surrounding the half-transmitting and half-reflecting mirror.
In a further aspect, the supplementary lighting source includes a display screen disposed on the back of the half-transmitting and half-reflecting mirror on the intelligent mirror.
In order to achieve the second object, the present invention provides an optical compensation device, including: the detection module is used for detecting the ambient light illumination of the intelligent mirror; the acquisition module is used for acquiring the light transmittance of a preset frequency range; the generating module is used for generating a compensation brightness parameter according to the ambient light illumination and the light transmittance; and the light supplementing module is used for controlling the light supplementing light source to emit compensating light to the side where the front surface of the semi-transparent and semi-reflective mirror of the intelligent mirror is located.
Further, the generating module is configured to generate a compensation brightness parameter according to the ambient light illuminance and the light transmittance, and includes: acquiring the illuminance at a first preset position in a luminous area of the light supplement light source in a luminous state of the light supplement light source, wherein the illuminance is a brightness parameter of the light supplement light source when the ambient illuminance is achieved; and generating the compensation brightness parameter according to the light-emitting brightness parameter and the light transmittance, wherein the compensation brightness parameter is positively correlated with the light-emitting brightness parameter and the transmittance.
In a further aspect, the generating module is configured to generate the compensation luminance parameter according to the light emitting luminance parameter and the light transmittance, and includes: determining the compensation brightness parameter according to a first preset formula, wherein the first preset formula is expressed as formula (1):
B=X×F×a (1)
wherein B is the compensation brightness parameter, X is an adjustment coefficient, F is the light-emitting brightness parameter, a is the light transmittance, and the adjustment coefficient is any value between 0.5 and 2.
In a further aspect, the light supplement module is configured to control a light supplement light source to emit compensation light to a front side of a semi-transparent and semi-reflective mirror of the intelligent mirror, and includes: identifying face information of a user; and controlling the light supplementing light source to face the face of the user, and emitting compensation light with the brightness parameter of the compensation brightness parameter and the frequency of the preset frequency range.
In a further aspect, the light supplement module is configured to identify face information of a user, and includes: acquiring a real-time image of the side of the front surface of the semi-transparent and semi-reflective mirror; identifying a center of a face of a user in the real-time image; acquiring a real-time direction from the center of the real-time image to the center of the face of the user; the light supplement module is used for controlling the light supplement light source to face the user, and sending out the compensation light with the brightness parameter of the compensation brightness parameter and the frequency of the preset frequency range, and the light supplement module comprises: judging whether the real-time distance from the center of the real-time image to the center of the face of the user exceeds a given distance or not; and when the real-time distance exceeds the given distance, controlling the light supplementing light source to swing along the real-time direction so as to enable the real-time distance to be smaller than the given distance.
In a further aspect, the supplementary lighting source includes a supplementary lighting assembly disposed on the intelligent mirror and surrounding the half-transmitting and half-reflecting mirror.
In a further aspect, the supplementary lighting source includes a display screen disposed on the back of the half-transmitting and half-reflecting mirror on the intelligent mirror.
Therefore, under the action of the light compensation method, the light compensation device, the electronic equipment and the computer readable storage medium, the light compensation brightness parameter which is positively correlated with the ambient illuminance of the intelligent mirror and the transmissivity of the light in the preset frequency range when the light passes through the back surface from the front surface of the semi-transparent semi-reflective mirror of the intelligent mirror can be generated, so that the light compensation light source is controlled to emit the compensation light with the brightness parameter of the light compensation brightness parameter and the frequency range of the preset frequency range to the side where the front surface of the semi-transparent semi-reflective mirror is located, the loss of the light in the preset frequency range when the reflected light of the ambient light from the face of the user enters the semi-transparent semi-reflective mirror can be compensated, the light seen by the eyes of the user is enabled to be more consistent with the color temperature of the light reflected by the actually and normally used total reflector, and the user experience is improved.
In order to achieve the third object, the present invention provides a computer device comprising a processor for implementing the steps of the optical compensation method when executing a computer program stored in a memory.
In order to achieve the fourth object, the present invention provides a storage medium storing a computer program, which when executed by a processor, implements the steps of the optical compensation method.
It can thus be seen that the present invention provides a computer apparatus and a storage medium, comprising: one or more memories, and one or more processors. The memory is used for storing the program codes and intermediate data generated in the program running process, storing the model output result and storing the model and the model parameters; the processor is used for processor resources occupied by code running and a plurality of processor resources occupied when the model is trained.
Drawings
FIG. 1 is a schematic view of an application scenario of a cosmetic mirror in the prior art;
FIG. 2 is a flow chart of an embodiment of an optical compensation method of the present invention.
FIG. 3 is a flow chart of generating a compensated luminance parameter according to an embodiment of the light compensation method of the present invention.
Fig. 4 is a schematic view of an application scenario of obtaining an emission luminance parameter of a light supplement light source according to an embodiment of an optical compensation method of the present invention.
FIG. 5 is a schematic structural diagram of a cosmetic mirror according to an embodiment of an optical compensation method of the present invention.
Fig. 6 is a schematic diagram of the position relationship of each component in the cosmetic mirror in fig. 5.
Fig. 7 is a schematic structural view of the beauty mirror in fig. 5 at another viewing angle.
Fig. 8 is a schematic diagram showing the positional relationship of each component of the beauty mirror in fig. 7.
Fig. 9 is a flowchart illustrating controlling the light source to emit light according to an embodiment of the light compensation method.
FIG. 10 is a flow chart of identifying the face position of a user in an embodiment of a light compensation method of the present invention.
Fig. 11 is a schematic diagram of a real-time image of the side of the front surface of the half mirror in an embodiment of the optical compensation method of the invention.
Fig. 12 is a flowchart illustrating a method for controlling a fill-in light source to emit compensation light toward a user's face according to an embodiment of the present invention.
FIG. 13 is a schematic structural diagram of another cosmetic mirror according to an embodiment of an optical compensation method of the present invention.
Fig. 14 is a schematic diagram of an embodiment of an optical compensation apparatus of the present invention.
FIG. 15 is a schematic diagram of a generation module in an embodiment of an optical compensation apparatus of the present invention.
Fig. 16 is a schematic diagram of a light supplement module in an embodiment of an optical compensation apparatus of the present invention.
Fig. 17 is a schematic diagram of an identification unit in an embodiment of an optical compensation apparatus of the present invention.
Fig. 18 is a schematic diagram of a light supplement unit in an embodiment of an optical compensation apparatus of the present invention.
The invention is further explained with reference to the drawings and the embodiments.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
An embodiment of an optical compensation method comprises the following steps:
referring to fig. 2, the optical compensation method of the present invention includes the steps of:
first, step S1 is executed to detect the ambient light illuminance of the smart mirror.
Then, step S2 is performed to obtain the light transmittance of the preset frequency range. The light transmittance is the transmittance of light in a preset frequency range when the light passes through the back surface of the semi-transparent and semi-reflective mirror of the cosmetic mirror from the front surface.
Next, step S3 is executed to generate a compensation luminance parameter according to the ambient light illuminance and the light transmittance.
Then, step S4 is executed to control the light supplement light source to emit compensation light to the side where the front surface of the half mirror of the intelligent mirror is located, where the brightness parameter of the compensation light is a compensation brightness parameter, and the frequency of the compensation light is a preset frequency range.
In summary, in this embodiment, the light compensation method of the present invention can generate the fill-in luminance parameter that is positively correlated to the ambient illuminance of the intelligent mirror and the transmittance of the light in the preset frequency range when the light passes through the back surface from the front surface of the half mirror of the intelligent mirror, so as to control the fill-in light source to emit the compensation light with the luminance parameter as the fill-in luminance parameter and the frequency range as the preset frequency range to the side of the front surface of the half mirror, thereby making up the loss of the light in the preset frequency range when the reflected light of the ambient light from the face of the user enters the half mirror, and making the color temperature of the light seen by the eyes of the user more consistent with the color temperature of the light reflected by the actually and normally used total reflector, thereby improving the user experience.
Preferably, the intelligent mirror of the present embodiment may be an intelligent mirror with a display function, such as a makeup mirror or a cosmetic mirror.
In the above step S1, the ambient light illuminance of the cosmetic mirror may be detected by various means, such as by an illumination sensor disposed on the cosmetic mirror, for example, the ambient light illuminance detected by the illumination sensor may be 1000Lux (Lux) at this step.
In the step S2, the transmittance of the light in the preset frequency range passing through the back surface of the half mirror of the cosmetic mirror from the front surface thereof may be a fixed value set in advance, for example, the transmittance may be 50%, and optionally, the preset frequency range may be a visible light frequency range (380 to 750THz), or may be a certain frequency range (e.g., 400 to 600THz) within the visible light frequency range.
As shown in fig. 3, generating a compensation brightness parameter according to the ambient light illuminance and the light transmittance includes:
step S31, in a light emitting state of the light supplement light source, obtaining a luminance at a first preset position in a light emitting region of the light supplement light source, where the luminance is a luminance parameter of the light supplement light source when the luminance is an ambient luminance.
And step S32, generating a compensation brightness parameter according to the luminous brightness parameter and the light transmittance, wherein the compensation brightness parameter is positively correlated with the luminous brightness parameter and the transmittance.
As for step S31, fig. 4 is a schematic view of an application scenario for obtaining the light-emitting brightness parameter of the light supplement light source according to the embodiment of the present invention, as shown in fig. 4, the light supplement light source L1 may be placed in a darkroom in advance, the light supplement light source L1 is turned on, the illuminance sensor S1 is disposed at a first preset position in the light-emitting region Y1 of the light supplement light source L1, the light supplement light source L1 is controlled to emit light within a range of the given light-emitting brightness parameter at the brightness parameter, and a given illuminance range corresponding to the given light-emitting brightness parameter range detected by the illuminance sensor S1 is recorded to obtain the corresponding relationship between the illuminance and the light-emitting brightness parameter in advance, so as to conveniently obtain the light-emitting brightness parameter in step S31. Wherein, the given light-emitting brightness parameters in the given light-emitting brightness parameter range correspond to the given illuminances in the given illuminance range one by one.
It should be emphasized that, for the indoor, the light environment in the local area (the area where the cosmetic mirror and the face of the user are located) is generally uniform, and for the supplementary light source L1, after the supplementary light source L1 emits light, the difference between the light condition at the light emitting point and the light condition at the position of the face is large, so that in step S31, when the illuminance at the first position of the supplementary light source L1 is the ambient illuminance, the light emitting parameter of the supplementary light source L1 is obtained, which is beneficial to more accurately generating the compensation luminance parameter in step S32, and is beneficial to controlling the supplementary light source L1 to emit compensation light more consistent with the actual light loss in step S4.
Optionally, the distance from the first preset position to the light emitting point of the fill-in light source L1 may be set according to the distance from the cosmetic mirror to the human face in a general application scene, for example, the distance from the first preset position to the light emitting point of the fill-in light source may be 50 cm.
In addition, the type and the range of the given light-emitting luminance parameter can be set according to an actual use scenario, for example, the given light-emitting luminance parameter can be the luminous flux of the light supplement light source L1, the unit of the luminous flux is lm (lumen ), the range of the given luminosity parameter can be 25-100 lm, and the given illuminance corresponding to the range of the given luminosity parameter is 500-4000 Lux.
With the above-described step S32, in generating the compensation luminance parameter from the light emission luminance parameter and the light transmittance, the compensation luminance parameter may be determined according to a first preset formula, which is expressed as formula (1):
B=X×F×a (1)
wherein, B is a compensation brightness parameter, X is an adjustment coefficient, F is a brightness parameter, a is a light transmittance, and the adjustment coefficient is any value between 0.5 and 2.
Specifically, when the compensation luminance parameter is generated according to the emission luminance parameter and the transmittance, the compensation luminance parameter may be generated according to a first preset formula, where the first preset formula may be: b is a compensation luminance parameter, X is an adjustment coefficient, F is a light emission luminance parameter, and a is a transmittance, and the adjustment coefficient may be any value between 0.5 and 2. For example, if the transmittance obtained in step S2 is 50%, the light emission luminance parameter obtained in step S31 is 1000Lux, and the selected adjustment coefficient is 1, then in step S32, the compensation luminance parameter calculated according to the first preset formula is 500 lm.
After the compensation brightness parameter is generated, and the preset frequency range obtained in step S2 is 380 to 750THz, the light supplement light source can be controlled to emit compensation light with a brightness parameter of 500lm and a frequency range of 380 to 750THz to the front side of the half mirror when the step S4 is executed.
In this embodiment, the light supplement light source L1 includes a light supplement component disposed around the half mirror on the intelligent mirror. As can be seen, the light supplement light source L1 of the present embodiment includes a light supplement component disposed around the half mirror on the cosmetic mirror.
Fig. 5 is a schematic structural diagram of a cosmetic mirror according to an embodiment of the present invention, and as shown in fig. 5, the cosmetic mirror may include: the light-compensating device comprises a base 10, a support 11 arranged on the base 10, a shell 12 arranged on the support 11, a semi-transparent and semi-reflective mirror 13 arranged on the shell 12 and a light-compensating assembly 14, wherein the light-compensating assembly 14 is arranged around the semi-transparent and semi-reflective mirror 13. In the step S4, the light supplement unit 14 may be controlled to emit the compensation light to the front side of the half mirror 13.
In the present embodiment, the fill-in light source L1 includes a display screen provided at the back of the half mirror on the smart mirror. As can be seen, the fill-in light source L1 of the present embodiment may further include a display screen disposed on the back of the half mirror on the cosmetic mirror.
Exemplarily, fig. 6 is a schematic diagram of a positional relationship between each component in the cosmetic mirror shown in fig. 5, and as shown in fig. 5 and fig. 6, the cosmetic mirror further includes: and a display screen 15 arranged on the back of the half mirror 13. In the step S4, the display screen 15 may be controlled to emit the compensation light to the front side of the half mirror 13, so that the display screen 15 may display the makeup auxiliary information, so that the user can see the face and the makeup auxiliary information at the front side of the half mirror, and also emit the compensation light, so that the display screen 15 may be multi-purpose.
Referring to fig. 7 and 8, fig. 7 is a schematic structural view of the cosmetic mirror in fig. 5 at another viewing angle, fig. 8 is a schematic positional relationship diagram of each component of the cosmetic mirror in fig. 7, as shown in fig. 5 to 8, the housing 12 includes a front housing 121 and a rear housing 122, wherein the front housing 121 is mounted on the bracket 11, the half mirror 13, the light supplement assembly 14 and the display screen 15 are all mounted on the front housing 121, in addition, an ambient light illuminance sensor 16 is further disposed at the back of the front housing 121, and the control device 17 is disposed in the rear housing 122.
In this embodiment, the optical compensation method can be applied to the control device 17.
Specifically, in step S1, the control device 17 may control the ambient light level sensor 16 to detect the ambient light level of the cosmetic mirror.
For the above step S2, the transmittance of the light in the preset frequency range passing through the back surface from the front surface of the half mirror of the cosmetic mirror can be calculated in advance through experimental means, and the transmittance is stored in the control device 17 so that the control device 17 can obtain the transmittance.
For the above steps S31 and S32, a one-to-one correspondence relationship between a plurality of given luminance parameters within a given luminance parameter range and a plurality of given illuminance within a given illumination range may be obtained in advance through a test means, and the one-to-one correspondence relationship is stored in the control device 17, so that the control device 17 may obtain, according to the ambient illuminance detected by the ambient illuminance 16, the luminance parameter of the light supplement light source corresponding to the ambient illuminance, and calculate the compensation luminance parameter through a first preset formula.
In step S4, the control device 17 can control the light supplement module 14 and/or the display screen 15 to emit the compensation light to the front side of the half mirror 13.
Fig. 9 is a flowchart of a method for controlling light emission of a fill-in light source according to an embodiment of the present invention, and is applied to a control device of a cosmetic mirror, as shown in fig. 9, the step S4 may include:
step 2041, identify the face information of the user.
Step 2042, controlling the supplementary lighting source L1 to face the user, and emitting the compensation light with the luminance parameter being the compensation luminance parameter and the frequency being the preset frequency range.
Thus, the light supplement component 14 can emit compensating light toward the face of the user, so that the light condition of the face of the user is more uniform, and the user experience is further improved.
Fig. 10 is a flowchart of a method for identifying a face position of a user according to an embodiment of the present invention, which is applied to a control device of a cosmetic mirror, as shown in fig. 10, where the step 2041 may include:
step 2041A, a real-time image of the front side of the half mirror 13 is obtained
In this step, a real-time image of the side on which the front surface of the half mirror 13 is located can be taken by a camera.
Step 2041B, identify the center of the user's face in the real-time image.
In this step, the control device may find a pixel region where the face contour is located from the real-time image through a face recognition algorithm, and use a pixel center of the pixel region as a face center of the user.
For example, fig. 11 is a schematic diagram of a real-time image of the front side of the half mirror according to an embodiment of the present invention, as shown in fig. 11, the pixels of the real-time image M1 may be 50 × 50, and the control device may find a pixel region C1 where the face contour F1 is located from the real-time image M1 through a face recognition algorithm, and use the center position of the pixel region C1 as the face center of the user.
Step 2041C, the real-time direction from the center of the real-time image to the center of the user's face is obtained.
In this step, with continued reference to fig. 11, the control means may take the center position of the real-time image M1 as the real-time image center, and specify a real-time direction D1 from the real-time image center to the user's face center based on the center position of the real-time image M1 and the center position of the pixel region C1.
Fig. 12 is a flowchart illustrating a method for controlling a fill-in light source to emit compensation light toward a face of a user according to an embodiment of the present invention, where the method is applied to a control device of a cosmetic mirror, as shown in fig. 12, the step 2042 may include:
step 2042A, determine whether the real-time distance from the center of the real-time image to the center of the user's face exceeds a given distance.
With continued reference to fig. 11, after determining the center position of the real-time image M1 to the center position of the pixel region C1, the real-time distance between the two positions may be counted, and optionally, the real-time distance may be the number of pixels before the two positions, and assuming that the counted number of pixels may be 25, the real-time distance may be determined to be 25 pixels, and when the given distance is 10 pixels, the real-time distance may exceed the given distance.
In step 2042B, when the real-time distance exceeds the given distance, the fill-in light source L1 is controlled to swing along the real-time direction, so that the real-time distance is smaller than the given distance.
With reference to fig. 11, when the real-time distance from the center of the real-time image M1 to the center of the pixel region C1 exceeds a given distance, it indicates that the face of the user and the light supplement component 14 disposed around the half mirror 13 are deviated from the face of the user to some extent, at this time, the control device may control the light supplement light source L1 to swing along the real-time direction D1, so that the center of the real-time image M1 on the front side of the half mirror 13 and the center of the pixel region C1 are gradually close to each other, and thus the light emitted by the light supplement light source L1 is more intensively irradiated on the face of the user, and the user experience is further improved.
It should be noted that, in fig. 11, only the pixel of the real-time image M1 is taken as an example, and the given distance is taken as 10 pixels, alternatively, the pixel of the real-time image may also be adaptively set according to actual needs, for example, the pixel of the real-time image may also be 1000 × 1000 or 5000 × 5000, and the given distance may be 200 pixels or 1000 pixels, which is not limited in the embodiment of the present invention.
Fig. 13 is a schematic structural view of another cosmetic mirror according to an embodiment of the present invention, and as shown in fig. 13, the cosmetic mirror may include: base 18, the first rotating device 19 of setting on the base, first rotating device 19 is connected with the bottom cooperation of support 20, the top of support 20 and the bottom fixed connection of U type frame 21, two tip punishment of U type frame 21 are provided with two second rotating device 22 respectively, casing 23 is located between two tip of U type frame 21, two second rotating device 22 are connected with casing 23 cooperation respectively, the front end at casing 23 is all installed to half mirror 24 and light filling subassembly 25, camera 26 installs the top at casing 23.
In step 2041A, the control device can control the camera 26 to obtain a real-time image of the front side of the half mirror 24.
In step 2042B, the control device can adjust the horizontal swing of the housing 23 by controlling the rotation of the first rotating device 19, so as to drive the light supplement light source (the light supplement light source can include the light supplement component 25 and/or a display screen arranged on the back of the half-transmitting half-reflecting mirror 24) to swing left and right, and the control device can also control the second rotating device 22 to rotate, so as to drive the light supplement light source to swing up and down, so as to realize that the light supplement light source emits the compensation light toward the position of the face of the user.
In summary, in the light compensation method provided in the embodiment of the present invention, a fill-in light luminance parameter that is positively correlated to the ambient light illuminance of the cosmetic mirror and the transmittance of light in the preset frequency range when the light passes through the back surface from the front surface of the half mirror of the cosmetic mirror can be generated, so as to control the fill-in light source to emit compensation light with the luminance parameter being the fill-in light luminance parameter and the frequency range being the preset frequency range to the side of the front surface of the half mirror, so as to compensate for the loss of light in the preset frequency range when the reflected light of the ambient light from the user's face enters the half mirror, so that the light seen by the user's glasses is more consistent with the color temperature of the light reflected by the actually and normally used total reflector, thereby improving the user experience.
An optical compensation apparatus embodiment:
fig. 14 is a block diagram of an optical compensation apparatus according to an embodiment of the present invention, which may be implemented as part or all of an electronic device by software, hardware, or a combination of the two. As shown in fig. 14, the present invention provides an optical compensation apparatus 30, including:
and the detection module 301 is used for detecting the ambient light illumination of the intelligent mirror.
The obtaining module 302 is configured to obtain a light transmittance in a preset frequency range.
A generating module 303, configured to generate a compensation brightness parameter according to the ambient light illuminance and the light transmittance.
And the light supplementing module 304 is used for controlling the light supplementing light source to emit compensation light to the front side of the semi-transparent and semi-reflective mirror of the intelligent mirror. The brightness parameter of the compensating light is the compensating brightness parameter, and the frequency of the compensating light is the preset frequency range.
Fig. 15 is a block diagram of a generating module according to an embodiment of the present invention, and as shown in fig. 15, the generating module 303 includes: an acquisition unit 3031 and a generation unit 3032, wherein:
the obtaining unit 3031 is configured to obtain, in a light emitting state of the light supplement light source, illuminance at a first preset position in a light emitting region of the light supplement light source, where the illuminance is a light emitting brightness parameter of the light supplement light source when the illuminance is ambient illuminance.
A generating unit 3032, configured to generate a compensation luminance parameter according to the light emission luminance parameter and the light transmittance, where the compensation luminance parameter is positively correlated to both the light emission luminance parameter and the light transmittance.
Alternatively, the generating unit 3032 may determine the compensation brightness parameter according to a first preset formula, where the first preset formula is: and B is an offset brightness parameter, X is an adjustment coefficient, F is a light-emitting brightness parameter, a is a transmittance, and the adjustment coefficient is any value between 0.5 and 2.
Fig. 16 is a block diagram of a light supplement module according to an embodiment of the present invention, and as shown in fig. 16, the light supplement module 304 includes: an identification unit 3041 and a light supplement unit 3042, wherein:
the identifying unit 3041 identifies face information of the user.
The light supplement unit 3042 is configured to control the light supplement light source to face the user, and emit compensation light with a compensation brightness parameter and a preset frequency range.
Fig. 17 is a block diagram of a structure of an identification unit according to an embodiment of the present invention, and as shown in fig. 17, the identification unit 3041 includes: a first obtaining subunit 30411, a first identifying subunit 30412, and a second obtaining subunit 30413, wherein:
the first acquiring subunit 30411 is configured to acquire a real-time image of the side where the front surface of the half mirror is located.
A first identifying subunit 30412, configured to identify a center of the face of the user in the real-time image.
A second obtaining subunit 30413, configured to obtain a real-time direction from the center of the real-time image to the center of the face of the user.
Fig. 18 is a block diagram of a light supplement unit according to an embodiment of the present invention, and as shown in fig. 18, the light supplement unit 3042 includes: a determining subunit 30421 and a light supplementing subunit 30422, wherein:
a judging subunit 30421, configured to judge whether a real-time distance from the center of the real-time image to the center of the face of the user exceeds a given distance.
The light supplementing unit 30422 is configured to control the light supplementing light source to swing along the real-time direction when the real-time distance exceeds the given distance, so that the real-time distance is smaller than the given distance.
In summary, in the optical compensation apparatus provided in the embodiment of the present invention, the detecting module 301 detects an ambient illuminance of the cosmetic mirror, the obtaining module 302 obtains a transmittance of light in a preset frequency range when the light passes through the back surface of the semi-transparent semi-reflective mirror of the cosmetic mirror, the generating module 303 generates a compensation luminance parameter positively correlated to both the ambient illuminance and the transmittance according to the ambient illuminance and the transmittance, and the light supplementing module 304 controls the light supplementing light source to emit compensation light with a luminance parameter of the compensation luminance parameter and a frequency of the compensation luminance parameter of the preset frequency range to the side of the front surface of the semi-transparent semi-reflective mirror. The loss of light within a preset frequency range when the reflected light of the user face to the ambient light enters the semi-transparent semi-reflecting mirror can be compensated, so that the color temperature of the light seen by the glasses of the user is consistent with the color temperature of the light reflected by the actually and normally used total reflector, and the user experience is improved.
The embodiment of the computer device comprises:
the computer device of this embodiment includes a processor, and the steps in the above-described embodiment of the optical compensation method are implemented when the processor executes a computer program.
For example, a computer program can be partitioned into one or more modules, which are stored in a memory and executed by a processor to implement the present invention. One or more of the modules may be a sequence of computer program instruction segments for describing the execution of a computer program in a computer device that is capable of performing certain functions.
The computer device may include, but is not limited to, a processor, a memory. Those skilled in the art will appreciate that the computer apparatus may include more or fewer components, or combine certain components, or different components, e.g., the computer apparatus may also include input-output devices, network access devices, buses, etc.
For example, the Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, and so on. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The processor is the control center of the computer device and is connected to various parts of the whole computer device by various interfaces and lines.
The memory may be used to store computer programs and/or modules, and the processor may implement various functions of the computer device by executing or executing the computer programs and/or modules stored in the memory, as well as by invoking data stored in the memory. For example, the memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (e.g., a sound receiving function, a sound-to-text function, etc.), and the like; the storage data area may store data (e.g., audio data, text data, etc.) created according to the use of the cellular phone, etc. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Storage medium embodiments:
the module integrated with the terminal device may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer-readable storage medium and used by a processor to implement the steps of the above optical compensation method.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution media, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
It can thus be seen that the present invention provides a computer apparatus and a storage medium, comprising: one or more memories, and one or more processors. The memory is used for storing the program codes and intermediate data generated in the program running process, storing the model output result and storing the model and the model parameters; the processor is used for processor resources occupied by code running and a plurality of processor resources occupied when the model is trained.
It should be noted that the above is only a preferred embodiment of the present invention, but the design concept of the present invention is not limited thereto, and any insubstantial modifications made by using the design concept also fall within the protection scope of the present invention.

Claims (10)

1. An optical compensation method, comprising:
detecting the ambient light illumination of the intelligent mirror;
acquiring the light transmittance of a preset frequency range;
generating a compensation brightness parameter according to the ambient illuminance and the light transmittance;
and controlling a light supplementing light source to emit compensation light to the side where the front surface of the semi-transparent and semi-reflective mirror of the intelligent mirror is located, wherein the brightness parameter of the compensation light is the compensation brightness parameter, and the frequency of the compensation light is the preset frequency range.
2. The method of claim 1, wherein generating a compensated brightness parameter according to the ambient light illuminance and the light transmittance comprises:
acquiring the illuminance at a first preset position in a luminous area of the light supplement light source in a luminous state of the light supplement light source, wherein the illuminance is a brightness parameter of the light supplement light source when the ambient illuminance is achieved;
and generating the compensation brightness parameter according to the light-emitting brightness parameter and the light transmittance, wherein the compensation brightness parameter is positively correlated with the light-emitting brightness parameter and the transmittance.
3. The light compensation method of claim 2, wherein said generating the compensated luminance parameter based on the light emission luminance parameter and the light transmittance comprises:
determining the compensation brightness parameter according to a first preset formula, wherein the first preset formula is expressed as formula (1):
B=X×F×a (1)
wherein B is the compensation brightness parameter, X is an adjustment coefficient, F is the light-emitting brightness parameter, a is the light transmittance, and the adjustment coefficient is any value between 0.5 and 2.
4. The optical compensation method according to claim 1 or 2, wherein the controlling the supplementary light source to emit the compensation light to the side of the front surface of the half mirror of the intelligent mirror comprises:
identifying face information of a user;
and controlling the light supplementing light source to face the face of the user, and emitting compensation light with the brightness parameter of the compensation brightness parameter and the frequency of the preset frequency range.
5. The optical compensation method of claim 4, wherein:
the recognizing the face information of the user includes:
acquiring a real-time image of the side of the front surface of the semi-transparent and semi-reflective mirror;
identifying a center of a face of a user in the real-time image;
acquiring a real-time direction from the center of the real-time image to the center of the face of the user;
the controlling the supplementary lighting light source to face the face of the user, and sending out the compensation light with the brightness parameter being the compensation brightness parameter and the frequency being the preset frequency range includes:
judging whether the real-time distance from the center of the real-time image to the center of the face of the user exceeds a given distance or not;
and when the real-time distance exceeds the given distance, controlling the light supplementing light source to swing along the real-time direction so as to enable the real-time distance to be smaller than the given distance.
6. The optical compensation method according to any one of claims 1 to 5,
the light supplementing light source comprises a light supplementing assembly which is arranged on the intelligent mirror and surrounds the semi-transparent semi-reflective mirror.
7. The optical compensation method according to any one of claims 1 to 5, wherein:
the light supplementing light source comprises a display screen arranged on the back of the semi-transparent semi-reflective mirror on the intelligent mirror.
8. An optical compensation apparatus, comprising:
the detection module is used for detecting the ambient light illumination of the intelligent mirror;
the acquisition module is used for acquiring the light transmittance of a preset frequency range;
the generating module is used for generating a compensation brightness parameter according to the ambient light illumination and the light transmittance;
and the light supplementing module is used for controlling the light supplementing light source to emit compensating light to the side where the front surface of the semi-transparent and semi-reflective mirror of the intelligent mirror is located.
9. A computer device, characterized by: the computer arrangement comprises a processor and a memory, the processor being adapted to carry out the steps of the optical compensation method according to any one of claims 1 to 7 when executing a computer program stored in the memory.
10. A storage medium having a computer program stored thereon, characterized in that: the computer program when being executed by a processor realizes the steps of the light compensation method as claimed in any one of the claims 1 to 7.
CN202111031911.7A 2021-09-03 2021-09-03 Optical compensation method and device, computer device and storage medium Pending CN113723326A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111031911.7A CN113723326A (en) 2021-09-03 2021-09-03 Optical compensation method and device, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111031911.7A CN113723326A (en) 2021-09-03 2021-09-03 Optical compensation method and device, computer device and storage medium

Publications (1)

Publication Number Publication Date
CN113723326A true CN113723326A (en) 2021-11-30

Family

ID=78681374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111031911.7A Pending CN113723326A (en) 2021-09-03 2021-09-03 Optical compensation method and device, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN113723326A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115247778A (en) * 2022-09-22 2022-10-28 苏州妙镜科技有限公司 Automatic direct broadcast of pursuit is equipped with adjustable light filling

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371305A (en) * 2017-06-13 2017-11-21 佛山市盛忻灯饰有限公司 A kind of adaptive cosmetic mirror
CN109005325A (en) * 2018-08-29 2018-12-14 浙江科技学院 Based on interactive intelligent light filling face photographic device and method
CN113132613A (en) * 2019-12-31 2021-07-16 中移物联网有限公司 Camera light supplementing device, electronic equipment and light supplementing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107371305A (en) * 2017-06-13 2017-11-21 佛山市盛忻灯饰有限公司 A kind of adaptive cosmetic mirror
CN109005325A (en) * 2018-08-29 2018-12-14 浙江科技学院 Based on interactive intelligent light filling face photographic device and method
CN113132613A (en) * 2019-12-31 2021-07-16 中移物联网有限公司 Camera light supplementing device, electronic equipment and light supplementing method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115247778A (en) * 2022-09-22 2022-10-28 苏州妙镜科技有限公司 Automatic direct broadcast of pursuit is equipped with adjustable light filling

Similar Documents

Publication Publication Date Title
US10068369B2 (en) Method and apparatus for selectively integrating sensory content
US20200192475A1 (en) Eye-tracking enabled wearable devices
US20200265234A1 (en) Electronic device for providing shooting mode based on virtual character and operation method thereof
EP2083670B1 (en) Eye tracking illumination
US7593593B2 (en) Method and system for reducing effects of undesired signals in an infrared imaging system
TW202023261A (en) Control method, microprocessor, computer-readable storage medium and computer device
EP2824923B1 (en) Apparatus, system and method for projecting images onto predefined portions of objects
US11189071B2 (en) Electronic device for providing avatar animation and method thereof
US9576397B2 (en) Reducing latency in an augmented-reality display
US20120092328A1 (en) Fusing virtual content into real content
US20130321390A1 (en) Augmented books in a mixed reality environment
EP3584740B1 (en) Method for detecting biological feature data, biological feature recognition apparatus and electronic terminal
CN104660946B (en) Projector and its control method
US7272255B2 (en) Three-dimensional body photography apparatus, three-dimensional geometricmodel generation apparatus, three-dimensional geometric model generation method, and record medium in which three-dimensional geometric model generation program was stored
JP2014504413A (en) Augmented reality display content based on understanding and intention
CN107734796B (en) Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium
US20130127705A1 (en) Apparatus for touching projection of 3d images on infrared screen using single-infrared camera
US10474100B2 (en) Display device and driving method thereof
US20090244497A1 (en) Projection Display Apparatus and Control Method Thereof
CN110349526A (en) Augmented reality adjusting method, device, storage medium and augmented reality equipment
CN111601373A (en) Backlight brightness control method and device, mobile terminal and storage medium
JP2013044874A (en) Exhibition device
CN113723326A (en) Optical compensation method and device, computer device and storage medium
CN107798229A (en) Fingerprint identification method and terminal
US11204668B2 (en) Electronic device and method for acquiring biometric information using light of display

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
TA01 Transfer of patent application right

Effective date of registration: 20220526

Address after: 710076 room 1801, 18 / F, unit 1, building 1, Greenland Central Plaza - territorial sea block AB, No. 1, Jinye Road, high tech Zone, Xi'an, Shaanxi Province

Applicant after: Xi'an shijiusui Information Technology Co.,Ltd.

Address before: 710000 Room 301, office building, No. 58, Gongye Second Road, national civil aerospace industry base, Xi'an, Shaanxi Province

Applicant before: Xi'an Tiantong Digital Technology Co.,Ltd.

TA01 Transfer of patent application right