CN107577654B - E-book color matching method, electronic equipment and storage medium based on cover analysis - Google Patents

E-book color matching method, electronic equipment and storage medium based on cover analysis Download PDF

Info

Publication number
CN107577654B
CN107577654B CN201710827036.0A CN201710827036A CN107577654B CN 107577654 B CN107577654 B CN 107577654B CN 201710827036 A CN201710827036 A CN 201710827036A CN 107577654 B CN107577654 B CN 107577654B
Authority
CN
China
Prior art keywords
cover
book
information
color
color matching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710827036.0A
Other languages
Chinese (zh)
Other versions
CN107577654A (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.)
Zhangyue Technology Co Ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201710827036.0A priority Critical patent/CN107577654B/en
Publication of CN107577654A publication Critical patent/CN107577654A/en
Application granted granted Critical
Publication of CN107577654B publication Critical patent/CN107577654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention discloses a kind of e-book color matching method, electronic equipment and computer storage mediums based on cover analysis, this method comprises: extracting the cover color information of e-book;It is searched and the matched default Security Color information of the cover color information according to the cover color information of e-book;The color matching template of the e-book is obtained according to the default Security Color information;Color matching processing is carried out to the e-book according to the color matching template.The cover color information that the present invention passes through extraction e-book, it applies it in the color matching template of e-book, it can obtain the color matching template to match with e-book cover style, so that the e-book using this color matching template is more beautiful, aesthetic characteristics can more be met, improve the readability of e-book.

Description

