Content display method and device, electronic equipment, chip and storage medium

By detecting the detected image after image rendering is completed and replacing it with the target display image when bad content is detected, the problem of bad content is solved, and effective interception and accuracy of bad content is achieved.

CN119884474APending Publication Date: 2025-04-25BEIJING X RING TECHNOLOGY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202411945523.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-26
Publication Date
2025-04-25

AI Technical Summary

Technical Problem

How to intercept bad content before image display to avoid displaying bad content.

Method used

After the image is rendered, the content detection image is detected. If the detection result contains preset content, it is determined that the target display image does not contain preset content and display it in the display interface.

Benefits of technology

It realizes the interception of bad content before image display, avoids the display of bad content at the root, and improves the accuracy of interception of bad content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119884474A_ABST
    Figure CN119884474A_ABST
Patent Text Reader

Abstract

The invention provides a content display method and device, electronic equipment, a chip and a storage medium, and relates to the technical field of image processing. Comprising the steps that content detection is conducted on a first to-be-detected image, a first detection result is obtained, and the first to-be-detected image is a rendered image; when the first detection result contains preset content, determining a target display image corresponding to the first to-be-detected image; and displaying the target display image in a display interface. Therefore, after the image is rendered and before the image is displayed, content detection can be performed on the image, and under the condition that the image contains the preset content, the target display image not containing the preset content is displayed in the display interface, so that the bad content can be intercepted before the image is displayed, the display of the bad content is avoided from the source, and the user experience is improved. And the accuracy of intercepting the bad content is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of image processing technology, and in particular to a content display method, device, electronic device, chip and storage medium. Background Art

[0002] With the development of Internet technology, some malicious elements often want to spread some bloody, violent, consumption-inducing, fraudulent and other bad content through the Internet. These bad contents often affect users' use.

[0003] Therefore, how to intercept inappropriate content and prevent it from being displayed has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] The first embodiment of the present disclosure provides a content display method, including:

[0006] Performing content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered;

[0007] In a case where the first detection result includes preset content, determining a target display image corresponding to the first image to be detected;

[0008] The target display image is displayed in a display interface.

[0009] A second aspect of the present disclosure provides a content display device, including:

[0010] A detection module, configured to perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered;

[0011] A determination module, configured to determine a target display image corresponding to the first image to be detected when the first detection result contains preset content;

[0012] The display module is used to display the target display image in a display interface.

[0013] The third aspect embodiment of the present disclosure proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the content display method proposed in the first aspect embodiment of the present disclosure is implemented.

[0014] A fourth aspect of the present disclosure provides a chip, wherein the chip includes a processing circuit, and the processing circuit is configured to execute the content display method provided by the first aspect of the present disclosure.

[0015] The fifth aspect embodiment of the present disclosure proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the content display method proposed in the first aspect embodiment of the present disclosure is implemented.

[0016] The content display method, device, electronic device, chip and storage medium provided by the present disclosure have the following beneficial effects:

[0017] In the disclosed embodiment, a content detection is performed on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered, and then, if the first detection result contains preset content, a target display image corresponding to the first image to be detected is determined, and finally the target display image is displayed in a display interface. Thus, after the image is rendered and before it is displayed, a content detection can be performed on the image, and if the image contains preset content, the target display image that does not contain the preset content is displayed in the display interface, so that bad content can be intercepted before the image is displayed, thereby avoiding the display of bad content from the root and improving the accuracy of intercepting bad content.

[0018] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart of a content display method provided by an embodiment of the present disclosure;

[0021] Figure 2 A flowchart of a content display method provided by another embodiment of the present disclosure;

[0022] Figure 3 A flowchart of a content display method provided by an embodiment of the present disclosure;

[0023] Figure 4 A flowchart of a content display method provided by another embodiment of the present disclosure;

[0024] Figure 5 A schematic diagram of the structure of a content display device provided by another embodiment of the present disclosure;

[0025] Figure 6 A block diagram of an exemplary electronic device suitable for implementing the embodiments of the present disclosure is shown;

