Display method and electronic device for promotional resources in picture-based electronic books

By detecting the user's page turn mode, dynamically determining the promotion position in the e-book platform, the problem of single promotion resource display methods in the existing technology is solved, and the user experience and display effect of promotion resource display is improved.

CN114140164BActive Publication Date: 2025-06-06ZHANGYUE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111470812.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-03
Publication Date
2025-06-06
Estimated Expiration
2041-12-03

AI Technical Summary

Technical Problem

The existing e-book platform displays promotion resources when users read e-books in a single way, which increases the user's reading space and reduces the user experience.

Method used

By detecting the user's page turn mode, if it is the left and right page turn mode, a fixed promotion position is determined in the meaningless area of ​​the reading page and display the promotion resources; if it is the up and down page turn mode, a dynamic promotion position is determined and display the promotion resources.

Benefits of technology

There is no need to add a special promotion resource reading page, which avoids the problem of increasing user reading space, and improves the display effect of promotion resources by matching different page turning modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114140164B_ABST
    Figure CN114140164B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and electronic device for displaying promotional resources in a picture-type electronic book. The method comprises: detecting the current page turning mode of the picture-type electronic book read by the user; if the current page turning mode is a left-right page turning mode, determining a fixed promotion position from a meaningless area of ​​the reading page, and displaying the promotional resources in the fixed promotion position; if the current page turning mode is an up-down page turning mode, determining a dynamic promotion position from a meaningless area of ​​the reading page, and displaying the promotional resources in the dynamic promotion position. With this solution, there is no need to add additional reading pages specifically for displaying promotional resources, thereby not increasing the user's reading length; and this solution adopts different promotional resource display methods according to different page turning modes, avoiding the technical drawback of a single promotional resource display method. Moreover, the promotional resource display method adopted in each page turning mode has a high degree of matching with the corresponding page turning mode, which is conducive to improving the display effect of the promotional resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic books, and in particular to a method for displaying promotional resources in picture electronic books, an electronic device and a computer storage medium. Background Art

[0002] With the continuous development of science and technology and society, readers' reading habits have changed, and more and more readers prefer to read e-books through e-book platforms. At present, many e-book platforms will display advertisements, public welfare propaganda and other promotional resources while users are reading e-books.

[0003] However, the inventors found that the prior art has the following defects during implementation: the e-book platform in the prior art usually creates a reading page for displaying promotional resources after the user has read a certain amount of e-book content. However, this promotional resource display method is single and will increase the user's reading length, reducing the user experience. Summary of the invention

[0004] In view of the above problems, the present invention is proposed to provide a method for displaying promotional resources in picture-based electronic books, an electronic device and a computer storage medium that overcome the above problems or at least partially solve the above problems.

[0005] According to one aspect of the present invention, a method for displaying promotional resources in a picture-based electronic book is provided, comprising:

[0006] Detect the current page turning mode of the picture e-book that the user is reading;

[0007] If the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and promotion resources are displayed in the fixed promotion position;

[0008] If the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from a meaningless area of ​​the reading page, and promotional resources are displayed in the dynamic promotion position.

[0009] According to another aspect of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0010] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations:

[0011] Detect the current page turning mode of the picture e-book that the user is reading;

[0012] If the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and promotion resources are displayed in the fixed promotion position;

[0013] If the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from a meaningless area of ​​the reading page, and promotional resources are displayed in the dynamic promotion position.

[0014] According to another aspect of the present invention, a computer storage medium is provided, wherein the storage medium stores at least one executable instruction, wherein the executable instruction enables a processor to execute operations corresponding to the method for displaying promotional resources in the above-mentioned picture-based e-book.

[0015] In the method for displaying promotional resources in picture-type electronic books provided by the present invention, the electronic device and computer storage medium: the current page turning mode of the picture-type electronic book read by the user is detected; if the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and the promotional resources are displayed in the fixed promotion position; if the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from the meaningless area of ​​the reading page, and the promotional resources are displayed in the dynamic promotion position. With this solution, there is no need to add additional reading pages specifically for displaying promotional resources, thereby not increasing the user's reading length; and this solution adopts different promotional resource display methods according to different page turning modes, avoiding the technical drawbacks of a single promotional resource display method. Moreover, the promotional resource display method adopted in each page turning mode has a high degree of matching with the corresponding page turning mode, which is conducive to improving the display effect of the promotional resources.