E-book color matching method, electronic equipment and storage medium based on cover analysis
Technical field
The present invention relates to e-book processing technology fields, and in particular to a kind of e-book color matching side based on cover analysis Method, electronic equipment and computer storage medium.
Background technique
With the change of people's reading habit, people are no longer limited to read paper book, and people use for example intelligent hand The mobile terminals such as machine, tablet computer, E-book reader carry out read become a kind of trend, mobile terminal have be convenient for carrying, The features such as more books can be stored simultaneously, in addition when being read using mobile terminal, what user can provide according to system Fixed color matching template or user voluntarily match colors to e-book.
The cover of e-book is all by well-designed, but since the cover of e-book is had nothing in common with each other, and existing E-book reading application or electronic reader in color matching template be mostly systemic presupposition, a large amount of e-book uses system The fixation color matching template or user that system provides voluntarily are matched colors, and the color matching style of entire e-book often cannot be all made Match with the cover style of e-book, so that the display of e-book lacks aesthetic feeling.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State e-book color matching method, corresponding electronic equipment and the computer storage medium based on cover analysis of problem.
According to an aspect of the invention, there is provided a kind of e-book color matching method based on cover analysis, comprising:
Extract the cover color information of e-book;
It is searched and the matched default safety colour multimedia message of the cover color information according to the cover color information of e-book Breath;
The color matching template of the e-book is obtained according to the default Security Color information;
Color matching processing is carried out to the e-book according to the color matching template.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor Operation:
Extract the cover color information of e-book;
It is searched and the matched default safety colour multimedia message of the cover color information according to the cover color information of e-book Breath;
The color matching template of the e-book is obtained according to the default Security Color information;
Color matching processing is carried out to the e-book according to the color matching template.
According to another aspect of the invention, provide a kind of computer storage medium, be stored in the storage medium to A few executable instruction, the executable instruction make processor execute following operation:
Extract the cover color information of e-book;
It is searched and the matched default safety colour multimedia message of the cover color information according to the cover color information of e-book Breath;
The color matching template of the e-book is obtained according to the default Security Color information;
Color matching processing is carried out to the e-book according to the color matching template.
E-book color matching method according to the present invention based on cover analysis, by the cover color for extracting e-book Information;It is searched and the matched default Security Color information of cover color information according to the cover color information of e-book;According to Default Security Color information obtains the color matching template of e-book;Color matching processing is carried out to e-book according to color matching template.This Invention by extract e-book cover color information, apply it in the color matching template of e-book, can obtain with The color matching template that e-book cover style matches can more accord with so that the e-book using this color matching template is more beautiful Aesthetic characteristics are closed, the readability of e-book is improved.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the according to embodiments of the present invention one e-book color matching method based on cover analysis;
Fig. 2 shows the flow charts of the according to embodiments of the present invention two e-book color matching method based on cover analysis;
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows the process of the e-book color matching method according to an embodiment of the invention based on cover analysis Figure, as shown in Figure 1, this method comprises the following steps:
Step S101 extracts the cover color information of e-book.
The cover of books is published by well-designed, scheme of colour, text information etc. all have very big reference value, User often selects color matching of the color matching template oneself liked to e-book when reading using mobile terminal It is modified, therefore providing suitable, exquisite e-book color matching template for user is very necessary, and current electronics In book application, it will usually the color matching of the color matching template or user's self-setting e-book as needed of some fixations is provided, E-book color matching method provided in this embodiment based on cover analysis, in order to what is matched with the cover style of e-book Color matching template needs to extract utilization to the cover color information of e-book.
Step S102 is searched and the matched default safety colour of cover color information according to the cover color information of e-book Multimedia message.
It can make full use of the cover color information of e-book by the color matching template that this method generates, however for The e-book cover color information extracted, can not directly apply it in color matching template, when user makes in reading With the color matching template that the color information the generates e-book that carries out that treated, eyes be may experience discomfort, and e-book Display also unsightly, therefore after extracting cover color information, need to search and the matched default safety of cover color information Color information, default Security Color information are to be suitble to a series of colors of human eye viewing for a long time by special design.Example Such as, the rainbow extracted from e-book cover is green to be not suitable for being fabricated to color matching template, and with the green corresponding default safety of rainbow Celadon in color is green to be suitble to that color matching template is made.
Step S103 obtains the color matching template of e-book according to default Security Color information.
Find with after the matched default safety colour of the cover color information of e-book, according to default Security Color Information generates the color matching template of e-book for selection by the user.
Step S104 carries out color matching processing to e-book according to color matching template.
When user has selected above-mentioned color matching template, then color matching processing is carried out according to content of the color matching template to e-book.
According to method provided in this embodiment, by the cover color information for extracting e-book;According to e-book Cover color information is searched and the matched default Security Color information of cover color information;It is obtained according to default Security Color information The color matching template of e-book;Color matching processing is carried out to e-book according to color matching template.By the cover for extracting e-book Color information applies it in the color matching template of e-book, can obtain matching with what e-book cover style matched Color template can more meet aesthetic characteristics, improve e-book so that the e-book using this color matching template is more beautiful It is readable.
Embodiment two
Fig. 2 shows the processes of the e-book color matching method according to an embodiment of the invention based on cover analysis Figure, wherein the method for the embodiment of the present invention is applied particularly in e-book application, and user is read using e-book application When, need to change the color matching of e-book, and e-book is using the color matching template itself provided or the color matching of user's self-setting It tends not to that e-book whole style is made to match with cover background color information and text color information.As shown in Fig. 2, the party Method the following steps are included:
Step S201 extracts the cover background color information and/or word cover information of e-book, wherein word cover letter Breath includes word cover colouring information and word cover font size information.
The cover of books is published by well-designed, scheme of colour, text information etc. all have very big reference value, User can select the color matching template oneself liked to carry out the color matching of e-book when reading using mobile terminal Change, thus for user provide suitable, exquisite e-book color matching template be it is very necessary, in order to obtain with e-book The color matching template that nationality cover style matches selects the cover background color information and/or cover to e-book in the present embodiment Text information extracts.
The extracting mode of cover background color information used by the present embodiment is specially to gather using to cover colouring information Class extracts cover background color information according to cluster result.Specifically, the extraction of cover background color information is passed through to e-book Cover colouring information clustered, calculate accounting of the various cover colouring informations corresponding region compared to cover overall area, account for It is cover background color information than maximum cover colouring information.Cluster point is carried out by the cover colouring information to e-book Analysis, colouring information all in cover can be separated, it is possible thereby to calculate elemental area shared by various colors information With the ratio of the elemental area of cover overall area, wherein the maximum corresponding color of the ratio for accounting for cover overall area elemental area Information is cover background color information.The extracting mode of this cover background color information is a kind of optional mode, the present invention to this not It is restricted, other extracting modes also can be used.
The extracting mode of word cover information used by the present embodiment is specially to carry out Text region processing, root to cover Word cover information is obtained according to recognition result.Specifically, the envelope to e-book is passed through for the extraction of word cover information Face carries out Text region processing, all texts for obtaining cover and the band of position where all texts, and identifies and sealed Face text font size information, clusters the colouring information in the band of position where text, obtains word cover colouring information.
Wherein, the method that Text region processing uses OCR optical character identification is carried out to the cover of e-book, by right Cover, which carries out Text region processing, can identify all texts of e-book cover, obtain the position letter where all texts Breath, location information is the position rectangle where text, can pass through the coordinate and rectangle at some angle of rectangle where text Length and width determine, can determine text font size information according further to the size of the position rectangle where text.
Colouring information in position rectangle where text is clustered, all colours in available position rectangle Information calculates the ratio of area and position rectangular area shared by various colors information, by shared area and position rectangular surfaces The maximum color of long-pending ratio is compared with above-mentioned cover background color information, if unanimously, taking shared area and position rectangle The color that the ratio of area ranked second is text color information;If inconsistent, the ratio of shared area and position rectangular area Being worth maximum color is text color information.
Step S202, according to the default safety colour of the cover background color information searching of e-book and cover background color information matches Multimedia message, and/or the default peace with word cover matches color information is searched according to the word cover colouring information of e-book Panchromatic multimedia message.
Specifically, cover background color information and word cover colouring information can be extracted by step S201, still Since some colors are not appropriate for watching for a long time, and the default Security Color information of e-book application is set by special Meter is suitble to a series of colors of human eye viewing for a long time, so needing to cover background color information and word cover colouring information It is matched with default safety colour, searches the default Security Color information and/or and word cover with cover background color information matches The default Security Color information of matches color information.Wherein matching refers to that color information is close, such as the gap of rgb value is minimum Deng.Can be wherein believed with text color to be a variety of with the default Security Color information of the cover background color information matches of e-book It may be a variety of for ceasing matched default Security Color information.
Step S203 obtains the chapter of e-book according to the default Security Color information with cover background color information matches Page and/or background page color matching template, and/or according to the default Security Color information and envelope with word cover matches color information Face text font size information, obtains the front page color matching template of e-book.
Wherein, if the default Security Color information with cover background color information matches is a variety of, the e-book that can be generated The chapter page and/or background page color matching template of nationality be also it is multiple, Security Color information can be preset according to each and is individually created Chapter page and/or background page template, can also be according to a variety of default Security Color information combination producing chapter pages and/or background page mould Plate.
Similarly, if with the default Security Color information of word cover matches color information be it is a variety of, can be generated The front page color matching template of e-book be also it is multiple, Security Color information can be preset according to each and is individually created front page Color matching template, can also be according to a variety of default Security Color information combination producing front page color matching templates.
In addition, in the front page color matching template of e-book, word cover font size information and default Security Color information It is corresponding, for example, the text of the maximum font size extracted from e-book is E, match with the text color information of E Default Security Color information is e;The text that font size size is only second to E is F, the default peace to match with the text color information of F Panchromatic multimedia message is f, then when generating the title color matching template of e-book, generates electronics according to default Security Color information e The scheme of colour of level-one title in the front page of books, according in the front page of default Security Color information f generation e-book The scheme of colour of second level title, and so on.That is, the text color of maximum font size determines title color matching mould in word cover The text color of level-one title in plate, the text color that font size is only second to maximum font size in word cover determine that title is matched colors mould The text color of second level title in plate, and so on.
Step S204 carries out color matching processing and/or root to e-book according to chapter page and/or background page color matching template According to front page color matching template, color matching processing is carried out to the front page of e-book.
Matched according to above-mentioned S201-S203 step chapter page generated and/or background page color matching template and/or front page Color template can recommend above-mentioned multiple color matching templates so that user selects to be multiple to user, selected according to user Color matching template carries out color matching processing to e-book.
Specifically, when carrying out color matching processing to chapter page according to chapter page color matching template, by chapters all in e-book The background color of page is set as the default safety colour that chapter page color matching template defines;Background page is matched according to background page color matching template When color processing, the default safety colour that background page color matching template defines is set by the background color of page had powerful connections in e-book.
Specifically, when carrying out color matching processing to front page according to front page template, the color matching of the title of rank from high to low Template is corresponding with the text matched default Security Color information of institute of word cover font size from big to small.For example, in e-book It is A that the maximum text of font size is extracted in the cover of nationality, and default Security Color information corresponding to the color of A is a;Font size size The text for being only second to A is B, default Security Color information b corresponding to the color of B;The text that font size size is only second to B is C, C Color corresponding to default Security Color information be c, and so on;In the front page of e-book, the entitled R of level-one, The entitled S of second level, the entitled T of three-level, and so on.Then in the front page color matching template according to e-book, to e-book When front page carries out color matching processing, the color of level-one title R is set as a, and the color of second level title S is set as b, the face of title T Color is set as c, and so on.
According to method provided in this embodiment, by the cover color information for extracting e-book;According to e-book Cover color information is searched and the matched default Security Color information of cover color information;It is obtained according to default Security Color information The color matching template of e-book;Color matching processing is carried out to e-book according to color matching template.In addition to this, according to cover color Default safety colour that background color information in information matches generates chapter page and/or background page color matching template, according to cover color The default safety colour of text color information matches in multimedia message generates front page color matching template, can be to the chapter of e-book Page and/or the color matching of background are configured, and are configured to the color matching of the front page of e-book, can be obtained and electronics The color matching template that book cover style matches can more meet careful so that the e-book using this color matching template is more beautiful U.S. feature improves the readability of e-book.
The embodiment of the present application three provides a kind of nonvolatile computer storage media, the computer storage medium storage There is an at least executable instruction, which can be performed analyzing in above-mentioned any means embodiment based on cover E-book color matching method.
Executable instruction specifically can be used for so that processor executes following operation:
Extract the cover color information of e-book;
It is searched and the matched default Security Color information of cover color information according to the cover color information of e-book;
The color matching template of e-book is obtained according to default Security Color information;
Color matching processing is carried out to e-book according to color matching template.
Executable instruction specifically can be also used for so that processor executes following operation:
Extract the cover background color information and/or word cover information of e-book, wherein word cover information includes cover Text color information and word cover font size information.
Executable instruction specifically can be also used for so that processor executes following operation:
The cover colouring information of e-book is clustered, calculates various cover colouring informations corresponding region compared to envelope The accounting of face overall area extracts the maximum cover colouring information of accounting as cover background color information.
Executable instruction specifically can be also used for so that processor executes following operation:
Text region processing is carried out to the cover of e-book, where obtaining all texts and all texts of cover The band of position, and identify and obtain word cover font size information;
Colouring information in the band of position where text is clustered, word cover colouring information is obtained.
Executable instruction specifically can be also used for so that processor executes following operation:
According to the default Security Color information of the cover background color information searching of e-book and cover background color information matches;
According to the default Security Color information with cover background color information matches, the chapter page and/or back of e-book are obtained Scape page color matching template;
According to chapter page and/or background page color matching template, color matching processing is carried out to e-book.
Executable instruction specifically can be also used for so that processor executes following operation:
The default safety colour with word cover matches color information is searched according to the word cover colouring information of e-book Multimedia message;
According to the default Security Color information and word cover font size information with word cover matches color information, obtain The front page color matching template of e-book;
According to front page color matching template, color matching processing is carried out to the front page of e-book.
Executable instruction specifically can be also used for so that processor executes following operation:
In the front page color matching template of e-book, word cover font size information is opposite with default Security Color information It answers.
Executable instruction specifically can be also used for so that processor executes following operation:
Recommend multiple color matching templates so that user selects to user;
Color matching processing is carried out to e-book according to user's selected color matching template.
Fig. 3 shows the structural schematic diagram of electronic equipment according to an embodiment of the present invention, and the specific embodiment of the invention is not The specific implementation of electronic equipment is limited.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 302 can specifically execute the above-mentioned e-book color matching based on cover analysis for executing program 310 Correlation step in embodiment of the method.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
Extract the cover color information of e-book;
It is searched and the matched default Security Color information of cover color information according to the cover color information of e-book;
The color matching template of e-book is obtained according to default Security Color information;
Color matching processing is carried out to e-book according to color matching template.
Program 310 specifically can be also used for so that processor 302 executes following operation:
Extract the cover background color information and/or word cover information of e-book, wherein word cover information includes cover Text color information and word cover font size information.
Program 310 specifically can be also used for so that processor 302 executes following operation:
The cover colouring information of e-book is clustered, calculates various cover colouring informations corresponding region compared to envelope The accounting of face overall area extracts the maximum cover colouring information of accounting as cover background color information.
Program 310 specifically can be also used for so that processor 302 executes following operation:
Text region processing is carried out to the cover of e-book, where obtaining all texts and all texts of cover The band of position, and identify and obtain word cover font size information;
Colouring information in the band of position where text is clustered, word cover colouring information is obtained.
Program 310 specifically can be also used for so that processor 302 executes following operation:
According to the default Security Color information of the cover background color information searching of e-book and cover background color information matches;
According to the default Security Color information with cover background color information matches, the chapter page and/or back of e-book are obtained Scape page color matching template;
According to chapter page and/or background page color matching template, color matching processing is carried out to e-book.
Program 310 specifically can be also used for so that processor 302 executes following operation:
The default safety colour with word cover matches color information is searched according to the word cover colouring information of e-book Multimedia message;
According to the default Security Color information and word cover font size information with word cover matches color information, obtain The front page color matching template of e-book;
According to front page color matching template, color matching processing is carried out to the front page of e-book.
Program 310 specifically can be also used for so that processor 302 executes following operation:
In the front page color matching template of e-book, word cover font size information is opposite with default Security Color information It answers.
Program 310 specifically can be also used for so that processor 302 executes following operation:
Recommend multiple color matching templates so that user selects to user;
Color matching processing is carried out to e-book according to user's selected color matching template.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Cause This, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right is wanted Ask itself all as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.The use of word first, second, and third does not indicate any sequence.These words can be construed to title.