[0026] Figure 7 It is a schematic diagram of the structure of a chip proposed in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0027] Embodiments of the present disclosure are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0028] In related technologies, smart terminals will launch a system-level child mode, which can adjust the scope of children's use of smart terminals at the system level, such as usage time or specific application APPs. Similar implementation methods include whitelist and blacklist, but currently some applications embed or insert content that cannot be known by guardians in time, making it difficult to effectively monitor the healthy growth of children.

[0029] Therefore, the present disclosure proposes a content display method, which can perform content detection on an image after the image is rendered and before it is displayed, and when the image contains preset content, the target display image that does not contain the preset content is displayed in the display interface, so that the inappropriate content can be intercepted before the image is displayed, thereby avoiding the display of the inappropriate content from the root and improving the accuracy of intercepting the inappropriate content.

[0030] The content display method, device, electronic device, chip, and storage medium of the embodiments of the present disclosure are described below with reference to the accompanying drawings.

[0031] The embodiment of the present disclosure takes the content display method configured in a content display device as an example. The content display device can be applied to any electronic device so that the electronic device can perform an image display function.

[0032] Figure 1 A flowchart of a content display method provided by an embodiment of the present disclosure.

[0033] like Figure 1 As shown, the content display method may include the following steps:

[0034] Step 101 : Perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered.

[0035] It should be noted that for an image to be displayed in the display interface of the terminal, first, the components displayed on the screen (such as the status bar, system bar or background, etc.) must constitute surfaces, and all surfaces will be gathered in the surface synthesizer (surfaceFlinger) to superimpose image layers to obtain an image that has been rendered and is to be displayed in the display interface. The first image to be detected in the disclosed embodiment can be a rendered image output by the surface synthesizer.

[0036] In some embodiments, a pre-trained content detection model may be used to perform content detection on the first image to be detected to obtain a first detection result. The content detection model may be generated by training based on sample images containing preset content and corresponding preset content labels. The preset content may be harmful, fraudulent, pornographic, violent, deceptive or other inappropriate content.

[0037] In some embodiments, the structure of the content detection model may be a convolutional neural network (CNN), a recurrent neural network (RNN), etc. This disclosure does not limit this.

[0038] In some embodiments, before the first image to be detected is input into the content detection model, the first image to be detected can also be downsampled to obtain a sampled image, and the sampled image is input into the content detection model to obtain a first detection result, thereby improving the efficiency of content detection.

[0039] In some embodiments, the size of the sampled image can be determined according to the current refresh rate of the display interface. The higher the refresh rate, the smaller the image size, thereby avoiding the situation where the refresh rate is high, the amount of data for content detection is large, the detection efficiency is low, and the resulting freeze affects the user experience.

[0040] In some embodiments, when the child mode is turned on, the first image to be detected can be subjected to content detection to obtain a first detection result, thereby preventing children from viewing inappropriate content.

[0041] Step 102: When the first detection result includes preset content, determine a target display image corresponding to the first image to be detected.

[0042] It should be noted that if the first detection result contains preset content, it means that the first image to be detected contains bad content, which may have a bad impact on the user. Therefore, the first image to be detected needs to be processed to obtain a target display image corresponding to the first image to be detected that does not contain the preset content.

[0043] In some embodiments, the preset image can be determined as the target display image corresponding to the first image to be detected. For example, the first image to be detected to be displayed in the display interface is replaced with the preset image. Alternatively, the preset image is overlaid on the upper layer of the first image to be detected. Thus, the preset image is displayed in the display interface.

[0044] The preset image does not contain any objectionable content. In some embodiments, the preset image may be a pure black image, a pure white image, or an image containing warning text, so as to tell the user the reason for the abnormal display. The specific content of the preset image is not limited in the embodiments of the present disclosure.

[0045] In some embodiments, when the first detection result includes a target area in the first image to be detected with preset content, the target area in the first image to be detected is replaced with the preset image to obtain a target display image corresponding to the first image to be detected.

[0046] In some embodiments, the content detection model can also output the target area of ​​the preset content in the first image to be detected, so that only the target area in the first image to be detected can be processed without affecting the display of content in other areas.

