CN117249904B - Calibration method and device of color sensor, cosmetic mask and storage medium - Google Patents

Calibration method and device of color sensor, cosmetic mask and storage medium Download PDF

Info

Publication number
CN117249904B
CN117249904B CN202311515553.6A CN202311515553A CN117249904B CN 117249904 B CN117249904 B CN 117249904B CN 202311515553 A CN202311515553 A CN 202311515553A CN 117249904 B CN117249904 B CN 117249904B
Authority
CN
China
Prior art keywords
color
standard
mask
card
standard color
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
CN202311515553.6A
Other languages
Chinese (zh)
Other versions
CN117249904A (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.)
Shenzhen Accompany Technology Co Ltd
Original Assignee
Shenzhen Accompany 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 Shenzhen Accompany Technology Co Ltd filed Critical Shenzhen Accompany Technology Co Ltd
Priority to CN202311515553.6A priority Critical patent/CN117249904B/en
Publication of CN117249904A publication Critical patent/CN117249904A/en
Application granted granted Critical
Publication of CN117249904B publication Critical patent/CN117249904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/46Measurement of colour; Colour measuring devices, e.g. colorimeters
    • G01J3/52Measurement of colour; Colour measuring devices, e.g. colorimeters using colour charts
    • G01J3/524Calibration of colorimeters
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N5/00Radiation therapy
    • A61N5/06Radiation therapy using light
    • A61N5/0613Apparatus adapted for a specific treatment
    • A61N5/0616Skin treatment other than tanning
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61NELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
    • A61N5/00Radiation therapy
    • A61N5/06Radiation therapy using light
    • A61N2005/0635Radiation therapy using light characterised by the body area to be irradiated
    • A61N2005/0643Applicators, probes irradiating specific body areas in close proximity
    • A61N2005/0645Applicators worn by the patient
    • A61N2005/0647Applicators worn by the patient the applicator adapted to be worn on the head
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01JMEASUREMENT OF INTENSITY, VELOCITY, SPECTRAL CONTENT, POLARISATION, PHASE OR PULSE CHARACTERISTICS OF INFRARED, VISIBLE OR ULTRAVIOLET LIGHT; COLORIMETRY; RADIATION PYROMETRY
    • G01J3/00Spectrometry; Spectrophotometry; Monochromators; Measuring colours
    • G01J3/46Measurement of colour; Colour measuring devices, e.g. colorimeters
    • G01J2003/467Colour computing

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Spectroscopy & Molecular Physics (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Biomedical Technology (AREA)
  • Pathology (AREA)
  • Biophysics (AREA)
  • General Physics & Mathematics (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Radiology & Medical Imaging (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Image Processing (AREA)
  • Spectrometry And Color Measurement (AREA)

Abstract

The invention discloses a calibration method and device of a color sensor, a cosmetic mask and a storage medium, wherein the method is applied to a processor in the cosmetic mask, and the cosmetic mask comprises the following steps: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body is provided with a processor and at least one color sensor therein; when the processor detects a gravity sensing signal generated by the gravity sensing module, the processor controls the color sensor to acquire an actual image of the standard color card; obtaining a standard image of a standard color card; and (3) automatically calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image, and ensuring the color acquisition accuracy of the color sensor of the cosmetic mask.

Description

Calibration method and device of color sensor, cosmetic mask and storage medium
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method and an apparatus for calibrating a color sensor, a cosmetic mask, and a storage medium.
Background
The face-beautifying face mask is an instrument for regulating and improving face according to physiological function of human body. The basic principle of the face mask is that the skin is irradiated by utilizing spectrum to stimulate the metabolism of the skin, thereby playing a role in physiotherapy and improving the skin state.
The functions of the existing beauty masks are more and more abundant, and many beauty masks can collect the facial skin state of a person through a color sensor, give a targeted beauty scheme and even give the change condition of the skin state of a user after the user uses the beauty mask for a period of time. The basic premise of the above-mentioned functions of the cosmetic mask is that the accuracy of the color sensor on the cosmetic mask needs to be ensured.
However, since the cosmetic mask is susceptible to dust and illumination in the environment during use, the color deviation collected by the color sensor may increase, and the accuracy of the face color collected by the color sensor cannot be ensured.
Disclosure of Invention
The invention provides a calibration method and device of a color sensor, a cosmetic mask and a storage medium, which realize automatic calibration of color parameters of the color sensor in the cosmetic mask and ensure color acquisition accuracy of the color sensor.
According to an aspect of the present invention, there is provided a method of calibrating a colour sensor for use in a processor in a cosmetic mask, the cosmetic mask comprising: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body has a processor and at least one color sensor disposed therein;
the method comprises the following steps:
when a gravity sensing signal generated by the gravity sensing module is detected, controlling the color sensor to acquire an actual image of the standard color card;
obtaining a standard image of the standard color card;
and calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image.
Further, the standard color card is rotatable, and the standard color card comprises a plurality of standard color blocks with different colors; the color sensor is controlled to acquire an actual image of a standard color card, and the method comprises the following steps:
controlling the standard color cards to rotate so that the color sensor is over against each standard color block in the standard color cards in sequence;
and controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
Further, the controlling the standard color chart to rotate includes:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, a prompt instruction is sent out so that a user can control the standard color card to rotate by a preset angle.
Further, the controlling the standard color chart to rotate includes:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, controlling the standard color card to rotate by a preset angle.
Further, calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image, including:
obtaining standard color values of the standard image on three color channels and actual color values of the actual image on the three color channels;
calculating the standard color value and the actual color value to determine a color deviation matrix;
determining a color correction parameter of the color sensor according to the color deviation matrix;
and calibrating the color parameters of the color sensor according to the color correction parameters.
According to another aspect of the present invention, there is provided a calibration device for a color sensor, including:
a processor for use in a cosmetic mask, the cosmetic mask comprising: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body has a processor and at least one color sensor disposed therein;
the device comprises:
the acquisition module is used for controlling the color sensor to acquire an actual image of the standard color card when the gravity sensing signal generated by the gravity sensing module is detected;
the acquisition module is used for acquiring the standard image of the standard color card;
and the calibration module is used for calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image.
Further, the standard color card is rotatable, and the standard color card comprises a plurality of standard color blocks with different colors;
the acquisition module comprises:
the rotating unit is used for controlling the standard color cards to rotate so that the color sensor is opposite to each standard color block in the standard color cards in sequence;
the acquisition unit is used for controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
Further, the calibration module is specifically configured to:
obtaining standard color values of the standard image on three color channels and actual color values of the actual image on the three color channels;
calculating the standard color value and the actual color value to determine a color deviation matrix;
determining a color correction parameter of the color sensor according to the color deviation matrix;
and calibrating the color parameters of the color sensor according to the color correction parameters.
According to another aspect of the present invention, there is provided a cosmetic mask comprising: a mask body and a mask receiver; wherein, the face guard main part includes:
at least one processor, and a memory communicatively coupled to the at least one processor;
the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the calibration method of the color sensor according to any embodiment of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the method for calibrating a color sensor according to any embodiment of the present invention.
According to the technical scheme provided by the embodiment of the invention, a calibration method of a color sensor is provided, and the method is applied to a processor in a cosmetic mask, and the cosmetic mask comprises the following steps: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body is provided with a processor and at least one color sensor therein; when the processor detects a gravity sensing signal generated by the gravity sensing module, the processor controls the color sensor to acquire an actual image of the standard color card; obtaining a standard image of a standard color card; and (3) automatically calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image, and ensuring the color acquisition accuracy of the color sensor of the cosmetic mask.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a calibration method of a color sensor according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a calibration method of a color sensor according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a calibration device for a color sensor according to a third embodiment of the present invention;
fig. 4 is a schematic structural view of a mask body in a cosmetic mask implementing a calibration method of a color sensor according to an embodiment of the present invention.
Fig. 5 shows a schematic diagram of the explosive structure of a cosmetic mask that may be used to implement an embodiment of the present invention.
Fig. 6 is a schematic view of a partial explosion at another angle of the cosmetic mask of fig. 5.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for calibrating a color sensor according to an embodiment of the present invention, and fig. 5-6 are schematic diagrams of the structure of a cosmetic mask that may be used to implement an embodiment of the present invention. The present embodiment may be adapted to the case of automatic calibration of a color sensor in a cosmetic mask, the method may be performed by a calibration device of the color sensor, which may be implemented in hardware and/or software, which may be configured in a processor of the cosmetic mask. In the present invention, as shown in fig. 5-6, a cosmetic mask 50 includes: a mask body 51 and a mask storage box 52, wherein a gravity sensing module 521 and a standard color card 522 are arranged in the mask storage box 52; when the mask body 51 is placed on the mask storage box, the gravity sensing module is triggered to generate a gravity sensing signal; the mask body 51 has a processor and at least one color sensor 511 (three sensors are evenly distributed in the figure) disposed therein.
The gravity sensing module of the mask storage box 52 may be a gravity sensor, or may be a button triggered by gravity, and may be disposed on the mask body 51 and/or a base of the storage box 52. In this embodiment, when the mask body is placed in the mask storage box, the gravity sensing module 521 set in the mask storage box is triggered to generate a gravity sensing signal, and sends the gravity sensing signal to the processor in the mask body, and the processor starts the automatic calibration process of the color sensor 511 when receiving the gravity sensing signal. A standard color card 522 is provided at a position of the turn table 53 provided in the mask housing case 52 facing the surface 531 of the mask body 51 and facing the color sensor 511, for use as a reference standard in color parameter calibration by the color sensor 511. In this embodiment, two sides of the standard color card 522 are provided with illumination lamps, such as LED lamps, for illuminating the standard color card 522. The turntable 53 can rotate and adjust the position of the standard color card 522 under the driving of a motor (not shown), so that the standard color card 522 is sequentially aligned with the color sensors 511 to facilitate the different color sensors 511 to shoot the standard color card 522. In this embodiment, the gravity sensing module further sends a gravity sensing signal to a switch for controlling the motor to start, and controls the motor to rotate different angles in sequence through a delay circuit to adjust the positions of the standard color cards 522. The gravity sensing module of this embodiment is elastically fixed to the base of the storage box 52, and the turntable 53 is rotatably fixed to the base of the storage box 52 and can rotate relative to the gravity sensing module. In this embodiment, a battery may be integrated inside the turntable to provide power for driving the motor.
Alternatively, the position of the standard color card 522 may be adjusted by manually controlling the rotation of the turntable 53, so that the standard color card 522 is sequentially aligned with the color sensors 511 to facilitate the different color sensors 511 to shoot the standard color card 522. In order to facilitate the sequential rotation and positioning, in this embodiment, an elastic clamping bead 524 is disposed on the base of the storage box 52, 3 limiting holes 525 are correspondingly disposed on the peripheral edge of the turntable 53, and the rotation of the turntable 53 is manually controlled so that different limiting holes 525 are sequentially clamped into the elastic clamping bead 524 to complete the alignment of different color sensors 511 with the standard color cards 522.
As shown in fig. 1, the method includes:
and S110, controlling the color sensor to acquire an actual image of the standard color card when the gravity sensing signal generated by the gravity sensing module is detected.
The standard color card is arranged on the right opposite side of the color sensor and is used for providing accurate color which can be referred in the color calibration process of the color sensor. The actual image is an image of a standard color card acquired by a color sensor.
The color sensor performs color detection by measuring the reflectance of three primary colors constituting the color of an object. Because of the extremely high precision of the color detection method, the sensor can accurately distinguish extremely similar colors and even different hues of the same color. The general color sensor has three light sources of red, green and blue. The three kinds of light are reflected by the target object after being emitted through the same lens. The amount of light that is reflected or absorbed depends on the object color. In this embodiment, the number of color sensors may be one or more, such as two cheek portions and a forehead portion provided on the mask body. The setting positions and the number of the standard color cards can be set according to the setting positions and the number of the color sensors, so that each color sensor can acquire images of the standard color cards.
In this embodiment, when the processor detects the gravity sensing signal generated and sent by the gravity sensing module, the processor starts the color calibration process of the color sensor, and controls the color sensor to collect the actual image of the standard color card arranged right opposite to the color sensor.
In order to enable the color sensor to collect an actual image of a standard color card in the mask storage box, an illuminating lamp can be arranged in the mask storage box, and when the color calibration process of the color sensor is started, the illuminating lamp is started so that the color sensor can clearly collect an image of the standard color card under the irradiation of the illuminating lamp, or a transparent window can be arranged on the mask storage box so that external light can irradiate the inside of the mask storage box, and under the condition, the parameter correction of the color sensor can be realized only by using the color sensor in a bright environment.
S120, acquiring a standard image of a standard color card.
The standard image is an image formed by pixels of the standard color chart. The color of the standard image can be selected according to the color acquisition characteristics of the color sensor, the parameters such as the use scene and the like. For example, the standard image may be one or more color blocks with a pixel size of 3*3, the RGB color component value of each pixel point may be (250,194, 110), the color component values of the standard image are stored in the local storage space, and the RGB color component values and the pixel size of the standard image may be set according to actual requirements, which is not limited in this embodiment.
In this embodiment, the standard images are stored in a local memory space of the cosmetic mask, and the processor reads the RGB color component values of the corresponding standard images from the local memory space when the color calibration parameters are turned on.
Illustratively, when the processor receives an actual image carrying an image number, a standard image having the same image number is read from the local storage space.
And S130, calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image.
Wherein the smaller the color deviation between the standard image and the actual image, the more accurate the color sensor, i.e. the more true the color of the image acquired by the color sensor.
In this embodiment, the color deviation between the standard image and the actual image is calculated, and the color parameter in the algorithm is determined for the color value in the color sensor according to the color deviation, so as to implement the correction of the color parameter of the color sensor. According to the technical scheme provided by the embodiment of the invention, a calibration method of a color sensor is provided, and the method is applied to a processor in a cosmetic mask, and the cosmetic mask comprises the following steps: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body is provided with a processor and at least one color sensor therein; when the processor detects a gravity sensing signal generated by the gravity sensing module, the processor controls the color sensor to acquire an actual image of the standard color card; obtaining a standard image of a standard color card; and (3) automatically calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image, and ensuring the color acquisition accuracy of the color sensor of the cosmetic mask.
In an optional embodiment of the present invention, calibrating the color parameter of the color sensor according to the color deviation of the standard image and the actual image includes:
obtaining standard color values of the standard image on three color channels and actual color values of the actual image on the three color channels;
calculating the standard color value and the actual color value to determine a color deviation matrix;
determining a color correction parameter of the color sensor according to the color deviation matrix;
and calibrating the color parameters of the color sensor according to the color correction parameters.
Wherein the color deviation matrix is a matrix determined by the deviation values of the actual image and the standard image at each pixel.
In this embodiment, the standard color values of the standard image on the three color channels and the actual color values of the actual image on the three color channels are respectively calculated, the color deviation value between the standard color value of the standard image on each pixel and the actual color value of the actual image on the corresponding pixel is calculated, the color deviation value on each pixel forms a color deviation matrix, and the color correction parameters of the color sensor are determined according to the color deviation matrix based on the color generation algorithm of the sensor; and calibrating the color parameters of the color sensor by adopting the color correction parameters so that the color output by the color sensor is more similar to the true color of the standard color card.
For example, the color deviation matrix between the standard color value and the actual color value may be calculated by sequentially calculating RGB pixel differences of the standard image and the actual image at each same pixel position, and determining a set of the RGB pixel differences as the color deviation matrices of the standard image and the actual image.
The standard color matrix a of the standard image is:
the actual color matrix B of the actual image is:
the color deviation matrix between the standard color value and the actual color value is a-B.
In this embodiment, the manner of determining the color correction parameters of the color sensor according to the color deviation matrix may refer to the existing method, and the embodiment of the present invention is not limited thereto. The specific method can be as follows: and if the difference value between the color deviation and the standard brightness value is out of the set difference value range, adjusting acquisition parameters of the color sensor in the corresponding photosensitive area according to the color deviation, wherein the acquisition parameters comprise the electrifying current and/or the photosensitive time. If the average difference value of the color deviation matrix on one color component is a positive value, reducing the color parameter of the corresponding photosensitive area of the color sensor according to the ratio of the average difference value to the standard color value, and re-acquiring the brightness component value of the color component until the difference value of the brightness component value output by the corresponding photosensitive area and the standard brightness value is within the difference value range; if the average difference is a negative value, the color parameters of the corresponding photosensitive areas are raised according to the ratio of the absolute value of the average difference to the standard color value, and the actual color values of the color components are re-acquired until the difference between the actual color values output by the corresponding photosensitive areas and the standard color values is within the difference range.
Example two
Fig. 2 is a flowchart of a calibration method of a color sensor according to a second embodiment of the present invention, where the steps of collecting an actual image of a standard color card by the color sensor in the above embodiment are further defined as: the standard color card is rotatable and comprises a plurality of standard color blocks with different colors; the color sensor is controlled to acquire an actual image of a standard color card, and the method comprises the following steps: controlling the standard color cards to rotate so that the color sensor is over against each standard color block in the standard color cards in sequence; and controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
As shown in fig. 2, the method includes:
and S210, when a gravity sensing signal generated by the gravity sensing module is detected, controlling the standard color cards to rotate so that the color sensor is over against each standard color block in the standard color cards in sequence.
In this embodiment, to further improve the accuracy and efficiency of color calibration, the standard color chart includes a plurality of color patches of different colors, and the standard color chart is rotatably provided in the face mask. Illustratively, the standard color chart may be rotatably disposed by providing a rotatable component on the mask receiving box, the rotatable component being connected to the processor through a driving component; the standard color card is fixed on the rotatable part; the rotatable component is used for driving the standard color card to rotate under the drive of the driving component so that the standard color blocks with different colors are sequentially opposite to the sensor, and the sensor can acquire actual images of the standard color blocks with different colors.
In an alternative embodiment of the present invention, the controlling the standard color chart to rotate includes:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, a prompt instruction is sent out so that a user can control the standard color card to rotate by a preset angle.
In this embodiment, a prompt module may also be provided in the mask storage box, which may be a flashing light and/or a voice prompt module.
When the processor detects that the sensor completes the actual image acquisition of the current standard color block, a control instruction is sent to the prompt module, after the control instruction is received by the prompt module, the prompt module looks up a table to obtain a prompt operation corresponding to the control instruction, and executes the prompt operation to send out the prompt instruction; the user can manually rotate the standard color card by a preset angle to rotate the next standard color block to the right opposite side of the sensor, so that the color sensor is comprehensively calibrated by adopting different standard color blocks. The prompting information sent by the voice prompting module can be "please rotate the color card", or can be preset audio which lasts for a certain time, such as "dripping" sound; while flashing with the flashing light.
In another optional embodiment of the present invention, the controlling the standard color chart to rotate includes:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, controlling the standard color card to rotate by a preset angle.
In this embodiment, when the sensor is detected to complete the actual image acquisition of the current standard color block, the standard color card is controlled to rotate by a preset angle, so that the next standard color block rotates to the right opposite side of the sensor, the color of the sensor can be calibrated fully automatically under the condition that the user does not perceive, the accuracy of the color sensor is ensured, and the user experience is improved.
S220, controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
In this embodiment, when the standard color patch of a different color is rotated to a position directly opposite the sensor, the control color sensor is controlled to acquire an actual image of the standard color patch directly opposite.
S230, acquiring a standard image of the standard color card.
S240, calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image.
According to the technical scheme, when the gravity sensing signal generated by the gravity sensing module is detected, the standard color card is controlled to rotate, so that the color sensor is sequentially opposite to each standard color block in the standard color card; the color sensor is controlled to sequentially collect actual images of each standard color block in the standard color card; obtaining a standard image of a standard color card; and calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image. The color sensor is calibrated comprehensively by adopting standard color blocks with different colors, and the standard color blocks are switched by rotating the color card, so that the accuracy of color parameter calibration of the color sensor is ensured, and meanwhile, the efficiency is improved.
Example III
Fig. 3 is a schematic structural diagram of a calibration device for a color sensor according to a third embodiment of the present invention. As shown in fig. 3, the device is applied to a processor in a cosmetic mask, the cosmetic mask comprising: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body has a processor and at least one color sensor disposed therein;
the device comprises: the device comprises an acquisition module 310, an acquisition module 320 and a calibration module 330; wherein,
the acquisition module 310 is configured to control the color sensor to acquire an actual image of the standard color card when the gravity sensing signal generated by the gravity sensing module is detected;
an obtaining module 320, configured to obtain a standard image of the standard color card;
and the calibration module 330 is configured to calibrate a color parameter of the color sensor according to a color deviation of the standard image and the actual image.
Optionally, the standard color card is rotatable, and the standard color card includes a plurality of standard color patches of different colors;
the acquisition module comprises:
the rotating unit is used for controlling the standard color cards to rotate so that the color sensor is opposite to each standard color block in the standard color cards in sequence;
the acquisition unit is used for controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
Optionally, the rotating unit is specifically configured to:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, a prompt instruction is sent out so that a user can control the standard color card to rotate by a preset angle.
Optionally, the rotating unit is specifically configured to:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, controlling the standard color card to rotate by a preset angle.
Optionally, the calibration module 330 is specifically configured to:
obtaining standard color values of the standard image on three color channels and actual color values of the actual image on the three color channels;
calculating the standard color value and the actual color value to determine a color deviation matrix;
determining a color correction parameter of the color sensor according to the color deviation matrix;
and calibrating the color parameters of the color sensor according to the color correction parameters.
The calibration device of the color sensor provided by the embodiment of the invention can execute the calibration method of the color sensor provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic structural view of a mask body 10 in a cosmetic mask that may be used to implement an embodiment of the present invention. Cosmetic masks are intended to represent a variety of masks having cosmetic or physiotherapy functions, as well as other similar devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the cosmetic mask 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In RAM 13, various programs and data required for the operation of cosmetic mask 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in cosmetic mask 10 are connected to I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the cosmetic mask 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunications networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, microprocessor, etc. The processor 11 performs the various methods and processes described above, such as the calibration method of the color sensor.
In some embodiments, the method of calibrating the color sensor may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, some or all of the computer program may be loaded and/or installed onto the cosmetic mask 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the calibration method of the color sensor described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the calibration method of the color sensor in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device. The input device includes: the color sensor may also include other modules, such as a touch display screen, a voice recognition module, and the like.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described herein may be implemented on a cosmetic mask having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a touchable display screen through which a user can provide input to the cosmetic mask. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (8)

1. A method of calibrating a color sensor, the method comprising a processor in a cosmetic mask, the cosmetic mask comprising: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body has a processor and at least one color sensor disposed therein;
the method comprises the following steps:
when a gravity sensing signal generated by the gravity sensing module is detected, controlling the color sensor to acquire an actual image of the standard color card;
obtaining a standard image of the standard color card;
calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image;
the standard color card is rotatable and comprises a plurality of standard color blocks with different colors; the color sensor is controlled to acquire an actual image of a standard color card, and the method comprises the following steps:
controlling the standard color cards to rotate so that the color sensor is over against each standard color block in the standard color cards in sequence;
and controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
2. The method of claim 1, wherein the controlling the standard color chip rotation comprises:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, a prompt instruction is sent out so that a user can control the standard color card to rotate by a preset angle.
3. The method of claim 1, wherein the controlling the standard color chip rotation comprises:
and when the actual image of the current standard color block in the standard color card uploaded by the color sensor is acquired, controlling the standard color card to rotate by a preset angle.
4. The method of claim 1, wherein calibrating the color parameters of the color sensor based on the color deviations of the standard image and the actual image comprises:
obtaining standard color values of the standard image on three color channels and actual color values of the actual image on the three color channels;
calculating the standard color value and the actual color value to determine a color deviation matrix;
determining a color correction parameter of the color sensor according to the color deviation matrix;
and calibrating the color parameters of the color sensor according to the color correction parameters.
5. A calibration device for a color sensor, characterized by a processor for use in a cosmetic mask, the cosmetic mask comprising: the mask comprises a mask main body and a mask storage box, wherein a gravity sensing module and a standard color card are arranged in the mask storage box; the mask main body is placed on the mask storage box to trigger the gravity sensing module to generate a gravity sensing signal; the mask body has a processor and at least one color sensor disposed therein;
the device comprises:
the acquisition module is used for controlling the color sensor to acquire an actual image of the standard color card when the gravity sensing signal generated by the gravity sensing module is detected;
the acquisition module is used for acquiring the standard image of the standard color card;
the calibration module is used for calibrating the color parameters of the color sensor according to the color deviation of the standard image and the actual image;
the standard color card is rotatable and comprises a plurality of standard color blocks with different colors;
the acquisition module comprises:
the rotating unit is used for controlling the standard color cards to rotate so that the color sensor is opposite to each standard color block in the standard color cards in sequence;
the acquisition unit is used for controlling the color sensor to sequentially acquire the actual image of each standard color block in the standard color card.
6. The device according to claim 5, wherein the calibration module is specifically configured to:
obtaining standard color values of the standard image on three color channels and actual color values of the actual image on the three color channels;
calculating the standard color value and the actual color value to determine a color deviation matrix;
determining a color correction parameter of the color sensor according to the color deviation matrix;
and calibrating the color parameters of the color sensor according to the color correction parameters.
7. A cosmetic mask, characterized in that it comprises: a mask body and a mask receiver; wherein, the face guard main part includes:
at least one processor, and a memory communicatively coupled to the at least one processor;
wherein the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of calibrating a color sensor according to any of claims 1-4.
8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer instructions for causing a processor to execute the method of calibrating a color sensor according to any of claims 1-4.
CN202311515553.6A 2023-11-15 2023-11-15 Calibration method and device of color sensor, cosmetic mask and storage medium Active CN117249904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311515553.6A CN117249904B (en) 2023-11-15 2023-11-15 Calibration method and device of color sensor, cosmetic mask and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311515553.6A CN117249904B (en) 2023-11-15 2023-11-15 Calibration method and device of color sensor, cosmetic mask and storage medium

Publications (2)

Publication Number Publication Date
CN117249904A CN117249904A (en) 2023-12-19
CN117249904B true CN117249904B (en) 2024-02-13

Family

ID=89131634

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311515553.6A Active CN117249904B (en) 2023-11-15 2023-11-15 Calibration method and device of color sensor, cosmetic mask and storage medium

Country Status (1)

Country Link
CN (1) CN117249904B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06109653A (en) * 1992-09-25 1994-04-22 Dainippon Printing Co Ltd Image inspecting apparatus
JP2001204041A (en) * 2000-01-20 2001-07-27 Seiko Epson Corp Calibration method for digital camera, digital camera with color correction by the calibration method and recording medium
JP2002355223A (en) * 2001-03-30 2002-12-10 Kanebo Ltd Method to evaluate skin condition and instrument used therefor
JP2013195243A (en) * 2012-03-19 2013-09-30 Fujitsu Ltd Color sample, color measurement program, and color measuring method
CN104574371A (en) * 2014-12-20 2015-04-29 中国科学院西安光学精密机械研究所 Characterization calibration method for high dynamic digital color camera
DE102018106875A1 (en) * 2018-03-22 2019-09-26 Basler Ag Determine color correction parameters
CN212514288U (en) * 2020-07-23 2021-02-09 王昌捷 Rotary composite colorimetric disc and test box
WO2021080069A1 (en) * 2019-10-25 2021-04-29 주식회사 지티지웰니스 Mask-type skin care apparatus using light and control method therefor
WO2022170482A1 (en) * 2021-02-09 2022-08-18 深圳市大疆创新科技有限公司 Color calibration method, controller, camera, electronic device, and storage medium
KR20220148356A (en) * 2021-04-28 2022-11-07 주식회사 진영알앤에스 Beauty mask with integrated diagnostic sensor

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113642358B (en) * 2020-04-27 2023-10-10 华为技术有限公司 Skin color detection method, device, terminal and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06109653A (en) * 1992-09-25 1994-04-22 Dainippon Printing Co Ltd Image inspecting apparatus
JP2001204041A (en) * 2000-01-20 2001-07-27 Seiko Epson Corp Calibration method for digital camera, digital camera with color correction by the calibration method and recording medium
JP2002355223A (en) * 2001-03-30 2002-12-10 Kanebo Ltd Method to evaluate skin condition and instrument used therefor
JP2013195243A (en) * 2012-03-19 2013-09-30 Fujitsu Ltd Color sample, color measurement program, and color measuring method
CN104574371A (en) * 2014-12-20 2015-04-29 中国科学院西安光学精密机械研究所 Characterization calibration method for high dynamic digital color camera
DE102018106875A1 (en) * 2018-03-22 2019-09-26 Basler Ag Determine color correction parameters
WO2021080069A1 (en) * 2019-10-25 2021-04-29 주식회사 지티지웰니스 Mask-type skin care apparatus using light and control method therefor
CN212514288U (en) * 2020-07-23 2021-02-09 王昌捷 Rotary composite colorimetric disc and test box
WO2022170482A1 (en) * 2021-02-09 2022-08-18 深圳市大疆创新科技有限公司 Color calibration method, controller, camera, electronic device, and storage medium
KR20220148356A (en) * 2021-04-28 2022-11-07 주식회사 진영알앤에스 Beauty mask with integrated diagnostic sensor

Also Published As

Publication number Publication date
CN117249904A (en) 2023-12-19

Similar Documents

Publication Publication Date Title
WO2020010848A1 (en) Control method, microprocessor, computer readable storage medium, and computer apparatus
CN106231179B (en) A kind of day and night double optical-filter switcher switching methods and device
CN111480333B (en) Light supplementing photographing method, mobile terminal and computer readable storage medium
EP2324391B1 (en) In-camera based method of detecting defect eye with high accuracy
CN104735362B (en) Photographic method and device
CN109005457B (en) Black screen detection method and device, computer equipment and storage medium
TW201737237A (en) Electronic device, system and method for adjusting display device
CN109729281A (en) Image processing method, device, storage medium and terminal
CN111447372B (en) Control method, device, equipment and medium for brightness parameter adjustment
CN110675839A (en) Screen adjusting method, electronic equipment and related device
CN110648296A (en) Pupil color correction method, correction device, terminal device and storage medium
US20150156389A1 (en) Strobe device, photography device, and method for processing image
US8285133B2 (en) Dynamic lighting control in hybrid camera-projector device
US20200382689A1 (en) Electronic device obtaining skin image and method of controlling the same
WO2017112310A1 (en) Facial contour recognition for identification
CN104780320A (en) Ambient light detection method and electronic equipment
CN110622237B (en) Method and computer program product for controlling display parameters of a mobile device
US11687635B2 (en) Automatic exposure and gain control for face authentication
CN111601373A (en) Backlight brightness control method and device, mobile terminal and storage medium
US8090253B2 (en) Photographing control method and apparatus using strobe
JP2024037793A (en) Information processing device, method for processing information, and program
WO2021097848A1 (en) Image processing method, image collection apparatus, movable platform and storage medium
CN117249904B (en) Calibration method and device of color sensor, cosmetic mask and storage medium
CN105915810B (en) Control method of electronic equipment and electronic equipment
TWI633536B (en) Electronic device and method for adjusting display screen

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