CN114140164A - Method for displaying promoted resources in photo-like electronic book and electronic equipment - Google Patents

Method for displaying promoted resources in photo-like electronic book and electronic equipment Download PDF

Info

Publication number
CN114140164A
CN114140164A CN202111470812.9A CN202111470812A CN114140164A CN 114140164 A CN114140164 A CN 114140164A CN 202111470812 A CN202111470812 A CN 202111470812A CN 114140164 A CN114140164 A CN 114140164A
Authority
CN
China
Prior art keywords
promotion
page
dynamic
area
resources
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.)
Pending
Application number
CN202111470812.9A
Other languages
Chinese (zh)
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 CN202111470812.9A priority Critical patent/CN114140164A/en
Publication of CN114140164A publication Critical patent/CN114140164A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0242Determining effectiveness of advertisements
    • G06Q30/0244Optimization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0272Period of advertisement exposure
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Software Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method for displaying promoted resources in a photo e-book and electronic equipment. The method comprises the following steps: detecting a current page turning mode of a photo electronic book read by a user; if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position; and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from the meaningless area of the reading page, and displaying promotion resources in the dynamic promotion position. By adopting the scheme, reading pages special for displaying popularization resources do not need to be additionally added, so that the reading space of a user is not increased; in addition, different promotion resource display modes are adopted according to different page turning modes, and the technical defect that the promotion resource display mode is single is overcome. And the popularization resource display mode adopted in each page turning mode has high matching degree with the corresponding page turning mode, thereby being beneficial to improving the display effect of the popularization resource.

Description