[0047] Step 103: Display the target display image in the display interface.

[0048] In some embodiments, the determined target display image may also be sent to a frame buffer, so that the image in the frame buffer may be displayed on a display interface based on a screen refresh rate.

[0049] In this way, a target display image that does not contain preset content can be displayed in the display interface, thereby avoiding the display of inappropriate content.

[0050] In the disclosed embodiment, a content detection is performed on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered, and then, if the first detection result contains preset content, a target display image corresponding to the first image to be detected is determined, and finally the target display image is displayed in a display interface. Thus, after the image is rendered and before it is displayed, a content detection can be performed on the image, and if the image contains preset content, the target display image that does not contain the preset content is displayed in the display interface, so that bad content can be intercepted before the image is displayed, thereby avoiding the display of bad content from the root and improving the accuracy of intercepting bad content.

[0051] Figure 2 A flow chart of a content display method provided by an embodiment of the present disclosure is shown as follows: Figure 2 As shown, the content display method may include the following steps:

[0052] Step 201: Sampling a sequence of images to be displayed to obtain a sequence of images to be detected including a first image to be detected.

[0053] Step 202: Perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered.

[0054] Step 203: When the first detection result includes preset content, determine a target display image corresponding to the first image to be detected.

[0055] The specific implementation forms of steps 201 to 203 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.

[0056] Step 204, determine the image in the sequence of images to be displayed that is located after the first image to be detected and before the second image to be detected as the first image to be processed, wherein the second image to be detected is an image that is adjacent to the first image to be detected in the sequence of images to be detected and is located after the first image to be detected.

[0057] For example, the first image to be detected in the sequence of images to be displayed is the 1st frame, the second image to be detected is the 8th frame, and the images from the 2nd frame to the 7th frame are the first images to be processed.

[0058] Step 205 : Process the first image to be detected and the first image to be processed to generate a target display image corresponding to the first image to be detected.

[0059] It should be noted that if the first detection image contains preset content, the image after the first image to be detected in the sequence of images to be displayed is likely to also contain preset content. However, if content detection is performed on each frame of the image, the workload of content detection will increase, and display jams will occur in high refresh rate scenarios. Therefore, in order to reduce the workload of content detection and avoid display jams, it can be directly assumed that the first image to be processed contains preset content, and the first image to be processed can be replaced with the preset image.

[0060] Step 206: Display the target display image in the display interface.

[0061] In some embodiments, the first image to be detected in the image sequence to be displayed can be replaced based on the target display image corresponding to the first image to be detected, and the first image to be processed in the image sequence to be displayed can be replaced based on the target display image corresponding to the first image to be processed, so as to obtain an updated image sequence to be displayed, and the updated image sequence to be displayed can be placed in the frame buffer, and then the image in the frame buffer can be displayed in the display interface based on the screen refresh rate.

[0062] In the disclosed embodiment, a sequence of images to be displayed is sampled to obtain a sequence of images to be detected that includes a first image to be detected, content detection is performed on the first image to be detected to obtain a first detection result, and when the first detection result contains preset content, a target display image corresponding to the first image to be detected is determined, and an image in the sequence of images to be displayed that is located after the first image to be detected and before the second image to be detected is determined as the first image to be processed; the first image to be processed is processed to generate a target display image corresponding to the first image to be processed, and finally the target display image is displayed in the display interface. Thus, in the case of sampling a sequence of images to be displayed for content detection, if the first detection result contains preset content, it can be directly assumed that the first image to be processed after the first image to be detected and before the second image to be detected contains the preset content, and the first image to be processed is replaced with the preset image, thereby not only avoiding the display of bad content, but also reducing the workload of content detection and avoiding display freezes.

[0063] Figure 3 A flow chart of a content display method provided by an embodiment of the present disclosure is shown as follows: Figure 3 As shown, the content display method may include the following steps:

[0064] Step 301: Sample a sequence of images to be displayed to obtain a sequence of images to be detected including a first image to be detected.

[0065] Step 302: Perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered.

[0066] Step 303: When the first detection result includes preset content, determine a target display image corresponding to the first image to be detected.