[0016] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0018] Figure 1 A schematic diagram showing a flow chart of a method for displaying promotional resources in a picture-type electronic book provided in the first embodiment of the present invention;

[0019] Figure 2 A schematic diagram of a reading page provided by the first embodiment of the present invention is shown;

[0020] Figure 3 A schematic diagram showing another reading page provided by the first embodiment of the present invention is shown;

[0021] Figure 4 A schematic diagram showing a flow chart of a method for displaying promotional resources in a picture-type electronic book provided in a second embodiment of the present invention;

[0022] Figure 5 A schematic diagram of a page provided by Embodiment 2 of the present invention is shown;

[0023] Figure 6 A schematic diagram showing a flow chart of a method for displaying promotional resources in a picture-type electronic book provided in a third embodiment of the present invention;

[0024] Figure 7 A schematic diagram of a page provided by Embodiment 3 of the present invention is shown;

[0025] Figure 8 A schematic structural diagram of an electronic device provided in Embodiment 5 of the present invention is shown. DETAILED DESCRIPTION

[0026] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0027] Embodiment 1

[0028] Figure 1 The flowchart of a method for displaying promotional resources in a picture-type e-book provided by the first embodiment of the present invention is shown. The method for displaying promotional resources in a picture-type e-book provided by the embodiment of the present invention can be executed by a 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 can be a mobile phone, a reader, a computer, and a smart wearable device, etc.

[0029] like Figure 1 As shown, the method comprises the following steps:

[0030] Step S110, detecting the current page turning mode of the picture electronic book read by the user; if the current page turning mode is the left-right page turning mode, executing step S120; if the current page turning mode is the up-down page turning mode, executing step S130.

[0031] Image e-books refer to e-books whose e-book contents are presented in the form of pictures on the e-book platform, such as comic e-books and / or PDF e-books, etc. The image e-book read by the user in this step is specifically the image e-book that the user is currently reading.

[0032] In addition, in order to improve the user's reading experience of picture-based e-books, the e-book platform provides users with left-right page turning mode and up-down page turning mode. Users can choose the corresponding page turning mode according to their needs. In the left-right page turning mode, users can switch reading pages by sliding left and right, thereby changing the e-book content in the visible area; in the up-down page turning mode, users can scroll the reading page by sliding up and down, thereby changing the e-book content in the visible area.

[0033] The embodiment of the present invention identifies the type of the e-book currently read by the user when the user is reading the e-book. If the user is currently reading a picture e-book, the page turning mode currently corresponding to the picture e-book is further identified, so as to facilitate the subsequent execution of different promotion resource display methods based on different page turning modes.

[0034] Step S120, determining a fixed promotion location from the meaningless area in the reading page, and displaying promotion resources in the fixed promotion location.

[0035] There are usually some meaningless areas in the reading page, which are areas irrelevant to the actual content of the e-book. For example, the meaningless area can be a blank area in the reading page, or a single color background area without any elements in the reading page, etc.

[0036] In the left-right page flipping mode, for the convenience of page display, the e-book content of the picture-type e-book is usually divided into pictures of the same size, which are called e-book content pictures. Each reading page displays an e-book content picture. In addition, in order to ensure the page display effect, the size of each e-book content picture is smaller than the size of the visible area in the user terminal, so that the reading page contains not only the area containing the e-book content picture, but also a meaningless area. Figure 2 As shown, the reading page includes an e-book content area 21 and meaningless areas 22 located at the top and bottom of the reading page (see Figure 2 the black area at the top and bottom of the image).

[0037] Since the size of the e-book content image is fixed and the position of the e-book content image in the reading page is fixed, the position of the meaningless area in the reading page in the left-right page turning mode is fixed. Therefore, when the embodiment of the present invention determines that the current page turning mode is the left-right page turning mode, it determines a fixed promotion position from the meaningless area in the reading page.

[0038] Among them, the fixed promotion position is fixed in the visible area. For example, in the vertical screen state, the fixed promotion position is usually located at the top or bottom of the visible area; in the horizontal screen state, the fixed promotion position is usually located in the sidebar of the visible area. In addition, the fixed promotion position exists for a long time. After the user performs operations such as page turning and image zooming, the fixed promotion position still exists in the visible area.

[0039] Step S130, determining a dynamic promotion location from the meaningless area of ​​the reading page, and displaying promotion resources in the dynamic promotion location.