Claims (21)

1. a kind of e-book color matching method based on cover analysis, comprising:
Extract the cover color information of e-book, wherein the cover color information includes according to the e-book Cover carries out the cover background color information that handles of color cluster, and word cover obtained from being handled according to Text region is believed Breath, wherein the word cover information includes word cover colouring information;
It is searched respectively and the default safety colour multimedia message of the cover background color information matches according to the cover color information of e-book Breath and the default Security Color information with the word cover matches color information;
The color matching template of the e-book is obtained according to the default Security Color information, wherein the color matching template includes According to the chapter page of the e-book obtained with the cover background color information matches default Security Color information and/ Or background page color matching template, and obtained according to the default Security Color information with the word cover matches color information The e-book front page color matching template;
Color matching processing is carried out to the e-book according to the color matching template.
2. according to the method described in claim 1, wherein, the word cover information further includes word cover font size information.
3. according to the method described in claim 2, wherein, carrying out color cluster according to the cover to the e-book and handling Further comprise to cover background color information:
The cover colouring information of the e-book is clustered, calculates various cover colouring informations corresponding region compared to envelope The accounting of face overall area extracts the maximum cover colouring information of accounting as cover background color information.
4. according to the method described in claim 2, wherein, obtaining word cover information according to Text region processing and further wrapping It includes:
Text region processing is carried out to the cover of the e-book, obtains all texts and all texts institute of the cover The band of position, and identify obtain word cover font size information;
Colouring information in the band of position where the text is clustered, word cover colouring information is obtained.
5. according to the described in any item methods of claim 2-4, wherein according to the described and word cover matches color information Default Security Color information obtain the front page color matching template of the e-book;And it is described according to the color matching template Carrying out color matching processing to the e-book further comprises:
According to described with default Security Color information and word cover font size information of the word cover matches color information, Obtain the front page color matching template of the e-book;
According to the front page color matching template, color matching processing is carried out to the front page of the e-book.
6. according to the method described in claim 5, wherein, in the front page color matching template of the e-book, word cover Font size information is corresponding with default Security Color information.
7. method according to claim 1-4, wherein the color matching template of the e-book be it is multiple, it is described Method further include: recommend the multiple color matching template so that user selects to user;
It is described that color matching processing is carried out to the e-book according to color matching template specifically: according to the selected color matching template of user Color matching processing is carried out to the e-book.
8. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
Extract the cover color information of e-book, wherein the cover color information includes according to the e-book Cover carries out the cover background color information that handles of color cluster, and word cover obtained from being handled according to Text region is believed Breath, wherein the word cover information includes word cover colouring information;
It is searched respectively and the default safety colour multimedia message of the cover background color information matches according to the cover color information of e-book Breath and the default Security Color information with the word cover matches color information;
The color matching template of the e-book is obtained according to the default Security Color information, wherein the color matching template includes According to the chapter page of the e-book obtained with the cover background color information matches default Security Color information and/ Or background page color matching template, and obtained according to the default Security Color information with the word cover matches color information The e-book front page color matching template;
Color matching processing is carried out to the e-book according to the color matching template.
9. electronic equipment according to claim 8, wherein the word cover information further includes word cover font size letter Breath.
10. electronic equipment according to claim 9, the executable instruction further makes the processor execute following behaviour Make:
The cover colouring information of the e-book is clustered, calculates various cover colouring informations corresponding region compared to envelope The accounting of face overall area extracts the maximum cover colouring information of accounting as cover background color information.
11. electronic equipment according to claim 9, the executable instruction further makes the processor execute following behaviour Make:
Text region processing is carried out to the cover of the e-book, obtains all texts and all texts institute of the cover The band of position, and identify obtain word cover font size information;
Colouring information in the band of position where the text is clustered, word cover colouring information is obtained.
12. according to the described in any item electronic equipments of claim 9-11, the executable instruction further makes the processor Execute following operation:
According to described with default Security Color information and word cover font size information of the word cover matches color information, Obtain the front page color matching template of the e-book;
According to the front page color matching template, color matching processing is carried out to the front page of the e-book.
13. electronic equipment according to claim 12, it is following that the executable instruction further executes the processor Operation:
In the front page color matching template of the e-book, word cover font size information is opposite with default Security Color information It answers.
14. according to the described in any item electronic equipments of claim 8-11, the executable instruction further makes the processor Execute following operation:
The color matching template of the e-book be it is multiple, recommend the multiple color matching template so that user selects to user;
Color matching processing is carried out to the e-book according to user's selected color matching template.
15. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
Extract the cover color information of e-book, wherein the cover color information includes according to the e-book Cover carries out the cover background color information that handles of color cluster, and word cover obtained from being handled according to Text region is believed Breath, wherein the word cover information includes word cover colouring information;
It is searched respectively and the default safety colour multimedia message of the cover background color information matches according to the cover color information of e-book Breath and the default Security Color information with the word cover matches color information;
The color matching template of the e-book is obtained according to the default Security Color information, wherein the color matching template includes According to the chapter page of the e-book obtained with the cover background color information matches default Security Color information and/ Or background page color matching template, and obtained according to the default Security Color information with the word cover matches color information The e-book front page color matching template;
Color matching processing is carried out to the e-book according to the color matching template.
16. computer storage medium according to claim 15, wherein the word cover information further includes word cover Font size information.
17. computer storage medium according to claim 16, the executable instruction further holds the processor The following operation of row:
The cover colouring information of the e-book is clustered, calculates various cover colouring informations corresponding region compared to envelope The accounting of face overall area extracts the maximum cover colouring information of accounting as cover background color information.
18. computer storage medium according to claim 16, the executable instruction further holds the processor The following operation of row:
Text region processing is carried out to the cover of the e-book, obtains all texts and all texts institute of the cover The band of position, and identify obtain word cover font size information;
Colouring information in the band of position where the text is clustered, word cover colouring information is obtained.
19. the described in any item computer storage mediums of 6-18 according to claim 1, the executable instruction further makes described Processor executes following operation:
According to described with default Security Color information and word cover font size information of the word cover matches color information, Obtain the front page color matching template of the e-book;
According to the front page color matching template, color matching processing is carried out to the front page of the e-book.
20. computer storage medium according to claim 17, the executable instruction further holds the processor The following operation of row:
In the front page color matching template of the e-book, word cover font size information is opposite with default Security Color information It answers.
21. the described in any item computer storage mediums of 5-18 according to claim 1, the executable instruction further makes described Processor executes following operation:
The color matching template of the e-book be it is multiple, recommend the multiple color matching template so that user selects to user;
Color matching processing is carried out to the e-book according to user's selected color matching template.
CN201710827036.0A 2017-09-14 2017-09-14 E-book color matching method, electronic equipment and storage medium based on cover analysis Active CN107577654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710827036.0A CN107577654B (en) 2017-09-14 2017-09-14 E-book color matching method, electronic equipment and storage medium based on cover analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710827036.0A CN107577654B (en) 2017-09-14 2017-09-14 E-book color matching method, electronic equipment and storage medium based on cover analysis

