CN109901897A - A kind of method and apparatus of the color of match views in the application - Google Patents

A kind of method and apparatus of the color of match views in the application Download PDF

Info

Publication number
CN109901897A
CN109901897A CN201910028592.0A CN201910028592A CN109901897A CN 109901897 A CN109901897 A CN 109901897A CN 201910028592 A CN201910028592 A CN 201910028592A CN 109901897 A CN109901897 A CN 109901897A
Authority
CN
China
Prior art keywords
color
view
value
pixel
area
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
CN201910028592.0A
Other languages
Chinese (zh)
Other versions
CN109901897B (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.)
Zhengzhou Apas Technology Co ltd
Original Assignee
Zhuhai Tianyan 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 Zhuhai Tianyan Technology Co Ltd filed Critical Zhuhai Tianyan Technology Co Ltd
Priority to CN201910028592.0A priority Critical patent/CN109901897B/en
Publication of CN109901897A publication Critical patent/CN109901897A/en
Application granted granted Critical
Publication of CN109901897B publication Critical patent/CN109901897B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application provides a kind of method and apparatus of match views color in the application, this method comprises: obtaining the first color value of the first view of current business scene in application;Obtain the second color value of multiple alternative objects corresponding second view and second view respectively from advertising resource library;According to the difference of second color value and first color value, the determining and matched match views of the first view from the multiple second view;It chooses corresponding alternative objects according to the target view to be loaded, to recommend to user.A kind of method and apparatus of match views color in the application provided by the embodiments of the present application can provide matching in color view for user.

Description