Method for displaying promoted resources in photo-like electronic book and electronic equipment
Technical Field
The invention relates to the technical field of electronic books, in particular to a method for displaying popularization resources in a photo electronic book, electronic equipment and a computer storage medium.
Background
With the continuous development of science and technology and society, the reading habits of readers have changed, and more readers prefer to read electronic books through electronic book platforms. At present, many electronic book platforms can show popularization resources such as advertisements and public welfare propaganda in the process of reading electronic books by users.
However, the inventor finds that the following defects exist in the prior art in the implementation process: in the e-book platform in the prior art, a reading page dedicated for showing promotional resources is usually created after a user reads a certain amount of e-book contents. However, the popularization resource display mode is single, the reading space of the user is additionally increased, and the user experience is reduced.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method, an electronic device and a computer storage medium for presenting promotional resources in a photo-like e-book that overcome or at least partially solve the above problems.
According to one aspect of the invention, a method for displaying promotion resources in a photo e-book is provided, which comprises the following steps:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
According to still another aspect of the present invention, there is provided an electronic apparatus including: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
According to another aspect of the present invention, a computer storage medium is provided, where at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to perform an operation corresponding to the method for displaying a promotional resource in the above-mentioned photo e-book.
The invention provides a method for displaying promoted resources in a picture electronic book, electronic equipment and a computer storage medium, wherein the method comprises the following steps: detecting a current page turning mode of a photo electronic book read by a user; if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position; and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from the meaningless area of the reading page, and displaying promotion resources in the dynamic promotion position. By adopting the scheme, reading pages special for displaying popularization resources do not need to be additionally added, so that the reading space of a user is not increased; in addition, different promotion resource display modes are adopted according to different page turning modes, and the technical defect that the promotion resource display mode is single is overcome. And the popularization resource display mode adopted in each page turning mode has high matching degree with the corresponding page turning mode, thereby being beneficial to improving the display effect of the popularization resource.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is a schematic flowchart illustrating a method for displaying promoted resources in a photo-like e-book according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a reading page according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating another reading page provided by the first embodiment of the invention;
fig. 4 is a flowchart illustrating a method for displaying promoted resources in a photo e-book according to a second embodiment of the present invention;
FIG. 5 is a schematic diagram of a page provided in the second embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating a method for displaying promoted resources in a photo-like e-book according to a third embodiment of the present invention;
FIG. 7 is a schematic diagram of a page provided by the third embodiment of the present invention;
fig. 8 shows a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Example one
Fig. 1 is a flowchart illustrating a method for displaying promoted resources in a photo e-book according to an embodiment of the present invention. The method for displaying the promoted resources in the photo e-book provided by the embodiment of the invention can be executed by the user terminal corresponding to the e-book platform. The embodiment of the present invention does not limit the specific type of the user terminal, for example, the user terminal may be a mobile phone, a reader, a computer, an intelligent wearable device, and the like.
As shown in fig. 1, the method comprises the steps of:
step S110, detecting the current page turning mode of the photo electronic book read by the user; if the current page turning mode is the left and right page turning mode, executing step S120; if the current page turning mode is the up-down page turning mode, step S130 is executed.
The photo electronic book refers to an electronic book in which electronic book contents are presented in a picture form in an electronic book platform, such as a cartoon electronic book and/or a PDF electronic book. The photo e-book read by the user in this step is specifically the photo e-book currently being read by the user.
In addition, in order to improve the reading experience of a user for reading a picture-like electronic book, the electronic book platform provides a left-right page turning mode and an up-down page turning mode for the user, and the user can select the corresponding page turning mode according to the requirement. In the left-right page turning mode, a user can switch a reading page through left-right sliding operation, so that the content of the electronic book is changed in the visual area; in the up-down page turning mode, the user can realize the scrolling of the reading page through up-down sliding operation, so that the content of the electronic book is changed in the visual area.
According to the embodiment of the invention, when a user reads an electronic book, the type of the electronic book currently read by the user is identified. If the user reads the photo e-book currently, the page turning mode corresponding to the photo e-book currently is further identified, so that different popularization resource display methods can be executed subsequently based on different page turning modes.
And step S120, determining a fixed promotion position from the meaningless area in the reading page, and displaying promotion resources in the fixed promotion position.
There are usually some meaningless areas in the reading page, which are areas that are not related to the physical content of the e-book. For example, the meaningless area may be a blank area in the reading page, a single-color background area containing no elements in the reading page, or the like.
In the left-right page turning mode, in order to facilitate page display, the e-book content of a photo-like e-book is usually divided into pictures with the same size, the pictures are called e-book content pictures, and each reading page displays one e-book content picture. Moreover, in order to guarantee the page display effect, the size of each e-book content picture is smaller than the size of a visible area in the user terminal, so that the reading page also comprises a meaningless area besides the area comprising the e-book content picture. As shown in fig. 2, the reading page includes an ebook content area 21 and meaningless areas 22 at the top and bottom of the reading page (see the top and bottom black areas in fig. 2).
Because the size of the content picture of the electronic book is fixed and the position of the content picture of the electronic book in the reading page is fixed, the position of a meaningless area in the reading page is fixed under the left-right page turning mode, and therefore when the current page turning mode is determined to be the left-right page turning mode, the fixed promotion position is determined from the meaningless area in the reading page.
The fixed promotion position is fixed in the visible area, for example, in a vertical screen state, the fixed promotion position is usually located at the top or the bottom of the visible area; in the horizontal screen state, the fixed promotion position is usually located on the side column of the visible area and the like. In addition, the fixed promotion position exists for a long time, and the fixed promotion position still exists in the visual area after the user performs page turning operation, picture zooming operation and other operations.
And S130, determining a dynamic promotion position from the meaningless area of the reading page, and displaying promotion resources in the dynamic promotion position.
In the up-down paging mode, the reading page is a long page containing the content of the e-book. Some meaningless areas still exist in the reading page due to page layout and other factors. As shown in fig. 3, the reading page includes two ebook content areas 31 and a meaningless area 32 (white portion in fig. 3).
Because the position of the meaningless area in the visual area is dynamically changed in the up-down page turning mode, the dynamic promotion position is determined from the meaningless area in the reading page when the current page turning mode is determined to be the up-down page turning mode. The dynamic promotion position is not fixed in the visible area, and the dynamic promotion position exists for a short time and is only effective in the reading process.
Therefore, the popularization position is determined from the meaningless area in the reading page, and then the popularization resource is displayed in the popularization position, so that the reading page special for displaying the popularization resource is not required to be additionally added, the reading space of a user is not increased, and the reading experience of the user is improved; in addition, the embodiment of the invention detects the current page turning mode of the photo e-book read by the user and adopts different promotion resource display modes according to the difference of the page turning modes, thereby solving the technical defect of single promotion resource display mode in the prior art. In addition, the popularization resource display mode adopted in each page turning mode is high in matching degree with the corresponding page turning mode, so that the popularization resource display effect is improved.
Example two
Fig. 4 is a flowchart illustrating a method for displaying promoted resources in a photo e-book according to a second embodiment of the present invention. The embodiment of the invention is further optimization of the method in the first embodiment.
As shown in fig. 4, the method includes the steps of:
step S410, detecting that the current page turning mode of the photo e-book read by the user is the up-down page turning mode.
In step S420, a meaningless area in the reading page is identified.
For convenience of data processing, identification of the dynamic promotion bit can be performed in units of chapters. That is, the reading page in this step is specifically a reading page corresponding to the next chapter, so that the user has determined the dynamic promotion position before reading the next chapter, thereby facilitating the user to display the promotion resource in the dynamic promotion position in time when reading the next chapter.
Because the dynamic promotion position is determined from the meaningless area in the reading page, the embodiment of the invention needs to identify the meaningless area in the reading page firstly. In addition, since the meaningless area is a blank area or a solid background area in the embodiment of the present invention, the meaningless area and the meaningful area containing the content of the electronic book have a significant difference in color value. Based on the color value, the color values of the pixel points in the reading page are obtained, and the meaningless area in the reading page is identified according to the difference of the color values among the pixel points. The meaningless area may be identified by, but not limited to, the following identification method.
The method comprises the steps that in the first identification mode, a reading page is divided into a plurality of page units with the same size; for any page unit, if the color values of the pixel points contained in the page unit are the same, determining the page unit as a candidate page unit; after the candidate page units are screened out, the corresponding color values are the same, and a plurality of candidate page units adjacent to each other are aggregated into corresponding meaningless areas.
The second identification mode is to perform outline identification on the reading page so as to determine a boundary line between a meaningful area and a meaningless area in the reading page; dividing the reading page into a plurality of blocks according to the boundary line; for any block, if the color values of the pixels contained in the block are the same, the block is determined as a meaningless area. In general, there is a clear boundary between an area containing the contents of the electronic book and a meaningless area such as a blank area. As shown in fig. 3, in a cartoon-like electronic book, a rectangular outline such as a rectangle is usually drawn outside an area containing contents of the electronic book, so that a boundary line between a meaningful area and a meaningless area in a reading page is determined by recognition of a specific outline. The reading page is divided into different areas by the boundary line, and then the areas with the same color values of the pixel points contained in the areas are determined as meaningless areas.
Further optionally, in order to avoid misjudging a small-sized blank or solid area in the content of the electronic book as a meaningless area, an area of the meaningless area is set to be larger than a preset threshold value in the embodiment of the present invention. After the multiple candidate page units are aggregated in the first identification mode, further judging whether the area of an aggregation area is larger than a preset threshold value, if so, determining the aggregation area as a meaningless area; and in the second identification mode, aiming at any block, if the color values of the pixel points contained in the block are the same and the area of the pixel points is larger than a preset threshold value, determining the block as a nonsense area.
And step S430, screening out dynamic promotion positions from the identified meaningless areas.
The dynamic promotion position can be screened at least in the following screening mode:
a first screening mode: and screening out dynamic promotion positions from the meaningless area according to a preset promotion frequency. Specifically, the number n of times that popularization resources are shown for the user in each chapter is determined according to user preferences and the like, and n meaningless areas are selected from the identified meaningless areas randomly or according to corresponding rules to serve as dynamic popularization positions. By adopting the screening mode, the number of screened dynamic promotion positions can meet a preset promotion strategy, and the management of promotion resources is facilitated.
And a second screening mode: and screening out dynamic promotion positions from the nonsense areas according to the sizes of the nonsense areas. Particularly, when the size of the meaningless area is too small or the shape is irregular, it is inconvenient to subsequently promote the exhibition of resources. In the screening method, the meaningless areas with too small size and/or too irregular shape can be removed, so that the remaining meaningless areas are used as dynamic promotion positions. By adopting the screening mode, the subsequent display of the promoted resources can be facilitated, and the display effect of the promoted resources is improved.
And a third screening mode: and screening out dynamic promotion positions from the meaningless area according to the preset promotion frequency and the size of the meaningless area. The screening method is a combination of the two screening methods, for example, if the promotion times of each chapter are determined to be three times through a preset promotion frequency, three meaningless areas with larger sizes of the meaningless areas are used as dynamic promotion positions. By adopting the screening mode, the preset popularization strategy can be met, and the subsequent popularization resource display can be facilitated.
And step S440, acquiring popularization information.
Specifically, according to the size and/or the number of the dynamic promotion bits, the promotion resources are obtained, so that the number of the obtained promotion resources is matched with the number and/or the size of the dynamic promotion bits.
In addition, in order to improve the display efficiency of the popularization resources, the popularization resources are stored after the popularization resources are acquired, and the corresponding relation between each dynamic popularization position and each acquired popularization resource is recorded. And the size of the dynamic promotion position is matched with the size of the corresponding promotion resource.
And S450, displaying the popularization resource in the dynamic popularization position.
Since the reading page is usually in a long page in the up-down page turning mode, the visual area of the user terminal cannot simultaneously display all the contents in the reading page. Based on this, the embodiment of the present invention only identifies the dynamic promotion location located in the visible region, where the dynamic promotion location is the target dynamic promotion location, then creates a dynamic layer above the target dynamic promotion location, and renders the promotion resource corresponding to the target dynamic promotion location in the dynamic layer. And the position of the dynamic layer in the visible area is not fixed.
In an optional implementation manner, the dynamic layer and the layer where the corresponding target dynamic promotion position is located may be merged, so that when a user performs a vertical sliding operation, the promotion resource displayed by the dynamic layer may be scrolled synchronously with the reading page.
In another optional implementation manner, the relative position relationship between the dynamic layer and the corresponding target dynamic promotion position is recorded, so that when the user changes the position of the target dynamic promotion position in the visual area through the up-and-down sliding operation, the position of the corresponding dynamic layer in the visual area can be dynamically adjusted in response to the position change of the target dynamic promotion position in the visual area, so that the dynamic layer and the corresponding target dynamic promotion position in the visual area always keep the consistent relative position relationship. By adopting the mode, on one hand, the display effect of the popularization resource is guaranteed, on the other hand, the dynamic layer is prevented from shielding the content of the electronic book, and the user experience is improved. Compared with the embodiment of combining the layers, the popularization resource in the layers in the embodiment can be dynamically changed, and the flexibility of popularization resource display is improved.
In addition, as an optional implementation manner of the embodiment of the present invention, after performing the picture scaling operation, the user performs an operation of determining the dynamic promotion position from the meaningless area of the reading page and displaying the promotion resource in the dynamic promotion position again in response to the picture scaling operation, so as to dynamically change the displayed promotion resource.
For example, through implementation of the embodiment of the present invention, if it is determined that the blank area 32 shown in fig. 3 is the target dynamic promotion location, the promotion resource 51 is displayed in the target dynamic promotion location, and then the page shown in fig. 5 is generated. Therefore, the popularization resource can be displayed under the condition of not increasing the reading space of the user.
Therefore, according to the embodiment of the invention, the meaningless area in the reading page is identified according to the color value of the pixel point in the reading page, so that the identification precision and the identification efficiency of the meaningless area are improved; dynamic promotion positions are screened according to preset promotion frequency and/or the size of a meaningless area, so that user experience can be improved, and subsequent promotion resource display is facilitated; and when the popularization resources are displayed in the dynamic popularization positions, only the target dynamic popularization positions in the visual area are identified, so that the system resources are saved. And creating a dynamic layer with the size consistent with that of the target dynamic promotion position above the target dynamic promotion position, and rendering promotion resources corresponding to the target dynamic promotion position in the dynamic layer so as to realize accurate display of the promotion resources.
EXAMPLE III
Fig. 6 is a flowchart illustrating a method for displaying promoted resources in a photo e-book according to a third embodiment of the present invention. The embodiment of the invention is further optimization of the method in the first embodiment.
As shown in fig. 6, the method includes the steps of:
step S610, detecting that the current page turning mode of the photo e-book read by the user is a left-right page turning mode.
Step S620, determine the fixed area in the visible area as the fixed promotion location.
Compared with the second embodiment, the second embodiment directly determines the fixed area in the visual area as the fixed promotion position without identifying the meaningless area of the reading page each time, and the fixed area is located in the meaningless area of the reading page.
Step S630, the promotion resources are displayed in the fixed promotion location.
Specifically, a resident layer is created above the fixed promotion position, the resident layer is fixed in position in the visual area, and when a user performs left-right page turning operation, displayed electronic book content is changed, but the resident layer is unchanged in position.
And further rendering the promotion resource in the created resident layer. In order to improve user experience, different e-book chapters correspond to different popularization resources. Therefore, when the popularization resource is displayed, the popularization resource corresponding to the electronic book chapter is obtained for displaying according to the currently displayed electronic book chapter.
For example, by implementing the embodiment of the present invention, if the top black area 22 shown in fig. 2 is determined to be a fixed promotion location, the promotion resource 71 is displayed in the fixed promotion location, and then the page shown in fig. 7 is generated. Therefore, the popularization resource can be displayed under the condition of not increasing the reading space of the user.
Therefore, in the left-right page turning mode, the fixed area in the visible area can be directly used as the fixed promotion position without identifying the meaningless area in the reading page, and then the promotion resources are displayed in the fixed promotion position, so that the determination efficiency of the promotion position is improved, and the display efficiency of the promotion resources is improved.
Example four
A fourth embodiment of the present invention provides a non-volatile computer storage medium, where the computer storage medium stores at least one executable instruction, and the computer executable instruction may execute the method in any of the method embodiments.
The executable instructions may be specifically configured to cause the processor to:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
In an alternative embodiment, the executable instructions cause the processor to:
identifying a meaningless area in a reading page;
and screening out dynamic promotion positions from the meaningless areas.
In an alternative embodiment, the executable instructions cause the processor to:
acquiring color values of pixel points in the reading page;
and identifying a meaningless area in the reading page according to the difference of color values among the pixel points.
In an alternative embodiment, the executable instructions cause the processor to:
dividing the reading page into a plurality of page units with the same size;
for any page unit, if the color values of the pixel points contained in the page unit are the same, determining the page unit as a candidate page unit;
corresponding color values are the same, and a plurality of candidate page units adjacent to each other are aggregated into corresponding meaningless areas.
In an alternative embodiment, the executable instructions cause the processor to:
carrying out outline identification on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;
dividing the reading page into a plurality of blocks according to the boundary line;
for any block, if the color values of the pixels contained in the block are the same, the block is determined as a meaningless area.
In an alternative embodiment, the area of the meaningless region is greater than a preset threshold.
In an alternative embodiment, the executable instructions cause the processor to:
and screening dynamic promotion positions from the meaningless area according to a preset promotion frequency and/or the size of the meaningless area.
In an alternative embodiment, the executable instructions cause the processor to:
before the promotion resources are displayed in the fixed promotion positions, obtaining the promotion resources according to the size and/or the number of the dynamic promotion positions;
and storing the popularization resources, and recording the corresponding relation between each dynamic popularization position and each acquired popularization resource.
In an alternative embodiment, the executable instructions cause the processor to:
identifying a target dynamic promotion location within the visible region;
and creating a dynamic layer above the target dynamic promotion position, and rendering promotion resources corresponding to the target dynamic promotion position in the dynamic layer.
In an alternative embodiment, the executable instructions cause the processor to:
after the promotion resource corresponding to the target dynamic promotion position is rendered in the dynamic layer, recording the relative position relation between the dynamic layer and the target dynamic promotion position so as to dynamically adjust the position of the dynamic layer in the visible region in response to the position change of the target dynamic promotion position in the visible region.
In an alternative embodiment, the executable instructions cause the processor to:
and responding to the zooming operation of the picture, determining the dynamic promotion position from the meaningless area in the reading page, and displaying promotion resources in the dynamic promotion position.
In an alternative embodiment, the executable instructions cause the processor to:
and determining a fixed area in the visual area as a fixed promotion position.
In an alternative embodiment, the executable instructions cause the processor to:
and creating a resident layer above the fixed promotion position, and rendering the promotion resources in the resident layer.
Therefore, the reading page special for displaying the popularization resource is not required to be additionally added in the embodiment of the invention, so that the reading space of the user is not increased; and different promotion resource display modes are adopted according to different page turning modes, so that the technical defect of single promotion resource display mode is avoided. And the popularization resource display mode adopted in each page turning mode has high matching degree with the corresponding page turning mode, thereby being beneficial to improving the display effect of the popularization resource.
EXAMPLE five
Fig. 8 shows a schematic structural diagram of an electronic device according to a fifth embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
As shown in fig. 8, the electronic device may include: a processor (processor)802, a Communications Interface 804, a memory 806, and a communication bus 808.
Wherein: the processor 802, communication interface 804, and memory 806 communicate with one another via a communication bus 808. A communication interface 804 for communicating with network elements of other devices, such as clients or other servers. The processor 802 is configured to execute the program 810, and may specifically perform the relevant steps in the above method embodiments.
In particular, the program 810 may include program code comprising computer operating instructions.
The processor 802 may be a central processing unit CPU, or an Application Specific Integrated Circuit (ASIC), or one or more Integrated circuits configured to implement embodiments of the present invention. The electronic device comprises one or more processors, which can be the same type of processor, such as one or more CPUs; or may be different types of processors such as one or more CPUs and one or more ASICs.
The memory 806 stores a program 810. The memory 806 may comprise high-speed RAM memory, and may also include non-volatile memory (non-volatile memory), such as at least one disk memory.
The program 810 may be specifically configured to cause the processor 802 to perform the following operations:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
identifying a meaningless area in a reading page;
and screening out dynamic promotion positions from the meaningless areas.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
acquiring color values of pixel points in the reading page;
and identifying a meaningless area in the reading page according to the difference of color values among the pixel points.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
dividing the reading page into a plurality of page units with the same size;
for any page unit, if the color values of the pixel points contained in the page unit are the same, determining the page unit as a candidate page unit;
corresponding color values are the same, and a plurality of candidate page units adjacent to each other are aggregated into corresponding meaningless areas.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
carrying out outline identification on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;
dividing the reading page into a plurality of blocks according to the boundary line;
for any block, if the color values of the pixels contained in the block are the same, the block is determined as a meaningless area.
In an alternative embodiment, the area of the meaningless region is greater than a preset threshold.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
and screening dynamic promotion positions from the meaningless area according to a preset promotion frequency and/or the size of the meaningless area.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
before the promotion resources are displayed in the fixed promotion positions, obtaining the promotion resources according to the size and/or the number of the dynamic promotion positions;
and storing the popularization resources, and recording the corresponding relation between each dynamic popularization position and each acquired popularization resource.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
identifying a target dynamic promotion location within the visible region;
and creating a dynamic layer above the target dynamic promotion position, and rendering promotion resources corresponding to the target dynamic promotion position in the dynamic layer.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
after the promotion resource corresponding to the target dynamic promotion position is rendered in the dynamic layer, recording the relative position relation between the dynamic layer and the target dynamic promotion position so as to dynamically adjust the position of the dynamic layer in the visible region in response to the position change of the target dynamic promotion position in the visible region.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
and responding to the zooming operation of the picture, determining the dynamic promotion position from the meaningless area in the reading page, and displaying promotion resources in the dynamic promotion position.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
and determining a fixed area in the visual area as a fixed promotion position.
In an alternative embodiment, the program 810 may be specifically configured to cause the processor 802 to perform the following operations:
and creating a resident layer above the fixed promotion position, and rendering the promotion resources in the resident layer.
Therefore, the reading page special for displaying the popularization resource is not required to be additionally added in the embodiment of the invention, so that the reading space of the user is not increased; and different promotion resource display modes are adopted according to different page turning modes, so that the technical defect of single promotion resource display mode is avoided. And the popularization resource display mode adopted in each page turning mode has high matching degree with the corresponding page turning mode, thereby being beneficial to improving the display effect of the popularization resource.
The algorithms or displays presented herein are not inherently related to any particular computer, virtual system, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. In addition, embodiments of the present invention are not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the invention and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functionality of some or all of the components according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names. The steps in the above embodiments should not be construed as limiting the order of execution unless specified otherwise.
The invention discloses: A1. a method for displaying promoted resources in a photo e-book comprises the following steps:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
A2. The method according to a1, wherein the determining the fixed promotion location from the meaningless area of the reading page further comprises:
identifying a meaningless area in a reading page;
and screening out dynamic promotion positions from the meaningless areas.
A3. The method of a2, wherein the identifying a nonsense region in a reading page further comprises:
acquiring color values of pixel points in the reading page;
and identifying a meaningless area in the reading page according to the difference of color values among the pixel points.
A4. The method according to a3, wherein the identifying the meaningless area in the reading page according to the difference of color values between the pixel points further comprises:
dividing the reading page into a plurality of page units with the same size;
for any page unit, if the color values of the pixel points contained in the page unit are the same, determining the page unit as a candidate page unit;
corresponding color values are the same, and a plurality of candidate page units adjacent to each other are aggregated into corresponding meaningless areas.
A5. The method according to a3, wherein the identifying the meaningless area in the reading page according to the difference of color values between the pixel points further comprises:
carrying out outline identification on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;
dividing the reading page into a plurality of blocks according to the boundary line;
for any block, if the color values of the pixels contained in the block are the same, the block is determined as a meaningless area.
A6. The method of any of a2-a5, wherein the area of the nonsense regions is greater than a preset threshold.
A7. The method of any of a2-a6, wherein the screening dynamic promotion bits from the nonsense regions further comprises:
and screening dynamic promotion positions from the meaningless area according to a preset promotion frequency and/or the size of the meaningless area.
A8. The method of any of A2-A7, wherein, prior to presenting a promoted resource in the dynamic promotion location, the method further comprises:
acquiring popularization resources according to the size and/or the number of the dynamic popularization positions;
and storing the popularization resources, and recording the corresponding relation between each dynamic popularization position and each acquired popularization resource.
A9. The method of A8, wherein showing a promotional resource in the dynamic promotional bit further comprises:
identifying a target dynamic promotion location within the visible region;
and creating a dynamic layer above the target dynamic promotion position, and rendering promotion resources corresponding to the target dynamic promotion position in the dynamic layer.
A10. The method according to a9, wherein after rendering the promotion resource corresponding to the target dynamic promotion bit in the dynamic layer, the method further includes:
and recording the relative position relation between the dynamic layer and the target dynamic popularization position so as to respond to the position change of the target dynamic popularization position in a visible region and dynamically adjust the position of the dynamic layer in the visible region.
A11. The method of any one of a2-a10, wherein the method further comprises:
and responding to the zooming operation of the picture, determining the dynamic promotion position from the meaningless area in the reading page, and displaying promotion resources in the dynamic promotion position.
A12. The method of a1, wherein the determining a dynamic promotion from a meaningless area of a reading page further comprises:
and determining a fixed area in the visual area as a fixed promotion position.
A13. The method of A12, wherein the showing of promotional resources in the dynamic promotional bit further comprises:
and creating a resident layer above the fixed promotion position, and rendering the promotion resources in the resident layer.
The invention also discloses: B14. an electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
B15. The electronic device of B14, wherein the executable instructions cause the processor to:
identifying a meaningless area in a reading page;
and screening out dynamic promotion positions from the meaningless areas.
B16. The electronic device of B15, wherein the executable instructions cause the processor to:
acquiring color values of pixel points in the reading page;
and identifying a meaningless area in the reading page according to the difference of color values among the pixel points.
B17. The electronic device of B16, wherein the executable instructions cause the processor to:
dividing the reading page into a plurality of page units with the same size;
for any page unit, if the color values of the pixel points contained in the page unit are the same, determining the page unit as a candidate page unit;
corresponding color values are the same, and a plurality of candidate page units adjacent to each other are aggregated into corresponding meaningless areas.
B18. The electronic device of B16, wherein the executable instructions cause the processor to:
carrying out outline identification on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;
dividing the reading page into a plurality of blocks according to the boundary line;
for any block, if the color values of the pixels contained in the block are the same, the block is determined as a meaningless area.
B19. The electronic device of any of B15-B18, wherein an area of the nonsense region is greater than a preset threshold.
B20. The electronic device of any one of B15-B19, wherein the executable instructions cause the processor to:
and screening dynamic promotion positions from the meaningless area according to a preset promotion frequency and/or the size of the meaningless area.
B21. The electronic device of any one of B15-B20, wherein the executable instructions cause the processor to:
before the promotion resources are displayed in the fixed promotion positions, obtaining the promotion resources according to the size and/or the number of the dynamic promotion positions;
and storing the popularization resources, and recording the corresponding relation between each dynamic popularization position and each acquired popularization resource.
B22. The electronic device of B21, wherein the executable instructions cause the processor to:
identifying a target dynamic promotion location within the visible region;
and creating a dynamic layer above the target dynamic promotion position, and rendering promotion resources corresponding to the target dynamic promotion position in the dynamic layer.
B23. The electronic device of B22, wherein the executable instructions cause the processor to:
after the promotion resource corresponding to the target dynamic promotion position is rendered in the dynamic layer, recording the relative position relation between the dynamic layer and the target dynamic promotion position so as to dynamically adjust the position of the dynamic layer in the visible region in response to the position change of the target dynamic promotion position in the visible region.
B24. The electronic device of any one of B15-B23, wherein the executable instructions cause the processor to:
and responding to the zooming operation of the picture, determining the dynamic promotion position from the meaningless area in the reading page, and displaying promotion resources in the dynamic promotion position.
B25. The electronic device of B14, wherein the executable instructions cause the processor to:
and determining a fixed area in the visual area as a fixed promotion position.
B26. The electronic device of B25, wherein the executable instructions cause the processor to:
and creating a resident layer above the fixed promotion position, and rendering the promotion resources in the resident layer.
The invention also discloses: C27. a computer storage medium, wherein the storage medium stores at least one executable instruction, and the executable instruction causes a processor to execute operations corresponding to the method for displaying the promoted resource in the photo-like electronic book as described in any one of a1-a 13.