[0067] The specific implementation forms of steps 301 to 303 can refer to the detailed descriptions in other embodiments of the present disclosure, and will not be described in detail here.

[0068] Step 304 : Determine a third number of frames of images in the sequence of images to be displayed, which are adjacent to the first image to be detected and located after the first image to be detected, as fourth images to be detected.

[0069] The third number may be 10, 20, etc. This disclosure does not limit this.

[0070] In some embodiments, the third number is less than or equal to a number threshold, where the number threshold is the number of images in the sequence of images to be displayed that are located after the first image to be detected and before the second image to be detected.

[0071] Step 305 , performing content detection on each frame of the fourth image to be detected to obtain a fourth detection result corresponding to each frame of the fourth image to be detected.

[0072] In the embodiment of the present disclosure, the specific implementation form of performing content detection on the fourth image to be detected can refer to the specific description of performing content detection on the first image to be detected in the embodiment of the present disclosure, and will not be described in detail here.

[0073] It should be noted that if the first detection image contains preset content, the image after the first detection image in the sequence of images to be displayed is likely to also contain preset content. Therefore, the image after the first detection image in the sequence of images to be displayed can be subjected to content detection to determine whether it contains preset content.

[0074] Step 306 : Determine the target display image corresponding to each frame of the fourth image to be detected according to the fourth detection result corresponding to each frame of the fourth image to be detected.

[0075] In some embodiments, if the fourth detection result corresponding to the fourth image to be detected includes a preset image, the fourth image to be detected is processed based on the preset image to determine the target display image corresponding to the fourth image to be detected.

[0076] In some embodiments, if the fourth detection result corresponding to the fourth image to be detected does not include a preset image, the fourth image to be detected is determined as the target display image.

[0077] Step 307: display the target display image in the display interface.

[0078] In some embodiments, the first image to be detected in the image sequence to be displayed can be replaced based on the target display image corresponding to the first image to be detected, and the fourth image to be detected in the image sequence to be displayed can be replaced based on the target display image corresponding to the fourth image to be detected, so as to obtain an updated image sequence to be displayed, and the updated image sequence to be displayed can be placed in the frame buffer, and then the image in the frame buffer can be displayed in the display interface based on the screen refresh rate.

[0079] In the disclosed embodiment, a sequence of images to be displayed is sampled to obtain a sequence of images to be detected including a first image to be detected, and a content detection is performed on the first image to be detected to obtain a first detection result. When the first detection result contains preset content, a third number of frames of images adjacent to the first image to be detected and located after the first image to be detected in the sequence of images to be displayed are determined as fourth images to be detected, and content detection is performed on each frame of the fourth image to be detected to obtain a fourth detection result corresponding to each frame of the fourth image to be detected. According to the fourth detection result corresponding to each frame of the fourth image to be detected, a target display image corresponding to each frame of the fourth image to be detected is determined. Finally, the target display image is displayed in the display interface. Thus, when the sequence of images to be displayed is sampled for content detection, if the first detection result contains preset content, the image after the first image to be detected in the sequence of images to be displayed can be subjected to content detection, and the corresponding target display image can be determined according to the fourth detection result, so that the image to be displayed containing the preset content can be more accurately determined while reducing the workload of content detection, thereby improving the accuracy of intercepting bad content.

[0080] Figure 4 A flow chart of a content display method provided by an embodiment of the present disclosure is shown as follows: Figure 4 As shown, the content display method may include the following steps:

[0081] Step 401: Sample a sequence of images to be displayed to obtain a sequence of images to be detected including a first image to be detected.

[0082] The image sequence to be displayed may be a rendered image sequence output by a surface synthesizer.

[0083] In some embodiments, the image sequence to be displayed may be sampled according to a preset sampling rate to obtain the image sequence to be detected. The preset sampling rate may be once per second or twice per second. This disclosure does not limit this.

[0084] In some embodiments, the sampling rate can be determined according to the current refresh rate of the display interface, and then the sequence of images to be displayed is sampled based on the sampling rate to obtain a sequence of images to be detected including the first image to be detected. The higher the refresh rate, the smaller the sampling rate, so that the number of sampling times can be reduced, and then the number of images to be detected can be reduced, avoiding display freezes caused by too many images to be detected.

[0085] Step 402: Perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered.

[0086] The specific implementation form of step 402 can refer to the detailed description in other embodiments of the present disclosure, and will not be described in detail here.

[0087] Step 403, when the first detection result includes preset content, a first number of frame images adjacent to the first image to be detected and located after the first image to be detected in the sequence of images to be displayed are determined as third images to be detected.

[0088] The first number may be 2, 3, etc. This disclosure does not limit this.

[0089] For example, if the first image to be detected containing the preset content is the third frame in the sequence of images to be displayed, the fourth and fifth frames of images in the sequence of images to be displayed are determined as the third image to be detected.

[0090] Step 404 , performing content detection on each frame of the third image to be detected to obtain a second detection result corresponding to each frame of the third image to be detected.

[0091] In the embodiment of the present disclosure, the specific implementation form of performing content detection on the third image to be detected can refer to the specific description of performing content detection on the first image to be detected in the embodiment of the present disclosure, and will not be described in detail here.

[0092] Step 405 , when the first number of second detection results all contain preset content, the first image to be detected is processed to generate a target display image corresponding to the first image to be detected.

[0093] It should be noted that the content detection model performs content detection on the first image to be detected, and the accuracy of the first detection result obtained is not 100%, and there may be errors, which may cause the first detection result to be inaccurate. In the embodiment of the present disclosure, in order to avoid the errors caused by the content detection model, it is possible to further combine the second detection result corresponding to the third image to be detected to determine whether to process the first image to be detected, and when the second detection result corresponding to the third image to be detected contains preset content, the first image to be detected is processed to obtain the corresponding target display image.

[0094] In some embodiments, the third image to be detected may also be processed to obtain a target display image corresponding to the third image to be detected.

[0095] In some embodiments, a preset image can be determined as the target display image corresponding to the third image to be detected; or, when the second detection result includes a target area in the third image to be detected with preset content, the target area in the third image to be detected is replaced with the preset image to obtain the target display image corresponding to the third image to be detected.

[0096] Step 406 , respectively determining the third detection results and the target display images corresponding to the images after the third image to be detected in the sequence of images to be displayed, until the third detection results corresponding to a second number of consecutive frames of images do not contain the preset content.

[0097] It should be noted that if both the first image to be detected and the third image to be detected contain preset content, there is a high probability that the image after the third image to be detected in the sequence of images to be displayed contains the preset content. Therefore, in the embodiment of the present disclosure, the third detection result and the target display image corresponding to the image after the third image to be detected in the sequence of images to be displayed will continue to be determined. However, if the detection is stopped when the third detection result corresponding to any frame image does not contain the preset content, it may cause the image containing inappropriate content to be displayed in the display interface. Furthermore, in the embodiment of the present disclosure, the third detection result and the corresponding target display image will be stopped when the third detection results corresponding to a second number of consecutive frame images do not contain the preset content. Thereby, it can be further ensured that inappropriate content will not be displayed.

[0098] The second number may be 3, 4, etc. This disclosure does not limit this.

[0099] For example, the first image to be detected is the 3rd frame in the sequence of images to be displayed, and the third image to be detected is the 4th and 5th frames in the sequence of images to be displayed. If the 3rd, 4th and 5th frames all contain inappropriate content, the 6th, 7th, 8th, ..., frames in the sequence of images to be displayed will be subjected to content detection to obtain the third detection result, and the corresponding target display image will be determined, until the 10th, 11th and 12th frames do not contain inappropriate content, then the content detection of the 13th frame and the operation of determining the target display image will be stopped. Among them, if the 6th or 8th frame among the 6th, 7th, 8th and 9th frames does not contain inappropriate content, the corresponding target display image will also be determined.

[0100] Step 407: display the target display image in the display interface.