[0040] In the up-down page flipping mode, the reading page is a long page containing the e-book content. Due to factors such as page layout, there are still some meaningless areas in the reading page. Figure 3 As shown, the reading page includes two e-book content areas 31 and a meaningless area 32 ( Figure 3 middle white part).

[0041] Since the position of the meaningless area in the visible area changes dynamically in the up-down page turning mode, the embodiment of the present invention determines the dynamic promotion position from the meaningless area in the reading page when determining that the current page turning mode is 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 valid during the current reading process.

[0042] It can be seen that the embodiment of the present invention determines the promotion position from the meaningless area in the reading page, and then displays the promotion resource in the promotion position, so there is no need to add additional reading pages specifically for displaying promotion resources, and thus the user's reading length will not be increased, thereby improving the user's reading experience; moreover, the embodiment of the present invention detects the current page turning mode of the picture e-book read by the user, and adopts different promotion resource display methods according to different page turning modes, which solves the technical drawback of the single promotion resource display method in the prior art. Moreover, the promotion resource display method adopted by the embodiment of the present invention in each page turning mode has a high degree of matching with the corresponding page turning mode, which is conducive to improving the display effect of the promotion resource.

[0043] Embodiment 2

[0044] Figure 4 The flowchart of a method for displaying promotional resources in a picture-type electronic book provided by the second embodiment of the present invention is shown. The embodiment of the present invention is a further optimization of the method in the first embodiment.

[0045] like Figure 4 As shown, the method comprises the following steps:

[0046] Step S410: Detect that the current page turning mode of the picture electronic book read by the user is the up-down page turning mode.

[0047] Step S420, identifying meaningless areas in the reading page.

[0048] To facilitate data processing, dynamic promotion positions can be identified in chapters. That is, the reading page described in this step is specifically the reading page corresponding to the next chapter, so that the user has determined the dynamic promotion position before reading the next chapter, so that the user can display promotion resources in the dynamic promotion position in time when reading the next chapter.

[0049] Since the dynamic promotion position is determined from the meaningless area in the reading page, the embodiment of the present invention needs to first identify the meaningless area in the reading page. And since the meaningless area in the embodiment of the present invention is a blank area or a solid background area, the meaningless area and the meaningful area containing the e-book content have obvious differences in color value. Based on this, the embodiment of the present invention obtains the color value of the pixel points in the reading page, and identifies the meaningless area in the reading page based on the difference in color values ​​between the pixel points. Among them, the meaningless area can be specifically identified by but not limited to the following identification method.

[0050] Identification method one is to divide the reading page into multiple page units of the same size; for any page unit, if the color values ​​of the pixels contained in the page unit are the same, the page unit is determined as a candidate page unit; after the candidate page units are screened out, multiple candidate page units with the same corresponding color values ​​and adjacent to each other are aggregated into corresponding meaningless areas.

[0051] The second identification method is to perform contour recognition on the reading page to determine the boundary line between the meaningful area and the meaningless area in the reading page; divide the reading page into multiple blocks according to the boundary line; for any block, if the color values ​​of the pixels contained in the block are the same, then the block is determined as a meaningless area. In general, there is a clear boundary between the area containing the e-book content and the meaningless area such as the blank area. Figure 3 As shown in FIG. 1 , in comic e-books, rectangular borders are usually drawn outside the area containing the e-book content, so that the boundary between the meaningful area and the meaningless area in the reading page can be determined by identifying specific contours. The boundary divides the reading page into different areas, and then the area with the same color value of the pixels contained in the area is determined as a meaningless area.

[0052] Further optionally, in order to avoid misjudging a small-sized blank or solid color area in the electronic book content as a meaningless area, the area of ​​the meaningless area is set to be greater than a preset threshold in the embodiment of the present invention. Then, after aggregating multiple candidate page units in the above identification method 1, it is further determined whether the area of ​​the aggregated area is greater than the preset threshold. If so, the aggregated area is determined as a meaningless area; and in the above identification method 2, for any block, if the color values ​​of the pixels contained in the block are the same and its area is greater than the preset threshold, the block is determined as a meaningless area.

[0053] Step S430: Filter out dynamic promotion spots from the identified meaningless areas.

[0054] Specifically, you can filter dynamic promotion positions by at least the following filtering methods:

[0055] Screening method 1: Dynamic promotion positions are screened out from meaningless areas according to the preset promotion frequency. Specifically, the number of times n that promotional resources are displayed to users in each chapter is determined according to user preferences, and n meaningless areas are randomly or according to corresponding rules screened out from the identified meaningless areas as dynamic promotion positions. This screening method can ensure that the number of screened dynamic promotion positions meets the preset promotion strategy, facilitating the management of promotional resources.

[0056] Screening method 2: Screen out dynamic promotion spots from meaningless areas based on their size. Specifically, when the size of a meaningless area is too small or its shape is irregular, it is not convenient for displaying subsequent promotional resources. In this screening method, meaningless areas that are too small and / or too irregular in shape can be removed, so that the remaining meaningless areas can be used as dynamic promotion spots. This screening method can facilitate the display of subsequent promotional resources and improve the display effect of promotional resources.

[0057] Screening method three: According to the preset promotion frequency and the size of the meaningless area, dynamic promotion positions are screened out from the meaningless area. This screening method is a combination of the above two screening methods. For example, if the promotion frequency is set to three times for each chapter, the three meaningless areas with larger sizes are used as dynamic promotion positions. This screening method can not only meet the preset promotion strategy, but also facilitate the display of subsequent promotion resources.

[0058] Step S440, obtaining promotion information.

[0059] Specifically, the promotion resources are acquired according to the size and / or number of the dynamic promotion positions, so that the number of acquired promotion resources matches the number and / or size of the dynamic promotion positions.

[0060] In addition, in order to improve the display efficiency of promotional resources, after obtaining the promotional resources, the promotional resources are stored and the corresponding relationship between each dynamic promotion position and each obtained promotional resource is recorded. The size of the dynamic promotion position is adapted to the size of the corresponding promotional resource.

[0061] Step S450, displaying promotional resources in the dynamic promotion position.

[0062] Since the page being read in the up-down page turning mode is usually a long page, the visible area of ​​the user terminal cannot simultaneously display all the contents of the reading page. Based on this, the embodiment of the present invention only identifies the dynamic promotion position located in the visible area, which is the target dynamic promotion position, and then creates a dynamic layer above the target dynamic promotion position, and renders the promotional resources corresponding to the target dynamic promotion position in the dynamic layer. The position of the dynamic layer in the visible area is not fixed.

[0063] In an optional implementation, the dynamic layer can be merged with the layer where the corresponding target dynamic promotion position is located, so that when the user performs an up and down sliding operation, the promotional resources displayed by the dynamic layer can scroll synchronously with the reading page.

[0064] In another optional implementation, 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 visible area by sliding up and down, the position of the corresponding dynamic layer in the visible area can be dynamically adjusted in response to the position change of the target dynamic promotion position in the visible area, so that the dynamic layer and the corresponding target dynamic promotion position in the visible area always maintain a consistent relative position relationship. This method ensures the display effect of the promotional resources on the one hand, and avoids the dynamic layer from blocking the e-book content on the other hand, thereby improving the user experience. Compared with the above-mentioned implementation method of merging layers, the promotional resources in the layer in this implementation method can change dynamically, thereby improving the flexibility of displaying promotional resources.

[0065] In addition, as an optional implementation of an embodiment of the present invention, after the user performs a picture zooming operation, in response to the picture zooming operation, the user again performs the operation of determining a dynamic promotion position from a meaningless area of ​​the reading page and displaying promotional resources in the dynamic promotion position, thereby dynamically changing the displayed promotional resources.

[0066] For example, through the implementation of the embodiment of the present invention, it is determined that Figure 3 The blank area 32 shown is the target dynamic promotion position, and the promotion resource 51 is displayed in the target dynamic promotion position to generate Figure 5 This allows you to display promotional resources without increasing the length of the user's reading.

[0067] It can be seen that the embodiment of the present invention identifies meaningless areas in the reading page according to the color values ​​of the pixels in the reading page, thereby improving the recognition accuracy and efficiency of the meaningless areas; and by screening the dynamic promotion positions by the preset promotion frequency and / or the size of the meaningless areas, it can improve the user experience and facilitate the display of subsequent promotion resources; and when displaying promotion resources in the dynamic promotion positions, only the target dynamic promotion positions located in the visible area are identified, thereby saving system resources. And a dynamic layer with the same size as the target dynamic promotion position is created above the target dynamic promotion position, and the promotion resources corresponding to the target dynamic promotion position are rendered in the dynamic layer to achieve accurate display of the promotion resources.

[0068] Embodiment 3

[0069] Figure 6 The flowchart of a method for displaying promotional resources in a picture-type electronic book provided by the third embodiment of the present invention is shown. The embodiment of the present invention is a further optimization of the method in the first embodiment.

[0070] like Figure 6 As shown, the method comprises the following steps:

[0071] Step S610: Detect that the current page turning mode of the picture electronic book read by the user is the left-right page turning mode.

[0072] Step S620: determine a fixed area in the visible area as a fixed promotion location.

[0073] Since the position of the meaningless area of ​​each reading page is fixed in the visible area in the left-right page turning mode, compared with the second embodiment, this embodiment does not need to identify the meaningless area of ​​the reading page each time, but directly determines the fixed area in the visible area as the fixed promotion position, and the fixed area is located in the meaningless area of ​​the reading page.

[0074] Step S630, displaying promotional resources in a fixed promotion position.

[0075] Specifically, a permanent layer is created above the fixed promotion position, and the position of the permanent layer is fixed in the visible area. When the user turns the pages left or right, the displayed e-book content changes, but the position of the permanent layer does not change.

[0076] Further, the promotional resources are rendered in the created resident layer. In order to improve the user experience, different e-book chapters correspond to different promotional resources. Therefore, when displaying the promotional resources, the promotional resources corresponding to the e-book chapter are obtained and displayed according to the currently displayed e-book chapter.

[0077] For example, through the implementation of the embodiment of the present invention, it is determined that Figure 2The top black area 22 shown is a fixed promotion location. The promotion resource 71 is displayed in the fixed promotion location and then a Figure 7 This allows you to display promotional resources without increasing the length of the user's reading.

[0078] It can be seen that in the left-right page turning mode, the embodiment of the present invention does not need to identify meaningless areas in the reading page, and can directly use the fixed area in the visible area as a fixed promotion position, and then display promotional resources in the fixed promotion position, thereby improving the efficiency of determining the promotion position and improving the efficiency of displaying promotional resources.

[0079] Embodiment 4

[0080] A fourth embodiment of the present invention provides a non-volatile computer storage medium, wherein the computer storage medium stores at least one executable instruction, and the computer executable instruction can execute the method in any of the above method embodiments.

[0081] The executable instructions may be specifically used to cause the processor to perform the following operations:

[0082] Detect the current page turning mode of the picture e-book that the user is reading;

[0083] If the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and promotion resources are displayed in the fixed promotion position;

[0084] If the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from a meaningless area of ​​the reading page, and promotional resources are displayed in the dynamic promotion position.

[0085] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0086] Identify meaningless areas in reading pages;

[0087] Dynamic promotion positions are screened out from the meaningless areas.

[0088] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0089] Obtaining the color value of a pixel in the reading page;

[0090] Identify meaningless areas in the reading page based on the difference in color values ​​between pixels.

[0091] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0092] Dividing the reading page into a plurality of page units of uniform size;

[0093] For any page unit, if the color values ​​of the pixels contained in the page unit are all the same, the page unit is determined as a candidate page unit;

[0094] A plurality of candidate page units having the same corresponding color value and being adjacent to each other are aggregated into corresponding meaningless areas.

[0095] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0096] Performing contour recognition on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;

[0097] Dividing the reading page into a plurality of blocks according to the boundary lines;

[0098] 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.

[0099] In an optional implementation, the area of ​​the meaningless region is greater than a preset threshold.

[0100] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0101] According to a preset promotion frequency and / or the size of the meaningless area, a dynamic promotion position is screened out from the meaningless area.

[0102] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0103] Before displaying the promotional resources in the fixed promotional positions, obtaining the promotional resources according to the size and / or number of the dynamic promotional positions;

[0104] The promotion resources are stored, and the corresponding relationship between each dynamic promotion position and each acquired promotion resource is recorded.

[0105] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0106] Identify the target dynamic promotion position within the visual area;

[0107] A dynamic layer is created above the target dynamic promotion position, and promotional resources corresponding to the target dynamic promotion position are rendered in the dynamic layer.

[0108] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0109] After rendering the promotional resources corresponding to the target dynamic promotion position in the dynamic layer, the relative position relationship between the dynamic layer and the target dynamic promotion position is recorded so as to dynamically adjust the position of the dynamic layer in the visual area in response to the position change of the target dynamic promotion position in the visual area.

