Visual content optimization method and device and electronic equipment
By receiving and processing visual content optimization requests, requesting and optimizing video content from third-party sites, the quality of third-party video resources is solved and the user's viewing experience is improved.
Patent Information
- Application Number
- CN202411605414.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2025-03-18
- Estimated Expiration
- 2044-11-11
AI Technical Summary
Video resources provided by third-party sites often have quality problems, resulting in poor user viewing experience.
By receiving the visual content optimization request sent by the electronic device, request video content from a specific site based on resource positioning information, and optimize it when quality problems are detected, and the optimized content is sent.
Improve the video quality played by electronic devices and ensure the user's viewing experience.
Smart Images

Figure CN119646325A_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 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, the target visual content is optimized 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 a 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 to obtain optimized target visual content when it is determined that the target visual content has a specific quality problem;
[0017] The first visual content sending unit is used 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] The optimization request generating unit is used 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;
[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 in 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 use of the present disclosure can improve the quality of the target visual content played by the first electronic device, thereby ensuring the user's viewing experience.
[0029] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] The accompanying drawings are used to better understand the present solution 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 in 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 scene 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] Fig. 9 A schematic structural block diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0040] The following is a description of exemplary embodiments of the present disclosure 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 recognized by those of ordinary skill 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, the description of well-known functions and structures is omitted in the following description.
[0041] As described in the background technology, 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 bad viewing experience to users.
[0042] Specifically, the inventors have found that the video resources provided by third-party sites are likely to have certain quality problems, such as predetermined redundant parts and / or page quality problems, which will bring users a bad viewing experience. The predetermined redundant parts include pornographic content, gambling content, advertising content, etc.; page quality problems include color problems, resolution and clarity problems, compression distortion, low frame rate, etc.
[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 diagram shown illustrates a visual content optimization method provided by an embodiment of the present disclosure. It should be noted that although the logical order is shown in the flowchart diagram, in some cases, the steps shown or described in the flowchart can also 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.), a car computer, a tablet computer, a smart phone, a personal digital processing or other similar computing device; the first visual content optimization request carries the first resource location information pointing to the target visual content stored in the specific site. Here, the specific site may be one of the multiple third-party sites (for example, 3000) stored in the site blacklist; the target visual content may be video content, dynamic images, static images, etc.; 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 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 problem may include at least one of a predetermined redundant part and a page quality problem. In the embodiment of the present disclosure, when it is determined that the target visual content has a specific quality problem, the target visual content may be optimized to remove and / or weaken the specific quality problem in the target visual content to obtain 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 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 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 mentioned above, in the embodiment of the present disclosure, the specific quality problem may include at least one of a predetermined redundant part and a page quality problem. Based on this, in some optional implementations, "determining that the target visual content has a specific quality problem" 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, it is possible to determine whether there is a predetermined redundant part in the target visual content by keyword matching. For example, a string matching algorithm can be used to detect whether there is a target text content in the target visual content that matches a sensitive word in the keyword library; when there is a target text content in the target visual content that matches a sensitive word in the keyword library, it is determined that there is a predetermined redundant part in the target visual content, and then it is determined that there is a specific quality problem in the target visual content. Among them, the sensitive words in the keyword library include words related to pornographic content, gambling content, advertising content, etc.
[0057] In another example, the target visual content may be classified using an image classification model to determine whether there is a predetermined redundant part in the target visual content, and if there is a predetermined redundant part in the target visual content, determine that the target visual content has a specific quality problem. The image classification model may be obtained by training an original classification model using visual content samples with a predetermined redundant part and visual content samples without a predetermined redundant part as training data. Here, the original classification model may be a convolutional neural network (CNN).
[0058] In some optional implementations, “determining that the target visual content has a specific quality problem” in step S103 may also include:
[0059] 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.
[0060] Among them, page quality issues may include color problems, resolution and clarity problems, compression distortion, low frame rate, etc.
[0061] In one example, a video quality measurement tool (VQMT) and / or a visual content analysis tool provided by a computer vision library (e.g., OpenCV) may be used to evaluate the target visual content to obtain an evaluation result; when 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.
[0062] In the above manner, in the embodiment of the present disclosure, when there is a predetermined redundant part in the target visual content, it can be determined that the target visual content has a specific quality problem, and / or when there is a page quality problem in the target visual content, it can be determined that the target visual content has a specific quality problem. That is, in the embodiment of the present disclosure, whether the target visual content has a specific quality problem will be evaluated from multiple dimensions (including the dimension of the predetermined redundant part and the dimension of the page quality problem), thereby ensuring a more comprehensive evaluation of the target visual content.
[0063] In some optional implementations, “optimizing the target visual content to obtain optimized target visual content” in step S103 may include:
[0064] When there is a predetermined redundant part in the target visual content, extracting the remaining content except the predetermined redundant part from the target visual content;
[0065] Get the self-built playback page;
[0066] Use the remaining content to fill the self-built playback page to obtain optimized target visual content.
[0067] 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 may 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.
[0068] In one example, after extracting the remaining content except the predetermined redundant part 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 there is a predetermined redundant part in the target visual content, the remaining content other than the predetermined redundant part can be extracted from the target visual content, and a self-built playback page can be obtained, and the self-built playback page can be filled with the remaining content to obtain the optimized target visual content. In this way, compared with the solution of "directly deleting the predetermined redundant part from the target visual content to obtain the optimized target visual content", it is possible to avoid the situation where the remaining content other than the predetermined redundant part in the target visual content is disconnected due to the deletion of the predetermined redundant part from the target visual content, 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 embodiments 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 method, in the embodiment of the present disclosure, the problem type of the page problem existing in the target visual content can be clearly located first, and then the optimization strategy can be determined based on the problem type, so as to optimize the target visual content according to the optimization strategy and obtain the optimized target visual content. In this way, the optimization efficiency of the target visual content can be improved to reduce the waiting time of the user, thereby further ensuring the viewing experience of the user.
[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 met, the optimized target visual content is stored in the 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 heat of the target visual content meets the preset heat requirement, which means that the heat characterization data for the target visual content is greater than the preset data. Here, the heat characterization data for the target visual content may be the daily visits to the target visual content (for example, the visits on the same day); the preset data may be preset based on historical experience, for example, it may be 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 a preset popularity requirement, and the first visual content optimization request carries a storage indication flag.
[0089] The heat of the target visual content meets the preset heat requirement, which means that the heat characterization data for the target visual content is greater than the preset data. Here, the heat characterization data for the target visual content may be the daily visits to the target visual content (for example, the visits on the same day); the preset data may be preset based on historical experience, for example, it may be 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, the optimized target visual content can be stored in the local site when the storage conditions for the optimized target visual content are met. 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 to reduce the user's waiting time, thereby further ensuring the user's viewing experience.
[0097] The present disclosure provides a method for optimizing visual content, which can be applied to a first electronic device. The first electronic device can be a terminal device, such as 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 devices. Figure 2 The flowchart diagram shown illustrates a visual content optimization method provided by an embodiment of the present disclosure. It should be noted that although the logical order is shown in the flowchart diagram, in some cases, the steps shown or described in the flowchart can also be performed in other orders.
[0098] Step S201: In response to a viewing trigger operation on target visual content, a viewing request for target visual content is generated.
[0099] The viewing trigger operation may be triggered by a user; the viewing request carries the first resource location information of the target visual content. Here, the target visual content may be video content, dynamic images, static images, etc.; 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, the first resource location information can be extracted from the viewing request, and the site domain name can be extracted from the first resource location information, and then the site domain name can be matched with multiple third-party sites to determine whether the target visual content is stored in a specific site. In the case where it is determined that the target visual content is stored in 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 is generated.
[0103] Step S203: sending the first visual content optimization request to the second electronic device.
[0104] 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 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. Here, the specific functions and examples of the second electronic device 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, which will not be repeated here.
[0105] By adopting the visual content optimization method provided by the embodiment of the present disclosure, a viewing request carrying the first resource location information of the target visual content can be generated in response to a viewing trigger operation for the target visual content, and based on the first resource location information, when it is determined that the target visual content is stored in a specific site, a first visual content optimization request carrying the first resource location information is generated, and then the first visual content optimization request is sent to the second electronic device. Among them, the second electronic device is used to receive the first visual content optimization request sent by the first electronic device, and based on the first resource location information 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 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 being able to improve 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 target visual content is generated.
[0109] The viewing trigger operation may be triggered by a user; the viewing request carries the first resource location information of the target visual content. Here, the target visual content may be video content, dynamic images, static images, etc.; 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, the first resource location information can be extracted from the viewing request, and the site domain name can be extracted from the first resource location information, and then the site domain name can be matched with multiple third-party sites to determine whether the target visual content is stored in a specific site. In the case where it is determined that the target visual content is stored in 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 is generated.
[0113] Step S303: sending 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), that is, the first electronic device may send the first visual content optimization request to the second electronic device via BDTLS.
[0115] Thereafter, 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 disclosed embodiment, 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, user information hiding, 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 a preset forwarding rule. 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 first resource location information can be extracted from the decrypted first visual content optimization request, and then a preset software development kit (SDK) (also known as Mint SDK) can be 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 part and a page quality problem. Based on this, in one example, it can be determined that the target visual content has a specific quality problem in the following manner:
[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 part may include pornographic content, gambling content, advertising content, etc.
[0125] In a specific example, it is possible to determine whether there is a predetermined redundant part in the target visual content by keyword matching. For example, a string matching algorithm can be used to detect whether there is a target text content in the target visual content that matches the sensitive words in the keyword library; when there is a target text content in the target visual content that matches the sensitive words in the keyword library, it is determined that there is a predetermined redundant part in the target visual content, and then it is determined that there is a specific quality problem in the target visual content. Among them, the sensitive words in the keyword library include words related to pornographic content, gambling content, advertising content, etc.
[0126] In another specific example, the target visual content may be classified using an image classification model to determine whether there is a predetermined redundant part in the target visual content, and if there is a predetermined redundant part in the target visual content, determine that the target visual content has a specific quality problem. The image classification model may be obtained by training an original classification model using visual content samples with a predetermined redundant part and visual content samples without a predetermined redundant part as training data. Here, the original classification model may be a CNN.
[0127] In another example, it can be determined that the target visual content has a specific quality problem in the following manner:
[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; when 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, after the predetermined redundant part exists in the target visual content and it is determined that the target visual content has a specific quality problem, the target visual content can be optimized in the following manner to obtain optimized target visual content:
[0132] When there is a predetermined redundant part in the target visual content, extracting the remaining content except the predetermined redundant part 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 may 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 the predetermined redundant part 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] When there are page quality problems in the target visual content and it is determined that there are specific quality problems in the target visual content, 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 embodiments 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 embodiments of the present disclosure, the optimized target visual content can be organized according to a preset format, for example, a Schema format, and the embodiments of the present disclosure are not limited to this.
[0148] Step S307: sending 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 forwarding module, and then send it to the first electronic device through the routing forwarding module, the BDTLS layer, the reverse proxy module, and the application layer traffic access forwarding platform. After the first electronic device receives the optimized target visual content, the first electronic device 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 the local site when the storable condition for the optimized target visual content is met.
[0151] The storage condition for the optimized target visual content may be that the popularity of the target visual content meets the preset popularity requirement and the first visual content optimization request carries a storage indication flag. Here, the popularity of the target visual content may be represented by the daily visits of the target visual content; the storage indication flag may be "Prefetch=1".
[0152] Please combine Figure 5 In one example, whether the storable 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 may proceed 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, the visits on the current day); the preset data may be preset based on historical experience, for example, may be 10,000.
[0160] When the heat characterization data for the target visual content is greater than the preset data, the process may proceed to step S504 ; when the heat characterization 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, a "+1" operation is performed on the pre-fetch count value to obtain a new pre-fetch count value. For example, when the initialization state of the pre-fetch count value is 1, a "+1" operation is performed on the pre-fetch count value to obtain a new pre-fetch count value of 2.
[0163] Step S505 , determining whether the heat characterization data for the target visual content exceeds a current limiting threshold.
[0164] The flow limiting threshold may be a preset multiple of the average minute-level visits of all visual content resources in the local site (eg, the average minute-level visits of the day). Here, the preset multiple may be 2.
[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 pre-fetch count value is in an initialization state.
[0167] The new pre-fetch count value being in the initialized state may be that the new pre-fetch count value is equal to 1.
[0168] When the new pre-fetch count value is in the initialization state, the process may proceed to step S507 ; when the new pre-fetch count value is not in the initialization state, the process may proceed to step S508 .
[0169] Step S507 : determining that the pre-fetch count value is invalid, or determining that no new visual content optimization request for the target visual content is received.
[0170] After determining that the pre-fetch count value is invalid, or determining that no new visual content optimization request for the target visual content is received, the process may return to step S501 .
[0171] Step S508: determining whether the storable condition for the optimized target visual content is satisfied.
[0172] Furthermore, in the embodiment of the present disclosure, when the storage condition for the optimized target visual content is met, the optimized target visual content is 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 to reduce the user's waiting time, thereby further ensuring the user's viewing experience.
[0173] For the specific functions and examples of each step in the embodiments of the present disclosure, reference can be made to the relevant descriptions of the corresponding steps in the aforementioned visual content optimization method embodiments, which will not be elaborated here.
[0174] See also Figure 6 , which is a scene diagram of a visual content optimization method provided in an 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 may be a first electronic device, that is, a terminal device, such as 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. Here, the first electronic device is used to:
[0176] In response to a viewing trigger operation for the target visual content, generating a viewing request for the target visual content;
[0177] When it is determined that the target visual content is stored in a specific site based on the viewing request, 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 for:
[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, the target visual content is optimized 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 illustrative and not restrictive. Those skilled in the art can Figure 6 Various obvious changes and / or substitutions are 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 in 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 comprises:
[0187] The 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 a 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 used 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 used for at least one of the following:
[0192] In a case where 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 used to:
[0195] When there is a predetermined redundant part in the target visual content, extracting the remaining content except the predetermined redundant part 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 used 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 device 700 further includes a visual content storage unit, which is used to:
[0203] When a storable condition for the optimized target visual content is met, the optimized target visual content is stored in the 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 device 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 a 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 used 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 visual content optimization method embodiment executed 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 also provides a visual content optimization device 800, which can be integrated in 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 devices. Figure 8 The schematic structural block diagram shown is used to illustrate a visual content optimization device 800 provided in the disclosed embodiment.
[0214] The visual content optimization device 800 comprises:
[0215] The viewing request generating unit 801 is used 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 the 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 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 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 visual content optimization method embodiment performed by the first electronic device, and will not be repeated here.
[0219] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance 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] Fig. 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, smart phones, 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 required herein.
[0222] like Fig. 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 to 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] A number of 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 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 through a computer network such as the Internet and / or various telecommunication networks.
[0224] The computing unit 901 may be a variety of general and / or special 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 running machine learning model algorithms, digital signal processors (DSP), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 901 performs the various methods and processes described above, for example, the visual content optimization method. For example, in some embodiments, the visual content optimization method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, for example, a storage unit 908. In some embodiments, part or all of the computer program may 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 may 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 above herein may 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), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated 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, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on the machine, partially on the machine, partially on the machine as an independent software package and partially on a remote machine or completely on a remote machine or server.
[0227] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a RAM, a ROM, an erasable programmable read-only memory (EPROM) or a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0228] To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having: a rendering device (e.g., a cathode ray tube (CRT) renderer or a liquid crystal display (LCD)) for rendering information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices are also used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0229] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, 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: Local Area Network (LAN), Wide Area Network (WAN), and the Internet.
[0230] The computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0231] The embodiment of the present disclosure also 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] The embodiment of the present disclosure also 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 the present disclosure can be executed in parallel, sequentially or in a different order, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and this document does not limit this. In addition, in the present 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 the existence of any such actual relationship or order between these entities or operations. In addition, "multiple" in the present disclosure can be understood as at least two.
[0234] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the principles of the present disclosure shall be included in the protection scope of the present 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 a 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; The optimized target visual content is sent to the first electronic device.
2. The method according to claim 1, wherein: The determining that the target visual content has a specific quality problem includes at least one of the following: In a case where a predetermined redundant portion exists in the target visual content, determining that the target visual content has a specific quality problem; 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.
3. The method according to claim 2, wherein: The step of optimizing the target visual content to obtain optimized target visual content includes: In the case where there is a predetermined redundant part in the target visual content, extracting the remaining content except the predetermined redundant part from the target visual content; Get the self-built playback page; The self-built play page is filled with the remaining content to obtain optimized target visual content.
4. The method according to claim 2, wherein: The step of optimizing the target visual content to obtain optimized target visual content includes: In the case where the target visual content has a page quality problem, determining a problem type of the page quality problem of the target visual content; Based on the problem type, determining an optimization strategy; According to the optimization strategy, the target visual content is optimized to obtain optimized target visual content.
5. The method according to any one of claims 1 to 4, further comprising: When a storable condition for the optimized target visual content is met, the optimized target visual content is stored in a local site.
6. The method according to claim 5, wherein: The storage condition includes one of the following: The heat of the target visual content meets a preset heat 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.
7. The method according to claim 5, 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.
8. A method for optimizing visual content, comprising: In response to a viewing trigger operation for a 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; 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; The first visual content optimization request is sent to a second electronic device; wherein the second electronic device is used 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; 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.
9. 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 a 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 is configured to send the optimized target visual content to the first electronic device.
10. The device according to claim 9, wherein: The visual content optimization unit is used for at least one of the following: In a case where a predetermined redundant portion exists in the target visual content, determining that the target visual content has a specific quality problem; 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.
11. The device according to claim 10, wherein: The visual content optimization unit is used for: In the case where there is a predetermined redundant part in the target visual content, extracting the remaining content except the predetermined redundant part from the target visual content; Get the self-built playback page; The self-built play page is filled with the remaining content to obtain optimized target visual content.
12. The device according to claim 10, wherein: The visual content optimization unit is used for: In the case where the target visual content has a page quality problem, determining a problem type of the page quality problem of the target visual content; Based on the problem type, determining an optimization strategy; According to the optimization strategy, the target visual content is optimized to obtain optimized target visual content.
13. The device according to any one of claims 9 to 12, further comprising a visual content storage unit, configured to: When a storable condition for the optimized target visual content is met, the optimized target visual content is stored in a local site.
14. The device according to claim 13, wherein: The storage condition includes one of the following: The heat of the target visual content meets a preset heat 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.
15. The apparatus according to claim 13, further comprising: A second request receiving unit, 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 acquisition 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.
16. 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 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; An optimization request sending unit is used to send the first visual content optimization request to a second electronic device; wherein the second electronic device is used 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; 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.
17. 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 so that the at least one processor can perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 8.
19. 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 8.
Citation Information
Patent Citations
Page loading method, device and system
CN105205157A
Content display method and device, electronic equipment, storage medium and program product
CN113365138A
Video-based information display method and device, electronic equipment and storage medium
CN115878838A
Webpage access method and device, medium and computer equipment
CN116932942A
Methods and systems for selecting device applications
US20140101289A1