CN101635004A - Color matching method and color matching device based on terminal - Google Patents

Color matching method and color matching device based on terminal Download PDF

Info

Publication number
CN101635004A
CN101635004A CN200910166294A CN200910166294A CN101635004A CN 101635004 A CN101635004 A CN 101635004A CN 200910166294 A CN200910166294 A CN 200910166294A CN 200910166294 A CN200910166294 A CN 200910166294A CN 101635004 A CN101635004 A CN 101635004A
Authority
CN
China
Prior art keywords
color
pixel
match
terminal
picture
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.)
Granted
Application number
CN200910166294A
Other languages
Chinese (zh)
Other versions
CN101635004B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2009101662944A priority Critical patent/CN101635004B/en
Publication of CN101635004A publication Critical patent/CN101635004A/en
Application granted granted Critical
Publication of CN101635004B publication Critical patent/CN101635004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Color Image Communication Systems (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

The invention discloses a color matching method and a color matching device based on a terminal. The method comprises the following steps: calculating position information of a selected pixel in a picture stored in the terminal; seeking a color value corresponding to the position information in bitmap data of the picture stored in advance; and seeking to acquire the matched information of the color of the pixel in a preset color matching database according to the color value. The problem that a color matching scheme based on the terminal is deficient in a correlative technology is solved according to the technical scheme provided by the invention, and further, the terminal can be utilized to carry out color matching so as to meet the demand of a user on color matching, thereby enriching the user experience.

Description

Method for color matching and device based on terminal
Technical field
The present invention relates to the communications field, in particular to a kind of method for color matching and device based on terminal.
Background technology
In some field, reasonable and harmonious colour match usually can bring magical visual effect, makes us fresh and new.For example, in fields such as dress ornament, family's decorations finishings, reasonable and harmonious colour match can improve your taste of wearing the clothes, the collocation of colour puzzlement when solving your house fitting-up.
Therefore, how to solve the problem of color-match, very important to the demand that satisfies current user's match.At present, also lack color-match scheme based on terminal.If there is this scheme, as long as take several photo like a cork, just can provide the reference of colour match when wearing the clothes, thinking of colour match or the like when providing decoration for you that like house for you that like to be beautiful.
Summary of the invention
At also lacking in the correlation technique based on the problem of the color-match scheme of terminal and propose the present invention, for this reason, fundamental purpose of the present invention is to provide a kind of improved color-match scheme based on terminal, one of to address the above problem at least.
According to an aspect of the present invention, provide a kind of method for color matching based on terminal.
Method for color matching based on terminal according to the present invention comprises: calculate the locations of pixels information of choosing in the picture of terminal storage; In the data bitmap of the picture of storing in advance, search the color value corresponding with positional information; Obtain the match information of color of pixel at default color-match database lookup according to color value.
According to a further aspect in the invention, provide a kind of color-match device based on terminal.
Color-match device based on terminal according to the present invention comprises: color calculation unit, color-match unit, wherein, the color calculation unit, be used for calculating the locations of pixels information of choosing, and in the data bitmap of the picture of storing in advance, search the color value corresponding with positional information at the picture of terminal storage; The color-match unit is used for obtaining at default color-match database lookup according to color value the match information of color of pixel.
By the present invention, in the picture of terminal storage, calculate the locations of pixels information of choosing; In the data bitmap of the described picture of storing in advance, search the color value corresponding with described positional information; Obtain the match information of described color of pixel at default color-match database lookup according to described color value, solved the problem that also lacks in the correlation technique based on the color-match scheme of terminal, and then can utilize terminal to carry out the coupling of color, satisfy the demand of user's match, improved user experience.
Other features and advantages of the present invention will be set forth in the following description, and, partly from instructions, become apparent, perhaps understand by implementing the present invention.Purpose of the present invention and other advantages can realize and obtain by specifically noted structure in the instructions of being write, claims and accompanying drawing.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the process flow diagram based on the method for color matching of terminal according to the embodiment of the invention;
Fig. 2 is the synoptic diagram according to user's click location relative coordinate of the embodiment of the invention;
The data bitmap synoptic diagram of Fig. 3 in internal memory, storing according to the sample picture of the embodiment of the invention;
Fig. 4 is according to the preferred embodiment of the invention based on the process flow diagram of the method for color matching of terminal;
Fig. 5 is the structured flowchart based on the color-match device of terminal according to the embodiment of the invention;
Fig. 6 is according to the preferred embodiment of the invention based on the structured flowchart of the color-match device of terminal.
Embodiment
Functional overview
Consider the problem that also lacks in the correlation technique based on the color-match scheme of terminal, the embodiment of the invention provides a kind of color-match scheme based on terminal, according to embodiment provided by the invention, picture behind the mobile phone photograph is that the form with image file is kept in the mobile phone EMS memory, when opening picture, be shown on the screen after image file will being decoded according to its corresponding decoding algorithm, image then sequentially is stored in the internal memory (storage unit) through decoded data bitmap.The color value of certain point can obtain according to this relative position coordinates on picture on the picture.Afterwards, according to user's selection, the color-match module can be carried out following two kinds of operations: 1, search several colors with this color value coupling in the color-match database, it is for reference to be shown to the user.2, if the another location of user on picture clicked, select to check whether matching feature of two kinds of colors, then the color-match module is searched in the color-match database and is judged whether two kinds of colors mate.
Need to prove that under the situation of not conflicting, embodiment and the feature among the embodiment among the application can make up mutually.Describe the present invention below with reference to the accompanying drawings and in conjunction with the embodiments in detail.
Method embodiment
According to the embodiment of the invention, at first provide a kind of method for color matching based on terminal.
Fig. 1 is the process flow diagram based on the method for color matching of terminal according to the embodiment of the invention.As shown in Figure 1, the method for color matching based on terminal according to the embodiment of the invention comprises following processing (step S101-step S105):
Step S101: in the picture of terminal storage, calculate the locations of pixels information of choosing;
Preferably, in specific implementation process, step S101 can comprise following processing:
(1) picture that terminal is obtained according to default decoding algorithm is decoded and is presented on the terminal screen;
Image file after terminal (for example, mobile phone) will be taken pictures is shown on the screen after the decoding of picture decoding module according to its corresponding decoding algorithm, sequentially is stored in the terminal internal memory through decoded data bitmap.
(2) obtain the pixel of choosing;
(3) positional information of calculating pixel.
The user clicks a certain position on picture, the position of on picture, clicking according to the user, treating apparatus in the terminal obtains relative coordinate according to above-mentioned position calculation, and according to the color value that finds click location in the data bitmap of this relative coordinate behind picture decoding, and storage.Wherein, the relative coordinate of user's click location specifically can be referring to Fig. 2.
Fig. 2 is the synoptic diagram according to user's click location relative coordinate of the embodiment of the invention.As shown in Figure 2, suppose that the user at first clicks on picture, select first pixel, the absolute coordinates of this pixel position (coordinate with respect to screen is called absolute coordinates) for (x1, y1); If the absolute coordinates of this picture top left corner apex be (x0, y0), then the color calculation module at first calculate the relative position coordinates of first click location in picture for (x1-x0, y1-y0); Find the individual element of (x1-x0) * 16+ (y1-y0) in the array shown in Figure 3 (being the data bitmap memory field) then.
Step S103: in the data bitmap of the picture of storing in advance, search the color value corresponding with positional information;
Wherein, the data bitmap of picture is that picture exists the data in the terminal after decoding.The data bitmap of the sample picture of representing with the form of array can be referring to Fig. 3.
The data bitmap synoptic diagram of Fig. 3 in internal memory, storing according to the sample picture of the embodiment of the invention.As shown in Figure 3, the data bitmap stored in internal memory with the RGB565 form of certain picture is represented with the array form.This array is totally 17 row, 16 row, because the color value of a pixel of per two byte representations, so total 17*16/2=136 the pixel of this figure.The color value of a some position shown in the figure be (0x2d, 0x73), the color value of another position be (0x2d, 0x73).
Step S105: the match information of obtaining color of pixel according to color value at default color-match database lookup.
Preferably, according to user's request, step S105 can handle by following dual mode:
(1) in default color-match database, searches the one or more colors that are complementary with color of pixel according to color value.
(2) obtain the one or more locations of pixels information of choosing except that pixel; In the data bitmap of picture of one or more pixel correspondences of storage in advance, search and the corresponding one or more color values of one or more locations of pixels information; In default color-match database, judge whether one or more color of pixel are complementary with color of pixel.
Preferably, in default color-match database, judge whether one or more color values are complementary with first color value, can be in the following manner: for each color value in one or more color values, search respectively in the color value matching relationship whether this color value be present in color value, if, then the color of pixel of this color value correspondence and color of pixel are complementary, otherwise the color of pixel and the color of pixel of this color value correspondence do not match.
Fig. 4 is according to the preferred embodiment of the invention based on the process flow diagram of the method for color matching of terminal.As shown in Figure 4, comprise following processing (step S401-step S429) based on the method for color matching of terminal according to the preferred embodiment of the invention:
Step S401: according to aesthetic theory and collocation of colour principle, set up the color-match database, and be saved among the FLASH of terminal (for example, mobile phone);
Step S403: during start, from FLASH, the data in the color-match database are read in the internal memory;
Step S405: when the user opened image file, the picture decoding module was shown on the screen after according to corresponding decoding algorithm image file being decoded;
Step S407: the picture decoding module sequentially is stored in decoded data bitmap in the internal memory; For example, as shown in Figure 3, the data bitmap that certain picture is stored in internal memory with the RGB565 form is represented as shown in drawings with the form of array.This array is totally 17 row, 16 row, because the color value of a pixel of per two byte representations, so total 17*16/2=136 the pixel of this figure;
Step S409: as shown in Figure 2, suppose that the user at first clicks on picture, select first pixel, the absolute coordinates of this pixel position (coordinate with respect to screen is called absolute coordinates) for (x1, y1);
Step S411: if the absolute coordinates of this picture top left corner apex be (x0, y0), then the color calculation module at first calculate the relative position coordinates of first click location in picture for (x1-x0, y1-y0);
Step S413: find the individual element of (x1-x0) * 16+ (y1-y0) in the array shown in Figure 3 (being the data bitmap memory field) then; Take out continuously two bytes, shown in two black surrounds on Fig. 3 top, just the color value that obtains first click location for (0x2d, 0x73).
Operation according to user's selection, the color-match module can be carried out following two kinds of operations: if the user selects " searching the color with this pixel coupling " function, then enter step S415,, then enter step S419 if the user selects " judging whether two pixel colors mate " function.
Step S415: search in the color-match database of color-match module in internal memory and this color value (0x2d, the color value that 0x73) is complementary;
Step S417: the color of the color value correspondence that finds is presented on the screen with the form of filling rectangle, provides the colour match reference to the user;
Step S419: if the user selects " judging whether two pixel colors mate " function, and the absolute coordinates of second pixel position selecting of user be (x2, y2);
Step S421: similar with first pixel, the color calculation module calculate the relative position coordinates of second click location in picture for (x2-x0, y2-y0);
Step S423: find the individual element of (x2-x0) * 16+ (y2-y0) in the array shown in Figure 3 (being the data bitmap memory field); Take out continuously two bytes, shown in two black surrounds of accompanying drawing 3 bottoms, just the color value that obtains second click location for (0x0c, 0x6b).
Step S425: the color-match module is searched in the color-match database, judges that second pixel color value is whether in the coupling formation of first pixel color value;
Step S427: if in the color-match formation, illustrate that then the color of second pixel and the color of first pixel mate, the match is successful for the prompting user.
Step S429: if not in the color-match formation, illustrate that then the color of second pixel and the color of first pixel are unmatched, inquire then whether the user needs to search the color with the color-match of first pixel; If it is then to jump to step S415 that the user selects.If the user selects not, then operation is finished.
Pass through the foregoing description, a kind of method for color matching based on terminal is provided, can have solved the problem that also lacks in the correlation technique based on the method for color matching of terminal, and then can utilize terminal to carry out the coupling of color, satisfy the demand of user's match, improved user experience.
Device embodiment
According to the embodiment of the invention, also provide a kind of color-match device based on terminal.
Fig. 5 is the structured flowchart based on the color-match device of terminal according to the embodiment of the invention.Fig. 6 is according to the preferred embodiment of the invention based on the structured flowchart of the color-match device of terminal.As shown in Figure 5, the color-match device according to the terminal of the embodiment of the invention comprises: color calculation unit 1, color-match unit 2 is described below in conjunction with Fig. 6.
Color calculation unit 1 is used for calculating the locations of pixels information of choosing at the picture of terminal storage, and searches the color value corresponding with positional information in the data bitmap of the picture of storing in advance;
Color-match unit 2 is connected to color calculation unit 1, is used for obtaining at default color-match database lookup according to color value the match information of color of pixel.
Preferably, as shown in Figure 6, said apparatus can also comprise: picture decoding unit 3, be connected to color calculation unit 1, and being used for decoding according to the picture that default decoding algorithm obtains terminal obtains data bitmap.
Preferably, as shown in Figure 6, said apparatus can also comprise: data bitmap storage unit 4 and color-match database storage unit 5, wherein, data bitmap storage unit 4, be connected to color calculation unit 1 and picture decoding unit 3 respectively, be used to store the data bitmap that obtains through the picture decoding unit decodes; Color-match database storage unit 5 is connected to color-match unit 2, is used to store default color-match database.
Pass through the foregoing description, a kind of color-match device based on terminal is provided, by color calculation unit 1, mutually combining of color-match unit 2, can solve the problem that also lacks in the correlation technique based on the color-match device of terminal, and then can utilize terminal to carry out the coupling of color, and satisfy the demand of user's match, improved user experience.
In sum, pass through the above embodiment of the present invention, the color-match scheme that provides based on terminal, the form of picture with image file is kept in the mobile phone EMS memory, when opening picture, be shown on the screen after image file will being decoded according to its corresponding decoding algorithm, image then sequentially is stored in the internal memory (storage unit) through decoded data bitmap.The color value of certain point can obtain according to this relative position coordinates on picture on the picture.In the color-match database that is pre-created, obtain the color-match information of this point afterwards.Thereby can utilize terminal to carry out the coupling of color, satisfy the demand of user's match, improve user experience.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with the general calculation device, they can concentrate on the single calculation element, perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in the memory storage and carry out by calculation element, perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. the method for color matching based on terminal is characterized in that, comprising:
In the picture of terminal storage, calculate the locations of pixels information of choosing;
In the data bitmap of the described picture of storing in advance, search the color value corresponding with described positional information;
Obtain the match information of described color of pixel at default color-match database lookup according to described color value.
2. method according to claim 1 is characterized in that, the described locations of pixels information of choosing of calculating in the picture of terminal storage comprises:
The picture that terminal is obtained according to default decoding algorithm is decoded and is presented on the described terminal screen;
Obtain the described pixel of choosing;
Calculate described locations of pixels information.
3. method according to claim 1 and 2 is characterized in that, the match information of obtaining described color of pixel comprises:
In default color-match database, search the one or more colors that are complementary with described color of pixel according to described color value.
4. method according to claim 1 and 2 is characterized in that, the match information of obtaining described color of pixel comprises:
Obtain the one or more locations of pixels information of choosing except that described pixel;
In the data bitmap of picture of described one or more pixel correspondences of storage in advance, search and the corresponding one or more color values of described one or more locations of pixels information;
In default color-match database, judge whether described one or more color of pixel is complementary with described color of pixel.
5. method according to claim 4 is characterized in that, describedly judges in default color-match database whether described one or more color of pixel is complementary with described color of pixel and comprises:
For each color value in described one or more color values, search respectively in the color value matching relationship whether this color value be present in described color value, if, then the color of pixel of this color value correspondence and described color of pixel are complementary, otherwise the color of pixel of this color value correspondence and described color of pixel do not match.
6. the color-match device based on terminal is characterized in that, comprising:
The color calculation unit is used for calculating the locations of pixels information of choosing at the picture of terminal storage, and searches the color value corresponding with described positional information in the data bitmap of the described picture of storing in advance;
The color-match unit is used for obtaining at default color-match database lookup according to described color value the match information of described color of pixel.
7. device according to claim 6 is characterized in that, described device also comprises:
The picture decoding unit, being used for decoding according to the picture that default decoding algorithm obtains terminal obtains data bitmap.
8. device according to claim 7 is characterized in that, described device also comprises: comprising:
The data bitmap storage unit is used to store the described data bitmap that obtains through described picture decoding unit decodes;
The color-match database storage unit is used to store described default color-match database.
CN2009101662944A 2009-08-18 2009-08-18 Color matching method and color matching device based on terminal Active CN101635004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101662944A CN101635004B (en) 2009-08-18 2009-08-18 Color matching method and color matching device based on terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009101662944A CN101635004B (en) 2009-08-18 2009-08-18 Color matching method and color matching device based on terminal

Publications (2)

Publication Number Publication Date
CN101635004A true CN101635004A (en) 2010-01-27
CN101635004B CN101635004B (en) 2011-07-13

Family

ID=41594190

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101662944A Active CN101635004B (en) 2009-08-18 2009-08-18 Color matching method and color matching device based on terminal

Country Status (1)

Country Link
CN (1) CN101635004B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148021A (en) * 2011-03-22 2011-08-10 深圳市茁壮网络股份有限公司 Display method and display device of vector font characters
CN102467513A (en) * 2010-11-03 2012-05-23 腾讯科技(深圳)有限公司 Image searching method and system
CN102496118A (en) * 2011-11-30 2012-06-13 苏州奇可思信息科技有限公司 Advertisement output management method based on online games
CN103577322A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 Click testing method and device
CN104216359A (en) * 2014-07-31 2014-12-17 四川长虹电器股份有限公司 Method for quickly confirming corresponding relations of current lamp devices
CN109040602A (en) * 2018-09-20 2018-12-18 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN110473263A (en) * 2018-05-09 2019-11-19 北京京东尚科信息技术有限公司 The checking method of picture, device and system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112241932A (en) * 2019-07-19 2021-01-19 华为技术有限公司 Picture processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU770821B2 (en) * 1999-10-05 2004-03-04 Akzo Nobel Coatings International B.V. Method for colour matching by means of an electronic imaging device
KR20050071293A (en) * 2004-01-03 2005-07-07 (주)인터정보 Method and apparatus for automatic diagnosis and color compensation for color blindness based on the web

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102467513A (en) * 2010-11-03 2012-05-23 腾讯科技(深圳)有限公司 Image searching method and system
CN102467513B (en) * 2010-11-03 2015-05-20 深圳市世纪光速信息技术有限公司 Image searching method and system
CN102148021A (en) * 2011-03-22 2011-08-10 深圳市茁壮网络股份有限公司 Display method and display device of vector font characters
CN102148021B (en) * 2011-03-22 2012-10-03 深圳市茁壮网络股份有限公司 Display method and display device of vector font characters
CN102496118A (en) * 2011-11-30 2012-06-13 苏州奇可思信息科技有限公司 Advertisement output management method based on online games
CN103577322A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 Click testing method and device
CN103577322B (en) * 2012-08-08 2015-08-12 腾讯科技(深圳)有限公司 A kind of hit testing method and apparatus
US9286858B2 (en) 2012-08-08 2016-03-15 Tencent Technology (Shenzhen) Company Limited Hit testing method and apparatus
CN104216359A (en) * 2014-07-31 2014-12-17 四川长虹电器股份有限公司 Method for quickly confirming corresponding relations of current lamp devices
CN110473263A (en) * 2018-05-09 2019-11-19 北京京东尚科信息技术有限公司 The checking method of picture, device and system
CN109040602A (en) * 2018-09-20 2018-12-18 维沃移动通信有限公司 A kind of image processing method and mobile terminal

Also Published As

Publication number Publication date
CN101635004B (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN101635004B (en) Color matching method and color matching device based on terminal
CN106934693B (en) Ceramic tile type selection method and system displayed in VR scene based on AR product model
US10831819B2 (en) Hue-based color naming for an image
CN104751195B (en) Utilize the image procossing of reference picture
CN108958062B (en) Clothes matching method and device based on intelligent wardrobe
CN108121957A (en) The method for pushing and device of U.S. face material
CN106202317A (en) Method of Commodity Recommendation based on video and device
JP6588638B2 (en) Clothing coordination recommendation method and intelligent terminal
CN104881287A (en) Image clipping method and device
CN106203286A (en) The content acquisition method of a kind of augmented reality, device and mobile terminal
CN105955733B (en) A kind of method, apparatus and mobile terminal for modifying icon
CN106446065A (en) Clothes collocation recommendation method and device
CN108416066A (en) Image searching method, user equipment, storage medium and picture searching device
CN106156237B (en) Information processing method, information processing unit and user equipment
CN103955482B (en) A kind of method and apparatus calling service in the terminal
CN104424213A (en) Mobile terminal based user wardrobe clothing management method
CN106940880A (en) A kind of U.S. face processing method, device and terminal device
CN106162303B (en) Information processing method, information processing unit and user equipment
CN106326511A (en) Intelligent fitting method for mobile terminal, mobile terminal and intelligent fitting system
CN105117399A (en) Image search method and device
CN106775664A (en) A kind of method and device for determining theme scheme of colour
CN110149550A (en) A kind of image processing method and device
CN105979236A (en) Image quality adjustment method and device
CN105912196A (en) Lock-screen wallpaper display method, device and mobile terminal
CN110349504A (en) A kind of museum guiding system based on AR

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant