Target content adjusting method and device, medium and electronic equipment
By adjusting the display method of subtitles and anchors in the video, the information display and user experience problems caused by the overlap of subtitles and anchors are solved, and the effect of improving information display and user experience is achieved.
Patent Information
- Application Number
- CN202310996334.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-08
- Publication Date
- 2025-02-18
AI Technical Summary
In video, the overlap of subtitles and anchor points causes users to not see clearly the words on the anchor points and the words on the subtitles, affecting information display and user experience.
By obtaining the target content to be displayed, determine whether the display area where the text content and the anchor text are located overlap, and in the case of overlap, adjust the display method of the text content and anchor text, such as changing the display position or background color, to reduce the overlap area.
Weak or avoid the mutual influence between text content and anchor text, improve visibility of at least one of the two, and improve information display and user experience.
Smart Images

Figure CN119473449A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, medium and electronic device for adjusting target content. Background Art
[0002] When users browse videos, they often see text information and anchors on a video. In this case, the text information in the video, such as subtitles, and the anchors may affect each other when displayed, causing users to be unable to see both the anchors and subtitles. Anchors are a type of hyperlink in web page production, also called named anchors. Summary of the invention
[0003] This summary is provided to introduce concepts in a brief form that will be described in detail in the detailed description below. This summary is not intended to identify key features or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.
[0004] In a first aspect, the present disclosure provides a method for adjusting target content, the method comprising:
[0005] Acquire target content to be displayed, and determine that the target content includes text content and that there is anchor text for displaying on the target content;
[0006] Determine whether a first display area where the text content is located overlaps with a second display area where the anchor text is located;
[0007] In the case where the first display area and the second display area overlap, the display mode of the text content is adjusted and / or the display mode of the anchor text is adjusted.
[0008] Optionally, adjusting the display mode of the anchor text includes:
[0009] Determine an overlapping area between the first display area and the second display area;
[0010] According to the size of the overlapping area, the display position of the anchor text is adjusted in the display interface along any one of the following directions: above the first display area, below the first display area, to the left of the first display area, and to the right of the first display area.
[0011] Optionally, adjusting the display mode of the anchor text includes:
[0012] The background of the anchor text is adjusted to a non-transparent state, and the color of the background is controlled to be different from the color of the anchor text.
[0013] Optionally, adjusting the display mode of the text content includes:
[0014] The display position of the text content is adjusted so that the overlap area between the first display area and the second display area after the adjustment is smaller than the overlap area between the first display area and the second display area before the adjustment.
[0015] Optionally, adjusting the display mode of the text content includes:
[0016] The display position of the first display area where the text content is located on the display interface is adjusted by adjusting the display position and / or display size of the target content on the display interface.
[0017] Optionally, when the first display area and the second display area overlap, adjusting the display mode of the text content and / or adjusting the display mode of the anchor text includes:
[0018] determining an overlapping area of the first display area and the second display area;
[0019] When the overlapping area is greater than or equal to a threshold, adjusting the display mode of the text content and / or adjusting the display mode of the anchor text;
[0020] The threshold is determined according to the area of the first display area or the area of the second display area.
[0021] Optionally, determining an overlapping area of the first display area and the second display area includes:
[0022] Determine a first circumscribed rectangular frame of the first display area, and determine a second circumscribed rectangular frame of the second display area;
[0023] The overlapping area is obtained according to the intersection area of the first circumscribed rectangular frame and the second circumscribed rectangular frame.
[0024] In a second aspect, the present disclosure provides a device for adjusting target content, the device comprising:
[0025] A first determination module is used to obtain target content to be displayed, and determine that the target content includes text content and there is an anchor text for displaying on the target content;
[0026] A second determination module is used to determine whether the first display area where the text content is located overlaps with the second display area where the anchor text is located;
[0027] An adjustment module is used to adjust the display mode of the text content and / or the display mode of the anchor text when the first display area and the second display area overlap.
[0028] Optionally, the adjustment module includes:
[0029] The first adjustment submodule is used to determine the overlapping area between the first display area and the second display area; and according to the size of the overlapping area, adjust the display position of the anchor text in the display interface along any of the following directions: above the first display area, below the first display area, to the left of the first display area, and to the right of the first display area.
[0030] Optionally, the adjustment module includes:
[0031] The second adjustment submodule is used to adjust the background of the anchor text to a non-transparent state and control the color of the background to be different from the color of the anchor text.
[0032] Optionally, the adjustment module includes:
[0033] The third adjustment submodule is used to adjust the display position of the text content so that the overlap area between the first display area and the second display area after adjustment is smaller than the overlap area between the first display area and the second display area before adjustment.
[0034] Optionally, the adjustment module includes:
[0035] The fourth adjustment submodule is used to adjust the display position of the first display area where the text content is located on the display interface by adjusting the display position and / or display size of the target content on the display interface.
[0036] Optionally, the adjustment module is used to determine the overlapping area of the first display area and the second display area; when the overlapping area is greater than or equal to a threshold, adjust the display mode of the text content and / or adjust the display mode of the anchor text; wherein the threshold is determined based on the area of the first display area or the area of the second display area.
[0037] Optionally, the adjustment module includes:
[0038] The processing submodule is used to determine a first circumscribed rectangular frame of the first display area and a second circumscribed rectangular frame of the second display area; and obtain the overlapping area according to the intersection area of the first circumscribed rectangular frame and the second circumscribed rectangular frame.
[0039] In a third aspect, the present disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of any one of the methods described in the first aspect.
[0040] In a fourth aspect, the present disclosure provides an electronic device, including:
[0041] a storage device having a computer program stored thereon;
[0042] A processing device is used to execute the computer program in the storage device to implement the steps of any one of the methods in the first aspect.
[0043] By adopting the above technical solution, at least the following beneficial technical effects can be achieved:
[0044] Obtain the target content to be displayed. If it is determined that the first display area where the text content in the target content is located overlaps with the second display area where the anchor text used to be displayed on the target content is located, then by adjusting the display mode of the text content in the target content and / or adjusting the display mode of the anchor text, the mutual influence between the text content in the target content and the anchor text can be weakened or avoided, thereby increasing the visibility of at least one of the text content in the target content and the anchor text, so that the user can at least see clearly one of the anchor text and the text content in the target content. Therefore, by adopting the method disclosed in the present invention, the amount of effective information displayed can be increased, which facilitates users to obtain more information and improves the user's experience of viewing the target content.
[0045] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the originals and elements are not necessarily drawn to scale. In the drawings:
[0047] Figure 1 The figure is a flowchart of a method for adjusting target content according to an exemplary embodiment of the present disclosure.
[0048] Figure 2 The figure is a schematic diagram showing the positional relationship between a first display area and a second display area according to an exemplary embodiment of the present disclosure.
[0049] Figure 3 The figure is a schematic diagram showing another positional relationship between a first display area and a second display area according to an exemplary embodiment of the present disclosure.
[0050] Figure 4The figure is a schematic diagram showing another positional relationship between a first display area and a second display area according to an exemplary embodiment of the present disclosure.
[0051] Figure 5 The figure is a schematic diagram showing another positional relationship between a first display area and a second display area according to an exemplary embodiment of the present disclosure.
[0052] Figure 6 The figure is a schematic diagram showing another positional relationship between a first display area and a second display area according to an exemplary embodiment of the present disclosure.
[0053] Figure 7 The present invention is a schematic diagram showing the display of anchor text and text content in target content according to an exemplary embodiment of the present disclosure.
[0054] Figure 8 It is a schematic diagram showing another display of anchor text and text content in target content according to an exemplary embodiment of the present disclosure.
[0055] Fig. 9 The present invention is a block diagram of a device for adjusting target content according to an exemplary embodiment of the present disclosure.
[0056] Fig.10 It is a block diagram of an electronic device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0057] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0058] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0059] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0060] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0061] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0062] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0063] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0064] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.
[0065] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.
[0066] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0067] At the same time, it is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.
[0068] When a user is browsing a video, if there are both subtitles and anchor points on a certain video, and the background of the anchor point is transparent, then when the subtitles and the anchor point overlap, the user may not be able to see clearly the words on the anchor point or the words on the subtitles.
[0069] In view of this, the embodiments of the present disclosure provide a method, device, medium and electronic device for adjusting target content, so as to increase the amount of effective information displayed when displaying target content, so as to facilitate users to obtain more information. For example, if the target content is a video, then the use of the method disclosed in the present disclosure can make the words and subtitles of the anchor points in the video not affect each other, so that users can clearly see the words on the anchor points and the words on the subtitles, which can improve the information display effect, and further improve the user's experience of watching the video.
[0070] Figure 1 This is a flow chart of a method for adjusting target content according to an exemplary embodiment of the present disclosure. The method for adjusting target content is applicable to products with a target content display function. Products with a target content display function include short video apps, live broadcast platforms, film and television drama playback platforms, image processing products, text display products, etc. The method for adjusting target content in the embodiment of the present disclosure can be executed by an electronic device, such as a mobile phone, a tablet computer, etc. Figure 1 As shown, the method for adjusting the target content may include the following steps:
[0071] S11. Acquire target content to be displayed, and determine whether the target content includes text content and whether there is anchor text for display on the target content.
[0072] In some embodiments, when a user browses the target content, the target content adjustment method of the present disclosure may be temporarily executed when the target content is to be displayed. In other embodiments, when a user publishes the target content, the target content adjustment method of the present disclosure may be executed when the user publishes the target content or when the user previews the target content before publishing. The present disclosure does not limit the timing of calling and executing the target content adjustment method.
[0073] It should be explained that on a web page, an anchor refers to a link within a page, which can be clicked to jump to a different location in the page, or to other pages. Examples of anchors are shopping cart anchors, group purchase anchors, store anchors, store address anchors, navigation anchors, etc. Anchor text refers to the visible text part of a link, i.e., the anchor text is displayed on the anchor, and the anchor text can include text, images, buttons, and other elements.
[0074] In the embodiments of the present disclosure, the target content may be a video, an image, text, a symbol, etc. The video may be a film and television video, a DIY photo video, or a pure text video, which is not limited by the present disclosure. The text content in the target content may be a subtitle, a bullet screen, or other element object including text in the video.
[0075] In some embodiments, if it is determined that the target content to be displayed includes text content, and there is an anchor point for displaying the upper layer of the target content, and anchor text is displayed on the anchor point, the subsequent step S12 can be executed.
[0076] S12: Determine whether there is an overlap between the first display area where the text content is located and the second display area where the anchor text is located.
[0077] The first display area may refer to a location area corresponding to when the text content is displayed in the display interface, and the second display area may refer to a location area corresponding to when the anchor text is displayed in the display interface.
[0078] In some embodiments, the first display area where the text content in the target content is located can be identified and determined by optical character recognition technology (OCR). The second display area where the anchor text is located can be obtained by calling the API interface of the target content display product. Furthermore, it can be determined whether the first display area and the second display area overlap based on the position information of the first display area and the second display area.
[0079] S13: When the first display area and the second display area overlap, adjust the display mode of the text content and / or adjust the display mode of the anchor text.
[0080] In some embodiments, if it is determined that the first display area and the second display area overlap, it indicates that the text content and the anchor text in the target content will be displayed in an overlapping manner, resulting in low visibility of the text content and the anchor text in the target content. Therefore, the embodiment of the present disclosure proposes that when it is determined that the first display area and the second display area overlap, the display mode of the text content in the target content and / or the display mode of the anchor text can be adjusted to increase the visibility of at least one of the text content and the anchor text in the target content. For example, by canceling the display of the text content in the target content, the visibility of the anchor text can be increased. For example, by canceling the display of the anchor text, the visibility of the text content in the target content can be increased. For example, by adjusting the display position of the anchor text or the text content in the target content, the visibility of the text content and the anchor text in the target content can be increased.
[0081] It should be noted here that when the target content is displayed at a suitable time, it is displayed in the adjusted display mode of the text content and / or the adjusted display mode of the anchor text.
[0082] Optionally, when there is an overlap between the first display area and the second display area, the implementation method of adjusting the display mode of the text content and / or adjusting the display mode of the anchor text may be: determining the overlapping area of the first display area and the second display area; when the overlapping area is greater than or equal to a threshold, adjusting the display mode of the text content and / or adjusting the display mode of the anchor text.
[0083] The threshold is determined according to the area of the first display area or the area of the second display area. For example, assuming that the area of the first display area is m, the threshold can be determined as Another example, assuming that the area of the second display area is n, the threshold value can be determined as Equal value.
[0084] In some embodiments, the method for determining the overlapping area of the first display area and the second display area can be: determining a first circumscribed rectangular frame of the first display area, and determining a second circumscribed rectangular frame of the second display area; determining the intersection area of the first circumscribed rectangular frame and the second circumscribed rectangular frame, calculating the area of the intersection area, and obtaining the intersection area, wherein the intersection area represents the overlapping area of the first display area and the second display area.
[0085] In other embodiments, since the display interface has pixels, the method for determining the overlapping area of the first display area and the second display area can be: determining a first pixel coordinate point set corresponding to the first display area; determining a second pixel coordinate point set corresponding to the second display area; and determining the overlapping area of the first display area and the second display area based on the intersection of the first pixel coordinate point set and the second pixel coordinate point set.
[0086] By using the above-mentioned target content adjustment method, if it is determined that the first display area where the text content in the target content is located overlaps with the second display area where the anchor text displayed on the target content is located, then by adjusting the display mode of the text content in the target content and / or adjusting the display mode of the anchor text, the mutual influence between the text content in the target content and the anchor text can be weakened or avoided, thereby increasing the visibility of at least one of the text content in the target content and the anchor text, so that the user can at least see clearly the anchor text and one of the text content in the target content. Therefore, by using the method disclosed in the present invention, the amount of effective information displayed can be increased, which facilitates users to obtain more information and improves the user's experience of viewing the target content.
[0087] Optionally, adjusting the display method of the anchor text may be: determining the overlapping area between the first display area and the second display area; and adjusting the display position of the anchor text in the display interface along any of the following directions according to the size of the overlapping area: above the first display area, below the first display area, to the left of the first display area, and to the right of the first display area.
[0088] The display position of the anchor text may be adjusted by moving the display position of the anchor text or by updating configuration information of the display position of the anchor text.
[0089] For example, see Figure 2, the size of the overlapping area represented by the oblique line filling part can be specifically X in length and Y in width. According to the width Y of the overlapping area, the display position of the anchor text can be adjusted above the first display area in the display interface. For example, if the anchor text is moved upward by a distance Y, the following can be obtained: Figure 3 The first display area and the moved second display area are shown.
[0090] For example, see Figure 2 According to the length X of the overlapping area, the display position of the anchor text can be adjusted to the left of the first display area in the display interface. Assuming that the anchor text is moved to the left by a distance X, the following can be obtained: Figure 4 The first display area and the moved second display area are shown.
[0091] Continuing with the example, see Figure 5 , the size of the overlapping area can be specifically X in length and Y in width. According to the width Y of the overlapping area, the display position of the anchor text can be adjusted downward to the bottom of the first display area in the display interface. For example, if the anchor text is moved downward by a distance Y, the following can be obtained: Figure 6 The first display area and the moved second display area are shown.
[0092] According to the above examples, since the display position of the anchor text can be adjusted from multiple directions, in some embodiments, the adjustment distance corresponding to each adjustment direction can be determined, and the target adjustment direction with the shortest adjustment distance can be selected, and the display position of the anchor text can be adjusted according to the target adjustment direction to improve the adjustment efficiency. In other embodiments, the target adjustment direction can be determined based on whether the adjusted anchor text overflows the display interface.
[0093] In some scenarios, if the background of the anchor text is transparent, then when the first display area where the text content in the target content is located overlaps with the second display area where the anchor text is located, the text content in the target content and the anchor text may interfere with each other, resulting in the following situation: Figure 7 As shown, neither the text content "AAA" in the target content nor the anchor text "BBB" can be seen clearly.
[0094] Therefore, in some embodiments, the display method of adjusting the anchor text may be: adjusting the background of the anchor text to a non-transparent state, and controlling the color of the background to be different from the color of the anchor text. Figure 7 After the background of the anchor text "BBB" is adjusted to a non-transparent state and the background color is controlled to be different from the color of the anchor text, such as Figure 8 The non-transparent background of the anchor text displayed on the upper layer of the target content can cover the information of the lower layer, so that the user can at least see the anchor text clearly.
[0095] In some embodiments, the display mode of the anchor text may be to cancel the display of the anchor text. Alternatively, the display time of the anchor text may be adjusted, for example, the anchor text may be displayed before or after the text content of the target content is played.
[0096] In some embodiments, the display method of adjusting the anchor text may be to adjust the display layer of the anchor point where the anchor text is located. For example, when playing the text content of the target content, the anchor point where the anchor text is located is adjusted from the previous layer of the target content to the next layer of the target content. After playing the text content of the target content, the anchor point where the anchor text is located is adjusted from the next layer of the target content back to the previous layer of the target content. In this way, the overlapping display of the anchor text and the text content in the target content can be avoided.
[0097] When the first display area where the text content in the target content is located overlaps with the second display area where the anchor text is located, in addition to adjusting the display mode of the anchor text in the above embodiment, the display mode of the text content in the target content may also be adjusted.
[0098] In some embodiments, the display of the text content may be adjusted by adjusting the display position of the text content so that the overlap area between the first display area and the second display area after adjustment is smaller than the overlap area between the first display area and the second display area before adjustment. In this way, the visibility of the text content and the anchor text may be increased by reducing the overlap area between the first display area and the second display area.
[0099] Optionally, the display position of the text content can be adjusted by: determining the overlapping area between the first display area and the second display area; and adjusting the display position of the text content in the display interface along any of the following directions according to the size of the overlapping area: above the second display area, below the second display area, to the left of the second display area, or to the right of the second display area. This implementation is the same as the principle of the aforementioned embodiment of adjusting the display position of the anchor text, and will not be described in detail here.
[0100] Optionally, the display position of the text content can be adjusted by: determining the remaining area except the second display area where the anchor text is located in the display interface, randomly determining a target area with the same size as the first display area from the remaining area, and adjusting the display position of the text content to the target area.
[0101] Optionally, the display method of adjusting the text content may be: by adjusting the display position or display size of the target content on the display interface, so as to indirectly adjust the display position of the first display area where the text content is located on the display interface.
[0102] In some embodiments, the display position of the first display area where the text content is located on the display interface can be indirectly adjusted by scaling the display size of the target content on the display interface.
[0103] In other embodiments, the display position of the first display area where the text content is located can be indirectly adjusted by adjusting the display position of the target content on the display interface. For example, the display interface is divided into two parts, one for displaying the target content and the other for displaying the anchor text.
[0104] In some embodiments, the display method of the text content in the target content may be to cancel the display of the text content in the target content. Alternatively, the display time of the text content in the target content may be adjusted, for example, the text content in the target content may be displayed before or after the anchor text is displayed. In this way, overlapping display of the anchor text and the text content in the target content may be avoided.
[0105] In the embodiments of the present disclosure, in addition to adjusting the display mode of the text content in the target content or adjusting the display mode of the anchor text in the aforementioned embodiments, the display modes of the text content in the target content and the anchor text may also be adjusted simultaneously.
[0106] For example, the display position of the text content in the target content and the display position of the anchor text are adjusted at the same time. Figure 2 , you can move the second display area where the anchor text is located upwards, and the moving distance can be At the same time, the first display area where the text content in the target content is located is moved downward, and the moving distance can be Compared with only moving the second display area upward, or only moving the first display area downward, with the moving distance being Y, this simultaneous movement method is not only more efficient in adjustment, but also can reduce the change in the display position of the text content in the anchor text / target content, reduce the user's perception of the change in the display position of the text content in the anchor text / target content, and enhance the user's experience of viewing the target content.
[0107] Based on the same inventive concept, the embodiment of the present disclosure also provides a device for adjusting target content, such as Fig. 9 As shown, the adjustment 200 of the target content includes:
[0108] A first determination module 210 is used to obtain target content to be displayed, and determine that the target content includes text content and that there is an anchor text for displaying on the target content;
[0109] A second determination module 220 is used to determine whether the first display area where the text content is located overlaps with the second display area where the anchor text is located;
[0110] The adjustment module 230 is used to adjust the display mode of the text content and / or the display mode of the anchor text when the first display area and the second display area overlap.
[0111] By using the above device, if it is determined that the first display area where the text content in the target content is located overlaps with the second display area where the anchor text displayed on the target content is located, the mutual influence between the text content in the target content and the anchor text can be reduced or avoided by adjusting the display mode of the text content in the target content and / or adjusting the display mode of the anchor text, thereby increasing the visibility of at least one of the text content in the target content and the anchor text, so that the user can at least see clearly one of the anchor text and the text content in the target content. Therefore, by using the method disclosed in the present invention, the amount of effective information displayed can be increased, which facilitates users to obtain more information and improves the user's experience of viewing the target content.
[0112] Optionally, the adjustment module 230 includes:
[0113] The first adjustment submodule is used to determine the overlapping area between the first display area and the second display area; and according to the size of the overlapping area, adjust the display position of the anchor text in the display interface along any of the following directions: above the first display area, below the first display area, to the left of the first display area, and to the right of the first display area.
[0114] Optionally, the adjustment module 230 includes:
[0115] The second adjustment submodule is used to adjust the background of the anchor text to a non-transparent state and control the color of the background to be different from the color of the anchor text.
[0116] Optionally, the adjustment module 230 includes:
[0117] The third adjustment submodule is used to adjust the display position of the text content so that the overlap area between the first display area and the second display area after adjustment is smaller than the overlap area between the first display area and the second display area before adjustment.
[0118] Optionally, the adjustment module 230 includes:
[0119] The fourth adjustment submodule is used to adjust the display position of the first display area where the text content is located on the display interface by adjusting the display position or display size of the target content on the display interface.
[0120] Optionally, the adjustment module 230 is used to determine the overlapping area of the first display area and the second display area; when the overlapping area is greater than or equal to a threshold, adjust the display mode of the text content and / or adjust the display mode of the anchor text; wherein the threshold is determined based on the area of the first display area or the area of the second display area.
[0121] Optionally, the adjustment module 230 includes:
[0122] The processing submodule is used to determine a first circumscribed rectangular frame of the first display area and a second circumscribed rectangular frame of the second display area; and obtain the overlapping area according to the intersection area of the first circumscribed rectangular frame and the second circumscribed rectangular frame.
[0123] Based on the same concept, the present disclosure also provides a non-temporary computer-readable medium on which a computer program is stored, and when the program is executed by a processing device, the steps of the above-mentioned method for adjusting any target content are implemented.
[0124] Based on the same concept, the present disclosure also provides an electronic device, including: a storage device on which a computer program is stored; and a processing device for executing the computer program in the storage device to implement the steps of any of the above-mentioned target content adjustment methods.
[0125] Reference below Fig.10 , which shows a schematic diagram of the structure of an electronic device 600 suitable for implementing the embodiment of the present disclosure. The terminal device in the embodiment of the present disclosure may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.10 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0126] like Fig.10 As shown, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0127] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.10 The electronic device 600 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0128] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0129] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0130] In some embodiments, the client can communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0131] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0132] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device obtains the target content to be displayed, determines that the target content includes text content and that there is an anchor text for displaying on the target content; determines whether there is an overlap between a first display area where the text content is located and a second display area where the anchor text is located; and when there is an overlap between the first display area and the second display area, adjusts the display mode of the text content and / or adjusts the display mode of the anchor text to increase the visibility of at least one of the text content and the anchor text.
[0133] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0134] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0135] The modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a module does not, in some cases, limit the module itself.
[0136] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0137] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0138] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0139] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0140] Although the subject matter has been described in language specific to structural features and / or method logic actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims. Regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Claims
1. A method for adjusting target content, characterized in that: The method comprises: Acquire target content to be displayed, and determine that the target content includes text content and that there is anchor text for displaying on the target content; Determine whether a first display area where the text content is located overlaps with a second display area where the anchor text is located; In the case where the first display area and the second display area overlap, the display mode of the text content is adjusted and / or the display mode of the anchor text is adjusted.
2. The method according to claim 1, characterized in that The adjusting the display mode of the anchor text includes: Determine an overlapping area between the first display area and the second display area; According to the size of the overlapping area, the display position of the anchor text is adjusted in the display interface along any one of the following directions: above the first display area, below the first display area, to the left of the first display area, and to the right of the first display area.
3. The method according to claim 1, characterized in that The adjusting the display mode of the anchor text includes: The background of the anchor text is adjusted to a non-transparent state, and the color of the background is controlled to be different from the color of the anchor text.
4. The method according to claim 1, characterized in that: The adjusting the display mode of the text content includes: The display position of the text content is adjusted so that the overlap area between the first display area and the second display area after the adjustment is smaller than the overlap area between the first display area and the second display area before the adjustment.
5. The method according to claim 1, characterized in that: The adjusting the display mode of the text content includes: The display position of the first display area where the text content is located on the display interface is adjusted by adjusting the display position and / or display size of the target content on the display interface.
6. The method according to any one of claims 1 to 5, characterized in that When the first display area and the second display area overlap, adjusting the display mode of the text content and / or adjusting the display mode of the anchor text includes: determining an overlapping area of the first display area and the second display area; When the overlapping area is greater than or equal to a threshold, adjusting the display mode of the text content and / or adjusting the display mode of the anchor text; The threshold is determined according to the area of the first display area or the area of the second display area.
7. The method according to claim 6, characterized in that The determining the overlapping area between the first display area and the second display area includes: Determine a first circumscribed rectangular frame of the first display area, and determine a second circumscribed rectangular frame of the second display area; The overlapping area is obtained according to the intersection area of the first circumscribed rectangular frame and the second circumscribed rectangular frame.
8. A device for adjusting target content, characterized in that: The device comprises: A first determination module is used to obtain target content to be displayed, and determine that the target content includes text content and there is an anchor text for displaying on the target content; A second determination module is used to determine whether the first display area where the text content is located overlaps with the second display area where the anchor text is located; An adjustment module is used to adjust the display mode of the text content and / or the display mode of the anchor text when the first display area and the second display area overlap.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processing device, the steps of the method according to any one of claims 1 to 7 are implemented.
10. An electronic device, characterized in that: include: a storage device having a computer program stored thereon; A processing device, configured to execute the computer program in the storage device to implement the steps of the method according to any one of claims 1 to 7.
Citation Information
Cited By
Content presentation method, apparatus and device, and storage medium
WO2026201200A1