CN107734796B - Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium - Google Patents

Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN107734796B
CN107734796B CN201710929411.2A CN201710929411A CN107734796B CN 107734796 B CN107734796 B CN 107734796B CN 201710929411 A CN201710929411 A CN 201710929411A CN 107734796 B CN107734796 B CN 107734796B
Authority
CN
China
Prior art keywords
brightness
lamp bar
user
eyeball
mirror surface
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
Application number
CN201710929411.2A
Other languages
Chinese (zh)
Other versions
CN107734796A (en
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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Original Assignee
Guangzhou Rui Xin Electronic Technology Co Ltd
Guangzhou Shiyuan Electronics Thecnology 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 Guangzhou Rui Xin Electronic Technology Co Ltd, Guangzhou Shiyuan Electronics Thecnology Co Ltd filed Critical Guangzhou Rui Xin Electronic Technology Co Ltd
Priority to CN201710929411.2A priority Critical patent/CN107734796B/en
Publication of CN107734796A publication Critical patent/CN107734796A/en
Application granted granted Critical
Publication of CN107734796B publication Critical patent/CN107734796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B45/00Circuit arrangements for operating light-emitting diodes [LED]
    • H05B45/10Controlling the intensity of the light

Abstract

The embodiment of the invention discloses one kind to show product lamp bar brightness adjusting method, device, equipment and storage medium for mirror surface, the described method includes: determining the eyeball fixes direction of user according to the image of user's face when user's face and mirror surface show the distance between lamp bar of product less than pre-determined distance;Obtain current environment target luminance;The lamp bar brightness in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance.It realizes and the lamp bar brightness of product, which automatically adjusts and local modulation, to be shown to mirror surface.

Description

Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium
Technical field
The present invention relates to brightness regulation technology, more particularly to it is a kind of for mirror surface show product lamp bar brightness adjusting method, Device, equipment and storage medium.
Background technique
When showing product (hereinafter referred to as witch mirror) using the mirror surface with lamp bar, lamp bar brightness can make user have dazzling sense, Strong light direct beam is easy to damage user eyeball and eyesight.
When user closely uses vanity mirror, the strong light of lamp bar is easy to damage eyes.In traditional scheme, to makeup The adjusting of mirror lamp bar be usually manually adjust lamp bar brightness, and can only to lamp bar brightness carry out it is integrally-regulated, that is, to whole The brightness of a lamp bar is adjusted.
Summary of the invention
The embodiment of the present invention provides a kind of for mirror surface display product lamp bar brightness adjusting method, device, equipment and storage Medium realizes and shows that the lamp bar brightness of product automatically adjusts and local modulation to mirror surface.
Product lamp bar brightness adjusting method is shown for mirror surface in a first aspect, the embodiment of the invention provides one kind, it is described Method includes:
When user's face and mirror surface show the distance between lamp bar of product less than pre-determined distance, according to user's face Image determines the eyeball fixes direction of user;
Obtain current environment target luminance;
It is bright that the lamp bar in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance Degree.
Second aspect, the embodiment of the invention also provides one kind to show product lamp bar brightness regulation side device for mirror surface, Described device includes:
Eyeball fixes direction determining mould, for showing that the distance between the lamp bar of product is less than with mirror surface when user's face When pre-determined distance, the eyeball fixes direction of user is determined according to the image of user's face;
Target luminance determining module, for obtaining current environment target luminance;
Lamp bar luminance adjustment module, for being adjusted and the eyeball fixes direction according to the current environment target luminance Lamp bar brightness in corresponding region.
The third aspect the embodiment of the invention also provides a kind of equipment, including memory, processor and is stored in memory Computer program that is upper and can running on a processor, the processor are realized when executing described program as in the embodiment of the present invention Any mirror surface that is used for shows product lamp bar brightness adjusting method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program is realized when the program is executed by processor and shows that product lamp bar is bright for mirror surface as described in any in the embodiment of the present invention Spend adjusting method.
In the embodiment of the present invention, by be less than at a distance between the lamp bar that user's face and mirror surface show product it is default away from From when, the eyeball fixes direction of user is determined according to the image of user's face, then obtains current environment target luminance, and root The lamp bar brightness in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance.It realizes pair The lamp bar brightness of mirror surface display product automatically adjusts and local modulation.
Detailed description of the invention
Fig. 1 is the flow chart that one of embodiment of the present invention one shows product lamp bar brightness adjusting method for mirror surface;
Fig. 2 a is the flow chart that one of embodiment of the present invention two shows product lamp bar brightness adjusting method for mirror surface;
Fig. 2 b is a kind of schematic diagram for the eye areas being applicable in the embodiment of the present invention two;
Fig. 2 c is the signal for the result that a kind of eye areas being applicable in the embodiment of the present invention two is shown by quadrant Figure;
Fig. 3 is the flow chart that one of embodiment of the present invention three shows product lamp bar brightness adjusting method for mirror surface;
Fig. 4 a is the flow chart that one of embodiment of the present invention four shows product lamp bar brightness adjusting method for mirror surface;
Fig. 4 b is a kind of schematic diagram for the LED arrangement that can be controlled separately brightness being applicable in the embodiment of the present invention four;
Fig. 5 is the structural representation that one of embodiment of the present invention five shows product lamp bar brightness regulating apparatus for mirror surface Figure;
Fig. 6 is the structural schematic diagram of one of the embodiment of the present invention six equipment.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of process that product lamp bar brightness adjusting method is shown for mirror surface that the embodiment of the present invention one provides Figure, the present embodiment are applicable to the case where local modulation mirror surface shows the lamp bar brightness of product, and this method can be by the present invention One kind that embodiment provides shows that product lamp bar brightness regulating apparatus executes for mirror surface, the device can be used software and/or The mode of hardware is realized.With reference to Fig. 1, this method can specifically include following steps:
S110, when user's face and mirror surface show that the distance between lamp bar of product is less than pre-determined distance, according to user The image of face determines the eyeball fixes direction of user.
Specifically, mirror surface shows product band illumination functions, and realizes the lamp bar of illumination functions and independently luminous hair can be used Optical diode (Light-Emitting Diode, LED) is constituted, each light emitting diode is known as light-emitting particles.In order to obtain Preferable illuminating effect is obtained, lamp bar can be circular ring type lamp bar or linear type lamp bar, and lamp bar is mounted on the side that mirror surface shows product In boundary.Optionally, mirror surface shows that product can be illumination vanity mirror, is also possible to the intelligent terminal etc. with mirror surface display function.
When user shows product using mirror surface, user shows product according to demand by adjusting the position of itself or mirror surface Position change user and mirror surface show the distance between product, wherein show that the corresponding function of product selects to use according to mirror surface Family face and mirror surface show the distance between product.When user's face and mirror surface show that the distance between the lamp bar of product is less than in advance If apart from when, the direction of gaze of user eyeball is determined according to the image of user's face, optionally, the image of user's face can lead to The camera being integrated in mirror surface display product is crossed to obtain.
Optionally, the distance between product can be shown using infrared distance sensor detection user's face and mirror surface, in advance If distance can take 30 centimetres, when detecting that user's face and mirror surface show that the distance between product is less than pre-determined distance, then Show that user closely shows product using the mirror surface.
S120, current environment target luminance is obtained.
Specifically, the light that mirror surface shows product local environment can be detected with light intensity sensor (referred to as optical flame detector) Brightness, since mirror surface shows that product itself has luminous lamp strip, lamp bar light influences whether the accuracy of optical flame detector detection data.Cause This, needs the environmental light brightness for detecting optical flame detector to calibrate, to obtain current environment target luminance, wherein environment Target luminance is the environmental light brightness after calibration.
S130, the lamp in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance Brightness.
Specifically, the lamp bar adjusted in region corresponding with eyeball fixes direction is bright in conjunction with current environment target luminance Degree.In a specific example, lamp bar can be divided into four regions, the upper left corner, the lower left corner, the upper right corner and the lower right corner, if User eyeball direction of gaze is the upper right corner of lamp bar, then the lamp bar brightness in the upper right corner is adjusted according to current environment object brightness.
In the embodiment of the present invention, by be less than at a distance between the lamp bar that user's face and mirror surface show product it is default away from From when, the eyeball fixes direction of user is determined according to the image of user's face, then obtains current environment target luminance, and root The lamp bar brightness in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance.It realizes pair The lamp bar brightness of mirror surface display product automatically adjusts and local modulation.
Embodiment two
Fig. 2 a is a kind of process that product lamp bar brightness adjusting method is shown for mirror surface provided by Embodiment 2 of the present invention Figure, the present embodiment on the basis of the above embodiments, to " determining the eyeball fixes direction of user according to the image of user's face " It is optimized.With reference to Fig. 2 a, this method can specifically include following steps:
S210, when user's face and mirror surface show that the distance between lamp bar of product is less than pre-determined distance, obtain user The gray-value image of eye areas, wherein the eye areas includes black eyeball and white of the eye region.
Specifically, when user's face and mirror surface show the distance between lamp bar of product less than pre-determined distance, to acquisition To the face-image of user handle, processing method can select the face recognition algorithms in image recognition algorithm, such as: It normalizes the Face datection algorithm under RGB color or is based on the people of PCA (Principal Component Analysis) Face recognizer etc., wherein R, which represents red R ed, G and represents green Green, B, represents blue Blue.Identification camera capture in real time Face in image is positioned eye image using integral projection algorithm etc. and is intercepted, the figure of eye areas is obtained with this Picture.
Gray proces are carried out to the image of eye areas, obtain the gray-value image of eye areas, wherein eye areas packet Include black eyeball and white of the eye region.Optionally, the size of eye areas accounts for the ratio of entire face-image in usual situation Under can one substantially in the range of, can according to the principle choose eye areas image.Fig. 2 b shows a kind of eyes area Domain, 270 represent black eyeball, and 280 represent white of the eye region, it should be noted that white of the eye region said herein is one A rough signal because may user it is personal due to (such as customization heavy make-up leads to the image of informer or eye shadow It is presented on white of the eye region) to get the eye areas of user be not accurate white of the eye region.
Optionally, the gray value of the pixel of black eyeball is low, the pixel of white of the eye region and skin area Gray value is high.It, can be by pixel structure of the intensity value ranges in the first default intensity value ranges in a specific example At region be defined as black eyeball, wherein the first default intensity value ranges be 0~70, intensity value ranges second are preset The region that pixel in intensity value ranges is constituted is defined as white of the eye region or skin area, wherein the second default gray value Range is 180~255.
Illustratively, the method for discrimination of eye areas can also be accomplished by the following way, and detect black eyeball Around have pixel in the second default intensity value ranges of the first preset quantity after, and occur the of the second preset quantity Pixel in one default intensity value ranges then shows that the point in the first default intensity value ranges of second preset quantity is eyelash The pixel of hair image.Therefore, eye areas can be determined by eyelashes region, foregoing description be to for one eye eyeball For, the determination method of the eye areas of another eye is identical, and details are not described herein.When the eyes area of two eyes has been determined Behind domain, then the eye areas of user can be determined.Optionally, the eye areas of user may comprising except two parts eye areas with Outer skin area.
S220, the zonule that the eye areas is divided into setting quantity according to the central point of the black eyeball.
Specifically, the position of iris, iris area can be navigated to by the gray value detection of the image of eye areas Domain is black eyeball, and the center of iris is pupil.Eye areas is divided into setting according to the central point of black eyeball The zonule of quantity.In a specific example, by taking the one eye eyeball of user as an example, using the central point of black eyeball as Coordinate origin establishes rectangular coordinate system, and eye areas is divided into 4 regions, Fig. 2 c show a kind of eye areas by quadrant into The result of row display, wherein 290 be eye areas, 291 is black eye ball upper right side (first quartile), 292 is black eye ball upper left side (the second quadrant), 293 are black eye ball lower left (third quadrant) and 294 are black eye ball lower right (fourth quadrant).
S230, the pixel number for being less than default gray value in each zonule is counted respectively.
Specifically, behind the zonule that eye areas is divided into setting quantity according to the central point of black eyeball, needle To these zonules, the pixel number for being less than default gray value in each zonule is counted respectively.In a specific example, By taking the one eye eyeball of user as an example, it is that origin establishes rectangular coordinate system by the central point of black eyeball, with reference to Fig. 2 c, unites respectively Count the pixel number for being less than default gray value in first quartile, the second quadrant, third quadrant and fourth quadrant, wherein default ash Angle value can be 70.By taking Fig. 2 c as an example, the point by gray value less than 70 claims black tone pixel, removes black tone picture in corresponding region Point other than vegetarian refreshments is known as white tone pixel, counts the quantity of the black tone pixel in each zonule, and then can also be with Obtain the quantity of the white tone pixel in each zonule.
S240, the eyeball fixes direction that the user is determined according to the pixel number.
Illustratively, the quantity of the quantity of the black tone pixel of more each zonule and white tone pixel, if adjacent The comparison result of two regions (region A and region B) is that eyeball fixes direction is that black tone pixel is more in two regions Region direction.In a specific example, with reference to Fig. 2 c, if first quartile and fourth quadrant have more white tone pixel, Wherein the white tone pixel of fourth quadrant is more than the white tone pixel of first quartile, can determine that eyeball to upper left side (second Quadrant) watch attentively.
S250, current environment target luminance is obtained.
S260, the lamp in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance Brightness.
In the embodiment of the present invention, pass through the gray-value image for obtaining eyes of user region, wherein the eye areas includes Then the eye areas is divided into setting according to the central point of the black eyeball by black eyeball and white of the eye region The zonule of quantity counts the pixel number for being less than default gray value in each zonule respectively, true according to the pixel number The eyeball fixes direction of the fixed user.The determination to eyeball fixes direction is realized, to adjust the lamp bar that mirror surface shows product Brightness provides foundation.
Based on the above technical solution, " the eyeball fixes direction of user is determined according to the image of user's face " may be used also To be achieved in that
Obtain the binary image in eyes of user region, wherein the eye areas includes black eyeball and white of the eye Region;The eye areas is divided into the zonule of setting quantity according to the central point of the black eyeball;It counts respectively Stain number and white point number in each zonule;Watching attentively for the user eyeball is determined according to the stain number and the white point number Direction.
Binary conversion treatment is carried out to the image of eye areas specifically, choosing a binarization threshold, obtains eye areas Binary image.In binary image, only there are two types of appearance forms, i.e. stain and white point for pixel.According to black eye ball area Rigorous region division is to set the zonule of quantity by the central point in domain, wherein the method for determining black eyeball can refer to The determination method of above-mentioned black eyeball, details are not described herein.The stain number and white point number in each zonule, root are counted respectively The direction of gaze of user eyeball is determined according to the stain number and white point number.Optionally, the direction of gaze of eyeball is usually zonule Middle stain number accounts for the zonule direction that total pixel number ratio is high in zonule.By to stain in pixel in each zonule Several and white point number statistics, determine the eyeball fixes direction of user, shown to adjust mirror surface the lamp bar brightness of product provide according to According to.
Embodiment three
Fig. 3 is a kind of process that product lamp bar brightness adjusting method is shown for mirror surface that the embodiment of the present invention three provides Figure, the present embodiment on the basis of the above embodiments, are optimized " obtaining current environment target luminance ".With reference to Fig. 3, This method can specifically include following steps:
S310, when user's face and mirror surface show that the distance between lamp bar of product is less than pre-determined distance, according to user The image of face determines the eyeball fixes direction of user.
S320, the environmental light brightness for acquiring current time.
Specifically, utilizing the environmental light brightness at optical flame detector acquisition current time.In a specific example, mirror surface is shown Product is circle, and having a rectangular area among circle is plated film mirror surface, and the top of the rectangular area is optical flame detector, and lower section is Infrared distance sensor.
S330, default alignment lists are inquired according to the environmental light brightness at the current time, wherein the default calibration column Table storage environment brightness corresponds to brightness error when each lamp bar brightness.
In the measurement process of specific environmental light brightness, mirror surface shows that the brightness of product lamp bar can be with environmental light brightness Measurement has an impact.Therefore, a default alignment lists are established in advance, and storage environment brightness is corresponding each in the default alignment lists Brightness error when a lamp bar brightness.The forming process of the default alignment lists is as follows:
Firstly, that is, the state of lamp bar is kept to be in off state, being controlled when not opening the lamp bar of mirror surface display product Environmental light brightness carries out linear increment from minimum value to maximum value, wherein minimum value and maximum value are that environment light source can provide Brightness minimum value and maximum value, optical flame detector records corresponding environment bright angle value Lx.
Secondly, giving a specific environment bright angle value Ln, the lamp bar that mirror surface shows product is opened, the bright of lamp bar is controlled Degree carries out linear increment from minimum value to maximum value, wherein the minimum for the brightness that minimum value and maximum value can provide for lamp bar Value and maximum value.A fixed environment bright angle value Ln is chosen, the brightness value of lamp bar is adjusted, obtains different lamp bar brightness MLn Corresponding brightness error E RRLn.And so on, under the conditions of obtaining each environmental light brightness Lx, different lamp bar brightness, MLx pairs The brightness error E RRLx answered.
1 lamp bar brightness ML1 of table corresponds to brightness errors table when different brightness
Lamp bar brightness Environmental light brightness Brightness error
ML1 L1 ERRL1
ML1 L2 ERRL2
ML1 L3 ERRL3
ML1 L4 ERRL4
ML1 L5 ERRL5
ML1 L6 ERRL6
…… …… ……
ML1 Ln ERRLn
Finally, being closed according to the corresponding of the multi-to-multi between environmental light brightness, lamp bar brightness, light sensation detection error three System, referring to table 1, by taking lamp bar brightness ML1 as an example, obtain the corresponding brightness error E RRL1 of all environmental light intensity L1~Ln~ ERRLn is averaged ERRL, average luminance error E RRL_AVE1 when as lamp bar light intensity ML1.And so on, it can obtain The corresponding average luminance error E RRL_AVE1~ERRL_AVEn of all lamp bar brightness.
S340, according to the corresponding brightness error of environmental light brightness at the current time to the environment at the current time Brightness is corrected to obtain current environment target luminance.
Specifically, utilizing the light of current environment after the corresponding light sensation error of environmental light brightness that current time has been determined Brightness and its corresponding brightness error.Calibration process is as follows: after determining current environmental light brightness Ln, reading the light of current lamp bar Brightness value MLn, according to the corresponding ERRL_AVEn of inquiry MLn in default alignment lists, Ln, which is subtracted ERRL_AVEn, to be obtained The environmental light brightness except interference data is removed, that is, environmental goals brightness.
S350, the lamp in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance Brightness.
In the embodiment of the present invention, by acquiring the environmental light brightness at current time, according to the environment light at the current time Default alignment lists are inquired in brightness, wherein the default alignment lists storage environment brightness corresponds to light when each lamp bar brightness Luminance errors, then according to the corresponding brightness error of the environmental light brightness at the current time to the environment at the current time Brightness is corrected to obtain current environment target luminance.The environmental light brightness for surveying optical flame detector is realized to be corrected, To obtain more accurate environmental light brightness, i.e. environmental goals brightness.
Example IV
Fig. 4 a is a kind of process that product lamp bar brightness adjusting method is shown for mirror surface that the embodiment of the present invention four provides Figure, the present embodiment on the basis of the above embodiments, to " according to the current environment target luminance adjust with the eyeball infuse Lamp bar brightness in the corresponding region of apparent direction " is optimized.With reference to Fig. 4 a, this method can specifically include following steps:
S410, when user's face and mirror surface show that the distance between lamp bar of product is less than pre-determined distance, according to user The image of face determines the eyeball fixes direction of user.
S420, current environment target luminance is obtained.
S430, the object brightness that the lamp bar is determined according to current environment target luminance.
Specifically, determining the mesh of lamp bar according to environmental goals brightness after current environment target luminance is calculated Mark brightness.Current environment target luminance is inquired into the first presetting database (hereinafter referred to as database B), wherein in database B It stores under different environmental light brightness, when human eye looks at lamp bar straight, the lamp bar brightness of the most comfortable optionally can be by big Amount volunteer experiences the sensing results of eyes direct-view lamp bar to obtain database B.Specific application scenarios are, in varying environment light Under brightness Lx, user is allowed to look at the lamp bar that mirror surface shows product straight, obtains the lamp bar of the most comfortable at some environment bright angle value Lx Brightness MLx, establishes mapping relations HashMap<Lx, and MLx>, comprising environmental light brightness Lx and corresponding lamp bar brightness in database A MLx.When mapping relations HashMap being used to go to consult corresponding lamp bar brightness by a specific environmental light brightness, look into It is fast to read speed.
It optionally,, can be according to the second present count under each environmental light brightness before determining the object brightness of lamp bar The brightness of lamp bar is configured according to library (hereinafter referred to as database A), wherein database A is stored in different environment brights Under degree, human eye with any comfortable angle towards lamp bar when, the lamp bar brightness of human eye the most comfortable.
In a specific example, by a large amount of volunteers experience sensing results of the eyes towards lamp bar come or obtain number According to library A, specific application scenarios, which are users, to be shown product towards mirror surface rather than looks at straight, specific environment brightness and lamp bar brightness Mapping relations are established identical when the foundation of mapping relations and user look at straight, and details are not described herein.
S440, by the object brightness of the lamp bar brightness regulation in the corresponding region of the eyeball fixes direction to the lamp bar.
Wherein, lamp bar can be made of several LED, and the brightness of each LED is adjustable.In a specific example In, if user eyeball direction of gaze is the upper left corner (the second quadrant), the lamp bar brightness for adjusting the second quadrant is the target of lamp bar Brightness.In a specific application scenarios, user shows that the upper left side of product is seen to mirror surface, then corresponding to adjust upper left side region Lamp bar brightness to lamp bar object brightness.
Illustratively, it recognizes eyeball to watch attentively to the second quadrant, then on the basis of determining lamp bar brightness, adjusts second The brightness of quadrant LED light-emitting particles, regulative mode is to reduce brightness under normal conditions, because when user's face is shown close to mirror surface When product, in order not to stimulate the eyes of user, need to reduce the brightness of lamp bar.Fig. 4 b, which shows one kind, can be controlled separately brightness LED arrangement, 450 indicate each independently luminous LED.The LED that corresponding region is adjusted according to the direction of gaze of user eyeball, at this In only simply illustrate lamp bar and be made of the LED that several independently shine, the quantity of LED in fact is set according to user demand It is fixed.
In the embodiment of the present invention, by determining the object brightness of the lamp bar according to current environment target luminance, then The object brightness of the lamp bar brightness regulation in the corresponding region of the eyeball fixes direction to the lamp bar is realized to lamp bar office The adjusting of portion's regional luminance prevents the excessively bright harm users eyes of lamp bar brightness, solves mirror surface and shows in product local environment Light pollution problem.
Optionally, the target of lamp bar brightness regulation to the lamp bar by eyeball fixes direction corresponding region is bright Degree specifically may is that
It determines that mirror surface corresponding with the eyeball fixes direction shows the region of product, the mirror surface is shown to the area of product Lamp bar brightness regulation in domain to the lamp bar object brightness.
Wherein, mirror surface, which is shown in product, is integrated with touch screen and display screen, is determined and is corresponded to according to user eyeball direction of gaze Mirror surface show product region.It, can when if desired adjusting the lamp bar brightness of the second quadrant in a specific application scenarios It is to turn down the axial LED light brightness of two coordinates adjacent in the second quadrant, the LED light in second remaining region of quadrant is bright Degree is adjusted to the target luminance of lamp bar.
It is that mirror surface shows that product adjusts the lamp of corresponding region automatically according to eyeball fixes direction in the specific example Bright brightness.In the present solution, the coordinate of LED adjusted and the coordinate of whole lamp bar whole LED can also will be needed to show Show on the display screen that mirror surface shows product, lamp bar brightness is manually adjusted for that can realize according to their own needs.
Embodiment five
Fig. 5 is that the present invention is a kind of structure that product lamp bar brightness regulating apparatus is shown for mirror surface that embodiment five provides Schematic diagram, the device are adapted for carrying out one kind that the embodiment of the present invention is supplied to and show product lamp bar brightness regulation side for mirror surface Method.As shown in figure 5, the device can specifically include:
Eyeball fixes direction determining mould 510, for the distance between the lamp bar when user's face and mirror surface display product When less than pre-determined distance, the eyeball fixes direction of user is determined according to the image of user's face;
Target luminance determining module 520, for obtaining current environment target luminance;
Lamp bar luminance adjustment module 530, for being adjusted and the eyeball fixes according to the current environment target luminance Lamp bar brightness in the corresponding region in direction.
Further, eyeball fixes direction determining mould 510 is specifically used for:
Obtain the gray-value image in eyes of user region, wherein the eye areas includes black eyeball and white of the eye Region;
The eye areas is divided into the zonule of setting quantity according to the central point of the black eyeball;
The pixel number for being less than default gray value in each zonule is counted respectively;
The eyeball fixes direction of the user is determined according to the pixel number.
Further, eyeball fixes direction determining mould 510 is specifically used for:
Obtain the binary image in eyes of user region, wherein the eye areas includes black eyeball and white of the eye Region;
The eye areas is divided into the zonule of setting quantity according to the central point of the black eyeball;
The stain number and white point number in each zonule are counted respectively;
The direction of gaze of the user eyeball is determined according to the stain number and the white point number.
Further, target luminance determining module 520 is specifically used for:
Acquire the environmental light brightness at current time;
Default alignment lists are inquired according to the environmental light brightness at the current time, wherein the default alignment lists are deposited Storage ambient brightness corresponds to brightness error when each lamp bar brightness;
According to the corresponding brightness error of the environmental light brightness at the current time to the environment bright at the current time Degree is corrected to obtain current environment target luminance.
Further, lamp bar luminance adjustment module 530 includes:
Lamp bar object brightness determines submodule, for determining that the target of the lamp bar is bright according to current environment target luminance Degree;
Lamp bar object brightness adjusts submodule, for by the lamp bar brightness regulation in the corresponding region of the eyeball fixes direction To the object brightness of the lamp bar.
Further, the lamp bar object brightness adjusts submodule and is specifically used for:
Determine that mirror surface corresponding with the eyeball fixes direction shows the region of product;
The mirror surface is shown to the object brightness of the lamp bar brightness regulation in the region of product to the lamp bar.
It is provided in an embodiment of the present invention to show that the executable present invention of product lamp bar brightness regulating apparatus is any real for mirror surface That applies example offer shows product lamp bar brightness adjusting method for mirror surface, has the corresponding functional module of execution method and beneficial to effect Fruit.
Embodiment six
Fig. 6 is a kind of structural schematic diagram for equipment that the embodiment of the present invention six provides.Fig. 6, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 6 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
As shown in fig. 6, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited In one or more processor or processing unit 16, system storage 28, connecting different system components, (including system is deposited Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 6 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 6, use can be provided In the disc driver read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 includes --- but being not limited to --- operating system, one or more application program, other programs It may include the realization of network environment in module and program data, each of these examples or certain combination.Program mould Block 42 usually executes function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although being not shown in Fig. 6, Ke Yijie It closes equipment 12 and uses other hardware and/or software module, including but not limited to: microcode, device driver, redundancy processing are single Member, external disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize and show product lamp bar brightness adjusting method for mirror surface provided by the embodiment of the present invention:
That is, the processing unit is realized when executing described program: when user's face and mirror surface show product lamp bar it Between distance be less than pre-determined distance when, the eyeball fixes direction of user is determined according to the image of user's face;Obtain current environment Target luminance;The lamp bar in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance Brightness.
Embodiment seven
The embodiment of the present invention seven provides a kind of computer readable storage medium, is stored thereon with computer program, the journey It is realized when sequence is executed by processor as what all inventive embodiments of the application provided shows product lamp bar brightness regulation for mirror surface Method:
That is, realization when the program is executed by processor: when between the lamp bar that user's face and mirror surface show product away from When from being less than pre-determined distance, the eyeball fixes direction of user is determined according to the image of user's face;Obtain current environment target light Brightness;The lamp bar brightness in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance.
It can be using any combination of one or more computer-readable media.Computer-readable medium can be calculating Machine readable signal medium or computer readable storage medium.Computer readable storage medium for example can be --- but it is unlimited In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates The more specific example (non exhaustive list) of machine readable storage medium storing program for executing includes: electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access memory (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including --- but It is not limited to --- electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be Any computer-readable medium other than computer readable storage medium, which can send, propagate or Transmission is for by the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In --- wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.In Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (8)

1. one kind shows product lamp bar brightness adjusting method for mirror surface characterized by comprising
When user's face and mirror surface show the distance between lamp bar of product less than pre-determined distance, according to the image of user's face Determine the eyeball fixes direction of user;
Current environment target luminance is obtained, the current environment target luminance is the environmental light brightness after calibration;
The lamp bar brightness in region corresponding with the eyeball fixes direction is adjusted according to the current environment target luminance;
The acquisition current environment target luminance, comprising:
Acquire the environmental light brightness at current time;
Default alignment lists are inquired according to the environmental light brightness at the current time, wherein the default alignment lists storage ring Border brightness corresponds to brightness error when each lamp bar brightness;
According to the corresponding brightness error of the environmental light brightness at the current time to the environmental light brightness at the current time into Row correction is to obtain current environment target luminance.
2. the method according to claim 1, wherein the image according to user's face determines the eyeball of user Direction of gaze, comprising:
Obtain the gray-value image in eyes of user region, wherein the eye areas includes black eyeball and white of the eye region;
The eye areas is divided into the zonule of setting quantity according to the central point of the black eyeball;
The pixel number for being less than default gray value in each zonule is counted respectively;
The eyeball fixes direction of the user is determined according to the pixel number.
3. the method according to claim 1, wherein the image according to user's face determines the eyeball of user Direction of gaze, comprising:
Obtain the binary image in eyes of user region, wherein the eye areas includes black eyeball and white of the eye region;
The eye areas is divided into the zonule of setting quantity according to the central point of the black eyeball;
The stain number and white point number in each zonule are counted respectively;
The direction of gaze of the user eyeball is determined according to the stain number and the white point number.
4. the method according to claim 1, wherein it is described according to the current environment target luminance adjust with Lamp bar brightness in the corresponding region in the eyeball fixes direction, comprising:
The object brightness of the lamp bar is determined according to current environment target luminance;
By the object brightness of the lamp bar brightness regulation in the corresponding region of the eyeball fixes direction to the lamp bar.
5. according to the method described in claim 4, it is characterized in that, the lamp bar by eyeball fixes direction corresponding region Brightness regulation to the lamp bar object brightness, comprising:
Determine that mirror surface corresponding with the eyeball fixes direction shows the region of product;
The mirror surface is shown to the object brightness of the lamp bar brightness regulation in the region of product to the lamp bar.
6. one kind shows product lamp bar brightness regulating apparatus for mirror surface characterized by comprising
Eyeball fixes direction determining mould, for showing that the distance between the lamp bar of product is less than when user's face and mirror surface and presetting Apart from when, the eyeball fixes direction of user is determined according to the image of user's face;
Target luminance determining module, for obtaining current environment target luminance, the current environment target luminance is school Environmental light brightness after standard;
Lamp bar luminance adjustment module, it is corresponding with the eyeball fixes direction for being adjusted according to the current environment target luminance Region in lamp bar brightness;
The target luminance determining module is specifically used for:
Acquire the environmental light brightness at current time;
Default alignment lists are inquired according to the environmental light brightness at the current time, wherein the default alignment lists storage ring Border brightness corresponds to brightness error when each lamp bar brightness;
According to the corresponding brightness error of the environmental light brightness at the current time to the environmental light brightness at the current time into Row correction is to obtain current environment target luminance.
7. a kind of equipment including memory, processor and stores the computer journey that can be run on a memory and on a processor Sequence, which is characterized in that the processor realizes such as method as claimed in any one of claims 1 to 5 when executing described program.
8. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201710929411.2A 2017-10-09 2017-10-09 Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium Active CN107734796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710929411.2A CN107734796B (en) 2017-10-09 2017-10-09 Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710929411.2A CN107734796B (en) 2017-10-09 2017-10-09 Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107734796A CN107734796A (en) 2018-02-23
CN107734796B true CN107734796B (en) 2019-10-29

Family

ID=61209960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710929411.2A Active CN107734796B (en) 2017-10-09 2017-10-09 Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107734796B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108347814A (en) * 2018-03-02 2018-07-31 青岛海尔智能家电科技有限公司 A kind of method for controlling backlight thereof of switch, control device and switch
CN110136629A (en) * 2019-06-11 2019-08-16 北京硬壳科技有限公司 The method and apparatus of mirror display and dynamic regulation mirror surface brightness of display screen
CN110299101B (en) * 2019-07-02 2022-12-16 北京硬壳科技有限公司 Mirror display and control method and control device thereof
CN110572906B (en) * 2019-09-06 2022-04-29 渲美美健(深圳)科技股份有限公司 Brightness adjusting method for mirror, mirror and storage medium
CN110929146B (en) * 2019-10-23 2024-04-02 阿里巴巴集团控股有限公司 Data processing method, device, equipment and storage medium
CN112422840A (en) * 2020-10-26 2021-02-26 珠海市一微半导体有限公司 Safe light supplementing method of vision robot

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012027687A (en) * 2010-07-23 2012-02-09 Casio Comput Co Ltd Image processing apparatus and program
CN104254184A (en) * 2014-09-26 2014-12-31 嘉兴市全程信息科技有限公司 Lamp light control device capable of tracking and adapting to human eyes
CN204190981U (en) * 2014-09-26 2015-03-04 嘉兴市全程信息科技有限公司 Energy be followed the trail of and adapt to the Light Control Unit of eye
CN104482449B (en) * 2014-12-04 2017-07-28 京东方科技集团股份有限公司 Eye-protecting lamp and its light intensity regulating method
CN105323934B (en) * 2015-11-27 2018-07-13 青岛海尔股份有限公司 A kind of illumination control method of refrigerator
US10687403B2 (en) * 2016-03-21 2020-06-16 Koninklijke Philips N.V. Adaptive lighting system for a mirror component and a method of controlling an adaptive lighting system
CN105934028B (en) * 2016-05-25 2017-11-10 北京易迈医疗科技有限公司 A kind of adaptive illumination adjustments system and medical helmet
CN106828285A (en) * 2017-03-09 2017-06-13 李良杰 The car light and control method rotated with pilot's line of vision

Also Published As

Publication number Publication date
CN107734796A (en) 2018-02-23

Similar Documents

Publication Publication Date Title
CN107734796B (en) Mirror surface shows product lamp bar brightness adjusting method, device, equipment and storage medium
CN103024338B (en) There is the display device of image capture and analysis module
US9355314B2 (en) Head-mounted display apparatus and login method thereof
CN109155053B (en) Information processing apparatus, information processing method, and recording medium
CN103455790B (en) A kind of skin identification method based on complexion model
CN107077751B (en) Virtual fitting method and device for contact lenses and computer program for implementing method
US8902328B2 (en) Method of selecting a subset from an image set for generating high dynamic range image
US10783835B2 (en) Automatic control of display brightness
CN110192241A (en) Control the brightness of emissive display
KR20100005072A (en) Method and system for recommending a product based upon skin color estimated from an image
US10719059B2 (en) Systems and methods for control of output from light output apparatus
US11375133B2 (en) Automatic exposure module for an image acquisition system
US11163994B2 (en) Method and device for determining iris recognition image, terminal apparatus, and storage medium
CN110349526A (en) Augmented reality adjusting method, device, storage medium and augmented reality equipment
US10346953B2 (en) Flash and non-flash images in flash artifact removal
JP7401013B2 (en) Information processing device, control device, information processing method and program
CN106716305A (en) Control of lighting
KR20200084383A (en) Method for utilizing genetic information and electronic device thereof
CN111275648B (en) Face image processing method, device, equipment and computer readable storage medium
CN109561291A (en) Color temperature compensating method, device, storage medium and mobile terminal
CN109064431A (en) A kind of picture luminance adjusting method, equipment and its storage medium
CN111179877B (en) Screen display effect adjusting method, mobile device and storage device
Singh et al. Computational luminance constancy from naturalistic images
CN113723326A (en) Optical compensation method and device, computer device and storage medium
CN114567952A (en) Method for realizing automatic dimming of lighting equipment and related product

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

Effective date of registration: 20200326

Address after: 510530 Guangdong city of Guangzhou province YUNPU Whampoa district four Road No. 6

Patentee after: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.

Address before: 510530, No. four, 6, Po Po Road, Yun Po Industrial Zone, Whampoa District, Guangzhou, Guangdong

Co-patentee before: GUANGZHOU RUIXIN ELECTRONICS Co.,Ltd.

Patentee before: GUANGZHOU SHIYUAN ELECTRONICS Co.,Ltd.