[0101] In some embodiments, the first image to be detected in the image sequence to be displayed can be replaced based on the target display image corresponding to the first image to be detected, the third image to be detected in the image sequence to be displayed can be replaced based on the target display image corresponding to the third image to be detected, and the image after the third image to be detected can be replaced based on the target display image corresponding to the image after the third image to be detected, so as to obtain an updated image sequence to be displayed, and the updated image sequence to be displayed can be put into the frame buffer, and then the image in the frame buffer can be displayed in the display interface based on the screen refresh rate.

[0102] In the disclosed embodiment, a sequence of images to be displayed is sampled to obtain a sequence of images to be detected including a first image to be detected, content detection is performed on the first image to be detected to obtain a first detection result, and when the first detection result contains preset content, a first number of frame images in the sequence of images to be displayed that are adjacent to the first image to be detected and located after the first image to be detected are determined as third images to be detected, content detection is performed on each frame of the third image to be detected to obtain a second detection result corresponding to each frame of the third image to be detected, and when the first number of second detection results all contain the preset content, the first image to be detected is processed to generate a target display image corresponding to the first image to be detected, and then the third detection result and the target display image corresponding to the image located after the third image to be detected in the sequence of images to be displayed are determined respectively, until the third detection results corresponding to a second number of consecutive frame images do not contain the preset content, and finally the target display image is displayed in the display interface. Therefore, in combination with the second detection result corresponding to the third image to be detected, it is determined whether to process the first image to be detected, which can avoid errors in the content detection results and affect the user experience, and continue to determine the third detection result and the target display image corresponding to the image after the third image to be detected in the image sequence to be displayed, until the third detection results corresponding to a second number of consecutive frames of images do not contain the preset content, which can further ensure that inappropriate content will not be displayed.

[0103] In some embodiments, when the display duration of the target display image is greater than a duration threshold, the control device is powered off.

[0104] The duration threshold may be 1 minute, 30 seconds, 5 minutes, etc. This disclosure does not limit this.

[0105] It should be noted that if the display time of the target display image is greater than the time threshold, it means that the currently running application has been trying to show inappropriate content to the user. In order to avoid the user from browsing inappropriate content due to missed detection, false detection, etc., the device can be turned off to prevent the user from browsing inappropriate content.

[0106] In some embodiments, when the display duration of the target display image is greater than a duration threshold and the first detection result includes preset content in a target area in the first image to be detected, the target application currently running in the target area is closed.

[0107] It should be noted that the terminal display interface may display multiple applications at the same time. If all currently displayed applications are directly closed, the user experience may be affected. Therefore, the target application displaying the preset content can be determined according to the specific position of the preset content in the first image to be detected, and the target application can be closed, thereby ensuring that the user can normally experience the application with normal content while avoiding the user from browsing the application with abnormal content.

[0108] In order to implement the above embodiments, the present disclosure also proposes a content display device.

[0109] Figure 5 A schematic diagram of the structure of a content display device provided in an embodiment of the present disclosure.

[0110] like Figure 5 As shown, the content display device 500 may include:

[0111] The detection module 501 is used to perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered;

[0112] A determination module 502, configured to determine a target display image corresponding to the first image to be detected when the first detection result contains preset content;

[0113] The display module 503 is used to display the target display image in the display interface.

[0114] In some embodiments, a sampling module is further included for:

[0115] The sequence of images to be displayed is sampled to obtain a sequence of images to be detected including a first image to be detected.

[0116] In some embodiments, the system further includes a first processing module for:

[0117] Determine an image that is located after the first image to be detected and before the second image to be detected in the sequence of images to be displayed as a first image to be processed, wherein the second image to be detected is an image that is adjacent to the first image to be detected in the sequence of images to be detected and is located after the first image to be detected;

[0118] The first image to be processed is processed to generate a target display image corresponding to the first image to be processed.

[0119] In some embodiments, the determination module 502 is configured to:

[0120] Determine a first number of frames of images adjacent to the first image to be detected and located after the first image to be detected in the sequence of images to be displayed as third images to be detected;

[0121] Performing content detection on each frame of the third image to be detected to obtain a second detection result corresponding to each frame of the third image to be detected;

[0122] In a case where the first number of second detection results all contain preset content, the first image to be detected is processed to generate a target display image corresponding to the first image to be detected.

