Video processing method and device, equipment and storage medium

By extracting the display information on the target frame screen during video playback and adjusting the display parameters of the information display area during video playback, the problem of display conflicts during video playback is solved, and the accuracy of information acquisition is improved.

CN120223941APending Publication Date: 2025-06-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311799788.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

During video playback, due to the display screen size limitation, the text information of the video itself and the upper information area of ​​the video may have a display conflict, which makes it impossible for the user to obtain the information content accurately.

Method used

On the target frame screen of the video, the target display information of the screen area corresponding to the information display area is extracted, and whether a preset display event exists based on this information is determined. If it exists, the display parameters of the information display area are adjusted according to the preset strategy to control its display on the video frame screen.

Benefits of technology

By adjusting the display parameters of the information display area, the probability of visual conflict events is reduced and the accuracy of users obtaining information content during the video browsing process is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120223941A_ABST
    Figure CN120223941A_ABST
Patent Text Reader

Abstract

The invention provides a video processing method and device, equipment and a storage medium, and the method comprises the steps: extracting target display information of a first image region corresponding to a first information display region on a target frame image in a first video, and displaying the target frame image in the first video based on the target display information and the display information of the first information display region; determining whether a preset display event exists between the first picture area and the first information display area or not, and if yes, adjusting display parameters corresponding to the first information display area based on a preset strategy. According to the embodiment of the invention, when it is determined that the preset display event exists, the display parameter of the information display area is adjusted based on the preset strategy, so that when the first video is played to the video frame picture, the information display area can be displayed based on the adjusted display parameter, the probability of occurrence of the preset display event is reduced, and the user experience is improved. Therefore, the influence on information content acquisition in the video browsing process of the user is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing, and in particular, to a video processing method, apparatus, device, and storage medium. Background Art

[0002] Currently, in order to support users in obtaining video-related information more conveniently during video browsing, various forms of video information carriers are often set on the video display interface. For example, the text information of the video itself, such as subtitles or the text configured by the video publisher for the video, and the upper-layer information area of the video, which includes video publisher information, video description information, etc., are used to better convey video information to users. Among them, the text information of the video itself, such as subtitles or the text configured by the video publisher for the video, and the upper-layer information area of the video includes video publisher information, video description information, etc.

[0003] However, due to the limitation of the display screen size, during video playback, there may be a problem of display conflict between the text information of the video itself and the upper-layer information area of the video.

[0004] As Figure 1 shown, it is a schematic diagram of a display conflict. As can be seen from Figure 1 it, the subtitle information 102 carried by the video itself overlaps with some of the text information 101 in the upper-layer information area of the video, and the display colors are very similar. This results in that users cannot accurately obtain the information content during browsing, thus affecting the acquisition of video information by users. Summary of the Invention

[0005] In order to solve the above technical problems, embodiments of the present disclosure provide a video processing method, apparatus, device, and storage medium.

[0006] In a first aspect, the present disclosure provides a video processing method, the method comprising:

[0007] On a target frame picture in a first video, extracting target display information of a first picture area corresponding to a first information display area; wherein, the layer where the first information display area is located is above the layer of the target frame picture, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first picture area;

[0008] Based on the target display information and the display information of the first information display area, determining whether there is a preset display event between the first picture area and the first information display area;

[0009] If it is determined that there is a preset display event between the first picture area and the first information display area, the display parameters corresponding to the first information display area are adjusted based on a preset policy; wherein, the display parameters are used to control the display of the first information display area during the display process of the target frame picture.

[0010] In an alternative embodiment, the target display information includes pixel distribution data of the first picture area and / or display position information of text information within the first picture area.

[0011] In an alternative embodiment, extracting the target display information of the first picture area corresponding to the first information display area on the target frame picture in the first video includes:

[0012] Extract the pixel matrix of the first picture area;

[0013] Based on the pixel matrix, determine the color value range with the largest proportion corresponding to the first picture area;

[0014] Correspondingly, determining whether there is a preset display event between the first picture area and the first information display area based on the target display information and the display information of the first information display area includes:

[0015] Compare the display color value range corresponding to the first information display area with the color value range with the largest proportion corresponding to the first picture area to obtain a first comparison result;

[0016] Based on the first comparison result, determine whether there is a preset display event between the first picture area and the first information display area.

[0017] In an alternative embodiment, extracting the target display information of the first picture area corresponding to the first information display area on the target frame picture in the first video includes:

[0018] Extract the text information within the first picture area by text recognition;