[0110] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0111] In response to the picture zooming operation, the operation of determining a dynamic promotion position from the meaningless area in the reading page and displaying the promotional resources in the dynamic promotion position is performed again.

[0112] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0113] Identify a fixed area in the visual area as a fixed promotion spot.

[0114] In an optional implementation, the executable instruction causes the processor to perform the following operations:

[0115] A permanent layer is created above the fixed promotion position, and the promotion resource is rendered in the permanent layer.

[0116] It can be seen that the embodiment of the present invention does not need to add additional reading pages specifically for displaying promotional resources, so as not to increase the user's reading length; and different promotional resource display methods are used according to different page turning modes, avoiding the technical disadvantage of a single promotional resource display method. Moreover, the promotional resource display method used in each page turning mode has a high degree of matching with the corresponding page turning mode, which is conducive to improving the display effect of the promotional resources.

[0117] Embodiment 5

[0118] Figure 8 The structure diagram of an electronic device provided by Embodiment 5 of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.

[0119] like Figure 8 As shown, the electronic device may include: a processor (processor) 802 , a communication interface (Communications Interface) 804 , a memory (memory) 806 , and a communication bus 808 .

[0120] The processor 802, the communication interface 804, and the memory 806 communicate with each other via the communication bus 808. The communication interface 804 is used to communicate with other devices such as a client or other server network elements. The processor 802 is used to execute the program 810, which can specifically execute the relevant steps in the above method embodiment.

[0121] Specifically, the program 810 may include program codes, which include computer operation instructions.

[0122] 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 the embodiments of the present invention. The one or more processors included in the electronic device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0123] The memory 806 is used to store the program 810. The memory 806 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0124] The program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0125] Detect the current page turning mode of the picture e-book that the user is reading;

[0126] If the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and promotion resources are displayed in the fixed promotion position;

[0127] If the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from a meaningless area of ​​the reading page, and promotional resources are displayed in the dynamic promotion position.

[0128] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0129] Identify meaningless areas in reading pages;

[0130] Dynamic promotion positions are screened out from the meaningless areas.

[0131] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0132] Obtaining the color value of a pixel in the reading page;

[0133] Identify meaningless areas in the reading page based on the difference in color values ​​between pixels.

[0134] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0135] Dividing the reading page into a plurality of page units of uniform size;

[0136] For any page unit, if the color values ​​of the pixels contained in the page unit are all the same, the page unit is determined as a candidate page unit;

[0137] A plurality of candidate page units having the same corresponding color value and being adjacent to each other are aggregated into corresponding meaningless areas.

[0138] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0139] Performing contour recognition on the reading page to determine a boundary line between a meaningful area and a meaningless area in the reading page;

[0140] Dividing the reading page into a plurality of blocks according to the boundary lines;

[0141] 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.

[0142] In an optional implementation, the area of ​​the meaningless region is greater than a preset threshold.

[0143] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0144] According to a preset promotion frequency and / or the size of the meaningless area, a dynamic promotion position is screened out from the meaningless area.

[0145] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0146] Before displaying the promotional resources in the fixed promotional positions, obtaining the promotional resources according to the size and / or number of the dynamic promotional positions;

[0147] The promotion resources are stored, and the corresponding relationship between each dynamic promotion position and each acquired promotion resource is recorded.

[0148] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0149] Identify the target dynamic promotion position within the visual area;

[0150] A dynamic layer is created above the target dynamic promotion position, and promotional resources corresponding to the target dynamic promotion position are rendered in the dynamic layer.

[0151] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0152] After rendering the promotional resources corresponding to the target dynamic promotion position in the dynamic layer, the relative position relationship between the dynamic layer and the target dynamic promotion position is recorded so as to dynamically adjust the position of the dynamic layer in the visual area in response to the position change of the target dynamic promotion position in the visual area.

[0153] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0154] In response to the picture zooming operation, the operation of determining a dynamic promotion position from the meaningless area in the reading page and displaying the promotional resources in the dynamic promotion position is performed again.

[0155] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0156] Identify a fixed area in the visual area as a fixed promotion spot.

[0157] In an optional implementation, the program 810 may be specifically configured to enable the processor 802 to perform the following operations:

[0158] A permanent layer is created above the fixed promotion position, and the promotion resource is rendered in the permanent layer.