[0123] In some embodiments, the system further includes a second processing module for:

[0124] The third detection results and the target display images corresponding to the images after the third image to be detected in the sequence of images to be displayed are respectively determined until the third detection results corresponding to a second number of consecutive frames of images do not contain the preset content.

[0125] In some embodiments, a third processing module is further included, configured to:

[0126] Determine a third number of frame images, which are adjacent to the first image to be detected and located after the first image to be detected in the sequence of images to be displayed, as fourth images to be detected;

[0127] Performing content detection on each frame of the fourth image to be detected to obtain a fourth detection result corresponding to each frame of the fourth image to be detected;

[0128] According to the fourth detection result corresponding to each frame of the fourth image to be detected, a target display image corresponding to each frame of the fourth image to be detected is determined.

[0129] In some embodiments, the determination module 502 is configured to:

[0130] Determine the preset image as the target display image corresponding to the first image to be detected; or

[0131] In the case that the first detection result includes a target area in the first image to be detected with preset content, the target area in the first image to be detected is replaced with the preset image to obtain a target display image corresponding to the first image to be detected.

[0132] In some embodiments, a control module is further included for:

[0133] When the display duration of the target display image is greater than the duration threshold, the device is controlled to shut down; or,

[0134] When the display duration of the target display image is greater than the duration threshold and the first detection result includes preset content in the target area in the first image to be detected, the target application currently running in the target area is closed.

[0135] In some embodiments, the detection module 501 is used to:

[0136] When the child mode is turned on, content detection is performed on the first image to be detected to obtain a first detection result.

[0137] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0138] The content display device of the disclosed embodiment performs content detection on the first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered, and then, if the first detection result contains preset content, determines the target display image corresponding to the first image to be detected, and finally displays the target display image in the display interface. Thus, after the image is rendered and before it is displayed, the image can be content detected, and if the image contains preset content, the target display image that does not contain the preset content can be displayed in the display interface, so that the bad content can be intercepted before the image is displayed, thereby avoiding the display of the bad content from the root and improving the accuracy of intercepting the bad content.

[0139] In order to implement the above embodiments, the present disclosure further proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the content display method proposed in the above embodiments of the present disclosure is implemented.

[0140] Figure 6 A block diagram of an exemplary electronic device suitable for implementing embodiments of the present disclosure is shown. Figure 6 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0141] like Figure 6 As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0142] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0143] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.

[0144] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0145] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0146] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0147] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0148] In order to implement the above embodiments, the present disclosure further proposes a chip, including: the chip includes a processing circuit, and the processing circuit is configured to execute the content display method provided by the above embodiments.

[0149] Figure 7 is a schematic diagram of the structure of the chip proposed in the embodiment of the present disclosure. Figure 7 The structure of the chip 700 is shown, but is not limited to this.

[0150] The chip 700 includes a processing circuit 701 , and the processing circuit 701 is configured to execute any of the above methods.

[0151] In some embodiments, the chip 700 further includes one or more interface circuits 702. Optionally, the interface circuit 702 is connected to the memory 703, and the interface circuit 702 can be used to receive signals from the memory 703 or other devices, and the interface circuit 702 can be used to send signals to the memory 703 or other devices. For example, the interface circuit 702 can read instructions stored in the memory 703 and send the instructions to the processing circuit 701.

[0152] In some embodiments, the interface circuit 702 performs at least one of the communication steps such as sending and / or receiving in the above method, and the processing circuit 701 performs other steps.

[0153] In some embodiments, terms such as interface circuit, interface, transceiver pin, and transceiver may be used interchangeably.

[0154] In some embodiments, the chip 700 further includes one or more memories 703 for storing instructions. Optionally, all or part of the memory 703 may be outside the chip 700.

[0155] In order to implement the above embodiments, the present disclosure further proposes a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, the content display method proposed in the above embodiments of the present disclosure is implemented.

[0156] The collection, storage, use, processing, transmission, provision and disclosure of user personal information involved in this disclosure shall comply with the relevant laws and regulations and shall not violate public order and good morals.