[0019] Determine the display position information of the text information within the first picture area;

[0020] Correspondingly, determining whether there is a preset display event between the first picture area and the first information display area based on the target display information and the display information of the first information display area includes:

[0021] Compare the display position information of the text information within the first picture area with the display position information of the display content in the first information display area to obtain a second comparison result;

[0022] Based on the second comparison result, determine whether there is a preset display event between the first screen area and the first information display area.

[0023] In an optional implementation manner, the preset policy includes at least one of a first policy, a second policy, and a third policy:

[0024] The first policy includes reducing the transparency value corresponding to the first information display area;

[0025] The second policy includes setting the first information display area to hidden display;

[0026] The third policy includes setting a background color for the first information display area.

[0027] In an optional implementation manner, the display parameter includes a transparency parameter. Adjusting the display parameter corresponding to the first information display area based on the preset policy includes:

[0028] Based on the first policy, reduce the transparency value corresponding to the first information display area to a preset value.

[0029] In an optional implementation manner, the display parameter includes a visibility flag. Adjusting the display parameter corresponding to the first information display area based on the preset policy includes:

[0030] Based on the second policy, set the visibility flag of the first information display area to a preset hidden flag; wherein, the preset hidden flag is used to control the first information display area to be hidden during the display process of the target frame picture.

[0031] In an optional implementation manner, the display parameter includes a background color value parameter. Adjusting the display parameter corresponding to the first information display area based on the preset policy includes:

[0032] Based on the third policy, set the background color value corresponding to the first information display area to a preset color value; wherein, the preset color value is a color value with high contrast to the color of the display content in the first information display area.

[0033] In an optional implementation manner, the method is applied to a client. Before extracting the target display information of the first screen area corresponding to the first information display area on the target frame picture in the first video, it further includes:

[0034] During the playback of the first video, determine the target frame picture from the first video at a preset frequency, and determine the first information display area configured for the first video.

[0035] In a second aspect, the present disclosure also provides a video processing apparatus, the apparatus comprising:

[0036] An extraction module, configured to extract target display information of a first picture area corresponding to a first information display area on a target frame picture in a first video; wherein, a layer where the first information display area is located is above a layer of the target frame picture, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display relevant information of the first video, and the target display information is used to characterize a display feature of display content within the first picture area;

[0037] A determination module, configured to determine whether a preset display event exists between the first picture area and the first information display area based on the target display information and display information of the first information display area;

[0038] An adjustment module, configured to, when it is determined that the preset display event exists between the first picture area and the first information display area, adjust display parameters corresponding to the first information display area based on a preset policy; wherein, the display parameters are used to control the display of the first information display area during the display process of the target frame picture.

[0039] In a third aspect, the present disclosure provides a computer-readable storage medium, in which instructions are stored, and when the instructions are run on a terminal device, the terminal device implements the above method.

[0040] In a fourth aspect, the present disclosure provides a video processing device, comprising: a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the above method is implemented.

[0041] In a fifth aspect, the present disclosure provides a computer program product, the computer program product comprising a computer program / instructions, and when the computer program / instructions are executed by a processor, the above method is implemented.

[0042] The technical solution provided by the embodiments of the present disclosure has at least the following advantages compared with the prior art:

[0043] An embodiment of the present disclosure provides a video processing method. Specifically, on a target frame image in a first video, target display information of a first image area corresponding to a first information display area is extracted, where the layer where the first information display area is located is above the layer of the target frame image, the first information display area belongs to at least one information display area configured in the first video, the first information display area is used to display relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first image area. Then, based on the target display information and the display information of the first information display area, it is determined whether there is a preset display event between the first image area and the first information display area. If it is determined that there is a preset display event between the first image area and the first information display area, the display parameters corresponding to the first information display area are adjusted based on a preset policy, where the display parameters are used to control the display of the first information display area during the display process of the target frame image.

[0044] It can be seen that when it is determined that there is a preset display event between the image area corresponding to the information display area on the video frame image and the information display area, the display parameters corresponding to the information display area are adjusted based on a preset policy, so that when the first video is played to this video frame image, the display of the information display area can be controlled based on the adjusted display parameters, reducing the probability of visual conflict events, and thus reducing the impact on the user's information acquisition during the video browsing process. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The accompanying drawings herein are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure and used together with the specification to explain the principles of the present disclosure.