A kind of method and apparatus of the color of match views in the application
Technical field
This application involves technical field of image processing, more particularly to a kind of method and dress of match views color in the application It sets.
Background technique
In the prior art, in the application such as game or video (English: Application, abbreviation: App), Ke Yi Other views are shown simultaneously on App active view, such as the view or expression view etc. of advertisement.There is also be based in the prior art User tag, user preferences etc. display for a user the scheme of respective view automatically.
Based on this, it was found by the inventors of the present invention that in riotous profusion other many and diverse views such as advertisement bring vision to user On indisposed, lofty sense, user click intention receive influence, reduce the recommendation efficiency of information.
The information disclosed in the background technology section is intended only to increase the understanding to general background of the invention, without answering When being considered as recognizing or imply that the information constitutes the prior art already known to those of ordinary skill in the art in any form.
Summary of the invention
The purpose of the embodiment of the present application is to provide a kind of method and apparatus of match views color in the application, can be use Family provides matching in color view.
In order to solve the above technical problems, the embodiment of the present application is realized by following aspects.
In a first aspect, the embodiment of the present application provides a kind of method of match views color in the application, comprising: acquisition is answered With the first color value of the first view of middle current business scene;It is corresponding to obtain multiple alternative objects respectively from advertising resource library Second color value of the second view and second view;According to the difference of second color value and first color value, from described The determining and matched target view of the first view in multiple second views;It is chosen according to the target view corresponding alternative Object is loaded, to recommend to user.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by second color value and first color value in a second view The smallest second view of difference be determined as the target view.
In one possible implementation, first color value for obtaining the first view of current business scene in application Include: the first pixel in the first area in the traversal first view, obtains the maximum value of each color of the first pixel With minimum value;According to the difference of the maxima and minima of each color of the first pixel, first is carried out to first pixel Sequence;The first area is divided at least two regions according to first sequence, and calculates separately the first area At least two regions the first color volume;According to the first color volume, the first area is updated.
In one possible implementation, after updating the first area, further includes: by first pixel Each color color value takes the first average value;The of the first view of current business scene in application is determined according to first average value One color value.
In one possible implementation, described to obtain multiple alternative objects corresponding respectively from advertising resource library Second color value of two views and second view includes: the second pixel in the second area in traversal second view, Obtain the maxima and minima of each color of the second pixel;According to the maxima and minima of each color of the second pixel Difference, to second pixel carry out second sequence;The second area is divided at least two according to second sequence A region, and calculate separately the second color volume at least two regions of the second area;According to second colour bodies Product, updates the second area.
In one possible implementation, after updating the second area, further includes: by second pixel Each color color value takes the second average value;The second color value of second view is determined according to second average value.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by first color value and second color value in a second view It is converted into hue value, intensity value and brightness value;Based on preset form and aspect weight, saturation degree weight and lightness weight, according to turning Hue value, intensity value and brightness value after change calculate matching score value;According to the matching score value, from the multiple second view The determining and matched target view of the first view in figure.
Second aspect, the embodiment of the present application provide a kind of device of target view color in the application, comprising: obtain mould Block obtains respectively for obtaining the first color value of the first view of current business scene in application, and from advertising resource library Second color value of multiple alternative objects corresponding second view and second view;Matching module, for according to described second The difference of color value and first color value, it is determining from the multiple second view to be regarded with the matched target of the first view Figure;Display module is loaded for choosing corresponding alternative objects according to the target view, to push away to user It recommends.
In one possible implementation, the matching module is used for second color value and first color value The smallest second view of difference is determined as the target view.
In one possible implementation, the module that obtains is used to traverse in the first area in the first view The first pixel, obtain the maxima and minima of each color of the first pixel;Most according to each color of the first pixel The difference of big value and minimum value carries out the first sequence to first pixel;It sorts according to described first by the first area At least two regions are divided into, and calculate separately the first color volume at least two regions of the first area;According to institute The first color volume is stated, the first area is updated.
In one possible implementation, the acquisition module is also used to after updating the first area, by institute Each color color value for stating the first pixel takes the first average value;Current business scene in application is determined according to first average value First color value of first view.
In one possible implementation, the module that obtains is used to traverse in the second area in second view The second pixel, obtain the maxima and minima of each color of the second pixel;Most according to each color of the second pixel The difference of big value and minimum value carries out the second sequence to second pixel;It sorts according to described second by the second area At least two regions are divided into, and calculate separately the second color volume at least two regions of the second area;According to institute The second color volume is stated, the second area is updated.
In one possible implementation, the acquisition module is also used to after updating the second area, by institute Each color color value for stating the second pixel takes the second average value;Current business scene in application is determined according to second average value First color value of first view.
In one possible implementation, the matching module is used to turn first color value and second color value Turn to hue value, intensity value and brightness value;Based on preset form and aspect weight, saturation degree weight and lightness weight, according to conversion Hue value, intensity value and brightness value afterwards calculate matching score value;According to the matching score value, from the multiple second view Middle determination and the matched target view of the first view.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: memory, processor and are stored in institute The computer executable instructions that can be run on memory and on the processor are stated, the computer executable instructions are described The step of method as described in above-mentioned first aspect is realized when processor executes.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, the computer-readable storage Medium realizes such as above-mentioned first for storing computer executable instructions when the computer executable instructions are executed by processor The step of method described in aspect.
In the embodiment of the present application, pass through the first color value of the first view of current business scene in acquisition application;From wide Accuse the second color value for obtaining multiple alternative objects corresponding second view and the second view in resources bank respectively;According to the second color value With the difference of the first color value, the determining and matched target view of first view from multiple second views;It is regarded according to the target Figure is chosen corresponding alternative objects and is loaded, to recommend to user, matching in color view can be provided for user, Coordinate the advertisement view for recommending user more, user is more happy to click, and improves the recommendation efficiency of information.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The some embodiments recorded in application, for those of ordinary skill in the art, in the premise of not making the creative labor property Under, it is also possible to obtain other drawings based on these drawings.
Fig. 1 shows a kind of a kind of process signal of method of match views color in the application provided by the embodiments of the present application Figure;
Fig. 2 shows a kind of a kind of process signals of the method for match views color in the application provided by the embodiments of the present application Figure;
Fig. 3 shows the exemplary diagram of first view;
Fig. 4 shows the exemplary diagram of the first area in first view;
Fig. 5 a~5c shows the exemplary diagram of the second view;
Fig. 6 shows a kind of structural schematic diagram of device of match views color in the application provided by the embodiments of the present application;
Fig. 7 shows the electronic equipment for executing a kind of method of match views color in the application provided by the embodiments of the present application Hardware structural diagram.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common The application protection all should belong in technical staff's every other embodiment obtained without creative efforts Range.
Fig. 1 shows a kind of a kind of process signal of method of match views color in the application provided by the embodiments of the present application Figure, this method can be executed by electronic equipment, such as terminal device or server device.In other words, the method can be by pacifying It is executed mounted in the software or hardware of terminal device or server device.The server-side includes but is not limited to: single server, Server cluster, cloud server or cloud server cluster etc..As shown, this method may comprise steps of.
S10: the first color value of the first view of current business scene in application is obtained.
It is illustrated by taking game class App as an example, available game is currently located the scene of game at outpost as the first view Figure, the dominant hue color value of the first view obtained by interface color acquisition methods are the first color value.First color value is 6 16 system numbers.
S20: corresponding second view of multiple alternative objects and second view are obtained respectively from advertising resource library Second color value.
It is illustrated by taking advertisement class view as an example, obtains the second color value of multiple advertisement views and the advertisement view.Together Sample, the second color value is 6 16 system numbers obtained by interface color acquisition methods.
S30: according to the difference of the second color value and the first color value, determination is matched with first view from multiple second views Target view.
By the dominant hue color value of the dominant hue color value (6 16 system numbers) of ad content and scene of game (the 16 of 6 into Number processed) difference calculating is done, it is determining from multiple advertisement views to be regarded with the matched target of scene of game according to scheduled selection strategy Figure.For example, being the second view that user's push has higher matching degree according to the collocation of colour that classical black and white is matched.
For example, position cutting algorithm obtains the mass-tone tone pitch of first view and the second view, the dominant hue in can using HSB value can be color value.
In one possible implementation, this step can specifically include: by second color value and first color The smallest second view of the difference of value is determined as the target view.It is possible thereby to which the smallest second view of color difference is pushed to use Family.
S40: corresponding alternative objects are chosen according to the target view and are loaded, to recommend to user.
Display and the matched advertisement view of scene of game.
The method of a kind of target view color in the application provided by the embodiments of the present application as a result, by obtaining in application First color value of the first view of current business scene obtains multiple alternative objects corresponding second respectively from advertising resource library Second color value of view and the second view is determined from multiple second views and the according to the difference of the second color value and the first color value The target view of one views registered shows the target view, can by the first view being presently processing with user have compared with Second view of high match colors degree is automatically pushed to user, allows users to receive matching in color push view, make The advertisement view for recommending user is more coordinated, and user is more happy to click, and improves the recommendation efficiency of information, and user is avoided to connect It is bothered when receiving push view by vision, improves the visual experience of user, be conducive to the eyesight for protecting user.
Fig. 2 shows a kind of a kind of process signals of the method for target view color in the application provided by the embodiments of the present application Figure, this method can be executed by electronic equipment, such as terminal device or server device.In other words, the method can be by pacifying It is executed mounted in the software or hardware of terminal device or server device.The server-side includes but is not limited to: single server, Server cluster, cloud server or cloud server cluster etc..As shown, this method may comprise steps of.
S10: the first color value of the first view of current business scene in application is obtained.
It is illustrated by taking game class App as an example, available game is currently located the scene of game at outpost as the first view Figure, the dominant hue color value of the first view obtained by interface color acquisition methods are the first color value.First color value is 6 16 system numbers.
In one possible implementation, this step can specifically include following steps.
S11: traversal first view in first area in the first pixel, obtain each color of the first pixel maximum value with Minimum value.
Have speech, according to the length and width of first view, obtains the specific region in first view, such as intermediate 80% region As the first area.When user's operation App, sight is usually focused on the part close to centre, so the color of first area It is best able to mirror the color effect of user's eyes.Pixel in first area is the first pixel, traverses the first pixel, is obtained The maxima and minima of each color of first pixel.Each color include red (English: Red, abbreviation: R), green (English: Green, abbreviation: G), blue (English: Blue, abbreviation: B) three elements.The maxima and minima of each color of first pixel refers to The maximum of intensity and minimum value of each color of the RGB of one pixel, are denoted as MaxR, MinR, MaxG, MinG, MaxB and MinB.
S12: according to the difference of the maxima and minima of each color of the first pixel, the first sequence is carried out to the first pixel.
For the first pixel, compare the size of (MaxR-MinR), (MaxG-MinG), (MaxB-MinB), selects difference most Big color (R or G or B), is ranked up the first pixel in first area according to the maximum color of the difference, i.e. first row Sequence.
S13: first area is divided by least two regions according to the first sequence, and calculates separately first area at least The first color volume in two regions.
For example, first area is divided into two regions according to the first sequence, the pixel for dividing the first half and later half is arrived Two different regions, available VBox1 and VBox2.
According to the product of the difference of the maxima and minima of each color of the first pixel, i.e. (MaxR-MinR) * (MaxG- MinG) * (MaxB-MinB) calculates the first color volume.
S14: the first area is updated according to the first color volume.
The first color volume is calculated for two regions respectively, and is first by the bulky area update of the first color Region.
In one possible implementation, step S11-S14 can be repeated based on the first area of update, it can be multiple Step S11-S14, such as 16 times are repeated, or stop repeating the step when only one pixel in first area.
S15: taking the first average value for each color color value of first pixel, is determined and is applied according to first average value First color value of the first view of middle current business scene.
It makes even in each color color value for the first pixel being repeated several times in first area of the step S11-S14 by final updated Mean value, i.e. the first average value determine the first color of the first view of current business scene in application according to first average value Value.
S20: corresponding second view of multiple alternative objects and second view are obtained respectively from advertising resource library Second color value.
It is illustrated by taking advertisement class view as an example, obtains the second color value of multiple advertisement views and the advertisement view.Together Sample, the second color value is 6 16 system numbers obtained by interface color acquisition methods.
In one possible implementation, this step may comprise steps of.
S21: traversal the second view in second area in the second pixel, obtain each color of the second pixel maximum value with Minimum value.
Have speech, according to the length and width of the second view, obtains the specific region in the second view, such as intermediate 80% region As the second area.When user's operation App, sight is usually focused on the close intermediate part of image, so second area Color is best able to mirror the color effect of user's eyes.Pixel in second area is the second pixel, traverses the second pixel, Obtain the maxima and minima of each color of the second pixel.Each color include red (English: Red, abbreviation: R), green (English: Green, abbreviation: G), blue (English: Blue, abbreviation: B) three elements.The maxima and minima of each color of second pixel refers to The maximum of intensity and minimum value of each color of the RGB of two pixels, are denoted as MaxR, MinR, MaxG, MinG, MaxB and MinB.
S22: according to the difference of the maxima and minima of each color of the second pixel, the second sequence is carried out to the second pixel.
For the second pixel, compare the size of (MaxR-MinR), (MaxG-MinG), (MaxB-MinB), selects difference most Big color (R or G or B), is ranked up the second pixel in second area according to the maximum color of the difference, i.e. first row Sequence.
S23: second area is divided by least two regions according to the second sequence, and calculates separately second area at least The second color volume in two regions.
For example, second area is divided into two regions according to the second sequence, the pixel for dividing the first half and later half is arrived Two different regions, available VBox1 and VBox2.
According to the product of the difference of the maxima and minima of each color of the second pixel, i.e. (mMaxR-mMinR) * (mMaxG-mMinG) * (mMaxB-mMinB) calculates the second color volume.
S24: according to the second color volume, second area is updated.
The second color volume is calculated for two regions respectively, and is second by the bulky area update of the second color Region.
In one possible implementation, step S21-S24 can be repeated based on the second area of update, it can be multiple Step S21-S24, such as 16 times are repeated, or stop repeating the step when only one pixel in second area.
S25: taking the second average value for each color color value of second pixel, according to second average value determination Second color value of the second view.
The is taken in each color color value for the second pixel being repeated several times in second area of the step S21-S24 by final updated Two average values determine the second color value of the second view of current business scene in application according to second average value.
S30: according to the difference of the second color value and the first color value, determination is matched with first view from multiple second views Target view.
By the dominant hue color value of the dominant hue color value (6 16 system numbers) of ad content and scene of game (the 16 of 6 into Number processed) difference calculating is done, it is determining from multiple advertisement views to be regarded with the matched target of scene of game according to scheduled selection strategy Figure.
This step may comprise steps of.
S31: hue value, intensity value and brightness value are converted by the first color value and the second color value.
Hue value, intensity value and brightness value are converted by the rgb value of the first color value and the second color value.
S32: it is based on preset form and aspect weight, saturation degree weight and lightness weight, according to hue value, the saturation degree after conversion Value and brightness value calculate matching score value.
Based on preset form and aspect weight H, saturation degree weight L and lightness weight B, such as H is 2, L 1, B 0.75, according to Hue value, intensity value and brightness value after conversion calculate matching score value matchScore.
MatchScore=1/ (| H (target)-H (ad) | * 2+ | L (target)-L (ad) | * 100*1.5+ | B (target)-B (ad) | * 100*1) * 100, wherein H (target) is the hue value of first view, and H (ad) is the second view Hue value, L (target) are the intensity value of first view, and L (ad) is the intensity value of the second view, and B (target) is the The brightness value of one view, B (ad) are the brightness value of the second view.
S33: according to the matching score value, the determining and matched target of the first view from the multiple second view View.
For example, matching score value is highest to be used as target view.
S40: corresponding alternative objects are chosen according to the target view and are loaded, to recommend to user.
Display and the matched advertisement view of scene of game.
Hereinafter, above step is illustrated by taking game as an example.
Fig. 3 shows the exemplary diagram of first view.It is as shown in the figure current business in the game application obtained in step S10 The first view of scene.The Sky Scene of large area is blue in figure.
Fig. 4 shows the exemplary diagram of the first area in first view.As shown, choosing placed in the middle 4/5 from first view Region is as first area.The Sky Scene of large area is blue in figure.RGB:83f7f4, HSB be hsl (178.4,0.88, 0.74)。
Fig. 5 a~5c shows the exemplary diagram of the second view.It is as shown in the figure the multiple alternative advertisements obtained in step S20 The second view.One RGB:#F6F5F3HSL:hsl of advertisement (40,0.14,0.96);Two RGB:#CA1D21HSL:hsl of advertisement (358.6,0.75,0.45);Advertisement three: RGB:#9EDAE5HSL:hsl (189.3,0.58,0.76).
In step s 30, it is made the difference respectively with the dominant hue color value of 3 ad contents and the dominant hue color value of window or carrier Value calculates, and then obtains ad content corresponding to the smallest color value of difference and carries out advertisement windows displaying.
Advertisement one: 1/ (| 178.4-40 | * 2+ | 0.88-0.14 | * 100*1.5+ | 0.74-0.96 | * 100*1) * 100= 0.244
Advertisement two: 1/ (| 178.4-358.6 | * 2+ | 0.88-0.75 | * 100*1.5+ | 0.74-0.45 | * 100*1) * 100 =0.247
Advertisement three: 1/ (| 178.4-189.3 | * 2+ | 0.88-0.58 | * 100*1.5+ | 0.74-0.76 | * 100*1) * 100 =1.45
The score value highest of advertisement three, color-match degree highest, this time advertising display uses advertisement three.
The method of a kind of match views color in the application provided by the embodiments of the present application as a result, by obtaining in application First color value of the first view of current business scene obtains multiple alternative objects corresponding second respectively from advertising resource library Second color value of view and the second view is determined from multiple second views and the according to the difference of the second color value and the first color value The target view of one views registered shows the target view, can by the first view being presently processing with user have compared with Second view of high match colors degree is automatically pushed to user, allows users to receive matching in color push view, make The advertisement view for recommending user is more coordinated, and user is more happy to click, and improves the recommendation efficiency of information, and user is avoided to connect It is bothered when receiving push view by vision, improves the visual experience of user, be conducive to the eyesight for protecting user.
Fig. 6 shows a kind of structural schematic diagram of device of match views color in the application provided by the embodiments of the present application, The device 100 includes: to obtain module 110, matching module 120 and display module 130.
Obtain module 110 be used to obtain apply in current business scene first view the first color value, and from advertisement The second color value of multiple alternative objects corresponding second view and second view is obtained in resources bank respectively.Matching module 120 for according to the difference of second color value and first color value, determining from the multiple second view and described the The target view of one views registered.Display module 130, which is used to choose corresponding alternative objects according to the target view, to be added It carries, to carry out recommendation target view to user.
In one possible implementation, matching module 120 is used for second color value and first color value The smallest second view of difference is determined as the target view.
In one possible implementation, module 110 is obtained to be used to traverse in the first area in the first view The first pixel, obtain the maxima and minima of each color of the first pixel;Most according to each color of the first pixel The difference of big value and minimum value carries out the first sequence to first pixel;It sorts according to described first by the first area At least two regions are divided into, and calculate separately the first color volume at least two regions of the first area;According to institute The first color volume is stated, the first area is updated.
In one possible implementation, module 110 is obtained to be also used to after updating the first area, it will be described Each color color value of first pixel takes the first average value;The of current business scene in application is determined according to first average value First color value of one view.
In one possible implementation, module 110 is obtained to be used to traverse in the second area in second view The second pixel, obtain the maxima and minima of each color of the second pixel;Most according to each color of the second pixel The difference of big value and minimum value carries out the second sequence to second pixel;It sorts according to described second by the second area At least two regions are divided into, and calculate separately the second color volume at least two regions of the second area;According to institute The second color volume is stated, the second area is updated.
In one possible implementation, module 110 is obtained to be also used to after updating the second area, it will be described Each color color value of second pixel takes the second average value;The of current business scene in application is determined according to second average value First color value of one view.
In one possible implementation, matching module 120 is used to turn first color value and second color value Turn to hue value, intensity value and brightness value;Based on preset form and aspect weight, saturation degree weight and lightness weight, according to conversion Hue value, intensity value and brightness value afterwards calculate matching score value;According to the matching score value, from the multiple second view Middle determination and the matched target view of the first view.
The device 100 provided by the embodiments of the present application can be performed each method described in embodiment of the method above, and realize The function and beneficial effect of each method described in embodiment of the method above, details are not described herein.
Fig. 7 shows the electronic equipment for executing a kind of method of match views color in the application provided by the embodiments of the present application Hardware structural diagram can be with as shown, the electronic equipment can generate bigger difference because configuration or performance are different Including one or more processor 701 and memory 702, one or more are can store in memory 702 Store application program or data.Wherein, memory 702 can be of short duration storage or persistent storage.It is stored in answering for memory 702 It may include one or more modules (diagram is not shown) with program, each module may include in the electronic equipment Series of computation machine executable instruction.Further, processor 701 can be set to communicate with memory 702, in the electronics The series of computation machine executable instruction in memory 702 is executed in equipment.The electronic equipment can also include one or one The above power supply 703, one or more wired or wireless network interfaces 704, one or more input/output interfaces 705, one or more keyboards 706 etc..
In a specific embodiment, which includes memory, processor and is stored on the memory And the computer executable instructions that can be run on the processor, the computer executable instructions are executed by the processor Shi Shixian following below scheme: the first color value of the first view of current business scene in application is obtained;From advertising resource library respectively Obtain the second color value of multiple alternative objects corresponding second view and second view;According to second color value with it is described The difference of first color value, the determining and matched target view of the first view from the multiple second view;According to described Target view is chosen corresponding alternative objects and is loaded, to recommend to user.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by second color value and first color value in a second view The smallest second view of difference be determined as the target view.
In one possible implementation, first color value for obtaining the first view of current business scene in application Include: the first pixel in the first area in the traversal first view, obtains the maximum value of each color of the first pixel With minimum value;According to the difference of the maxima and minima of each color of the first pixel, first is carried out to first pixel Sequence;The first area is divided at least two regions according to first sequence, and calculates separately the first area At least two regions the first color volume;According to the first color volume, the first area is updated.
In one possible implementation, after updating the first area, further includes: by first pixel Each color color value takes the first average value;The of the first view of current business scene in application is determined according to first average value One color value.
In one possible implementation, described to obtain multiple alternative objects corresponding respectively from advertising resource library Second color value of two views and second view includes: the second pixel in the second area in traversal second view, Obtain the maxima and minima of each color of the second pixel;According to the maxima and minima of each color of the second pixel Difference, to second pixel carry out second sequence;The second area is divided at least two according to second sequence A region, and calculate separately the second color volume at least two regions of the second area;According to second colour bodies Product, updates the second area.
In one possible implementation, after updating the second area, further includes: by second pixel Each color color value takes the second average value;The second color value of second view is determined according to second average value.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by first color value and second color value in a second view It is converted into hue value, intensity value and brightness value;Based on preset form and aspect weight, saturation degree weight and lightness weight, according to turning Hue value, intensity value and brightness value after change calculate matching score value;According to the matching score value, from the multiple second view The determining and matched target view of the first view in figure.
The electronic equipment for executing a kind of method of match views color in the application provided by the embodiments of the present application as a result, can Each method described in embodiment of the method above is executed, and realizes the function of each method described in embodiment of the method above and has Beneficial effect, details are not described herein.
The electronic equipment of the embodiment of the present application exists in a variety of forms, including but not limited to following equipment.
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
Further, described computer-readable to deposit the embodiment of the present application also provides a kind of computer readable storage medium Storage media is realized for storing computer executable instructions, when the computer executable instructions are executed by processor to flow down Journey: the first color value of the first view of current business scene in application is obtained;It is obtained respectively from advertising resource library multiple alternative Second color value of object corresponding second view and second view;According to the difference of second color value and first color value Value, the determining and matched target view of the first view from the multiple second view;It is chosen according to the target view Corresponding alternative objects are loaded, to recommend to user.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by second color value and first color value in a second view The smallest second view of difference be determined as the target view.
In one possible implementation, first color value for obtaining the first view of current business scene in application Include: the first pixel in the first area in the traversal first view, obtains the maximum value of each color of the first pixel With minimum value;According to the difference of the maxima and minima of each color of the first pixel, first is carried out to first pixel Sequence;The first area is divided at least two regions according to first sequence, and calculates separately the first area At least two regions the first color volume;According to the first color volume, the first area is updated.
In one possible implementation, after updating the first area, further includes: by first pixel Each color color value takes the first average value;The of the first view of current business scene in application is determined according to first average value One color value.
In one possible implementation, described to obtain multiple alternative objects corresponding respectively from advertising resource library Second color value of two views and second view includes: the second pixel in the second area in traversal second view, Obtain the maxima and minima of each color of the second pixel;According to the maxima and minima of each color of the second pixel Difference, to second pixel carry out second sequence;The second area is divided at least two according to second sequence A region, and calculate separately the second color volume at least two regions of the second area;According to second colour bodies Product, updates the second area.
In one possible implementation, after updating the second area, further includes: by second pixel Each color color value takes the second average value;The second color value of second view is determined according to second average value.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by first color value and second color value in a second view It is converted into hue value, intensity value and brightness value;Based on preset form and aspect weight, saturation degree weight and lightness weight, according to turning Hue value, intensity value and brightness value after change calculate matching score value;According to the matching score value, from the multiple second view The determining and matched target view of the first view in figure.
It is able to carry out when the computer executable instructions are executed by processor as a result, above described in embodiment of the method Each method, and realize the function and beneficial effect of each method described in embodiment of the method above, details are not described herein.
Wherein, the computer readable storage medium includes read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
Further, the embodiment of the present application also provides a kind of computer program product, the computer program product packets The computer program being stored in non-transient computer readable storage medium is included, the computer program includes program instruction, when Described program instruction realizes following below scheme when being computer-executed: obtaining the of the first view of current business scene in application One color value;Obtain the second color of multiple alternative objects corresponding second view and second view respectively from advertising resource library Value;It is determining from the multiple second view to be regarded with described first according to the difference of second color value and first color value Scheme matched target view;It chooses corresponding alternative objects according to the target view to be loaded, to push away to user It recommends.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by second color value and first color value in a second view The smallest second view of difference be determined as the target view.
In one possible implementation, first color value for obtaining the first view of current business scene in application Include: the first pixel in the first area in the traversal first view, obtains the maximum value of each color of the first pixel With minimum value;According to the difference of the maxima and minima of each color of the first pixel, first is carried out to first pixel Sequence;The first area is divided at least two regions according to first sequence, and calculates separately the first area At least two regions the first color volume;According to the first color volume, the first area is updated.
In one possible implementation, after updating the first area, further includes: by first pixel Each color color value takes the first average value;The of the first view of current business scene in application is determined according to first average value One color value.
In one possible implementation, described to obtain multiple alternative objects corresponding respectively from advertising resource library Second color value of two views and second view includes: the second pixel in the second area in traversal second view, Obtain the maxima and minima of each color of the second pixel;According to the maxima and minima of each color of the second pixel Difference, to second pixel carry out second sequence;The second area is divided at least two according to second sequence A region, and calculate separately the second color volume at least two regions of the second area;According to second colour bodies Product, updates the second area.
In one possible implementation, after updating the second area, further includes: by second pixel Each color color value takes the second average value;The second color value of second view is determined according to second average value.
In one possible implementation, according to the difference of second color value and first color value, from described more The determining and matched target view of the first view includes: by first color value and second color value in a second view It is converted into hue value, intensity value and brightness value;Based on preset form and aspect weight, saturation degree weight and lightness weight, according to turning Hue value, intensity value and brightness value after change calculate matching score value;According to the matching score value, from the multiple second view The determining and matched target view of the first view in figure.
Computer program product provided by the embodiments of the present application is executed as a result, to be able to carry out above described in embodiment of the method Each method, and realize the function and beneficial effect of each method described in embodiment of the method above, details are not described herein.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (14)