[0159] It can be seen that the embodiment of the present invention does not need to add additional reading pages specifically for displaying promotional resources, so as not to increase the user's reading length; and different promotional resource display methods are used according to different page turning modes, avoiding the technical disadvantage of a single promotional resource display method. Moreover, the promotional resource display method used in each page turning mode has a high degree of matching with the corresponding page turning mode, which is conducive to improving the display effect of the promotional resources.

[0160] The algorithm or display provided herein is not inherently related to any particular computer, virtual system or other equipment. Various general purpose systems can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of system. In addition, the embodiment of the present invention is not directed to any specific programming language yet. It should be understood that various programming languages ​​can be utilized to realize the content of the present invention described herein, and the description made to specific languages ​​above is for disclosing the best mode of the present invention.

[0161] In the description provided herein, a large number of specific details are described. However, it is understood that embodiments of the present invention can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0162] Similarly, it should be understood that in order to streamline the present invention and aid in understanding one or more of the various inventive aspects, in the above description of exemplary embodiments of the present invention, the various features of the embodiments of the present invention are sometimes grouped together into a single embodiment, figure, or description thereof. However, this disclosed method should not be interpreted as reflecting the following intention: that the claimed invention requires more features than the features explicitly recited in each claim. More specifically, as reflected in the claims below, inventive aspects lie in less than all the features of the individual embodiments disclosed above. Therefore, the claims that follow the specific embodiment are hereby expressly incorporated into the specific embodiment, with each claim itself serving as a separate embodiment of the present invention.

[0163] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0164] In addition, those skilled in the art will appreciate that, although some embodiments herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present invention and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0165] The various component embodiments of the present invention can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present invention can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0166] It should be noted that the above embodiments illustrate the present invention rather than limit it, and that those skilled in the art may devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets shall not be construed as a limitation on the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present invention may be implemented by means of hardware comprising a number of different elements and by means of a suitably programmed computer. In a unit claim enumerating a number of devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.

Claims

1. A method for displaying promotional resources in picture-based e-books. include: Detect the current page turning mode of the picture e-book that the user is reading; If the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and promotion resources are displayed in the fixed promotion position; If the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from a meaningless area of ​​the reading page, and promotional resources are displayed in the dynamic promotion position.

2. The method according to claim 1, in, Determining the dynamic promotion position from the meaningless area of ​​the reading page further includes: Identify meaningless areas in reading pages; Dynamic promotion positions are screened out from the meaningless areas.

3. The method according to claim 2, in, The identifying of meaningless areas in the reading page further comprises: Obtaining the color value of a pixel in the reading page; Identify meaningless areas in the reading page based on the difference in color values ​​between pixels.

4. The method according to claim 3, in, The step of identifying the meaningless area in the reading page according to the difference in color values ​​between the pixels further includes: Dividing the reading page into a plurality of page units of uniform size; For any page unit, if the color values ​​of the pixels contained in the page unit are all the same, the page unit is determined as a candidate page unit; A plurality of candidate page units having the same corresponding color value and being adjacent to each other are aggregated into corresponding meaningless areas.

5. The method according to claim 3, in, The step of identifying the meaningless area in the reading page according to the difference in color values ​​between the pixels further includes: Performing contour recognition 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 lines; 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 one of claims 2 to 5, in, The area of ​​the meaningless region is greater than a preset threshold.

7. The method according to any one of claims 2 to 5, in, The step of selecting the dynamic promotion location from the meaningless area further comprises: According to a preset promotion frequency and / or the size of the meaningless area, a dynamic promotion position is screened out from the meaningless area.

8. The method according to any one of claims 2 to 5, in, Before displaying the promotional resources in the dynamic promotion position, the method further includes: Acquire promotional resources based on the size and / or number of dynamic promotional slots; The promotion resources are stored, and the corresponding relationship between each dynamic promotion position and each acquired promotion resource is recorded.

9. The method according to claim 8, in, Displaying promotional resources in the dynamic promotion position further includes: Identify the target dynamic promotion position within the visual area; A dynamic layer is created above the target dynamic promotion position, and promotional resources corresponding to the target dynamic promotion position are rendered in the dynamic layer.

10. The method according to claim 9, in, After rendering the promotional resources corresponding to the target dynamic promotion position in the dynamic layer, the method further includes: The relative position relationship between the dynamic layer and the target dynamic promotion position is recorded, so as to dynamically adjust the position of the dynamic layer in the visual area in response to the position change of the target dynamic promotion position in the visual area.

