CN110400354B - Ornament, color measuring method, storage medium, and electronic apparatus - Google Patents
Ornament, color measuring method, storage medium, and electronic apparatus Download PDFInfo
- Publication number
- CN110400354B CN110400354B CN201910667682.4A CN201910667682A CN110400354B CN 110400354 B CN110400354 B CN 110400354B CN 201910667682 A CN201910667682 A CN 201910667682A CN 110400354 B CN110400354 B CN 110400354B
- Authority
- CN
- China
- Prior art keywords
- color
- ornament
- area
- measured
- image
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10004—Still image; Photographic image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10016—Video; Image sequence
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10024—Color image
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30004—Biomedical image processing
- G06T2207/30088—Skin; Dermal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Spectrometry And Color Measurement (AREA)
Abstract
The invention provides an ornament, a color measurement method, a storage medium and an electronic device. The surface of the ornament is divided into at least one ornament area, each ornament area is set to be a unique color, and the colors of the ornament area can be used for calibrating the color difference of an image containing the ornament. The color measuring method provided by the invention acquires the image to be measured containing the ornament, collects the color of the area of the ornament in the image to be measured and the color of the object to be measured in the image to be measured, and corrects the color of the object to be measured in the image to be measured according to the color of the area of the ornament in the image to be measured and the actual color of the area of the ornament to obtain the actual color of the object to be measured. According to the scheme provided by the invention, the color difference of the image can be calculated by comparing the actual color of the preset ornament area with the color of the ornament area in the image, so that the color of the object to be detected in the image is corrected, and the actual color of the object to be detected is accurately detected.
Description
Technical Field
The invention relates to the technical field of image analysis, in particular to an ornament, a color measurement method, a storage medium and electronic equipment.
Background
When people choose cosmetics, clothes, ornaments and other products, people often want to accurately measure their own skin color, so that products with specific colors are selected according to their own skin color, and a better visual effect is matched.
The existing convenient means for measuring the skin color is to directly shoot the face, or the arm and other parts to be measured by using the smart phone, and software on the smart phone can directly read the color of the skin expressed on the picture as the skin color of the parts.
The problem of this measurement method is that the skin color on the picture usually has a certain deviation (i.e. color difference) from the actual skin color due to the influence of the light of the scene, the recognition capability of the camera of the smart phone, and other factors, so this measurement method cannot accurately measure the actual skin color.
Disclosure of Invention
Based on the above-mentioned deficiencies of the prior art, the present invention provides an ornament, a color measurement method, a storage medium, and an electronic device for providing a more accurate color measurement scheme.
The invention provides an ornament, wherein the surface of the ornament is divided into at least one ornament area;
each ornament area is set to be a unique color;
the color of the region of the at least one item of apparel is used as a basis for calibrating the color of objects in the image including the item of apparel.
Optionally, the article is an ear stud;
one end of the ear nail is provided with a first flat plate;
the at least one ornament region is a region of the ornament divided on the surface of the first plate.
Optionally, the article of apparel is eyeglasses;
the at least one ornamental region is a region of the ornamental article divided on an outer surface of a frame of the eyeglass.
Optionally, the ornament is a cylindrical eardrop;
the area of the at least one ornament is an area of the ornament which is obtained by dividing the ornament on the side surface along the axial direction of the columnar eardrop.
Optionally, a film is further adhered to the surface of the ornament, and the area of the ornament is an ornament area obtained by dividing the film adhered to the surface of the ornament; the color of the area of the article is the color of the film within the area of the article.
Optionally, at least one groove is arranged on the surface of the ornament;
the area of the at least one ornament is the surface area of the color block inlaid in the at least one groove; the color of the ornament area is the color of the color block.
Optionally, the surface of each ornament area is covered with a color paint;
the color of the area of the ornament is the color of the colored paint covered on the surface of the area of the ornament.
A second aspect of the present invention provides a color measurement method, including:
acquiring an image to be measured; the image to be measured comprises ornaments and an object to be measured, the surface of each ornament is divided into at least one ornament area, and the surface of each ornament area is set to be a unique color;
collecting the color of the ornament area in the image to be measured and the color of the object to be measured in the image to be measured;
and correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament, which is acquired in advance, so as to obtain the actual color of the object to be measured.
Optionally, the surface of the ornament is divided into an ornament area;
wherein the correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament acquired in advance comprises:
calculating the proportional relation between the color of the ornament area in the image to be measured and the color of the object to be measured in the image to be measured;
and calculating to obtain the color numerical value of the actual color of the object to be detected according to the proportional relation and the color numerical value of the actual color of the area of the ornament, so as to determine the actual color of the object to be detected.
Optionally, the surface of the ornament is divided into a plurality of ornament areas;
wherein the correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament acquired in advance comprises:
calculating the deviation degree of the area of each ornament of the ornaments; the deviation degree of the area of the ornament refers to the deviation degree of the color of the area of the ornament in the image to be measured and the color of the object to be measured in the image to be measured;
sorting the areas of the ornaments in the sequence from small to large according to the corresponding deviation degrees, and selecting the areas of the first N ornaments in the sequence as approximate areas of the object to be detected; wherein, N is a preset positive integer;
and calculating the color numerical value of the actual color of the object to be detected by utilizing the color numerical value of the actual color of the approximate area, thereby determining the actual color of the object to be detected.
A third aspect of the present invention provides a storage medium storing a program that, when executed, particularly performs the color measurement method as provided in any one of the second aspects of the present invention.
A fourth aspect of the present invention provides an electronic device, comprising a memory and a processor; wherein:
the memory is to store computer instructions;
the processor is configured to execute the computer instructions stored by the memory, and in particular, is configured to perform the color measurement method according to any one of the second aspects of the present invention.
The invention provides an ornament, a color measurement method, a storage medium and an electronic device. The surface of the ornament is divided into at least one ornament area, each ornament area is set to be a unique color, and the colors of the ornament area can be used for calibrating the chromatic aberration of an image containing the ornament. The color measuring method provided by the invention comprises the steps of acquiring the color of the ornament area of the ornament in the image to be measured and the color of the object to be measured in the image to be measured after acquiring the image to be measured containing the ornament, and then correcting the color of the object to be measured in the image to be measured according to the color value of the color of the ornament area in the image to be measured and the color value of the actual color of the ornament area to obtain the actual color of the object to be measured. According to the scheme provided by the invention, the color difference of the image can be calculated by comparing the actual color of the ornament area on the preset ornament surface with the colors of the ornament areas in the image, so that the color of the object to be measured in the image is corrected, and the actual color of the object to be measured is accurately measured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1a is a schematic structural diagram of an ear stud according to an embodiment of the present invention;
FIG. 1b is a top view of a first plate of an ear stud according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an eardrop according to an embodiment of the present invention;
FIG. 3 is a flow chart of a method of measuring color provided by an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides an ornament, wherein the surface of the ornament is divided into at least one ornament area, and the area of each ornament is set to be a unique color. That is, the regions of each of the ornaments on the surface of the ornament are previously set to a color, and the colors of the regions of the ornaments are different from each other.
In the image including the ornaments obtained by means of photographing or video recording, the preset color of the area of each ornament can be used as a basis for calibrating the colors of other objects in the image, so that the device with the color measurement function can be assisted to accurately measure the actual color of the object in the image.
Specifically, after wearing the ornament, a user holding the ornament can take a picture of the ornament and a part wearing the ornament by using a photographing device, and then analyze the taken picture by using a device or software with a color measurement function. In the analysis process, the preset colors of all the areas of the ornament can be used for calibrating the colors of the skin of the part wearing the ornament in the photo, so that the actual colors of the skin of the part are accurately measured.
When the ornament is used for assisting in measuring the skin color, a user can select to wear the ornament with the color closer to the color of the skin of the user, so that a better calibration effect is obtained.
The principle of using the color of the various ornament regions of the ornament surface for calibrating the color of other objects can be understood as follows: taking a photograph as an example, the deviation between the color of an object in the photograph and the actual color of the object in a photograph is determined by the environment in which the photograph was taken and the parameters of the photographing apparatus used to take the photograph. Therefore, for a good picture, it can be considered that the colors of all objects in the picture are substantially the same as the actual colors (or the color difference of each object in a picture is the same). Then, as long as the color difference of an object in the picture can be determined, the color difference of the object can be regarded as the color difference of all other objects in the picture, so that the color difference can be used to correct the colors of other objects expressed in the picture, thereby obtaining the actual colors of other objects.
Based on the principle, as the color of the area of each ornament is preset, the device (or software) for analyzing the photo to measure the color of the object can predetermine the actual color of the area of each ornament in the photo, and can collect the color of the area of each ornament represented in the photo, thereby calculating the color difference of the area of each ornament according to the actual color of the area of each ornament and the color represented in the photo, and further calibrating the color of other objects represented in the photo by using the calculated color difference to obtain the actual color of the object.
Optionally, the color of the area of each item may be the color in the standard color table, or may be other colors than the standard color table. When a color is set, the color numerical value of such color may be determined.
A color numerical value for a color refers to a number or set of numbers corresponding to a color in a particular color mode. Given a color value, a unique color can be directly determined.
For example, one commonly used color value is the RGB value. The RGB values for a color consist of three numbers, R for red, G for green and B for blue. The color corresponding to an RGB value can be directly determined by designating the RGB value and inputting the RGB value into a computer.
Based on the working principle of the ornaments provided by the embodiment of the application, it can be found that to assist in color measurement by using the ornaments, a device or software for measuring color needs to be capable of obtaining the color numerical values of the actual colors of the regions of each ornament of the ornaments.
In order to achieve the purpose, the ornament can be matched with corresponding color measurement software or equipment and provided for a user, the color numerical values of the actual colors of the areas of the ornaments on the ornament are stored in the corresponding color measurement software or equipment in advance, and the user can directly use the ornament and the corresponding software or equipment.
On the other hand, the ornaments of the application can record the color numerical values (such as RGB values) of the actual colors of the regions of each ornament on the product manual corresponding to each ornament in the form of the product manual, the ornaments and the corresponding product manual are packaged and provided for users, and when the ornaments are required to be used for assisting color measurement, the color numerical values on the product manual are input into color measurement equipment or software.
Optionally, in any embodiment of the present application, the following method in any aspect may be adopted to achieve the effects of dividing the regions of the ornaments on the surface of the ornaments and setting the color for each region of the ornaments:
in the first aspect, a film is adhered to the surface of the ornament, the adhered film is divided into a plurality of areas, and each area is configured with a color in advance. The film is adhered to the surface of the ornament, so that a plurality of ornament areas with different colors are divided on the surface of the ornament.
Optionally, in view of the implementation manner of the first aspect, a plurality of different films may be provided for one ornament, the color combination of the surface of each film is different, and a user may tear off the film currently adhered to the surface of the ornament according to the need of the user, and then select one of the plurality of films to be adhered, thereby achieving the effect of custom color adjustment.
Wherein each color on each film has a corresponding color value that can be provided to the user in the form of a product manual.
In the second aspect, the surface of the ornament can be provided with a plurality of grooves, color blocks with specific colors are inlaid in each groove, and the inlaid color blocks form the ornament areas with different colors on the surface of the ornament.
Optionally, for the implementation manner of the second aspect, the grooves and the corresponding color blocks may adopt detachable structures, and meanwhile, a plurality of color blocks with different colors are provided for one ornament, so that a user can freely combine the color blocks inlaid on the surface of the ornament as required. The color values for the actual colors of the color blocks may be provided in the form of a product manual.
In the third aspect, after the surface of the ornament is divided into a plurality of ornament areas, the areas of the ornament can be covered with paint with preset colors by adopting a mode of electroplating or baking finish and the like, so that the areas of the ornament can show corresponding colors.
In a fourth aspect, the body of the article may be formed by directly splicing a plurality of materials of different colors.
Optionally, the ornaments provided by the embodiments of the present application include, but are not limited to, the following categories: ear nail, eardrop, watch, necklace, ring, etc.
The ornaments provided by the embodiments of the present application will be described below with reference to two specific ornaments and related drawings.
Referring to fig. 1a and 1b, an ornament provided by an embodiment of the present application may be an ear stud as shown in the drawings, fig. 1a is a schematic structural diagram of the ear stud, and fig. 1b is a top view of a first plate at one end of the ear stud.
As shown in the ear nail of fig. 1a, after the ear nail is worn by a user, the first plate at one end of the ear nail is positioned at the outer side of the earlobe, the surface of the first plate is divided into 4 fan-shaped ornament areas as shown in fig. 1b, and each fan-shaped ornament area is preset to be a specific color.
After the user wears the ear stud provided by the embodiment of the application, the user can shoot the picture of the side face of the user by using the shooting equipment. When the software or equipment with the color measuring function measures the skin color of the side face of the user according to the photo, the color of the area of each ornament on the first plate positioned outside the earlobe in the photo can be obtained, then the color of the area of each ornament in the photo is compared with the actual color of the area of each ornament, the color difference of the skin of the side face of the user in the current photo can be determined, and the actual skin color of the side face of the user is measured according to the color of the skin of the side face of the user in the photo.
As can be understood by those skilled in the art, the shape of the first flat plate of the ear stud provided in the embodiments of the present application is not limited to a circle, but may be any planar geometric figure, the number of the regions of the ornament obtained by dividing may also be 1, and more than 1, and is not limited to 4 in the embodiments, and the dividing manner is not limited to the sector in the embodiments, and may also be divided into concentric rings, or divided in other manners.
Referring to fig. 2, the ornament provided by the embodiment of the present application may also be an eardrop, and fig. 2 is a front view of the eardrop.
As shown in the figures, the eardrop provided by the embodiment of the present application is composed of a plurality of pillar-shaped color blocks connected with each other, the side surfaces of the color blocks form a plurality of ornament areas on the surface of the ornament, and the color of each ornament area is the color of the corresponding color block.
In the image including the eardrop provided by this embodiment, the colors of these color patches can be used to calibrate the colors of other objects in the image.
Optionally, in other embodiments of the present application, the ornaments provided by the present application may also be a pair of glasses, and the regions of the ornaments on the surface of the ornaments may be divided on the outer surface of the frame of the glasses. The ornament provided by the application can also be a ring provided with a circular flat plate, and the surface of the circular flat plate is divided into a plurality of ornament areas for setting different colors.
In combination with the accessory provided in any embodiment of the present application, another embodiment of the present application further provides a color measurement method, which can be implemented by running specific software on a smart phone or a personal computer, where the software for implementing the method is software with a color measurement function, and the personal computer or the smart phone running the software is a device with a color measurement function.
As shown in fig. 3, the color measurement method includes the steps of:
s301, acquiring an image to be measured.
The image to be measured is an image including the ornament and the object to be measured provided by the embodiment of the application. The specific object to be measured may be the skin of the face of the user or the skin of other parts, and correspondingly, the image to be measured may be a picture obtained by shooting the face or other parts of the body with the shooting device after the user wears the accessory provided in the other embodiments of the present application, or an image frame in a video.
S302, collecting the color of the ornament area in the image to be measured and the color of the object to be measured in the image to be measured.
The position of the ornament in the image to be measured can be designated by a user, and the position of the ornament can be automatically determined by utilizing an image target detection algorithm.
The object to be measured needs to be specified by the user, the user can specify any object except the ornament in the image to be measured as the object to be measured, and further, the user can specify the specified position of the object to be measured and only measure the color of the specified position.
For example, in a photo taken by a user and including the face of the user and the accessory provided in the embodiment of the present application, the user may display the photo on a smart phone, and then, by clicking a touch screen of the smart phone, specify a position of the accessory and specify a specific area of the face, so that the color measurement software measures the skin color of the face skin in the area.
S303, correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the ornament region in the image to be measured and the color numerical value of the actual color of the ornament region.
Step S303 may include the following two specific implementations:
the first method is mainly used when the surface of the ornament is divided into only one ornament area, or the surface of the ornament is divided into a plurality of ornament areas, but only one ornament area can be clearly identified by software.
The first implementation manner comprises the following steps: calculating a difference value between a color numerical value of a color of the area of the ornament in the image to be measured and a color numerical value of an actual color of the area of the ornament acquired in advance.
As previously mentioned, the color values for the actual colors of the regions of the jewelry item may be pre-stored in the color measurement software or may be manually entered by the user while using the color measurement software.
And subtracting the difference value from the color value of the color of the object to be measured in the image to be measured to obtain the color value of the actual color of the object to be measured, and directly determining the actual color of the object to be measured according to the color value of the actual color of the object to be measured.
For example, the RGB values corresponding to the actual color of the region of an ornament are (R1, G1, B1), and the RGB values of the color of the region of the ornament in the image to be measured are (R2, G2, B2), then the difference values of the actual color of the region of the ornament and the color of the region of the ornament in the image to be measured are (R1-R2), (G1-G2), and (B1-B2). Meanwhile, the RGB values of the colors of the object to be measured in the image are acquired (R3, G3, B3), and since the color differences of different objects in the same image are substantially consistent, it can be considered that the RGB values of the actual colors of the object to be measured (R4, G4, B4) can be calculated according to the following formula:
R4=R3+(R1-R2);
G4=G3+(G1-G2);
B4=B3+(B1-B2)。
in the above symbols, R1 to R4, G1 to G4, and B1 to B4 are all positive integers.
Optionally, the above calculation process may be replaced by:
and calculating the proportional relation between the color of the area of the ornament in the image to be measured and the color of the object to be measured in the image to be measured.
And calculating to obtain the color numerical value of the actual color of the object to be detected according to the proportional relation and the color numerical value of the actual color of the area of the ornament, so as to determine the actual color of the object to be detected.
The second method is mainly used in the case where the surface of the ornament is divided into a plurality of regions of the ornament, and the regions of at least two ornaments in the image to be measured can be clearly recognized.
The second way includes: and for the areas of the plurality of ornaments which can be identified in the image to be measured, calculating the deviation degree of the colors of the areas of the ornaments in the image to be measured and the colors of the object to be measured in the image to be measured, sorting the areas of the ornaments from small to large according to the deviation degree, and then selecting the areas of the first N ornaments from the sequence, wherein the areas of the selected ornaments are approximate areas. N is a preset positive integer and is less than the number of areas of the ornament that can be identified in the image to be measured.
The second method can be understood as that a plurality of areas with colors closer to the object to be measured are selected from a plurality of areas of the ornament, and then the actual color of the object to be measured is calculated according to the actual colors of the areas of the ornament.
After the approximate area of the object to be detected is determined, the color numerical value of the actual color of the object to be detected can be calculated by utilizing the color numerical value of the actual color of the approximate area, so that the actual color of the object to be detected is determined.
For example, assuming that areas of 5 ornaments on the surface of the ornaments can be identified in the image to be measured, two of them having the smallest deviation can be selected as approximate areas according to the degree of deviation of the colors of the areas of the ornaments in the image to be measured from the color of the object to be measured.
Calculating the color value of the actual color of the object to be measured according to the color value of the actual color of the approximate area, which can be performed by referring to the following processes:
assume that there are two approximate regions (referred to as an approximate region a and an approximate region B, respectively) in the image to be measured, a difference between a color numerical value of a color of the approximate region a in the image to be measured and a color numerical value of a color of the object to be measured in the image to be measured is referred to as a first difference, and a difference between a color numerical value of a color of the approximate region B in the image to be measured and a color numerical value of a color of the object to be measured in the image to be measured is referred to as a second difference.
And after the first difference value and the second difference value are obtained through calculation, subtracting the first difference value from the color value of the actual color of the approximate area A to obtain a first actual color value of the object to be detected, and subtracting the second value from the color value of the actual color of the approximate area B to obtain a second actual color value of the object to be detected.
If the first actual color numerical value is consistent with the second actual color numerical value, the first actual color numerical value can be directly determined as the color numerical value of the actual color of the object to be detected, so that the actual color of the object to be detected is determined.
If the first actual color value is not consistent with the second actual color value, the average value of the first actual color value and the second actual color value can be calculated, and the calculated average value is used as the color value of the actual color of the object to be detected, so that the actual color of the object to be detected is determined.
In addition, after the plurality of approximate areas of the object to be detected are determined, interpolation calculation can be performed by using the actual colors of the plurality of approximate areas of the object to be detected, so that the actual color of the object to be detected is obtained.
According to the color measurement method provided by the embodiment of the application, after the image to be measured is obtained, the color of the object to be measured in the image to be measured is calibrated according to the colors of the areas of the ornaments on the surface of the ornament in the image to be measured and the pre-obtained actual colors of the areas of the ornaments, so that the actual color of the object to be measured is obtained. Based on the technical scheme, the method provided by the embodiment effectively eliminates the color difference of the photo caused by the illumination and the equipment parameters during photographing, so that the actual color of the object to be measured can be accurately measured according to the photo of the object to be measured. Particularly, when the skin of the user is taken as an object to be measured, the skin color of the user can be accurately and objectively measured, and the user can conveniently match the wearing aspect based on the skin color of the user.
In combination with the color measurement method provided by the foregoing embodiment of the present application, another embodiment of the present application provides an electronic device. The electronic device provided in this embodiment may be any device capable of executing the color measurement method provided in any embodiment of the present application, and for example, may be a smart phone or a personal computer or other device for executing the color measurement method provided in this application.
Referring to fig. 4, the electronic device includes:
a memory 401 for storing computer instructions.
A processor 402 for executing the computer instructions stored in the memory 401, and in particular for executing the color measurement method provided in any embodiment of the present application.
Another embodiment of the present application further provides a storage medium for storing a program, and when the program is executed, the color measurement method provided in any embodiment of the present application is specifically executed.
Those skilled in the art can make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (12)
1. An article characterized by a surface divided into at least one article region;
each ornament area is set to be a unique color;
a color of a region of the at least one item as a basis for calibrating a color of an object in an image including the item;
wherein the calibration comprises a dependence of object color in the image of the article arranged to:
and correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament, which is acquired in advance, so as to obtain the actual color of the object to be measured.
2. The article of claim 1, wherein the article is an ear stud;
one end of the ear nail is provided with a first flat plate;
the at least one ornament region is a region of the ornament divided on the surface of the first plate.
3. The article of claim 1, wherein the article is eyewear;
the at least one ornamental region is a region of the ornamental article divided on an outer surface of a frame of the eyeglass.
4. The article of claim 1, wherein the article is a cylindrical eardrop;
the area of the at least one ornament is an area of the ornament which is obtained by dividing the ornament on the side surface along the axial direction of the columnar eardrop.
5. The ornament according to any one of claims 1 to 4, wherein a film is further stuck on the surface of the ornament, and the ornament area is an ornament area obtained by dividing the film stuck on the ornament surface; the color of the area of the article is the color of the film within the area of the article.
6. The article of any one of claims 1 to 4, wherein the surface of the article is provided with at least one groove;
the area of the at least one ornament is the surface area of the color block inlaid in the at least one groove; the color of the ornament area is the color of the color block.
7. The article of any one of claims 1 to 4 wherein the surface of each region of the article is covered with a coloured paint;
the color of the area of the ornament is the color of the colored paint covered on the surface of the area of the ornament.
8. A color measurement method, comprising:
acquiring an image to be measured; the image to be measured comprises ornaments and an object to be measured, the surface of each ornament is divided into at least one ornament area, and the surface of each ornament area is set to be a unique color;
collecting the color of the ornament area in the image to be measured and the color of the object to be measured in the image to be measured;
and correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament, which is acquired in advance, so as to obtain the actual color of the object to be measured.
9. The method of claim 8, wherein the surface of the article is divided into an article area;
wherein the correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament acquired in advance comprises:
calculating the proportional relation between the color of the ornament area in the image to be measured and the color of the object to be measured in the image to be measured;
and calculating to obtain the color numerical value of the actual color of the object to be detected according to the proportional relation and the color numerical value of the actual color of the area of the ornament, so as to determine the actual color of the object to be detected.
10. The method of claim 8, wherein the surface of the item is divided into a plurality of areas of the item;
wherein the correcting the color of the object to be measured in the image to be measured based on the color numerical value of the color of the area of the ornament in the image to be measured and the color numerical value of the actual color of the area of the ornament acquired in advance comprises:
calculating the deviation degree of the area of each ornament of the ornaments; the deviation degree of the area of the ornament refers to the deviation degree of the color of the area of the ornament in the image to be measured and the color of the object to be measured in the image to be measured;
sorting the areas of the ornaments in the sequence from small to large according to the corresponding deviation degrees, and selecting the areas of the first N ornaments in the sequence as approximate areas of the object to be detected; wherein, N is a preset positive integer;
and calculating the color numerical value of the actual color of the object to be detected by utilizing the color numerical value of the actual color of the approximate area, thereby determining the actual color of the object to be detected.
11. A storage medium storing a program which, when executed, particularly performs the color measurement method according to any one of claims 8 to 10.
12. An electronic device comprising a memory and a processor; wherein:
the memory is to store computer instructions;
the processor is configured to execute the memory-stored computer instructions, in particular to perform the color measurement method according to any of claims 8 to 10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667682.4A CN110400354B (en) | 2019-07-23 | 2019-07-23 | Ornament, color measuring method, storage medium, and electronic apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667682.4A CN110400354B (en) | 2019-07-23 | 2019-07-23 | Ornament, color measuring method, storage medium, and electronic apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110400354A CN110400354A (en) | 2019-11-01 |
CN110400354B true CN110400354B (en) | 2021-09-21 |
Family
ID=68324884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910667682.4A Active CN110400354B (en) | 2019-07-23 | 2019-07-23 | Ornament, color measuring method, storage medium, and electronic apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110400354B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114453049B (en) * | 2022-01-29 | 2023-11-03 | 广州南档科技有限公司 | Rolling device for automatic production of cosmetics |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156808A (en) * | 2011-03-30 | 2011-08-17 | 北京触角科技有限公司 | System and method for improving try-on effect of reality real-time virtual ornament |
CN107895366A (en) * | 2017-11-07 | 2018-04-10 | 国网重庆市电力公司电力科学研究院 | Towards the imaging method of color evaluation, system and computer readable storage devices |
CN108153821A (en) * | 2017-12-04 | 2018-06-12 | 北京小米移动软件有限公司 | Ornaments recommend method and device |
US10264250B2 (en) * | 2016-03-21 | 2019-04-16 | The Procter & Gamble Company | Method and apparatus for determining spectral characteristics of an image captured by a camera on a mobile endpoint device |
-
2019
- 2019-07-23 CN CN201910667682.4A patent/CN110400354B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102156808A (en) * | 2011-03-30 | 2011-08-17 | 北京触角科技有限公司 | System and method for improving try-on effect of reality real-time virtual ornament |
US10264250B2 (en) * | 2016-03-21 | 2019-04-16 | The Procter & Gamble Company | Method and apparatus for determining spectral characteristics of an image captured by a camera on a mobile endpoint device |
CN107895366A (en) * | 2017-11-07 | 2018-04-10 | 国网重庆市电力公司电力科学研究院 | Towards the imaging method of color evaluation, system and computer readable storage devices |
CN108153821A (en) * | 2017-12-04 | 2018-06-12 | 北京小米移动软件有限公司 | Ornaments recommend method and device |
Non-Patent Citations (1)
Title |
---|
如何根据肤色色调选择合适的颜色;百度经验;《https://jingyan.baidu.com/article/9f7e7ec08b03ba6f29155474.html》;20170717;1-2 * |
Also Published As
Publication number | Publication date |
---|---|
CN110400354A (en) | 2019-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11030778B2 (en) | Methods and apparatus for enhancing color vision and quantifying color interpretation | |
US10533925B2 (en) | Fixtureless lensmeter and methods of operating same | |
KR101140533B1 (en) | Method and system for recommending a product based upon skin color estimated from an image | |
US9750326B2 (en) | Transparency evaluation device, transparency evaluation method and transparency evaluation program | |
US20060197775A1 (en) | Virtual monitor system having lab-quality color accuracy | |
US10216010B2 (en) | Determining user data based on image data of a selected eyeglass frame | |
US20170172406A1 (en) | Methods and Apparatus for Optical Controller | |
EP2807605A2 (en) | Eye tracking | |
CN110251066A (en) | Based on the not positive system and method for subjective distance measuring measurement ophthalmic refractive | |
JP2016535661A (en) | Ocular surface mapping | |
CN113227747B (en) | There is not fixing device to examine mirror appearance system | |
JP2016530000A (en) | System and method for measuring facial features | |
CN110400354B (en) | Ornament, color measuring method, storage medium, and electronic apparatus | |
KR102194178B1 (en) | Method for determining optical parameters of a test subject with measurement accuracy in order to adapt a pair of eyeglasses to the test subject, and immobile video centering system | |
CN108351969B (en) | Hair curl measurement | |
US11585724B2 (en) | Fixtureless lensmeter system | |
CN108351970B (en) | Hair diameter measurement | |
CN110118646A (en) | A kind of glasses parameter detection device and method based on synthesis Moire fringe technology | |
WO2020194529A1 (en) | Interest determination device, interest determination system, interest determination method, and non-transitory computer-readable medium having program stored therein | |
US20170181617A1 (en) | Method of visual testing of an individual and associated device | |
JP2013158481A (en) | Electronic mirror and program of the same | |
WO2014061294A1 (en) | Method for measuring pupil position and method for manufacturing bifocal lens | |
JP6885764B2 (en) | Lens meter | |
JP2006054679A (en) | White balance device and program thereof | |
JP2020112697A (en) | Spectacle lens color determination device, spectacle lens color determination method, and computer program |
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 |