1. a kind of method of match views color in the application characterized by comprising
Obtain the first color value of the first view of current business scene in application;
Obtain the second color value of multiple alternative objects corresponding second view and second view respectively from advertising resource library;
It is determining from the multiple second view to be regarded with described first according to the difference of second color value and first color value Scheme matched target view;
It chooses corresponding alternative objects according to the target view to be loaded, to recommend to user.
2. the method according to claim 1, wherein according to the difference of second color value and first color value Value, it is determining from the multiple second view to include: with the matched target view of the first view
The smallest second view of difference of second color value and first color value is determined as the target view.
3. the method according to claim 1, wherein the first view for obtaining current business scene in application The first color value include:
Traverse the first pixel in the first area in the first view, obtain the maximum value of each color of the first pixel with Minimum value;
According to the difference of the maxima and minima of each color of the first pixel, the first sequence is carried out to first pixel;
The first area is divided at least two regions according to first sequence, and calculates separately the first area The first color volume at least two regions;
According to the first color volume, the first area is updated.
4. according to the method described in claim 3, it is characterized in that, after updating the first area, further includes:
Each color color value of first pixel is taken into the first average value;
The first color value of the first view of current business scene in application is determined according to first average value.
5. the method according to claim 1, wherein it is described obtained respectively from advertising resource library it is multiple alternative right As the second color value of corresponding second view and second view includes:
Traverse the second pixel in the second area in second view, obtain the maximum value of each color of the second pixel with Minimum value;
According to the difference of the maxima and minima of each color of the second pixel, the second sequence is carried out to second pixel;
The second area is divided at least two regions according to second sequence, and calculates separately the second area The second color volume at least two regions;
According to the second color volume, the second area is updated.
6. according to the method described in claim 5, it is characterized in that, after updating the second area, further includes:
Each color color value of second pixel is taken into the second average value;
The second color value of second view is determined according to second average value.
7. according to the method described in claim 6, it is characterized in that, according to the difference of second color value and first color value Value, it is determining from the multiple second view to include: with the matched target view of the first view
Hue value, intensity value and brightness value are converted by first color value and second color value;
Based on preset form and aspect weight, saturation degree weight and lightness weight, according to hue value, intensity value and the lightness after conversion Value calculates matching score value;
According to the matching score value, the determining and matched target view of the first view from the multiple second view.
8. a kind of device of match views color in the application characterized by comprising
Obtain module, for obtains apply in current business scene first view the first color value, and from advertising resource library Middle the second color value for obtaining multiple alternative objects corresponding second view and second view respectively;
Matching module, for the difference according to second color value and first color value, from the multiple second view really The fixed and matched target view of the first view;
Display module is loaded for choosing corresponding alternative objects according to the target view, to push away to user It recommends.
9. device according to claim 8, which is characterized in that the matching module be used for by second color value with it is described The smallest second view of the difference of first color value is determined as the target view.
10. device according to claim 8, which is characterized in that the acquisition module is for traversing in the first view First area in the first pixel, obtain the maxima and minima of each color of the first pixel;
According to the difference of the maxima and minima of each color of the first pixel, the first sequence is carried out to first pixel;
The first area is divided at least two regions according to first sequence, and calculates separately the first area The first color volume at least two regions;
According to the first color volume, the first area is updated.
11. device according to claim 9, which is characterized in that the acquisition module is also used to updating firstth area After domain, each color color value of first pixel is taken into the first average value;
The first color value of the first view of current business scene in application is determined according to first average value.
12. device according to claim 8, which is characterized in that the acquisition module is for traversing in second view Second area in the second pixel, obtain the maxima and minima of each color of the second pixel;
According to the difference of the maxima and minima of each color of the second pixel, the second sequence is carried out to second pixel;
The second area is divided at least two regions according to second sequence, and calculates separately the second area The second color volume at least two regions;
According to the second color volume, the second area is updated.
13. device according to claim 12, which is characterized in that the acquisition module is also used to updating secondth area After domain, each color color value of second pixel is taken into the second average value;
The first color value of the first view of current business scene in application is determined according to second average value.
14. device according to claim 13, which is characterized in that the matching module is used for first color value and institute It states the second color value and is converted into hue value, intensity value and brightness value;
Based on preset form and aspect weight, saturation degree weight and lightness weight, according to hue value, intensity value and the lightness after conversion Value calculates matching score value;
According to the matching score value, the determining and matched target view of the first view from the multiple second view.
CN201910028592.0A 2019-01-11 2019-01-11 Method and device for matching view colors in application Active CN109901897B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910028592.0A CN109901897B (en) 2019-01-11 2019-01-11 Method and device for matching view colors in application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910028592.0A CN109901897B (en) 2019-01-11 2019-01-11 Method and device for matching view colors in application