11. The method according to any one of claims 2 to 5, in, The method further comprises: In response to the picture zooming operation, the operation of determining a dynamic promotion position from the meaningless area in the reading page and displaying the promotional resources in the dynamic promotion position is performed again.

12. The method according to claim 1, in, The step of determining a fixed promotion location from a meaningless area of ​​a reading page further includes: A fixed area in the visual area is designated as a fixed promotion location.

13. The method according to claim 12, in, The displaying of promotional resources in the fixed promotion position further includes: A permanent layer is created above the fixed promotion position, and the promotion resource is rendered in the permanent layer.

14. An electronic device, include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform the following operations: Detect the current page turning mode of the picture e-book that the user is reading; If the current page turning mode is the left-right page turning mode, a fixed promotion position is determined from the meaningless area of ​​the reading page, and promotion resources are displayed in the fixed promotion position; If the current page turning mode is the up-down page turning mode, a dynamic promotion position is determined from a meaningless area of ​​the reading page, and promotional resources are displayed in the dynamic promotion position.

15. The electronic device according to claim 14, in, The executable instructions cause the processor to perform the following operations: Identify meaningless areas in reading pages; Dynamic promotion positions are screened out from the meaningless areas.

16. The electronic device according to claim 15, in, The executable instructions cause the processor to perform the following operations: Obtaining the color value of a pixel in the reading page; Identify meaningless areas in the reading page based on the difference in color values ​​between pixels.

17. The electronic device according to claim 16, in, The executable instructions cause the processor to perform the following operations: Dividing the reading page into a plurality of page units of uniform size; For any page unit, if the color values ​​of the pixels contained in the page unit are all the same, the page unit is determined as a candidate page unit; A plurality of candidate page units having the same corresponding color value and being adjacent to each other are aggregated into corresponding meaningless areas.

18. The electronic device according to claim 16, in, The executable instructions cause the processor to perform the following operations: Performing contour recognition 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 lines; 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.

19. The electronic device according to any one of claims 15 to 18, in, The area of ​​the meaningless region is greater than a preset threshold.

20. The electronic device according to any one of claims 15 to 18, in, The executable instructions cause the processor to perform the following operations: According to a preset promotion frequency and / or the size of the meaningless area, a dynamic promotion position is screened out from the meaningless area.

21. The electronic device according to any one of claims 15 to 18, in, The executable instructions cause the processor to perform the following operations: Before displaying the promotional resources in the dynamic promotional positions, obtaining the promotional resources according to the size and / or number of the dynamic promotional positions; The promotion resources are stored, and the corresponding relationship between each dynamic promotion position and each acquired promotion resource is recorded.

22. The electronic device according to claim 21, in, The executable instructions cause the processor to perform the following operations: Identify the target dynamic promotion position within the visual area; A dynamic layer is created above the target dynamic promotion position, and promotional resources corresponding to the target dynamic promotion position are rendered in the dynamic layer.

23. The electronic device according to claim 22, in, The executable instructions cause the processor to perform the following operations: After rendering the promotional resources corresponding to the target dynamic promotion position in the dynamic layer, the relative position relationship between the dynamic layer and the target dynamic promotion position is recorded so as to dynamically adjust the position of the dynamic layer in the visual area in response to the position change of the target dynamic promotion position in the visual area.

24. The electronic device according to any one of claims 15 to 18, in, The executable instructions cause the processor to perform the following operations: In response to the picture zooming operation, the operation of determining a dynamic promotion position from the meaningless area in the reading page and displaying the promotional resources in the dynamic promotion position is performed again.

25. The electronic device according to claim 14, in, The executable instructions cause the processor to perform the following operations: A fixed area in the visual area is designated as a fixed promotion location.

26. The electronic device according to claim 25, in, The executable instructions cause the processor to perform the following operations: A permanent layer is created above the fixed promotion position, and the promotion resource is rendered in the permanent layer.

27. A computer storage medium, wherein at least one executable instruction is stored in the storage medium, and wherein the executable instruction enables a processor to execute an operation corresponding to the method for displaying promotional resources in a picture-based electronic book as described in any one of claims 1 to 13.

Citation Information

Patent Citations

  • Method and device for displaying advertisements in electronic reader

    CN101763792A

  • Display method and device of cartoon content, equipment and readable storage medium

    CN113034213A