Visual content optimization method, apparatus, and electronic device
By receiving visual content optimization requests and performing optimization when quality issues are detected, it solves the predetermined redundant parts and page quality issues in video resources on third-party sites, and improves video playback quality and user experience.
Patent Information
- Application Number
- CN202411605414.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-11-11
AI Technical Summary
The video resources provided by third-party sites often have predetermined redundant parts and page quality issues, resulting in a poor viewing experience for users.
By receiving visual content optimization requests, requesting target visual content from specific sites based on resource location information, and performing optimization when quality issues are detected, including removing predetermined redundant parts and improving page quality, using self-built playback pages to fill in the remaining content, and applying appropriate optimization strategies to improve video quality.
It improves the video playback quality, ensures the user's viewing experience, reduces the user's waiting time, and stores the optimized content in the local site when the storage conditions are met to further improve efficiency.
Smart Images

Figure CN119646325B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to application fields such as generative search, search engines, video website development, and application development, and specifically to a visual content optimization method, device, and electronic device. Background Art
[0002] With the development of the Internet, various resource platforms (e.g., video websites, online video platforms, browsers, mobile applications, etc.) will more widely display video resources provided by third-party sites. However, the video resources provided by these third-party sites often bring a bad viewing experience to users. Summary of the Invention
[0003] The present disclosure provides a visual content optimization method, device, and electronic device.
[0004] According to a first aspect of the present disclosure, a visual content optimization method is provided, comprising:
[0005] Receiving a first visual content optimization request sent by a first electronic device; wherein the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site;
[0006] requesting target visual content from a specific site based on the first resource location information;
[0007] When it is determined that the target visual content has a specific quality problem, optimizing the target visual content to obtain optimized target visual content;
[0008] The optimized target visual content is sent to the first electronic device.
[0009] According to a second aspect of the present disclosure, a visual content optimization method is provided, comprising:
[0010] In response to a viewing trigger operation for the target visual content, generating a viewing request for the target visual content; wherein the viewing request carries first resource location information of the target visual content;
[0011] When it is determined based on the first resource location information that the target visual content is stored in a specific site, a first visual content optimization request is generated; wherein the first visual content optimization request carries the first resource location information;
[0012] A first visual content optimization request is sent to a second electronic device; wherein the second electronic device is used to request target visual content from a specific site based on the first resource location information carried in the first visual content optimization request; when it is determined that the target visual content has specific quality problems, the target visual content is optimized to obtain optimized target visual content; and the optimized target visual content is sent to the first electronic device.
[0013] According to a third aspect of the present disclosure, a visual content optimization device is provided, comprising:
[0014] A first request receiving unit is configured to receive a first visual content optimization request sent by a first electronic device; wherein the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site;
[0015] a visual content requesting unit, configured to request target visual content from a specific site based on the first resource location information;
[0016] a visual content optimization unit, configured to optimize the target visual content when it is determined that the target visual content has a specific quality problem, to obtain optimized target visual content;
[0017] The first visual content sending unit is configured to send the optimized target visual content to the first electronic device.
[0018] According to a fourth aspect of the present disclosure, there is provided a visual content processing apparatus, comprising:
[0019] A viewing request generating unit, configured to generate a viewing request for the target visual content in response to a viewing triggering operation for the target visual content; wherein the viewing request carries first resource location information of the target visual content;
[0020] an optimization request generating unit, configured to generate a first visual content optimization request when it is determined based on the first resource location information that the target visual content is stored in a specific site; wherein the first visual content optimization request carries the first resource location information;
[0021] An optimization request sending unit is used to send a first visual content optimization request to a second electronic device; wherein the second electronic device is used to request target visual content from a specific site based on the first resource location information carried in the first visual content optimization request; when it is determined that the target visual content has specific quality problems, the target visual content is optimized to obtain optimized target visual content; and the optimized target visual content is sent to the first electronic device.
[0022] According to a fifth aspect of the present disclosure, there is provided an electronic device, including:
[0023] at least one processor;
[0024] a memory communicatively coupled to the at least one processor;
[0025] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method provided by the first aspect of the present disclosure.
[0026] According to a sixth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute the method provided according to the first aspect of the present disclosure.
[0027] According to a seventh aspect of the present disclosure, a computer program product is provided, comprising a computer program, which implements the method provided according to the first aspect of the present disclosure when executed by a processor.
[0028] The present disclosure can improve the quality of target visual content played by the first electronic device, thereby ensuring the user's viewing experience.
[0029] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are provided to facilitate a better understanding of the present invention and do not constitute a limitation of the present disclosure.
[0031] Figure 1 A flowchart of a visual content optimization method applied to a second electronic device provided by an embodiment of the present disclosure;
[0032] Figure 2 A flowchart of a visual content optimization method applied to a first electronic device provided by an embodiment of the present disclosure;
[0033] Figure 3 A complete flow chart of a visual content optimization method provided by an embodiment of the present disclosure;
[0034] Figure 4 An auxiliary illustration of the complete process of a visual content optimization method provided by an embodiment of the present disclosure;
[0035] Figure 5 A schematic diagram of a process for determining a storable condition provided in an embodiment of the present disclosure;
[0036] Figure 6A schematic diagram of a scenario of a visual content optimization method provided by an embodiment of the present disclosure;
[0037] Figure 7 A schematic structural block diagram of a visual content optimization device applied to a second electronic device provided in an embodiment of the present disclosure;
[0038] Figure 8 A schematic structural block diagram of a visual content optimization device applied to a first electronic device provided in an embodiment of the present disclosure;
[0039] Figure 9 A schematic structural block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0041] As described in the background art, with the development of the Internet, various resource platforms (e.g., video websites, online video platforms, browsers, mobile applications, etc.) will more widely display video resources provided by third-party sites. However, the video resources provided by these third-party sites often bring a poor viewing experience to users.
[0042] Specifically, the inventors have discovered that video resources provided by third-party sites are likely to have specific quality issues, such as pre-defined redundant content and / or page quality issues, resulting in a poor viewing experience for users. Pre-defined redundant content includes pornographic content, gambling content, and advertising content; page quality issues include color issues, resolution and clarity issues, compression distortion, and low frame rates.
[0043] The embodiment of the present disclosure provides a visual content optimization method, which can be applied to a second electronic device. The second electronic device can be a server or other similar computing device. Specifically, the second electronic device can be a server or other similar computing device corresponding to a local site. Figure 1 The flowchart shown in the figure illustrates a visual content optimization method provided by an embodiment of the present disclosure. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described in the flowchart may be performed in other orders.
[0044] Step S101: receiving a first visual content optimization request sent by a first electronic device.
[0045] The first electronic device may be a terminal device, such as a conventional computer (desktop computer, laptop computer, etc.), an in-vehicle computer, a tablet computer, a smart phone, a personal digital assistant, or other similar computing device; the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site. Here, the specific site may be one of multiple third-party sites (e.g., 3,000) stored in a site blacklist; the target visual content may be video content, dynamic images, static images, etc.; and the first resource location information may be a Uniform Resource Locator (URL).
[0046] Step S102: Request target visual content from a specific site based on the first resource location information.
[0047] In one example, after receiving a first visual content optimization request sent by a first electronic device, first resource location information pointing to the target visual content stored in a specific site can be extracted from the first visual content optimization request, and based on the first resource location information, the target visual content can be requested from the specific site.
[0048] Step S103 : When it is determined that the target visual content has a specific quality problem, the target visual content is optimized to obtain optimized target visual content.
[0049] The specific quality issues may include at least one of predetermined redundant portions and page quality issues. In the disclosed embodiments, if it is determined that the target visual content has specific quality issues, the target visual content may be optimized to remove and / or mitigate the specific quality issues, thereby obtaining optimized target visual content.
[0050] Step S104: sending the optimized target visual content to the first electronic device.
[0051] After the first electronic device receives the optimized target visual content, it may display the optimized target visual content.
[0052] The visual content optimization method provided by the embodiment of the present disclosure can receive a first visual content optimization request sent by a first electronic device, and based on the first resource location information pointing to the target visual content stored in the specific site carried in the first visual content optimization request, request the target visual content from the specific site, and then optimize the target visual content when it is determined that the target visual content has specific quality problems, obtain the optimized target visual content, and send the optimized target visual content to the first electronic device. In this way, the target visual content played by the first electronic device is the optimized target visual content, and there is no specific quality problem, which is equivalent to being able to improve the quality of the target visual content played by the first electronic device, thereby ensuring the user's viewing experience.
[0053] As previously mentioned, in the embodiments of the present disclosure, the specific quality issue may include at least one of a predetermined redundant portion and a page quality issue. Based on this, in some optional implementations, the "determining whether the target visual content has a specific quality issue" in step S103 may include:
[0054] In a case where a predetermined redundant portion exists in the target visual content, it is determined that the target visual content has a specific quality problem.
[0055] The predetermined redundant portion may be a predefined visual element that cannot be included in the target visual content, such as pornographic content, gambling content, advertising content, etc.
[0056] In one example, keyword matching can be used to determine whether the target visual content contains predetermined redundant portions. For example, a string matching algorithm can be used to detect whether the target visual content contains target text content that matches sensitive terms in a keyword library. If target text content that matches sensitive terms in the keyword library exists in the target visual content, the target visual content is determined to contain predetermined redundant portions, and further, the target visual content is determined to have specific quality issues. Sensitive terms in the keyword library include terms related to pornography, gambling, advertising, and the like.
[0057] In another example, an image classification model can be used to classify the target visual content to determine whether a predetermined redundant portion exists in the target visual content. If the predetermined redundant portion exists in the target visual content, it is determined that the target visual content has a specific quality issue. The image classification model can be obtained by training an original classification model using visual content samples with and without the predetermined redundant portion as training data. Here, the original classification model can be a convolutional neural network (CNN).
[0058] In some optional embodiments, the "determining that the target visual content has a specific quality problem" in step S103 can also include:
[0059] In the case that the target visual content has a page quality problem, it is determined that the target visual content has a specific quality problem.
[0060] The page quality problem can include color problems, resolution and clarity problems, compression distortion, and too low frame rate, etc.
[0061] In an example, the target visual content can be evaluated by using a video quality measurement tool (VQMT) and / or a visual content analysis tool provided by a computer vision library (e.g., OpenCV) to obtain an evaluation result; in the case that the evaluation result represents that the target visual content has a page quality problem, it is determined that the target visual content has a specific quality problem.
[0062] In this way, in the embodiments of the present disclosure, the target visual content can be determined to have a specific quality problem in the case that the target visual content has a predetermined redundant part and / or in the case that the target visual content has a page quality problem. That is, in the embodiments of the present disclosure, the target visual content is evaluated from multiple dimensions (including the dimension of the predetermined redundant part and the dimension of the page quality problem) to determine whether the target visual content has a specific quality problem, thereby ensuring more comprehensive evaluation of the target visual content.
[0063] In some optional embodiments, the "optimizing the target visual content to obtain the optimized target visual content" in step S103 can include:
[0064] In the case that the target visual content has a predetermined redundant part, extracting the remaining content except the predetermined redundant part from the target visual content;
[0065] Obtaining a self-built playback page;
[0066] Filling the self-built playback page with the remaining content to obtain the optimized target visual content.
[0067] The self-built playback page can be a page designed and built for displaying visual content resources (including video content, dynamic images, static images, etc.) to adapt to a resource platform corresponding to a local site, which usually includes a video player and can also include video information introduction, related recommended videos, comment area, etc. elements, aiming to provide a good interactive platform and viewing experience for users.
[0068] In one example, after extracting the remaining content except for the predetermined redundant portion from the target visual content and obtaining the self-built play page, the self-built play page can be filled with the remaining content in the following manner to obtain the optimized target visual content:
[0069] Analyze the layout structure of the self-built playback page;
[0070] Based on the layout structure of the self-built playback page, the remaining content is adjusted to obtain the adjusted remaining content;
[0071] Use the adjusted remaining content to fill the self-built playback page to obtain optimized target visual content.
[0072] Among them, the layout structure of the self-built playback page may include the position, size, color, etc. of the page elements in the self-built playback page; based on the layout structure of the self-built playback page, adjusting the remaining content may be: based on the layout structure of the self-built playback page, adjusting the content style and / or content format of the remaining content, so that the adjusted remaining content can be naturally integrated with the self-built playback page.
[0073] Through the above method, in the embodiment of the present disclosure, when a predetermined redundant portion exists in the target visual content, the remaining content other than the predetermined redundant portion can be extracted from the target visual content, and a self-built playback page can be obtained. The self-built playback page can then be filled with the remaining content to obtain the optimized target visual content. In this way, compared to the solution of "directly deleting the predetermined redundant portion from the target visual content to obtain the optimized target visual content", the situation in which the remaining content other than the predetermined redundant portion in the target visual content is not caused by deleting the predetermined redundant portion from the target visual content can be avoided, thereby improving the processing effect on the target visual content.
[0074] In some optional implementations, “optimizing the target visual content to obtain optimized target visual content” in step S103 may include:
[0075] In the case where the target visual content has a page quality problem, determining the problem type of the page quality problem of the target visual content;
[0076] Determine the optimization strategy based on the problem type;
[0077] According to the optimization strategy, the target visual content is optimized to obtain optimized target visual content.
[0078] As mentioned above, in the embodiment of the present disclosure, page quality issues may include color issues, resolution and clarity issues, compression distortion, low frame rate, etc.
[0079] In one example, the optimization strategy corresponding to the problem type of color problem may be adjusting the color settings of the target visual content and / or using a color correction tool to perform color correction on the target visual content; the optimization strategy corresponding to the problem type of resolution and clarity problem may be performing interpolation processing on the target visual content through an interpolation algorithm, and at the same time, increasing the clarity parameters of the target visual content and / or applying a clarity filter to improve the clarity of the target visual content; the optimization strategy corresponding to the problem type of compression distortion may be adjusting the compression format and / or compression ratio of the target visual content to improve the compression distortion problem of the target visual content; the optimization strategy corresponding to the problem type of low frame rate may be increasing the frame rate of the target visual content and / or adjusting the playback settings.
[0080] Through the above approach, in the disclosed embodiments, the problem type of the page problem with the target visual content can be clearly identified. Based on the problem type, an optimization strategy can be determined so that the target visual content can be optimized according to the optimization strategy to obtain optimized target visual content. This can improve the optimization efficiency of the target visual content, reduce user waiting time, and further ensure the user's viewing experience.
[0081] In some optional implementations, the visual content processing method may further include:
[0082] When a storable condition for the optimized target visual content is satisfied, the optimized target visual content is stored in a local site.
[0083] In one example, the storable conditions may include one of the following:
[0084] (1) The popularity of the target visual content meets the preset popularity requirements.
[0085] The target visual content's popularity meeting the preset popularity requirement may be that the popularity representation data for the target visual content is greater than a preset value. Here, the popularity representation data for the target visual content may be the target visual content's daily visits (e.g., the number of visits on the same day); the preset value may be preset based on historical experience, for example, 10,000.
[0086] (2) The first visual content optimization request carries a storage indication flag.
[0087] The storage indication flag may be "Prefetch=1".
[0088] (3) The popularity of the target visual content meets the preset popularity requirement, and the first visual content optimization request carries a storage indication flag.
[0089] The target visual content's popularity meeting the preset popularity requirement may be that the popularity representation data for the target visual content is greater than a preset value. Here, the popularity representation data for the target visual content may be the target visual content's daily visits (e.g., the number of visits on the same day); the preset value may be preset based on historical experience, for example, 10,000.
[0090] In addition, the indication storage flag may be "Prefetch=1".
[0091] Based on the above settings, in some optional implementations, the visual content processing method may further include:
[0092] Receiving a second visual content optimization request sent by the first electronic device; wherein the second visual content optimization request carries second resource location information pointing to target visual content stored in a specific site;
[0093] requesting optimized target visual content from a local site based on the second resource location information;
[0094] The optimized target visual content is sent to the first electronic device.
[0095] The second resource location information may be a URL.
[0096] Through the above method, in the embodiment of the present disclosure, when the storage conditions for the optimized target visual content are met, the optimized target visual content can be stored in the local site. In this way, when a second visual content optimization request carrying second resource location information pointing to the target visual content stored in a specific site is received from the first electronic device, the optimized target visual content can be directly requested from the local site based on the second resource location information, and the optimized target visual content can be sent to the first electronic device, so as to reduce the user's waiting time, thereby further ensuring the user's viewing experience.
[0097] The embodiment of the present disclosure provides a visual content optimization method, which can be applied to a first electronic device. The first electronic device can be a terminal device, for example, a conventional computer (desktop computer, laptop computer, etc.), a car computer, a tablet computer, a smart phone, a personal digital assistant or other similar computing device. Figure 2 The flowchart shown in the figure illustrates a visual content optimization method provided by an embodiment of the present disclosure. It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described in the flowchart may be performed in other orders.
[0098] Step S201 : In response to a viewing trigger operation on target visual content, a viewing request for the target visual content is generated.
[0099] The viewing trigger operation may be triggered by a user; the viewing request carries first resource location information of the target visual content, which may be video content, dynamic images, static images, etc.; and the first resource location information may be a URL.
[0100] Step S202 : When it is determined based on the first resource location information that the target visual content is stored in a specific site, a first visual content optimization request is generated.
[0101] The specific site may be a site among a plurality of third-party sites (eg, 3,000) stored in the site blacklist.
[0102] In one example, after generating a viewing request for the target visual content in response to a viewing trigger operation for the target visual content, first resource location information can be extracted from the viewing request, and a site domain name can be extracted from the first resource location information. The site domain name can then be matched with multiple third-party sites to determine whether the target visual content is stored on a specific site. If it is determined that the target visual content is stored on a specific site based on the first resource location information, a first visual content optimization request can be generated based on the first resource location information, that is, a first visual content optimization request carrying the first resource location information can be generated.
[0103] Step S203: Send the first visual content optimization request to the second electronic device.
[0104] The second electronic device is configured to request target visual content from a specific site based on the first resource location information carried in the first visual content optimization request; upon determining that the target visual content has specific quality issues, optimize the target visual content to obtain optimized target visual content; and send the optimized target visual content to the first electronic device. The specific functions and examples of the second electronic device can be found in the description of the corresponding steps in the aforementioned embodiment of the visual content optimization method performed by the second electronic device, and are not further elaborated here.
[0105] The visual content optimization method provided by the embodiment of the present disclosure can generate a viewing request carrying the first resource location information of the target visual content in response to a viewing trigger operation for the target visual content, and generate a first visual content optimization request carrying the first resource location information when it is determined that the target visual content is stored in a specific site based on the first resource location information, and then send the first visual content optimization request to the second electronic device. The second electronic device is used to receive the first visual content optimization request sent by the first electronic device, and request the target visual content from the specific site based on the first resource location information carried in the first visual content optimization request, and then optimize the target visual content when it is determined that the target visual content has a specific quality problem, obtain the optimized target visual content, and send the optimized target visual content to the first electronic device. In this way, the target visual content played by the first electronic device is the optimized target visual content, and there is no specific quality problem, which is equivalent to improving the quality of the target visual content played by the first electronic device, thereby ensuring the user's viewing experience.
[0106] The following, combined with Figure 3 , the complete process of a visual content optimization method provided by an embodiment of the present disclosure is described.
[0107] First, execute on the first electronic device side:
[0108] Step S301 : In response to a viewing trigger operation on target visual content, a viewing request for the target visual content is generated.
[0109] The viewing trigger operation may be triggered by a user; the viewing request carries first resource location information of the target visual content, which may be video content, dynamic images, static images, etc.; and the first resource location information may be a URL.
[0110] Step S302 : When it is determined based on the first resource location information that the target visual content is stored in a specific site, a first visual content optimization request is generated.
[0111] The specific site may be a site among a plurality of third-party sites (eg, 3,000) stored in the site blacklist.
[0112] In one example, after generating a viewing request for the target visual content in response to a viewing trigger operation for the target visual content, first resource location information can be extracted from the viewing request, and a site domain name can be extracted from the first resource location information. The site domain name can then be matched with multiple third-party sites to determine whether the target visual content is stored on a specific site. If it is determined that the target visual content is stored on a specific site based on the first resource location information, a first visual content optimization request can be generated based on the first resource location information, that is, a first visual content optimization request carrying the first resource location information can be generated.
[0113] Step S303: Send the first visual content optimization request to the second electronic device.
[0114] The first electronic device and the second electronic device may interact with each other via the Baidu Transport Layer Security (BDTLS) protocol, that is, the first electronic device may send the first visual content optimization request to the second electronic device via BDTLS.
[0115] Afterwards, the following operations may be performed on the second electronic device:
[0116] Step S304: receiving a first visual content optimization request sent by a first electronic device.
[0117] In the embodiment of the present disclosure, after receiving the first visual content optimization request sent by the first electronic device, the second electronic device can access the forwarding platform (Baidu Front End, BFE) through the application layer traffic, forward the first visual content optimization request to the reverse proxy module (also known as Pr-Nginx), and the reverse proxy module pre-processes the first visual content optimization request (for example, hiding user information, etc.) to obtain a pre-processed first visual content processing request. Thereafter, the pre-processed first visual content processing request can be encrypted through the BDTLS layer to obtain an encrypted first visual content processing request, and the encrypted first visual content processing request can be sent to the routing forwarding module (also known as Ui-Nginx).
[0118] The routing forwarding module is used to forward the encrypted first visual content processing request based on the preset forwarding rules. Figure 4Here, the forwarding rule may include: when the encrypted first visual content processing request carries a specific forwarding field (for example, " / sf / index.php"), the encrypted first visual content processing request is sent to a preset scenario page development program (also known as Sf-Ui APP) to process the encrypted first visual content processing request through the Sf-Ui APP, that is, the following steps are performed through the Sf-Ui APP, which may specifically include at least part of step S305, step S306 and step S307.
[0119] Step S305 : Requesting target visual content from a specific site based on the first resource location information.
[0120] In one example, after receiving a first visual content optimization request sent by a first electronic device (here, it can be an encrypted first visual content optimization request), the first visual content optimization request can be decrypted, and the first resource location information can be extracted from the decrypted first visual content optimization request. Then, a preset software development kit (SDK) (also known as Mint SDK) is used to request target visual content from a specific site based on the first resource location information.
[0121] Step S306 : When it is determined that the target visual content has a specific quality problem, the target visual content is optimized to obtain optimized target visual content.
[0122] The specific quality problem may include at least one of a predetermined redundant portion and a page quality problem. Based on this, in one example, the specific quality problem of the target visual content may be determined by:
[0123] In a case where a predetermined redundant portion exists in the target visual content, it is determined that the target visual content has a specific quality problem.
[0124] The predetermined redundant portion may include pornographic content, gambling content, advertising content, etc.
[0125] In one specific example, keyword matching can be used to determine whether the target visual content contains predetermined redundant portions. For example, a string matching algorithm can be used to detect whether the target visual content contains target text content that matches sensitive terms in a keyword library. If target text content that matches sensitive terms in the keyword library exists in the target visual content, the target visual content is determined to contain predetermined redundant portions, and further, the target visual content is determined to have a specific quality issue. Sensitive terms in the keyword library include terms related to pornography, gambling, advertising, and the like.
[0126] In another specific example, an image classification model can be used to classify the target visual content to determine whether a predetermined redundant portion exists in the target visual content. If the predetermined redundant portion exists in the target visual content, it is determined that the target visual content has a specific quality issue. The image classification model can be obtained by training an original classification model using visual content samples with and without the predetermined redundant portion as training data. Here, the original classification model can be a CNN.
[0127] In another example, it can be determined that the target visual content has a specific quality issue by:
[0128] In a case where the target visual content has a page quality problem, it is determined that the target visual content has a specific quality problem.
[0129] Among them, page quality issues may include color problems, resolution and clarity problems, compression distortion, low frame rate, etc.
[0130] In a specific example, the target visual content can be evaluated using a visual content analysis tool provided by VQMT and / or a computer vision library (e.g., OpenCV) to obtain an evaluation result; if the evaluation result indicates that the target visual content has a page quality problem, it is determined that the target visual content has a specific quality problem.
[0131] Furthermore, when a predetermined redundant portion exists in the target visual content and it is determined that the target visual content has a specific quality problem, the target visual content may be optimized in the following manner to obtain optimized target visual content:
[0132] When a predetermined redundant portion exists in the target visual content, extracting the remaining content except the predetermined redundant portion from the target visual content;
[0133] Get the self-built playback page;
[0134] Use the remaining content to fill the self-built playback page to obtain optimized target visual content.
[0135] Among them, the self-built playback page can be a page designed and built to adapt to the resource platform corresponding to the local site and used to display visual content resources (including video content, dynamic images, static images, etc.). It usually includes a video player, and can also include elements such as video information introduction, related recommended videos, and comment areas. It aims to provide users with a good interactive platform and viewing experience.
[0136] In a specific example, after extracting the remaining content except for the predetermined redundant portion from the target visual content and obtaining the self-built play page, the self-built play page can be filled with the remaining content in the following manner to obtain the optimized target visual content:
[0137] Analyze the layout structure of the self-built playback page;
[0138] Based on the layout structure of the self-built playback page, the remaining content is adjusted to obtain the adjusted remaining content;
[0139] Use the adjusted remaining content to fill the self-built playback page to obtain optimized target visual content.
[0140] Among them, the layout structure of the self-built playback page may include the position, size, color, etc. of the page elements in the self-built playback page; based on the layout structure of the self-built playback page, adjusting the remaining content may be: based on the layout structure of the self-built playback page, adjusting the content style and / or content format of the remaining content, so that the adjusted remaining content can be naturally integrated with the self-built playback page.
[0141] If there are page quality issues in the target visual content and it is determined that the target visual content has specific quality issues, the target visual content can be optimized in the following ways to obtain optimized target visual content:
[0142] In the case where the target visual content has a page quality problem, determining the problem type of the page quality problem of the target visual content;
[0143] Determine the optimization strategy based on the problem type;
[0144] According to the optimization strategy, the target visual content is optimized to obtain optimized target visual content.
[0145] As mentioned above, in the embodiment of the present disclosure, page quality issues may include color issues, resolution and clarity issues, compression distortion, low frame rate, etc.
[0146] In a specific example, the optimization strategy corresponding to the problem type of color problem may be adjusting the color settings of the target visual content and / or using a color correction tool to perform color correction on the target visual content; the optimization strategy corresponding to the problem type of resolution and clarity problem may be performing interpolation processing on the target visual content through an interpolation algorithm, and at the same time, increasing the clarity parameters of the target visual content and / or applying a clarity filter to improve the clarity of the target visual content; the optimization strategy corresponding to the problem type of compression distortion may be adjusting the compression format and / or compression ratio of the target visual content to improve the compression distortion problem of the target visual content; the optimization strategy corresponding to the problem type of low frame rate may be increasing the frame rate of the target visual content and / or adjusting the playback settings.
[0147] In addition, it should be noted that in the embodiment of the present disclosure, the optimized target visual content can be organized according to a preset format, for example, a Schema format, and the embodiment of the present disclosure does not limit this.
[0148] Step S307: Send the optimized target visual content to the first electronic device.
[0149] In one example, the Sf-Ui app can send the optimized target visual content to the routing and forwarding module, which then passes through the routing and forwarding module, the BDTLS layer, the reverse proxy module, and the application layer traffic access and forwarding platform to the first electronic device. After the first electronic device receives the optimized target visual content, it can play the optimized target visual content.
[0150] Furthermore, in the embodiment of the present disclosure, the optimized target visual content may be stored in a local site when a storable condition for the optimized target visual content is satisfied.
[0151] The storage condition for the optimized target visual content may be that the popularity of the target visual content meets a preset popularity requirement and the first visual content optimization request carries a storage indication flag. Here, the popularity of the target visual content can be represented by the daily visits of the target visual content; the storage indication flag can be "Prefetch = 1".
[0152] Please combine Figure 5 In one example, whether the storability condition for the optimized target visual content is satisfied may be determined in the following manner:
[0153] Step S501: Determine whether the first visual content optimization request carries a storage indication flag.
[0154] As mentioned above, in the embodiment of the present disclosure, the indication storage flag may be "Prefetch=1".
[0155] When the first visual content optimization request carries a storage indication flag, the process proceeds to step S502 ; when the first visual content optimization request does not carry a storage indication flag, the process of storing the optimized target visual content may be exited.
[0156] Step S502 : Initialize a pre-fetch count value for the target visual content.
[0157] The initialization state of the pre-fetch count value may be 1.
[0158] Step S503 : determining whether the heat representation data for the target visual content is greater than a preset data.
[0159] The heat characterization data for the target visual content may be the daily visits to the target visual content (eg, visits on the same day); the preset data may be preset based on historical experience, for example, may be 10,000.
[0160] When the heat representation data for the target visual content is greater than the preset data, the process may proceed to step S504 ; when the heat representation data for the target visual content is less than or equal to the preset data, the process may return to step S501 .
[0161] Step S504 , performing a self-increment operation on the pre-fetch count value to obtain a new pre-fetch count value.
[0162] The self-increment operation may be a "+1" operation, that is, performing a "+1" operation on the prefetch count value to obtain a new prefetch count value. For example, when the prefetch count value is initialized to 1, performing a "+1" operation on the prefetch count value to obtain a new prefetch count value of 2.
[0163] Step S505 , determining whether the heat characterization data for the target visual content exceeds a flow limiting threshold.
[0164] The flow limiting threshold may be a preset multiple of the minute-level average visits to all visual content resources in the local site (eg, the minute-level average visits on the day).
[0165] When the heat characterization data for the target visual content exceeds the current limiting threshold, the storage process for the optimized target visual content can be exited; when the heat characterization data for the target visual content does not exceed the current limiting threshold (that is, less than or equal to the current limiting threshold), step S507 can be entered.
[0166] Step S506 , determining whether the new prefetch count value is in an initialized state.
[0167] The new prefetch count value in the initialization state can be that the new prefetch count value is equal to 1.
[0168] When the new prefetch count value is in the initialization state, step S507 can be entered; when the new prefetch count value is not in the initialization state, step S508 can be entered.
[0169] Step S507 determines that the prefetch count value is invalid, or determines that no new visual content optimization request for the target visual content is received.
[0170] After determining that the prefetch count value is invalid, or determining that no new visual content optimization request for the target visual content is received, step S501 can be returned.
[0171] Step S508 determines that the storable condition for the optimized target visual content is met.
[0172] Further, in the embodiment of the present disclosure, in the case where the storable condition for the optimized target visual content is met, the optimized target visual content is stored in the local site. In this way, when the second visual content optimization request sent by the first electronic device carrying the second resource positioning information pointing to the target visual content stored in the specific site is received, the optimized target visual content can be directly requested from the local site based on the second resource positioning information, and the optimized target visual content is sent to the first electronic device, so as to reduce the user waiting time, thereby further ensuring the user's viewing experience.
[0173] In the embodiment of the present disclosure, the specific functions and examples of each step can be referred to the related description of the corresponding steps in the foregoing visual content optimization method embodiments, which will not be repeated here.
[0174] Please refer to Figure 6 A scene schematic diagram of a visual content optimization method provided by the embodiment of the present disclosure.
[0175] The visual content optimization method provided by the embodiment of the present disclosure is applied to an electronic device. The electronic device can be a first electronic device, i.e., a terminal device, such as a conventional computer (desktop computer, notebook computer, etc.), vehicle-mounted computer, tablet computer, smart phone, personal digital processor or other similar computing device. Here, the first electronic device is used to:
[0176] In response to a viewing trigger operation for a target visual content, a viewing request for the target visual content is generated;
[0177] If it is determined based on the viewing request that the target visual content is stored in the specific site, a first visual content optimization request is generated; wherein the first visual content optimization request carries first resource location information pointing to the target visual content stored in the specific site;
[0178] A first visual content optimization request is sent to a second electronic device; wherein the second electronic device is used to request target visual content from a specific site based on the first resource location information carried in the first visual content optimization request; when it is determined that the target visual content has specific quality problems, the target visual content is optimized to obtain optimized target visual content; and the optimized target visual content is sent to the first electronic device.
[0179] The electronic device may be a second electronic device, that is, a server or other similar computing device. Here, the second electronic device is used to:
[0180] Receiving a first visual content optimization request sent by a first electronic device; wherein the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site;
[0181] requesting target visual content from a specific site based on the first resource location information;
[0182] When it is determined that the target visual content has a specific quality problem, optimizing the target visual content to obtain optimized target visual content;
[0183] The optimized target visual content is sent to the first electronic device.
[0184] It should be noted that, in the embodiments of the present disclosure, Figure 6 The scene diagram shown is only for illustration and not for limitation. Those skilled in the art can Figure 6 Various obvious changes and / or substitutions may be made to the examples, and the obtained technical solutions still fall within the scope of the disclosure of the embodiments of the present disclosure.
[0185] In order to better implement the above visual content optimization method performed by the second electronic device, the embodiment of the present disclosure also provides a visual content optimization device, which can be integrated into the second electronic device. The second electronic device can be a server or other similar computing device. Specifically, the second electronic device can be a server or other similar computing device corresponding to the local site. Figure 7 The schematic structural block diagram shown is used to illustrate a visual content optimization device 700 provided in the disclosed embodiment.
[0186] The visual content optimization device 700 includes:
[0187] A first request receiving unit 701 is configured to receive a first visual content optimization request sent by a first electronic device; wherein the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site;
[0188] The visual content requesting unit 702 is configured to request target visual content from a specific site based on the first resource location information;
[0189] A visual content optimization unit 703 is configured to optimize the target visual content to obtain optimized target visual content when it is determined that the target visual content has a specific quality problem;
[0190] The first visual content sending unit 704 is configured to send the optimized target visual content to the first electronic device.
[0191] In some optional implementations, the visual content optimization unit 703 is configured to perform at least one of the following:
[0192] When a predetermined redundant portion exists in the target visual content, determining that the target visual content has a specific quality problem;
[0193] In a case where the target visual content has a page quality problem, it is determined that the target visual content has a specific quality problem.
[0194] In some optional implementations, the visual content optimization unit 703 is configured to:
[0195] When a predetermined redundant portion exists in the target visual content, extracting the remaining content except the predetermined redundant portion from the target visual content;
[0196] Get the self-built playback page;
[0197] Use the remaining content to fill the self-built playback page to obtain optimized target visual content.
[0198] In some optional implementations, the visual content optimization unit 703 is configured to:
[0199] In the case where the target visual content has a page quality problem, determining the problem type of the page quality problem of the target visual content;
[0200] Determine the optimization strategy based on the problem type;
[0201] According to the optimization strategy, the target visual content is optimized to obtain optimized target visual content.
[0202] In some optional implementations, the visual content optimization apparatus 700 further includes a visual content storage unit configured to:
[0203] When a storable condition for the optimized target visual content is satisfied, the optimized target visual content is stored in a local site.
[0204] In some optional implementations, the storable conditions include one of the following:
[0205] The popularity of the target visual content meets the preset popularity requirements;
[0206] The first visual content optimization request carries a storage indication flag;
[0207] The popularity of the target visual content meets a preset popularity requirement, and the first visual content optimization request carries a storage indication flag.
[0208] In some optional implementations, the visual content optimization apparatus 700 further includes:
[0209] A second request receiving unit is configured to receive a second visual content optimization request sent by the first electronic device; wherein the second visual content optimization request carries second resource location information pointing to target visual content stored in a specific site;
[0210] a visual content acquisition unit, configured to request optimized target visual content from a local site based on the second resource location information;
[0211] The second visual content sending unit is configured to send the optimized target visual content to the first electronic device.
[0212] In the embodiment of the present disclosure, the specific functions and examples of each unit in the visual content optimization device 700 can be found in the relevant description of the corresponding steps in the aforementioned embodiment of the visual content optimization method performed by the second electronic device, and will not be repeated here.
[0213] In order to better implement the above visual content optimization method performed by the first electronic device, the embodiment of the present disclosure further provides a visual content optimization device 800, which can be integrated into the first electronic device. The first electronic device can be a terminal device, for example, a conventional computer (desktop computer, laptop computer, etc.), a car computer, a tablet computer, a smart phone, a personal digital assistant or other similar computing device. Figure 8 The schematic structural block diagram shown illustrates a visual content optimization device 800 provided in the disclosed embodiment.
[0214] The visual content optimization device 800 includes:
[0215] The viewing request generating unit 801 is configured to generate a viewing request for the target visual content in response to a viewing triggering operation for the target visual content; wherein the viewing request carries first resource location information of the target visual content;
[0216] The optimization request generating unit 802 is configured to generate a first visual content optimization request when it is determined that the target visual content is stored in a specific site based on the first resource location information; wherein the first visual content optimization request carries the first resource location information;
[0217] The optimization request sending unit 803 is used to send the first visual content optimization request to the second electronic device; wherein the second electronic device is used to request the target visual content from a specific site based on the first resource location information carried in the first visual content optimization request; when it is determined that the target visual content has a specific quality problem, the target visual content is optimized to obtain optimized target visual content; and the optimized target visual content is sent to the first electronic device.
[0218] In the embodiment of the present disclosure, the specific functions and examples of each unit in the visual content optimization device 800 can be found in the relevant description of the corresponding steps in the aforementioned embodiment of the visual content optimization method performed by the first electronic device, and will not be repeated here.
[0219] In the technical solutions disclosed herein, the acquisition, storage, and application of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0220] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0221] Figure 9 A schematic block diagram of an example electronic device 900 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as vehicle-mounted computing devices, laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0222] like Figure 9As shown, the electronic device 900 includes a computing unit 901, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 902 or a computer program loaded from a storage unit 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 can also be stored. The computing unit 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0223] Multiple components in the electronic device 900 are connected to the I / O interface 905, including an input unit 906, such as a keyboard, a mouse, etc.; an output unit 907, such as various types of renderers, speakers, etc.; a storage unit 908, such as a magnetic disk, an optical disk, etc.; and a communication unit 909, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 909 allows the electronic device 900 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0224] The computing unit 901 can be various general-purpose and / or specialized processing components with processing and computing capabilities. Some examples of the computing unit 901 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 901 performs the various methods and processes described above, such as the visual content optimization method. For example, in some embodiments, the visual content optimization method can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 908. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 900 via the ROM 902 and / or the communication unit 909. When the computer program is loaded into the RAM 903 and executed by the computing unit 901, one or more steps in the visual content optimization method described above can be performed. Alternatively, in other embodiments, the computing unit 901 may be configured as a visual content optimization method in any other appropriate manner (eg, by means of firmware).
[0225] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0226] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data optimization device so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0227] In the context of this disclosure, a machine-readable medium can be a tangible medium that contains or stores a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include but is not limited to an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer disk, a hard disk, RAM, ROM, erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0228] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a rendering device (e.g., a Cathode Ray Tube (CRT) or a Liquid Crystal Display (LCD) monitor for
[0229] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by 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), and the Internet.
[0230] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.
[0231] An embodiment of the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable a computer to execute a visual content optimization method.
[0232] An embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the visual content optimization method when executed by a processor.
[0233] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this. In addition, in this disclosure, relational terms such as "first", "second", "third", etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. In addition, "multiple" in this disclosure can be understood as at least two.
[0234] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the principles of this disclosure shall be included within the scope of protection of this disclosure.
Claims
1. A visual content optimization method, comprising: Receiving a first visual content optimization request sent by a first electronic device; wherein the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site; requesting the target visual content from the specific site based on the first resource location information; When it is determined that the target visual content has a specific quality problem, optimizing the target visual content to obtain optimized target visual content; sending the optimized target visual content to the first electronic device; The specific quality issues include predetermined redundant parts and / or page quality issues; and optimizing the target visual content to obtain optimized target visual content includes: If the predetermined redundant portion exists in the target visual content, extract the remaining content except the predetermined redundant portion from the target visual content, obtain a self-built playback page, and then use the remaining content to fill the self-built playback page to obtain the optimized target visual content; And / or, in the case that the target visual content has the page quality problem, determine the problem type of the page quality problem of the target visual content, and based on the problem type, determine an optimization strategy, and then optimize the target visual content according to the optimization strategy to obtain optimized target visual content.
2. The method according to claim 1, further comprising: When a storable condition for the optimized target visual content is satisfied, the optimized target visual content is stored in a local site.
3. The method according to claim 2, wherein: The storage conditions include one of the following: The popularity of the target visual content meets the preset popularity requirement; The first visual content optimization request carries a storage indication flag; The popularity of the target visual content meets a preset popularity requirement, and the first visual content optimization request carries a storage indication flag.
4. The method according to claim 2, further comprising: receiving a second visual content optimization request sent by the first electronic device; wherein the second visual content optimization request carries second resource location information pointing to the target visual content stored in the specific site; requesting the optimized target visual content from the local site based on the second resource location information; The optimized target visual content is sent to the first electronic device.
5. A method for optimizing visual content, comprising: In response to a viewing trigger operation for target visual content, generating a viewing request for the target visual content; wherein the viewing request carries first resource location information of the target visual content; If it is determined based on the first resource location information that the target visual content is stored in a specific site, generating a first visual content optimization request; wherein the first visual content optimization request carries the first resource location information; sending the first visual content optimization request to a second electronic device; wherein the second electronic device is configured to request the target visual content from the specific site based on the first resource location information carried in the first visual content optimization request; if it is determined that the target visual content has a specific quality problem, optimizing the target visual content to obtain optimized target visual content; and sending the optimized target visual content to the first electronic device; Among them, the specific quality problem includes a predetermined redundant part and / or a page quality problem; the second electronic device is specifically used to: when the predetermined redundant part exists in the target visual content, extract the remaining content except the predetermined redundant part from the target visual content, and obtain a self-built playback page, and then use the remaining content to fill the self-built playback page to obtain optimized target visual content; and / or, when the target visual content has the page quality problem, determine the problem type of the page quality problem of the target visual content, and based on the problem type, determine an optimization strategy, and then optimize the target visual content according to the optimization strategy to obtain optimized target visual content.
6. A visual content optimization device, comprising: A first request receiving unit is configured to receive a first visual content optimization request sent by a first electronic device; wherein the first visual content optimization request carries first resource location information pointing to target visual content stored in a specific site; a visual content requesting unit, configured to request the target visual content from the specific site based on the first resource location information; a visual content optimization unit, configured to optimize the target visual content to obtain optimized target visual content when it is determined that the target visual content has a specific quality problem; a first visual content sending unit, configured to send the optimized target visual content to the first electronic device; The specific quality issues include predetermined redundant parts and / or page quality issues; the visual content optimization unit is specifically configured to: If the predetermined redundant portion exists in the target visual content, extract the remaining content except the predetermined redundant portion from the target visual content, obtain a self-built playback page, and then use the remaining content to fill the self-built playback page to obtain the optimized target visual content; And / or, in the case that the target visual content has the page quality problem, determine the problem type of the page quality problem of the target visual content, and based on the problem type, determine an optimization strategy, and then optimize the target visual content according to the optimization strategy to obtain optimized target visual content.
7. The apparatus according to claim 6, further comprising a visual content storage unit for: When a storable condition for the optimized target visual content is satisfied, the optimized target visual content is stored in a local site.
8. The device according to claim 7, wherein The storage conditions include one of the following: The popularity of the target visual content meets the preset popularity requirement; The first visual content optimization request carries a storage indication flag; The popularity of the target visual content meets a preset popularity requirement, and the first visual content optimization request carries a storage indication flag.
9. The apparatus according to claim 7, further comprising: A second request receiving unit is configured to receive a second visual content optimization request sent by the first electronic device; wherein the second visual content optimization request carries second resource location information pointing to the target visual content stored in the specific site; a visual content acquiring unit, configured to request the optimized target visual content from the local site based on the second resource location information; The second visual content sending unit is configured to send the optimized target visual content to the first electronic device.
10. A visual content optimization device, comprising: a viewing request generating unit, configured to generate a viewing request for the target visual content in response to a viewing triggering operation for the target visual content; wherein the viewing request carries first resource location information of the target visual content; an optimization request generating unit, configured to generate a first visual content optimization request when it is determined, based on the first resource location information, that the target visual content is stored in a specific site; wherein the first visual content optimization request carries the first resource location information; an optimization request sending unit, configured to send the first visual content optimization request to a second electronic device; wherein the second electronic device is configured to request the target visual content from the specific site based on the first resource location information carried in the first visual content optimization request; if it is determined that the target visual content has a specific quality problem, optimize the target visual content to obtain optimized target visual content; and send the optimized target visual content to the first electronic device; Among them, the specific quality problem includes a predetermined redundant part and / or a page quality problem; the second electronic device is specifically used to: when the predetermined redundant part exists in the target visual content, extract the remaining content except the predetermined redundant part from the target visual content, and obtain a self-built playback page, and then use the remaining content to fill the self-built playback page to obtain optimized target visual content; and / or, when the target visual content has the page quality problem, determine the problem type of the page quality problem of the target visual content, and based on the problem type, determine an optimization strategy, and then optimize the target visual content according to the optimization strategy to obtain optimized target visual content.
11. An electronic device comprising: at least one processor; a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.
12. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the method according to any one of claims 1 to 5.
13. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Page loading method, device and system
CN105205157A
Content display method and device, electronic equipment, storage medium and program product
CN113365138A