Publications (2)

Publication Number Publication Date
CN109901897A true CN109901897A (en) 2019-06-18
CN109901897B CN109901897B (en) 2022-07-08

Family

ID=66943665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910028592.0A Active CN109901897B (en) 2019-01-11 2019-01-11 Method and device for matching view colors in application

Country Status (1)

Country Link
CN (1) CN109901897B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335321A (en) * 2019-07-01 2019-10-15 上海外高桥造船有限公司 Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221385A (en) * 2012-04-16 2014-12-17 高通股份有限公司 View synthesis based on asymmetric texture and depth resolutions
KR20170046434A (en) * 2015-10-21 2017-05-02 삼성전자주식회사 Image processing method and image processing apparatus
CN106650570A (en) * 2016-09-06 2017-05-10 深圳市金立通信设备有限公司 Article finding method and terminal
CN107122097A (en) * 2017-04-21 2017-09-01 维沃移动通信有限公司 The recommendation method and mobile terminal of a kind of mobile terminal wallpaper
CN107155100A (en) * 2017-06-20 2017-09-12 国家电网公司信息通信分公司 A kind of solid matching method and device based on image
CN107908383A (en) * 2017-11-14 2018-04-13 维沃移动通信有限公司 A kind of screen color method of adjustment, device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104221385A (en) * 2012-04-16 2014-12-17 高通股份有限公司 View synthesis based on asymmetric texture and depth resolutions
KR20170046434A (en) * 2015-10-21 2017-05-02 삼성전자주식회사 Image processing method and image processing apparatus
CN106650570A (en) * 2016-09-06 2017-05-10 深圳市金立通信设备有限公司 Article finding method and terminal
CN107122097A (en) * 2017-04-21 2017-09-01 维沃移动通信有限公司 The recommendation method and mobile terminal of a kind of mobile terminal wallpaper
CN107155100A (en) * 2017-06-20 2017-09-12 国家电网公司信息通信分公司 A kind of solid matching method and device based on image
CN107908383A (en) * 2017-11-14 2018-04-13 维沃移动通信有限公司 A kind of screen color method of adjustment, device and mobile terminal

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110335321A (en) * 2019-07-01 2019-10-15 上海外高桥造船有限公司 Appraisal procedure, system, storage medium and the electronic equipment of color lump matching degree
CN110335321B (en) * 2019-07-01 2021-04-23 上海外高桥造船有限公司 Color block matching degree evaluation method and system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109901897B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
CN111950653B (en) Video processing method and device, storage medium and electronic equipment
WO2016127883A1 (en) Image area detection method and device
US20110305386A1 (en) Color Indication Tool for Colorblindness
JP5896497B2 (en) Method and wireless handheld device for determining the hue of an image
CN107343187A (en) Method of color gamut mapping of color, display terminal and computer-readable recording medium
CN103927102A (en) Subject color matching method and mobile terminal
CN111063008A (en) Image processing method, device, equipment and storage medium
CN111292394A (en) Image color matching relationship determination method and device
CN112069339A (en) Background picture processing and search result display method, device, equipment and medium
CN106940880A (en) A kind of U.S. face processing method, device and terminal device
US20170161875A1 (en) Video resolution method and apparatus
CN111768377A (en) Image color evaluation method and device, electronic equipment and storage medium
CN111179370A (en) Picture generation method and device, electronic equipment and storage medium
CN109901897A (en) A kind of method and apparatus of the color of match views in the application
CN109194942A (en) A kind of naked eye 3D video broadcasting method, terminal and server
CN115953597B (en) Image processing method, device, equipment and medium
CN100535984C (en) Color image enhancing device and method
CN113435515B (en) Picture identification method and device, storage medium and electronic equipment
CN112801997B (en) Image enhancement quality evaluation method, device, electronic equipment and storage medium
CN114648442A (en) Image style migration method and device
CN112118494B (en) Video data processing method and device and storage medium
CN114494467A (en) Image color migration method and device, electronic equipment and storage medium
CN112241941A (en) Method, device, equipment and computer readable medium for acquiring image
US20200349744A1 (en) System and a method for providing color vision deficiency assistance
CN111050221A (en) Method and system for acquiring focus of multi-picture navigation interface of set top box

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220718

Address after: No.16 and 17, unit 1, North District, Kailin center, No.51 Jinshui East Road, Zhengzhou area (Zhengdong), Henan pilot Free Trade Zone, Zhengzhou City, Henan Province, 450000

Patentee after: Zhengzhou Apas Technology Co.,Ltd.

Address before: E301-27, building 1, No.1, hagongda Road, Tangjiawan Town, Zhuhai City, Guangdong Province

Patentee before: ZHUHAI TIANYAN TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right