[0046] To more clearly illustrate the technical solutions in the embodiments of the present disclosure or the prior art, the following will briefly introduce the accompanying drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0047] Figure 1 It is a schematic diagram of a display conflict;

[0048] Figure 2 It is a flowchart of a video processing method provided by an embodiment of the present disclosure;

[0049] Figure 3 It is a schematic diagram of a first video display page provided by an embodiment of the present disclosure;

[0050] Figure 4 It is a schematic diagram of another first video display page provided by an embodiment of the present disclosure;

[0051] Figure 5 A flowchart of a first video processing provided by an embodiment of the present disclosure;

[0052] Figure 6 A schematic structural diagram of a video processing device provided by an embodiment of the present disclosure;

[0053] Figure 7 A schematic structural diagram of a video processing device provided by an embodiment of the present disclosure. Detailed implementation manners

[0054] In order to more clearly understand the above objects, features, and advantages of the present disclosure, the solutions of the present disclosure will be further described below. It should be noted that, without conflict, the embodiments of the present disclosure and the features in the embodiments may be combined with each other.

[0055] Many specific details are set forth in the following description in order to fully understand the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only a part of the embodiments of the present disclosure, rather than all the embodiments.

[0056] Currently, in order to support users in obtaining video-related information more conveniently during the video browsing process, various forms of video information carriers are often set on the video display interface. For example, the text information of the video itself, the upper information area of the video, etc., so as to better convey the video information to the users. Among them, the text information of the video itself, such as subtitles or the text configured by the video publisher for the video, and the upper information area of the video includes video publisher information, video description information, etc.

[0057] However, due to the limitation of the display screen size, during the video playback process, there may be a problem of display conflict between the text information of the video itself and the upper information area of the video.

[0058] Such as Figure 1 shown, is a schematic diagram of a display conflict event. As can be seen from Figure 1 it, the subtitle information 102 carried by the video itself overlaps with some of the text information 101 in the upper information area of the video, and the display colors are very similar. This results in that users cannot accurately obtain the information content during the browsing process, thus affecting the user's acquisition of video information.

[0059] To this end, embodiments of the present disclosure provide a video processing method. Specifically, on the target frame image of the first video, the target display information of the first image area corresponding to the first information display area is extracted, where the layer where the first information display area is located is above the layer of the target frame image, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display the relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first image area. Then, based on the target display information and the display information of the first information display area, it is determined whether there is a preset display event between the first image area and the first information display area. If it is determined that there is a preset display event between the first image area and the first information display area, the display parameters corresponding to the first information display area are adjusted based on a preset policy, where the display parameters are used to control the display of the first information display area during the display process of the target frame image.

[0060] It can be seen that in the embodiments of the present disclosure, when it is determined that there is a preset display event between the image area corresponding to the information display area on the video frame image and the information display area, the display parameters corresponding to the information display area are adjusted based on a preset policy, so that when the first video is played to this video frame image, the display of the information display area can be controlled based on the adjusted display parameters, reducing the probability of visual conflict events, and thus reducing the impact on the user's acquisition of information content during the video browsing process.

[0061] Specifically, embodiments of the present disclosure provide a video processing method. Refer to Figure 2 , which is a flowchart of a video processing method provided by embodiments of the present disclosure, and specifically includes:

[0062] S201: On the target frame image of the first video, extract the target display information of the first image area corresponding to the first information display area.

[0063] Among them, the layer where the first information display area is located is above the layer of the target frame image, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display the relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first image area.

[0064] In the embodiments of the present disclosure, the first video can be any playing video, and the target frame image in the first video can be each frame image in the first video or a key frame in the first video, etc.

[0065] In an embodiment of the present disclosure, the first information display area may be one or more information display areas configured for the first video. The first video-related information is displayed in the first information display area, such as the video publisher information, video description information, video recommendation information, etc. Specifically, the layer where the first information display area is located is above the layer of the target frame image, that is, the first information display area belongs to the upper-layer information display area.

[0066] It can be understood that since the first information display area belongs to the upper-layer information display area, the overlapping display area between the first information display area and the target frame image in the first video is the first image area, and the target display information of the first image area is used to characterize the display characteristics of the display content in the overlapping display area of the target frame image.

[0067] S202: Determine whether there is a preset display event between the first image area and the first information display area based on the target display information and the display information of the first information display area.

[0068] In an embodiment of the present disclosure, the target display information in the first image area is used to characterize the display characteristics of the display content in the first image area. It can be understood that the target display information may include the position characteristics, text information characteristics, color information characteristics, etc. of the display content in the first image area. Specifically, the target display information may be the pixel distribution data of the first image area and / or the display position information of the text information in the first image area.

[0069] In an optional implementation manner, on the target frame image in the first video, the target display information of the first image area corresponding to the first information display area, where the target display information is the pixel distribution data of the first image area;

[0070] In another optional implementation manner, on the target frame image in the first video, the target display information of the first image area corresponding to the first information display area, where the target display information is the display position information of the text information in the first image area;

[0071] In yet another optional implementation manner, on the target frame image in the first video, the target display information of the first image area corresponding to the first information display area, where the target display information includes both the pixel distribution data of the first image area and the display position information of the text information in the first image area.

[0072] In an embodiment of the present disclosure, determine whether there is a preset display event between the first image area and the first information display area based on the target display information and the display information of the first information display area.

[0073] Among them, the preset display event is used to characterize that there is a visual display conflict between the target display information of the first picture area and the display information of the first information display area. This visual display conflict can specifically manifest as a text display conflict, a color value display conflict, etc. For example, the display text in the first picture area and the text in the first information display area cross and overlap, or the display color in the first picture area and the display color in the first information display area are similar. The display color includes the background color and the text display color.

[0074] That is, by determining whether there is a preset display event between the target display information and the display information of the first information display area, it is determined whether there is a visual display conflict problem between the first picture area and the first information display area. If there is a preset display event, it indicates that there is a visual display conflict problem between the first picture area and the first information display area; if there is no preset display event, it indicates that there is no visual display conflict problem between the first picture area and the first information display area.

[0075] In practical applications, the first information display area belongs to the application settings. That is, the position of the display area, the display size of the display area, the color of the display area, etc. are all preset in advance. That is, the display information of the first information display area is fixed.

[0076] In the embodiments of the present disclosure, since the first information display area is preset, the display information about the first information display area can be directly obtained through an interface. For determining whether there is a preset display event between the first information display area and the first picture area, only the display information of the first picture area needs to be obtained. That is, by extracting the target display information of the first picture area and the display information of the first information display area, it is determined whether there is a preset display event between the display information of the first information display area and the first picture area. Among them, the specific implementation manner for obtaining the display information of the first information display area is not limited in the embodiments of the present disclosure.

[0077] In an application scenario, on the target frame picture in the first video, if the target display information of the first picture area extracted is a pixel matrix, then the color value range with the largest proportion corresponding to the first picture area is determined according to the pixel matrix. That is, according to the pixel matrix, the color value range with the largest proportion in the first picture area is calculated, where the pixel matrix contains the pixel distribution data of the first picture area.

[0078] Based on the above, compare the display color value range corresponding to the first information display area with the largest proportion color value range corresponding to the first screen area to obtain a first comparison result. According to the first comparison result, determine whether there is a preset display event between the first screen area and the first information display area. Among them, the first comparison result includes whether the display color value range corresponding to the first information display area falls within the largest proportion color value range corresponding to the first screen area.

[0079] In another application scenario, on the target frame image of the first video, if the display position information of the text information in the first screen area is extracted. Specifically, the text information in the first screen area can be extracted by text recognition, and then based on the obtained text information, determine the display position information of the text information in the first screen area.

[0080] Among them, the text display position information can specifically be the display coordinates of the text information.

[0081] Finally, compare the display position information of the text information in the first screen area with the display position information of the display content in the first information display area to obtain a second comparison result. Based on the second comparison result, determine whether there is a preset display event between the first screen area and the first information display area.

[0082] Among them, the second comparison result includes whether the display position of the text information in the first screen area overlaps with the display position information of the display content in the first information display area.

[0083] Based on the above two application scenarios, there can be another application scenario. Specifically, on the target frame image of the first video, if the target display information of the first screen area includes both the pixel distribution data of the first screen area and the display position information of the text information in the first screen area, then the steps in the above application scenarios can be referred to determine whether there is a preset display event. Among them, during the process of executing the steps in the above application scenarios, there is no execution sequence between the execution steps for extracting the pixel matrix in the first screen area and the execution steps for extracting the display position information of the text information in the first screen area. It is possible to first obtain the first comparison result, determine whether there is a preset display event, then obtain the second comparison result, and determine whether there is a preset display event; or it is also possible to first obtain the second comparison result, determine whether there is a preset display event, and obtain the second comparison result, and determine whether there is a preset display event.