Publications (2)

Publication Number Publication Date
CN107577654A CN107577654A (en) 2018-01-12
CN107577654B true CN107577654B (en) 2019-01-25

Family

ID=61036296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710827036.0A Active CN107577654B (en) 2017-09-14 2017-09-14 E-book color matching method, electronic equipment and storage medium based on cover analysis

Country Status (1)

Country Link
CN (1) CN107577654B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108921160B (en) * 2018-05-04 2021-10-26 广东数相智能科技有限公司 Book identification method, electronic equipment and storage medium
CN109976863A (en) * 2019-03-29 2019-07-05 北京猎户星空科技有限公司 Data processing method, device, computer equipment and storage medium
CN111488885B (en) * 2020-06-28 2020-09-25 成都四方伟业软件股份有限公司 Intelligent extraction method and device for theme color system of picture
CN112035022B (en) * 2020-07-28 2022-03-04 上海连尚网络科技有限公司 Reading page style generation method and device
CN112307530B (en) * 2020-09-22 2024-02-02 郑州轻工业大学 Method and device for framing book of child books based on big data

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257796B (en) * 2013-05-15 2016-08-24 华为终端有限公司 Mobile communication equipment and the changing method of subject color thereof
CN105224162A (en) * 2014-06-12 2016-01-06 乐蛙科技(上海)有限公司 The matching process of terminal demonstration style and system
CN106611431A (en) * 2015-10-22 2017-05-03 阿里巴巴集团控股有限公司 An image detection method and apparatus
CN106598436B (en) * 2016-12-21 2018-07-20 掌阅科技股份有限公司 Display methods, device and the terminal device of e-book label