Claims (10)

1. A method for displaying promoted resources in a photo e-book comprises the following steps:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
2. The method of claim 1, wherein said determining a fixed promotion from a meaningless area of a reading page further comprises:
identifying a meaningless area in a reading page;
and screening out dynamic promotion positions from the meaningless areas.
3. The method of claim 2, wherein the identifying a nonsense region in a reading page further comprises:
acquiring color values of pixel points in the reading page;
and identifying a meaningless area in the reading page according to the difference of color values among the pixel points.
4. The method of claim 3, wherein said identifying a nonsense region in a reading page based on a difference in color values between pixel points further comprises:
dividing the reading page into a plurality of page units with the same size;
for any page unit, if the color values of the pixel points contained in the page unit are the same, determining the page unit as a candidate page unit;
corresponding color values are the same, and a plurality of candidate page units adjacent to each other are aggregated into corresponding meaningless areas.
5. The method of claim 3, wherein said identifying a nonsense region in a reading page based on a difference in color values between pixel points further comprises:
carrying out outline identification on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;
dividing the reading page into a plurality of blocks according to the boundary line;
for any block, if the color values of the pixels contained in the block are the same, the block is determined as a meaningless area.
6. The method according to any of claims 2-5, wherein the area of the nonsense region is greater than a preset threshold.
7. The method of any of claims 2-6, wherein the screening dynamic promotion locations from the nonsense regions further comprises:
and screening dynamic promotion positions from the meaningless area according to a preset promotion frequency and/or the size of the meaningless area.
8. The method of any of claims 2-7, wherein prior to presenting a promoted resource in the dynamic promotion location, the method further comprises:
acquiring popularization resources according to the size and/or the number of the dynamic popularization positions;
and storing the popularization resources, and recording the corresponding relation between each dynamic popularization position and each acquired popularization resource.
9. An electronic device, comprising: the system comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete mutual communication through the communication bus;
the memory is configured to store at least one executable instruction that causes the processor to:
detecting a current page turning mode of a photo electronic book read by a user;
if the current page turning mode is a left and right page turning mode, determining a fixed promotion position from a meaningless area of a reading page, and displaying promotion resources in the fixed promotion position;
and if the current page turning mode is the up-down page turning mode, determining a dynamic promotion position from a meaningless area of a reading page, and displaying promotion resources in the dynamic promotion position.
10. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and the executable instruction causes a processor to execute operations corresponding to the method for showing the promoted resource in the photo-like electronic book according to any one of claims 1-8.
CN202111470812.9A 2021-12-03 2021-12-03 Method for displaying promoted resources in photo-like electronic book and electronic equipment Pending CN114140164A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111470812.9A CN114140164A (en) 2021-12-03 2021-12-03 Method for displaying promoted resources in photo-like electronic book and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111470812.9A CN114140164A (en) 2021-12-03 2021-12-03 Method for displaying promoted resources in photo-like electronic book and electronic equipment