[0084] S203: If it is determined that there is the preset display event between the first screen area and the first information display area, then adjust the display parameters corresponding to the first information display area based on a preset policy.

[0085] Among them, the display parameter is used to control the display of the first information display area during the display process of the target frame image.

[0086] In the embodiments of the present disclosure, if it is determined that there is a preset display event between the first picture area and the first information display area, the display parameter corresponding to the first information display area is adjusted based on a preset policy. When the first video is played to the target frame image, the display of the first information display area is controlled based on the adjusted display parameter.

[0087] In the embodiments of the present disclosure, the preset policy is used to adjust the display parameter in the first information display area. Specifically, the preset policy may include at least one of a first policy, a second policy, and a third policy.

[0088] Among them, the first policy is used to reduce the transparency value of the first information display area. Specifically, if the display parameter corresponding to the first information display area includes a transparency parameter, when it is determined that there is a preset display event between the first picture area and the first information display area, the transparency value corresponding to the first information display area is reduced to a preset value according to the first policy.

[0089] The second policy is used to set the first information display area to hidden display, that is, to set the visibility of the first information display area. If the display parameter corresponding to the first information display area includes a visibility flag, when it is determined that there is a preset visual display event between the first picture area and the first information display area, the visibility flag of the first information display area is set to a preset hidden flag according to the second policy. Among them, the preset hidden flag is used to control the hidden display of the first information display area during the display process of the target frame image.

[0090] The third policy is used to set a background color for the first information display area, that is, to adjust the background color of the first information display area so that the display color of the first information display area forms a high contrast with the display color of the first picture area. Specifically, if the display parameter corresponding to the first information display area includes a background color value parameter, when it is determined that there is a preset display event between the first picture area and the first information display area, the corresponding background color value of the first information display area is set to a preset color value according to the third policy. Among them, the preset color value is a color value with a high contrast to the color of the display content in the first information display area.

[0091] Based on the above content, corresponding preset policies can be set according to specific requirements to timely adjust the display parameter of the first information display area when it is determined that there is a preset display event between the first picture area and the first information display area, thereby reducing the probability of the occurrence of the preset display event.

[0092] Embodiments of the present disclosure support adjusting the display parameters of a first information display area based on a preset policy. By adjusting the display parameters, the display information in the first information display area can be highlighted, facilitating the acquisition of the display information in the first information display area, or the target display information in the first picture area can be highlighted, facilitating the acquisition of the target display information in the first picture area.

[0093] As Figure 3 shown, it is a schematic diagram of a first video display page provided by an embodiment of the present disclosure. It can be seen from this first video display page that according to the preset policy, the display parameters of the first information display area are adjusted. When the first video is played to the target video frame, based on the display parameters of the first information display area, the display of the display information in the first information display area 301 is controlled, highlighting the display information in the first information display area 301, reducing the impact brought by the display conflict between the display information in the first information display area 301 and the target display information in the first picture area 302, and facilitating the user to accurately obtain the display information in the first information display area.

[0094] As Figure 4 shown, it is a schematic diagram of another first video display page provided by an embodiment of the present disclosure. It can be seen from this first video display page that according to the preset policy, the display parameters of the first information display area are adjusted. When the first video is played to the target video frame, based on the display parameters of the first information display area, the display of the display information in the first information display area 401 is controlled, highlighting the target display information in the first picture area 402, reducing the impact brought by the display conflict between the display information in the first information display area 401 and the target display information in the first picture area 402, and facilitating the user to accurately obtain the display information in the first picture area.

[0095] In the video processing method provided by the embodiments of the present disclosure, first, on the target frame picture in the first video, the target display information of the first picture area corresponding to the first information display area is extracted, where the layer where the first information display area is located is above the layer of the target frame picture, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first picture area. Then, based on the target display information and the display information of the first information display area, it is determined whether there is a preset display event between the first picture area and the first information display area. If it is determined that there is a preset display event between the first picture area and the first information display area, the display parameters corresponding to the first information display area are adjusted based on the preset policy, where the display parameters are used to control the display of the first information display area during the display process of the target frame picture.

[0096] It can be seen that when it is determined in the embodiment of the present disclosure that there is a preset display event between the picture area corresponding to the information display area on the video frame picture and the information display area, the display parameters corresponding to the information display area are adjusted based on a preset policy, so that when the first video is played to this video frame picture, the display of the information display area can be controlled based on the adjusted display parameters, reducing the probability of the preset display event occurring, and thus reducing the impact on the user's acquisition of information content during the video browsing process.