[0157] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0158] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0159] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0160] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0161] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0162] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0163] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0164] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0165] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A content display method, characterized in that: The method comprises: Performing content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered; In a case where the first detection result includes preset content, determining a target display image corresponding to the first image to be detected; The target display image is displayed in a display interface.

2. The method according to claim 1, characterized in that Before performing content detection on the first image to be detected to obtain a first detection result, the method further includes: The sequence of images to be displayed is sampled to obtain a sequence of images to be detected including the first image to be detected.

3. The method according to claim 2, characterized in that After determining the target display image corresponding to the first to-be-detected image, the method further includes: Determine an image in the sequence of images to be displayed that is located after the first image to be detected and before the second image to be detected as a first image to be processed, wherein the second image to be detected is an image that is adjacent to the first image to be detected in the sequence of images to be detected and is located after the first image to be detected; The first image to be processed is processed to generate a target display image corresponding to the first image to be processed.

4. The method according to claim 2, characterized in that: The determining of the target display image corresponding to the first to-be-detected image includes: Determine a first number of frames of images adjacent to the first image to be detected and located after the first image to be detected in the sequence of images to be displayed as third images to be detected; Performing content detection on each frame of the third image to be detected respectively to obtain a second detection result corresponding to each frame of the third image to be detected; In a case where the first number of second detection results all contain preset content, the first image to be detected is processed to generate a target display image corresponding to the first image to be detected.

5. The method according to claim 4, characterized in that After the first image to be detected is processed to generate a target display image corresponding to the first image to be detected, the method further includes: The third detection results and the target display images corresponding to the images after the third image to be detected in the sequence of images to be displayed are respectively determined until the third detection results corresponding to a second number of consecutive frames of images do not contain the preset content.

6. The method according to claim 2, characterized in that After determining the target display image corresponding to the first to-be-detected image, the method further includes: Determine a third number of frames of images, which are adjacent to the first image to be detected and located after the first image to be detected in the sequence of images to be displayed, as fourth images to be detected; Performing content detection on each frame of the fourth image to be detected respectively to obtain a fourth detection result corresponding to each frame of the fourth image to be detected; According to the fourth detection result corresponding to each frame of the fourth image to be detected, a target display image corresponding to each frame of the fourth image to be detected is determined.

7. The method according to claim 1, characterized in that The determining of the target display image corresponding to the first to-be-detected image includes: Determine a preset image as the target display image corresponding to the first image to be detected; or In the case where the first detection result includes preset content in a target area in the first image to be detected, the target area in the first image to be detected is replaced with the preset image to obtain a target display image corresponding to the first image to be detected.

8. The method according to claim 1, characterized in that: After displaying the target display image on the display interface, the method further includes: When the display time of the target display image is greater than the time threshold, controlling the device to shut down; or, When the display time of the target display image is greater than the time threshold and the first detection result includes a target area in the first image to be detected with preset content, a target application currently running in the target area is closed.

9. The method according to any one of claims 1 to 8, characterized in that: The performing content detection on the first image to be detected to obtain a first detection result includes: When the child mode is turned on, content detection is performed on the first image to be detected to obtain the first detection result.

10. A content display device, characterized in that: The device comprises: A detection module, configured to perform content detection on a first image to be detected to obtain a first detection result, wherein the first image to be detected is an image that has been rendered; A determination module, configured to determine a target display image corresponding to the first image to be detected when the first detection result contains preset content; The display module is used to display the target display image in a display interface.

11. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the content display method according to any one of claims 1 to 9 is implemented.

12. A chip, characterized in that: The chip comprises a processing circuit, and the processing circuit is configured to execute the content display method according to any one of claims 1-9.

13. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the content display method as described in any one of claims 1 to 9 is implemented.

Citation Information

Patent Citations

  • Network sensitive video detection method

    CN102014295A

  • Video processing method and related equipment

    CN111985419A

  • Video, picture and audio setting method and device

    CN112804584A

  • Application control method and device, electronic equipment and storage medium

    CN113645503A

  • Image recognition method and device and electronic equipment

    CN118334701A