Publications (1)

Publication Number Publication Date
CN114140164A true CN114140164A (en) 2022-03-04

Family

ID=80387877

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111470812.9A Pending CN114140164A (en) 2021-12-03 2021-12-03 Method for displaying promoted resources in photo-like electronic book and electronic equipment

Country Status (1)

Country Link
CN (1) CN114140164A (en)

Similar Documents

Publication Publication Date Title
KR101034925B1 (en) Method and apparatus for encoding texture information
CN111179862B (en) Refreshing method of display page, reader and computer storage medium
JP2011135556A (en) Method of generating display object, digital media providing system, computer program therefor and display object
CN110070551B (en) Video image rendering method and device and electronic equipment
WO2022001220A1 (en) Method for presenting shared display element in pages, and electronic device and storage medium
CN111476852B (en) Reader refresh method, computing device, and computer storage medium
CN112433657A (en) Electronic book simulation page turning method, electronic equipment and computer storage medium
CN110187816B (en) Automatic page turning method for cartoon type electronic book, computing device and storage medium
US20170091152A1 (en) Generating grid layouts with mutable columns
CN115237522A (en) Page self-adaptive display method and device
CN109725802B (en) Page interaction method and device
CN108833974B (en) Method and device for removing semitransparent watermark in video and electronic equipment
CN111477183B (en) Reader refresh method, computing device, and computer storage medium
CN114140164A (en) Method for displaying promoted resources in photo-like electronic book and electronic equipment
CN110321190B (en) Method and device for optimizing icons in desktop
CN110658968B (en) Page turning processing method of photo e-book and electronic equipment
CN114219812A (en) Label avoiding method and device, electronic equipment and storage medium
CN114449305A (en) Gift animation playing method and device in live broadcast room
CN110378831B (en) Watermark processing method and device
CN113760596A (en) Method, device and medium for controlling display of liquid crystal display screen
CN112560530A (en) Two-dimensional code processing method, device, medium and electronic device
CN113934949B (en) Information page display method, electronic equipment and computer storage medium
CN112529887B (en) Lazy loading method and system based on GIS map data
CN113672836B (en) Method, device, equipment and storage medium for setting dynamic special effects of web pages
CN112967187B (en) Method and apparatus for target detection

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