[0097] To facilitate the understanding of the above embodiments, the embodiments of the present disclosure will take the determination of the target frame picture frame by frame as an example to introduce the video processing method provided by the embodiments of the present disclosure. This video processing method is applied to a client, such as Figure 5 As shown, it is a flowchart of a first video processing provided by the embodiments of the present disclosure.

[0098] Specifically, during the playback of the first video, the frame picture A in the first video is determined as the target frame picture, the target display information of the first picture area corresponding to the first information display area in the target frame picture is extracted, and the display information of the first information display area in the first video is obtained. Based on the target display information and the display information of the first information display area, it is determined whether there is a preset display event between the first picture area of the target frame picture and the first information display area;

[0099] If it is determined that there is a preset display event between the first picture area of the target frame picture and the first information display area, the display parameters of the first information display area are adjusted according to the preset policy, and when the first video is played to the target frame picture, the display of the first information display area is controlled based on the adjusted display parameters.

[0100] If it is determined that there is no preset display event between the first picture area of the target frame picture and the first information display area, when the first video is played to the target frame picture, the display parameters corresponding to the first information display area are kept unchanged, and the first information display area is displayed.

[0101] In the above application scenario, the probability of the preset display event occurring can be reduced. However, due to problems such as the hardware performance of the client device, it may cause an increase in the CPU usage rate of the client, thus affecting the performance of the client device. Therefore, in the embodiments of the present disclosure, the target frame picture can be determined at a preset frequency to reduce the CPU usage rate of the client, thereby reducing the impact on the performance of the client device.

[0102] Specifically, during the playback of the first video, the target frame picture is determined from the first video at a preset frequency, and the first information display area configured for the first video is determined. For example, the target frame picture can be determined from the first video once every 1 s at a preset frequency of 1 s.

[0103] More preferably, in the embodiments of the present disclosure, a cloud server may also be used to reduce the computing pressure on the client. Specifically, the cloud server may be used to execute the steps of S201 to S202, and when it is determined on the cloud server that there is a preset display event between the first picture area and the first information display area, display parameters that need to be adjusted for the first information display area are sent to the client based on a preset policy. The client receives the display parameters sent by the cloud and controls the display of the first information display area during the display process of the target frame picture based on the display parameters.

[0104] Through the above implementation manner, the usage rate of the client CPU will be greatly reduced, and the problem of performance degradation caused by CPU overload is avoided.

[0105] Based on the above method embodiments, the present disclosure also provides a video processing device. Refer to Figure 6 , which is a schematic structural diagram of a video processing device provided by an embodiment of the present disclosure. The device includes:

[0106] An extraction module 601, configured to extract target display information of a first picture area corresponding to a first information display area on a target frame picture in a first video; wherein, the layer where the first information display area is located is above the layer of the target frame picture, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first picture area;

[0107] A determination module 602, configured to determine whether there is a preset display event between the first picture area and the first information display area based on the target display information and the display information of the first information display area;

[0108] An adjustment module 603, configured to, when it is determined that there is the preset display event between the first picture area and the first information display area, adjust the display parameters corresponding to the first information display area based on a preset policy; wherein, the display parameters are used to control the display of the first information display area during the display process of the target frame picture.

[0109] In an alternative embodiment, the target display information includes pixel distribution data of the first picture area and / or display position information of text information in the first picture area.

[0110] In an alternative embodiment, the extraction module includes:

[0111] The first extraction sub-module is used to extract the pixel matrix of the first picture area; the pixel matrix includes the pixel distribution data of the first picture area;

[0112] The first determination sub-module is used to determine the color value range with the largest proportion corresponding to the first picture area based on the pixel matrix;

[0113] Correspondingly, the determination module includes:

[0114] The first comparison sub-module is used to compare the display color value range corresponding to the first information display area with the color value range with the largest proportion corresponding to the first picture area to obtain a first comparison result;

[0115] The second determination sub-module is used to determine whether there is a preset display event between the first picture area and the first information display area based on the first comparison result.

[0116] In an optional implementation manner, the extraction module includes:

[0117] The second extraction sub-module is used to extract the text information in the first picture area by means of text recognition;

[0118] The third determination sub-module is used to determine the display position information of the text information in the first picture area;

[0119] Correspondingly, the determination module includes:

[0120] The second comparison sub-module is used to compare the display position information of the text information in the first picture area with the display position information of the display content in the first information display area to obtain a second comparison result;