Also Published As

Publication number Publication date
CN107577654A (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN107577654B (en) E-book color matching method, electronic equipment and storage medium based on cover analysis
US11657084B2 (en) Correlating image annotations with foreground features
CN109447895B (en) Picture generation method and device, storage medium and electronic device
Lee et al. Intra-class variation reduction using training expression images for sparse representation based facial expression recognition
US9785649B1 (en) Hue-based color naming for an image
CN113378061B (en) Information searching method, device, computer equipment and storage medium
CN113409437B (en) Virtual character face pinching method and device, electronic equipment and storage medium
CN109255826B (en) Chinese training image generation method, device, computer equipment and storage medium
Ma et al. Near-infrared and visible light image fusion algorithm for face recognition
CN109101309B (en) Method and apparatus for updating user interface
CN112069341A (en) Background picture generation and search result display method, device, equipment and medium
Zhang et al. Retargeting semantically-rich photos
CN109325173B (en) Reading content personalized recommendation method and system based on AI open platform
Coronel-Beltrán et al. Comparative analysis between different font types and letter styles using a nonlinear invariant digital correlation
Sharma et al. Prediction of face age progression with generative adversarial networks
Wang et al. Down to the last detail: Virtual try-on with detail carving
CN110717312A (en) Text labeling method and device
KR102234172B1 (en) Apparatus and method for providing digital twin book shelf
CN110134812A (en) A kind of face searching method and its device
CN108090372A (en) A kind of date storage method and device
CN107562954A (en) Recommendation searching method, device and mobile terminal based on mobile terminal
Fan et al. A deeper look at human visual perception of images
CN110223334B (en) Depth-of-field map acquisition method and device
CN113688899A (en) Data fusion method and device, storage medium and electronic equipment
CN113377980A (en) Information labeling method and device, electronic equipment and storage medium

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