[0121] The fourth determination sub-module is used to determine whether there is a preset display event between the first picture area and the first information display area based on the second comparison result.

[0122] In an optional implementation manner, the preset strategy includes at least one of the first strategy, the second strategy, and the third strategy:

[0123] The first strategy includes reducing the transparency value corresponding to the first information display area;

[0124] The second strategy includes setting the first information display area to be hidden;

[0125] The third strategy includes setting a background color for the first information display area.

[0126] In an alternative embodiment, the display parameter includes a transparency parameter, and the adjustment module is specifically configured to:

[0127] Based on the first policy, reduce the transparency value corresponding to the first information display area to a preset value.

[0128] In an alternative embodiment, the display parameter includes a visibility flag, and the adjustment module is specifically configured to:

[0129] Based on the second policy, set the visibility flag of the first information display area to a preset invisible flag; wherein, the preset invisible flag is used to control the hidden display of the first information display area during the display process of the target frame picture.

[0130] In an alternative embodiment, the display parameter includes a background color value parameter, and the adjustment module is specifically configured to:

[0131] Based on the third policy, set the background color value corresponding to the first information display area to a preset color value; wherein, the preset color value is a color value with a high contrast to the color of the display content in the first information display area.

[0132] In an alternative embodiment, the method is applied to a client, and the apparatus further includes:

[0133] During the playback of the first video, determine the target frame picture from the first video at a preset frequency, and determine the first information display area configured for the first video.

[0134] In the video processing apparatus provided by the embodiments of the present disclosure, specifically, on the target frame picture in the first video, extract the target display information of the first picture area corresponding to the first information display area, wherein the layer where the first information display area is located is above the layer of the target frame picture, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display the relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first picture area. Then, based on the target display information and the display information of the first information display area, determine whether there is a preset display event between the first picture area and the first information display area. If it is determined that there is a preset display event between the first picture area and the first information display area, then adjust the display parameter corresponding to the first information display area based on a preset policy, wherein the display parameter is used to control the display of the first information display area during the display process of the target frame picture.

[0135] It can be seen that when it is determined in the embodiment of the present disclosure that there is a preset display event between the picture area corresponding to the information display area on the video frame picture and the information display area, the display parameters corresponding to the information display area are adjusted based on a preset policy, so that when the first video is played to this video frame picture, the information display area can be displayed based on the adjusted display parameters, reducing the probability of the occurrence of the preset display event, and thus reducing the impact on the user's acquisition of information content during the video browsing process.

[0136] In addition to the above methods and devices, the embodiment of the present disclosure also provides a computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions run on a terminal device, the terminal device implements the video processing method described in the embodiment of the present disclosure.

[0137] The embodiment of the present disclosure also provides a computer program product. The computer program product includes computer programs / instructions. When the computer programs / instructions are executed by a processor, the video processing method described in the embodiment of the present disclosure is implemented.

[0138] In addition, the embodiment of the present disclosure also provides a video processing device. Refer to Figure 7 as shown, it may include:

[0139] A processor 701, a memory 702, an input device 703, and an output device 704. The number of processors 701 in the video processing device may be one or more, Figure 7 taking one processor as an example. In some embodiments of the present disclosure, the processor 701, the memory 702, the input device 703, and the output device 704 may be connected by a bus or other means. Among them, Figure 7 taking the connection by a bus as an example.

[0140] The memory 702 can be used to store software programs and modules. The processor 701 executes various functional applications and data processing of the video processing device by running the software programs and modules stored in the memory 702. The memory 702 may mainly include a program storage area and a data storage area. Among them, the program storage area may store an operating system, application programs required for at least one function, etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. The input device 703 can be used to receive input digital or character information, and generate signal inputs related to the user settings and function controls of the video processing device.

[0141] Specifically, in this embodiment, the processor 701 will load the executable files corresponding to the processes of one or more application programs into the memory 702 according to the following instructions, and the processor 701 will run the application programs stored in the memory 702, so as to implement various functions of the above video processing device.

[0142] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.

[0143] The above are only specific embodiments of the present disclosure, enabling those skilled in the art to understand or implement the present disclosure. Various modifications to these embodiments will be obvious to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure will not be limited to these embodiments described herein, but rather to the broadest scope consistent with the principles and novel features disclosed herein.

Claims

1. A video processing method, characterized in that, The method includes: On the target frame of the first video, extracting the target display information of the first picture area corresponding to the first information display area; wherein, the layer where the first information display area is located is above the layer of the target frame, the first information display area belongs to at least one information display area configured by the first video, the first information display area is used to display the relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first picture area; Based on the target display information and the display information of the first information display area, determining whether there is a preset display event between the first picture area and the first information display area; If it is determined that there is the preset display event between the first picture area and the first information display area, adjusting the display parameters corresponding to the first information display area based on a preset strategy; wherein, the display parameters are used to control the display of the first information display area during the display process of the target frame.

2. The method according to claim 1, wherein The target display information includes the pixel distribution data of the first picture area and / or the display position information of the text information in the first picture area.

3. The method according to claim 2, wherein The extracting the target display information of the first picture area corresponding to the first information display area on the target frame of the first video includes: Extracting the pixel matrix of the first picture area; the pixel matrix includes the pixel distribution data of the first picture area; Based on the pixel matrix, determining the color value range with the largest proportion corresponding to the first picture area; Correspondingly, the determining whether there is a preset display event between the first picture area and the first information display area based on the target display information and the display information of the first information display area includes: Comparing the display color value range corresponding to the first information display area with the color value range with the largest proportion corresponding to the first picture area to obtain a first comparison result; Based on the first comparison result, determining whether there is a preset display event between the first picture area and the first information display area.

4. The method according to claim 2, wherein The extracting the target display information of the first picture area corresponding to the first information display area on the target frame of the first video includes: Extracting the text information in the first picture area by means of text recognition; Determining the display position information of the text information in the first picture area; Correspondingly, the determining whether there is a preset display event between the first picture area and the first information display area based on the target display information and the display information of the first information display area includes: Comparing the display position information of the text information in the first picture area with the display position information of the display content in the first information display area to obtain a second comparison result; Based on the second comparison result, determining whether there is a preset display event between the first picture area and the first information display area.

5. The method according to claim 1, wherein The preset strategy includes at least one of the first strategy, the second strategy, and the third strategy: The first strategy includes reducing the transparency value corresponding to the first information display area; The second strategy includes setting the first information display area to be hidden; The third strategy includes setting a background color for the first information display area.

6. The method according to claim 5, characterized in that, The display parameter includes a transparency parameter. Adjusting the display parameter corresponding to the first information display area based on a preset strategy includes: Reducing the transparency value corresponding to the first information display area to a preset value based on the first strategy.

7. The method according to claim 5, characterized in that, The display parameter includes a visibility flag. Adjusting the display parameter corresponding to the first information display area based on a preset strategy includes: Setting the visibility flag of the first information display area to a preset hidden flag based on the second strategy; wherein, the preset hidden flag is used to control the first information display area to be hidden during the display process of the target frame picture.

8. The method according to claim 5, wherein The display parameter includes a background color value parameter. Adjusting the display parameter corresponding to the first information display area based on a preset strategy includes: Based on the third strategy, setting the background color value corresponding to the first information display area to a preset color value; wherein, the preset color value is a color value with a high contrast to the color of the display content in the first information display area.

9. The method according to claim 1, wherein The method is applied to a client. Before extracting the target display information of the first picture area corresponding to the first information display area on the target frame picture in the first video, it further includes: During the playback of the first video, determining the target frame picture from the first video at a preset frequency, and determining the first information display area configured for the first video.

10. A video processing device, characterized in that, The device includes: An extraction module, configured to extract the target display information of the first picture area corresponding to the first information display area on the target frame picture in the first video; wherein, the layer where the first information display area is located is above the layer of the target frame picture, the first information display area belongs to at least one information display area configured for the first video, the first information display area is used to display relevant information of the first video, and the target display information is used to characterize the display characteristics of the display content in the first picture area; A determination module, configured to determine whether a preset display event exists between the first picture area and the first information display area based on the target display information and the display information of the first information display area; An adjustment module, configured to, when it is determined that a preset display event exists between the first picture area and the first information display area, adjust the display parameter corresponding to the first information display area based on a preset strategy; wherein, the display parameter is used to control the display of the first information display area during the display process of the target frame picture.

11. A computer-readable storage medium, characterized in that, Instructions are stored in the computer-readable storage medium. When the instructions run on the terminal device, the terminal device implements the method according to any one of claims 1-9.

12. A video processing device, characterized in that, Including: A memory, a processor, and a computer program stored on the memory and executable on the processor, wherein when the processor executes the computer program, the method according to any one of claims 1-9 is implemented.