Detection method, device, readable storage medium and program product for special effects

CN122841237APending Publication Date: 2026-09-29BYTEDANCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510387585.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-28
Publication Date
2026-09-29

AI Technical Summary

Technical Problem

[0003]用户创作的视觉特效在被应用到多媒体内容时,有可能会出现无法正确应用的现象

Benefits of technology

[0018]本实施例提供的用于特效的检测方法、设备、可读存储介质及程序产品,该方法通过针对检测模板应用特效;获取应用了所述特效后的检测模板的多个像素各自的第一像素值,以及在应用所述特效前所述检测模板中所述多个像素各自的初始像素值;基于所述多个像素的所述第一像素值和初始像素值的差异,确定所述特效是否能够被应用于多媒体内容,提供了对多个特效自动进行检测的方案。可以提高检测多个特效是否能够被应用于多媒体内容的检测效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122841237A_ABST
    Figure CN122841237A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a method and device for special effect detection, a readable storage medium and a program product. The method comprises: applying a special effect to a detection template; obtaining a first pixel value of each pixel of the detection template after the special effect is applied, and an initial pixel value of each pixel of the detection template before the special effect is applied; and determining whether the special effect can be applied to multimedia content based on a difference between the first pixel value and the initial pixel value of each pixel.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the fields of computer and image processing technology, and more particularly to a method, apparatus, readable storage medium, and program product for detecting special effects. Background Technology

[0002] Users can send various creative content to the application platform, such as user-created visual effects. These visual effects can then be applied to multimedia content to enhance its visual appeal.

[0003] User-created visual effects may not apply correctly when applied to multimedia content. Therefore, there is a need to test user-created visual effects. Summary of the Invention

[0004] This disclosure provides a method, apparatus, readable storage medium, and program product for detecting special effects.

[0005] In a first aspect, embodiments of this disclosure provide a method for detecting special effects, comprising:

[0006] Special effects are applied to the detection template;

[0007] Obtain the first pixel value of each of the multiple pixels in the detection template after the effect is applied, and the initial pixel value of each of the multiple pixels in the detection template before the effect is applied;

[0008] Based on the difference between the first pixel value and the initial pixel value of the plurality of pixels, it is determined whether the special effect can be applied to multimedia content.

[0009] Secondly, embodiments of this disclosure provide a detection device for special effects, comprising:

[0010] Application unit, used to apply special effects to the detection template;

[0011] The acquisition unit is used to acquire the first pixel value of each of the multiple pixels in the detection template after the special effect has been applied, and the initial pixel value of each of the multiple pixels in the detection template before the special effect has been applied.

[0012] The first detection unit is used to determine whether the special effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of the plurality of pixels.

[0013] Thirdly, embodiments of this disclosure provide an electronic device, including: a processor and a memory;

[0014] The memory stores computer-executed instructions;

[0015] The processor executes computer execution instructions stored in the memory, causing the at least one processor to perform the detection method for special effects as described in the first aspect and various possible designs of the first aspect.

[0016] Fourthly, embodiments of this disclosure provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the detection method for special effects as described in the first aspect and various possible designs of the first aspect.

[0017] Fifthly, embodiments of this disclosure provide a computer program product, including a computer program that, when executed by a processor, implements the detection method for special effects as described in the first aspect and various possible designs of the first aspect.

[0018] This embodiment provides a method, device, readable storage medium, and program product for detecting special effects. The method applies a special effect to a detection template; obtains the first pixel value of each pixel in the detection template after the special effect is applied, and the initial pixel value of each pixel in the detection template before the special effect is applied; based on the difference between the first pixel value and the initial pixel value of the multiple pixels, it determines whether the special effect can be applied to multimedia content, providing a scheme for automatically detecting multiple special effects. This can improve the efficiency of detecting whether multiple special effects can be applied to multimedia content. Attached Figure Description

[0019] To more clearly illustrate the technical solutions in the embodiments of this disclosure or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0020] Figure 1 Schematic flowchart of a detection method for special effects provided in embodiments of this disclosure Figure 1 ;

[0021] Figure 2 This is a schematic diagram of an application scenario;

[0022] Figure 3 This is a schematic diagram of an application scenario;

[0023] Figure 4 Schematic flowchart of a detection method for special effects provided in embodiments of this disclosure Figure 2 ;

[0024] Figure 5Schematic flowchart of a detection method for special effects provided in embodiments of this disclosure Figure 3 ;

[0025] Figure 6 This is a structural block diagram of my device provided in the embodiments of this disclosure;

[0026] Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0027] To make the objectives, technical solutions, and advantages of the embodiments of this disclosure clearer, the technical solutions of the embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.

[0028] Users can create special effects (in this disclosure, special effects refer to visual effects) and publish them to the application platform. The aforementioned special effects may include, but are not limited to, one or more of the following: beautification effects, text effects, animation effects, transition effects, filter effects, lighting effects, deformation effects, particle effects, etc.

[0029] In the aforementioned application platform, the user or other users can apply special effects to multimedia content (such as video content or image content).

[0030] In practice, some special effects cannot be applied to multimedia content correctly due to format limitations. For example, special effects applied to portrait-oriented multimedia content may not be applied to landscape-oriented video content, resulting in the effects being missing. Alternatively, applying special effects may cause the multimedia content with the effects to appear upside down (e.g., vertically reversed).

[0031] Therefore, there is currently a need to detect whether special effects can be accurately applied to multimedia content. In related technologies, manual inspection can be used to check whether special effects can be accurately applied to multimedia content. However, the above-mentioned detection methods are unsuitable for detecting massive amounts of special effects due to low efficiency and high cost.

[0032] The solution disclosed herein provides a detection template with known pixel values. For a special effect to be published, the effect is applied to the detection template. The difference between the first pixel value of the detection template with the applied effect and the initial pixel value of the detection template is used to detect whether the special effect can be applied to multimedia content. Using this solution, multiple special effects can be detected quickly, improving the efficiency and accuracy of the detection results.

[0033] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the detection method for special effects provided in this disclosure. Figure 1 ,like Figure 1 As shown, the method includes the following steps:

[0034] S101: Apply special effects to the detection template.

[0035] In this embodiment, the execution entity of the special effects detection method can be an application client running on a terminal device, or it can be an application server.

[0036] A detection template with known pixel values ​​of multiple pixels can be preset. The detection template may include an image of a preset object, and may also include one or more graphics.

[0037] In some implementations, the detection template may include different detection areas, and different detection areas may be configured with different multimedia content elements, including but not limited to colors and images. The images may include facial images.

[0038] Please refer to Figure 2 , Figure 2 This is a schematic diagram of a testing template provided in this disclosure. Figure 2 As shown, the detection template 20 may include four detection areas (detection areas 21, 22, 23 and 24). Different multimedia content elements can be set in each detection area, and the pixel values ​​of multiple pixels in each detection area with multimedia content elements can be determined.

[0039] In some implementations, to improve computational efficiency, multiple pixels within each detection area can be set to the same color, while pixels in different detection areas can have different colors.

[0040] like Figure 2 As shown, detection areas 21, 22, 23, and 24 can be filled with different colors. For example, different colors could include red, green, blue, and gray. Other colors that meet the requirements for color differentiation can also be used.

[0041] In addition, a face image can be set in at least one of the above-mentioned multiple detection areas.

[0042] In these implementations, by setting different detection areas in the detection template, setting different colors in different detection areas, and setting the same color in each detection area, the processing complexity can be simplified and the efficiency of special effects detection can be further improved.

[0043] In some implementations, a face image is set in at least one of the above-mentioned multiple detection areas.

[0044] In many applications, special effects need to be applied to images containing human faces. These effects are applied on the condition that the image contains a face; if the image does not contain a face, these effects cannot be applied. For example, with beautification filters, if the detection template does not include a face image, the beautification filter cannot be applied to the detection template, thus making it impossible to determine whether the effect can be correctly applied to the multimedia content.

[0045] Schematic representation: The above face image is a frontal face image.

[0046] In these implementations, by setting a face image in the detection template, it is possible to detect whether an effect can be applied to a face image.

[0047] In some implementations, the aforementioned detection template may include a landscape display detection template and a portrait display detection template; the landscape display detection template is used to detect whether special effects can be applied to landscape designs or multimedia content displayed in a landscape orientation. The portrait display detection template is used to detect whether special effects can be applied to portrait designs or multimedia content displayed in a portrait orientation.

[0048] Figure 2 This is a schematic diagram of a landscape-style display of a detection template. Figure 3 This is a schematic diagram of a vertical screen display detection template.

[0049] To illustrate, the detection template size is set to 1920×1080 resolution for landscape display and 1080×1920 resolution for portrait display.

[0050] The special effects here can be any one of the multiple special effects to be detected, or a group of special effects.

[0051] The aforementioned special effects may include one or more of the following: beautification effects, text effects, animation effects, transition effects, filter effects, lighting effects, deformation effects, particle effects, etc.

[0052] It can call the special effects automated rendering engine, apply special effects to the detection template, and obtain the effect template after applying the special effects.

[0053] S102: Obtain the first pixel value of each pixel in the detection template after the special effect is applied, and the initial pixel value of each pixel in the detection template before the special effect is applied.

[0054] Given that multimedia content elements have been filled into the visual inspection template, the pixel values ​​of multiple pixels in the inspection template are known. For example, the pixel value of each pixel in each color-filled inspection region is the color value of that pixel. Figure 2 For example, if the color of detection area 21 is red, the color of 22 is green, the color of detection area 23 is blue, and the color of the non-face image part of detection area 24 is gray, then the pixel value of each pixel in detection area 21 is (255, 0, 0), the pixel value of each pixel in detection area 22 is (0, 255, 0), the pixel value of each pixel in detection area 23 is (0, 0, 255), and the pixel value of each pixel in the non-face image part of detection area 24 is (128, 128, 128).

[0055] The initial pixel values ​​of the aforementioned pixels can be pre-stored. When detecting special effects, the initial pixel values ​​of each pixel can be retrieved from the storage device storing these initial pixel values.

[0056] In some examples, initial pixel values ​​for multiple pixels can also be obtained from the image data of the detection template.

[0057] S103: Based on the difference between the first pixel value and the initial pixel value of multiple pixels, determine whether the effect can be applied to multimedia content.

[0058] For each pixel, the difference between the first pixel value and the initial pixel value can be calculated, such as the difference in color value, brightness value, contrast value, etc. for each pixel.

[0059] Assuming a special effect is applied to the detection template, the pixel values ​​(e.g., color, brightness, or contrast) of at least some pixels in the detection template should change compared to before the special effect was applied. The difference between pixel values ​​can be used to detect whether the special effect can be accurately applied to the detection template, thereby detecting whether the special effect can be applied to multimedia content.

[0060] To illustrate, if the difference between the first pixel value and the initial pixel value is too small, for example, close to 0, it can be considered that the effect has not been applied to the detection template, that is, the effect will be missing after the effect is applied to the multimedia content.

[0061] To illustrate, if the difference between the first pixel value and the initial pixel value is large, for example, greater than the preset threshold 0, it can be considered that the special effect has been applied to the detection template, that is, the special effect can be applied to multimedia content.

[0062] In this embodiment, special effects are applied to the detection template; the first pixel values ​​of multiple pixels in the detection template after the special effects are applied, and the initial pixel values ​​of multiple pixels in the detection template before the special effects are applied are obtained; based on the difference between the first pixel values ​​and the initial pixel values ​​of multiple pixels, it is determined whether the special effects can be applied to multimedia content, thus realizing automatic detection of special effects, which can improve the detection efficiency of whether special effects can be applied to multimedia content, and can quickly detect whether a large number of special effects can be applied to multimedia content.

[0063] Please refer to Figure 4 , Figure 4 A flowchart illustrating the detection method for special effects provided in this disclosure embodiment. Figure 2 .like Figure 2 The method, as shown, includes the following steps:

[0064] S401: Flip the detection template according to the preset axis of symmetry.

[0065] S402: Apply special effects to the flipped detection template.

[0066] In this embodiment, the execution subject of the detection method for special effects can be a terminal device, specifically an application client applied to the terminal device.

[0067] The method provided in this embodiment is used to detect whether content will be inverted when special effects are applied to multimedia content.

[0068] The detection template can be flipped along a preset axis of symmetry to obtain a flipped detection template. An automated effects rendering engine can then automatically apply effects to the flipped detection template.

[0069] The aforementioned axis of symmetry can be either vertically symmetrical or horizontally symmetrical.

[0070] S403: Obtain the first pixel value of each of the multiple pixels in the detection template after the special effect is applied, and the initial pixel value of each of the multiple pixels in the detection template before the special effect is applied;

[0071] The above initial pixel values ​​are the pixel values ​​of the pixels in the detection template before the detection template is flipped according to the preset axis of symmetry.

[0072] S404: Determines whether an effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of multiple pixels.

[0073] For each of the aforementioned pixels, the difference between the first pixel value and the initial pixel value can be calculated. Based on the calculated difference, it can be determined whether the effect will cause content inversion when applied to multimedia content.

[0074] In this embodiment, the detection template is flipped along a preset axis of symmetry before applying the special effect. The special effect is then applied to the flipped detection template. Finally, the first pixel values ​​of multiple pixels in the detection template after the special effect is applied are compared with the initial pixel values ​​of the detection template to determine whether the special effect causes content flipping when applied to multimedia content. This achieves the detection of content inversion caused by the special effect being applied to multimedia content.

[0075] In some optional embodiments of this example, the detection template can be a landscape display detection template, and the method further includes:

[0076] Detect black border areas; where the black border area is the filled area outside the detection area in the detection template; each pixel in the black border area is filled with the same preset pixel value.

[0077] Step S403 above includes the following sub-steps:

[0078] First, remove pixels in the black border area from multiple pixels, and determine the difference between the first pixel value and the initial pixel value of the remaining multiple pixels.

[0079] Secondly, determine whether the special effects can be applied to landscape multimedia content based on the differences.

[0080] In some applications, the black border area serves as fill space outside the detection area in the detection template; each pixel within the black border area is filled with the same preset pixel value. Typically, upper and lower black border areas are used to fill the detection area, resulting in a widescreen display effect between the upper and lower detection areas.

[0081] To detect multimedia content displayed in landscape mode using special effects, a landscape display detection template should be used. When using the landscape display detection template to check whether special effects cause content to be inverted, the black border fill area needs to be excluded.

[0082] The aforementioned black border area refers to the detection area outside the detection region where the entire row is filled with the same preset pixel value. The black border area includes the upper black border area and the lower black border area.

[0083] The top black border area can be determined by checking whether the pixel value of each row of pixels is the preset pixel value from top to bottom.

[0084] Starting from the first row, it can be determined whether the pixel values ​​of all pixels in that row are equal to the preset pixel values. If so, the row belongs to the filled area; otherwise, it does not. This process continues until a row of pixels is found to have pixel values ​​that are not all equal to the preset pixel values; that row then forms the boundary of the upper black border area.

[0085] Similarly, the lower black border area can be determined by checking whether the pixel value of each row of pixels is the preset pixel value from bottom to top.

[0086] It can detect black border areas in the displayed image data of a detection template without special effects applied on the screen, thereby detecting the upper and lower black border areas.

[0087] For the detection template, after removing the aforementioned black border region from the initial image data of the detection template, the initial pixel values ​​of each pixel in the remaining detection region are obtained. After flipping and applying the effect, the first pixel values ​​of each pixel in the remaining detection region are obtained from the image data of the detection template after removing the aforementioned black border region.

[0088] The above calculates the difference between the first pixel value and the initial pixel value of each of the multiple pixels in the remaining detection area. Based on this difference, it is determined whether content inversion occurs when the special effect is applied to multimedia content. Specifically, if the difference is less than a preset threshold, it can be determined that content inversion will not occur when the special effect is applied to multimedia content. If the difference is greater than the preset threshold, it can be determined that content inversion will occur when the special effect is applied to multimedia content.

[0089] In these implementations, by removing the black border area, applying special effects to the flipped detection template, and detecting the special effects based on the difference in pixel values ​​before and after the application of the special effects, the accuracy of the detection results can be improved.

[0090] Please continue to refer to this. Figure 5 , Figure 5 This is a schematic diagram of the detection method for special effects provided in this disclosure. Figure 3 ,like Figure 5 As shown, the method includes the following steps:

[0091] S501: Apply special effects to the detection template; the detection template includes multiple detection areas, each filled with different multimedia content elements; at least one detection area includes a face image.

[0092] The aforementioned preset detection template may include different detection regions, each with different multimedia content elements, including colors and preset images. The preset images include facial images. At least one region includes a facial image.

[0093] To illustrate, the above face image is a frontal face image.

[0094] In many applications, special effects are applied to facial images. These effects are conditional on the presence of a face in the image; if no face is present, these effects cannot be applied. For example, with beautification filters, if the detection template does not include a facial image, the beautification filter cannot be applied to the template, thus failing to accurately detect whether the effect can be applied to multimedia content.

[0095] By setting a face image in the detection template, it is possible to detect special effects applied to faces.

[0096] In some implementations, the multiple detection regions include four detection regions arranged in a two-row, two-column configuration. Pixels within each detection region have the same color, while pixels in different detection regions have different colors. Please refer to [reference needed]. Figure 2 , Figure 2 This is a schematic diagram of a testing template provided in this disclosure. Figure 2 As shown, the detection template 20 may include four detection areas (detection areas 21, 22, 23 and 24). Different multimedia content elements can be set in each detection area, and the pixel values ​​of multiple pixels in each detection area with multimedia content elements can be determined.

[0097] In some implementations, to improve computational efficiency, the multimedia content elements within each detection area can be set to the same color, while different detection areas can have different colors.

[0098] In these implementations, the color and texture of the detection template are simple, making it easier to change the color and texture after applying special effects. This can improve the accuracy of the detection results and also increase the detection efficiency.

[0099] like Figure 2 As shown, the special effects detection template is a landscape-oriented detection template 20. Detection areas 21, 22, 23, and 24 can be filled with different colors. For example, different colors could include red, green, blue, and gray. Other colors that meet the requirements for color differentiation can also be used.

[0100] In addition, a face image can be placed in at least one of the above-mentioned detection areas. For example, face 25 is included in area 24.

[0101] In these implementations, by setting different detection areas in the detection template, setting different colors in different detection areas, and setting the same color in each detection area, the processing complexity can be simplified and the detection efficiency can be improved.

[0102] In some implementations, the aforementioned detection template includes a landscape display detection target and a portrait display detection template; the landscape display detection template is used to detect whether special effects can be used in landscape design or multimedia content set for landscape display. The portrait display detection template is used to detect whether special effects can be used in portrait design or multimedia content set for portrait display.

[0103] Figure 2 This is a schematic diagram of a landscape-style display of a detection template. Figure 3 This is a schematic diagram of a portrait display template. The detection template is portrait display detection template 30. Detection areas 31, 32, 33, and 34 can be filled with different colors. For example, different colors could include red, green, blue, and gray. Other colors that can achieve sufficient color differentiation can also be used.

[0104] In addition, a face image 35 can be set in at least one detection region (e.g., region 34) of the above-mentioned multiple detection regions.

[0105] To illustrate, the detection template size for landscape display is set to 1920×1080 resolution, and the detection template size for portrait display is set to 1080×1920 resolution.

[0106] The special effects here can be any one of the multiple detection special effects to be detected, or a group of special effects.

[0107] The aforementioned special effects may include one or more of the following: beautification effects, text effects, animation effects, transition effects, filter effects, lighting effects, deformation effects, particle effects, etc.

[0108] It can call the special effects automated rendering engine to apply special effects to the display detection template and obtain the effect template after applying the special effects.

[0109] S502: Obtain the first pixel value of each pixel in the detection template after the special effect is applied, and the initial pixel value of each pixel in the detection template before the special effect is applied.

[0110] S503: For each detection area, the pixel value difference of each pixel in the detection area is determined based on the first pixel value and the initial pixel value of each of the multiple pixels in the detection area.

[0111] In one example, for each pixel in the detection region, the difference between the first pixel value and the initial pixel value can be calculated, and the absolute value of the difference can be taken as the pixel value difference of that pixel.

[0112] S504: Based on the differences in pixel values ​​corresponding to multiple pixels in multiple detection areas, detect whether the special effect can be applied to multimedia content.

[0113] It can be determined whether the difference in pixel value corresponding to each pixel in each detection area is less than a preset threshold. If so, the effect has not been applied to the detection template, and therefore it can be determined that the effect cannot be applied to multimedia content.

[0114] Different special effects can affect various aspects of multimedia content (such as color adjustment, lighting changes, and object deformation). By dividing the detection template into different detection areas and setting corresponding multimedia content elements (such as color) for each area, a more detailed analysis of the impact of each special effect can be achieved. For example, some special effects may change the brightness or contrast within a specific color range; by monitoring these detection areas individually, the specific impact of the effects can be captured more accurately.

[0115] Setting different multimedia content elements for different detection areas can help enhance the contrast between the target and the background, making the changes after applying special effects more obvious. This can be used to detect subtle changes, such as edge processing, shadow addition, or color correction.

[0116] This solution is applicable to detecting various types of special effects, including but not limited to compositing, 3D modeling, and particle effects. Different types of special effects react differently to multimedia content elements (such as color and brightness). By setting different multimedia content elements for different detection areas, it is possible to simulate the actual conditions under various special effects application scenarios, and comprehensively evaluate the performance of special effects when applied to multimedia content.

[0117] Because the detection template includes different detection areas, and different multimedia content elements are set in each detection area, the effectiveness and accuracy of special effects detection can be improved. It can also increase the range of special effects to which the detection template is applicable.

[0118] In this embodiment, by providing detection templates that include different detection areas and setting different multimedia content elements in the detection templates, the effects are detected based on the differences between pixel values ​​in multiple detection areas before and after the application of the effects. This allows the detection templates to be applied to multiple effects, increasing the range of effects to which the detection templates are applicable, and also improving the effectiveness and accuracy of the effects detection results.

[0119] In some optional implementations of this embodiment, step S504 includes the following steps:

[0120] First, for each detection region, remove multiple rows or columns of pixels that are adjacent to other detection regions from among the multiple pixels in that detection region;

[0121] Secondly, for multiple pixels after removing multiple rows or columns of pixels adjacent to other detection areas, calculate the difference between the first pixel value and the initial pixel value corresponding to these multiple pixels.

[0122] Multiple detection areas are each set with their own corresponding multimedia content elements. During the process of applying the multimedia content elements to each detection area, reasonable differences in pixel values ​​may be caused by geometric deformation and / or changes in pixel values ​​of the detection template. These differences may affect the accuracy of the judgment.

[0123] Therefore, for each detection region, multiple rows or columns of pixels adjacent to other detection regions can be removed from the image data of the detection template. In other words, the pixel differences corresponding to these rows and columns are not used for judgment, thereby improving the accuracy of the detection results.

[0124] In some optional implementations of this embodiment, step S504 includes the following steps:

[0125] First, for each detection region, calculate the maximum difference and the mean difference corresponding to that detection region.

[0126] For each detection region, the maximum difference can be determined from the pixel differences of multiple pixels within that region. Additionally, the average pixel differences of multiple pixels within that detection region can be calculated as the average difference for that region.

[0127] Next, obtain the first preset threshold and the second preset threshold corresponding to each detection area.

[0128] The first and second preset thresholds mentioned above can be set according to different application scenarios. No restrictions are imposed here.

[0129] The first preset thresholds corresponding to multiple detection regions can be the same or different. The second preset thresholds corresponding to multiple detection regions can be the same or different.

[0130] In some application scenarios, the first preset threshold for each detection area corresponding to the landscape display detection template can be different from the second preset threshold for each detection area corresponding to the landscape display detection template.

[0131] Furthermore, for each detection region, a first relationship between the maximum value in the detection region and the corresponding first preset threshold is determined; and a second relationship between the mean value in the detection region and the corresponding second preset threshold is determined.

[0132] Finally, based on the first and second size relationships corresponding to each detection area, it is determined whether the special effect can be applied to multimedia content.

[0133] In these implementations, special effects are detected by having multiple detection regions each corresponding to the first and second size relationships, thereby improving the efficiency of special effects detection.

[0134] In some application scenarios, the determination of whether special effects can be applied to multimedia content is based on the first and second size relationships corresponding to each detection area, including:

[0135] In response to the fact that the maximum value of the first size relationship indicator corresponding to each detection area is less than the first threshold, and the average value of the second size relationship indicator corresponding to each detection area is less than the second threshold, it is determined that the special effect cannot be applied to the multimedia content.

[0136] In these application scenarios, by ensuring that the maximum difference value of each detection area is less than a first threshold and the average difference value is less than a second preset threshold, it can be determined that the special effect cannot be applied to multimedia content, thereby realizing the detection of special effects that cannot be applied to multimedia content.

[0137] Corresponding to the detection method for special effects in the above embodiments, Figure 6 This is a structural block diagram of a detection device for special effects provided in an embodiment of this disclosure. For ease of explanation, only the parts relevant to the embodiments of this disclosure are shown. (Refer to...) Figure 6 The device includes: an application unit 601, an acquisition unit 602, and a detection unit 603. Among them,

[0138] Application unit 601 is used to apply special adjacency effects to the detection template;

[0139] The acquisition unit 602 is used to acquire the first pixel value of each of the multiple pixels in the detection template after the special effect is applied, and the initial pixel value of each of the multiple pixels in the detection template before the special effect is applied.

[0140] The first detection unit 603 is used to determine whether an effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of multiple pixels.

[0141] The special effects detection device provided in this embodiment acquires the first pixel value of each pixel in the detection template after the special effects have been applied, and the initial pixel value of each pixel in the detection template before the special effects have been applied, through the acquisition unit. The first detection unit 603 determines whether the special effects can be applied to multimedia content based on the difference between the first pixel values ​​and the initial pixel values ​​of the multiple pixels, thereby realizing automatic detection of special effects. This can improve the detection efficiency of whether special effects can be applied to multimedia content and can quickly detect whether a large number of special effects can be applied to multimedia content.

[0142] In some embodiments, the application unit 601 is further configured to:

[0143] The detection template is flipped according to a preset axis of symmetry;

[0144] The method applies special effects to the flipped detection template. Furthermore, by flipping the detection template along a preset axis of symmetry before applying the effects, and then comparing the first pixel values ​​of multiple pixels in the effect-treated template with the initial pixel values ​​of the original template, it is determined whether the effects cause content flipping when applied to multimedia content. This achieves the detection of content inversion caused by special effects applied to multimedia content.

[0145] In some embodiments, the detection template is a landscape display detection template, and the device 60 further includes a second detection unit (not shown in the figure), the second detection unit being used for:

[0146] Detect black border areas; where the black border area is the filled area outside the detection area in the detection template; each pixel in the black border area is filled with the same preset pixel value; and

[0147] The first detection unit 603 is further used for:

[0148] Remove pixels from the black border region from multiple pixels and determine the difference between the first pixel value and the initial pixel value of the remaining pixels;

[0149] Determine whether the special effects can be applied to landscape multimedia content based on the differences.

[0150] In summary, by removing the black border area, applying special effects to the flipped detection template, and detecting the effects based on the difference in pixel values ​​before and after the application, the accuracy of the detection results can be improved.

[0151] In some embodiments, the detection template includes multiple detection areas, and different detection areas are filled with different multimedia content elements.

[0152] At least one detection area includes a face image.

[0153] In summary, by setting a face image in the detection template, it is possible to detect whether special effects can be applied to a face image.

[0154] In some embodiments, the plurality of detection regions include four detection regions arranged in two rows and two columns, wherein the pixel color in each detection region is the same, and the pixel color in different detection regions is different.

[0155] In summary, the simplicity of detecting the color and texture of the template makes it easier to change the color and texture after applying special effects, which can improve the accuracy of the detection results and also increase the detection efficiency.

[0156] In some embodiments, the first detection unit 603 is further configured to:

[0157] For each detection region, the pixel value difference of each pixel in the detection region is determined based on the first pixel value and the initial pixel value of each pixel in the detection region.

[0158] Based on the differences in pixel values ​​corresponding to multiple pixels in multiple detection areas, it is determined whether the special effect can be applied to multimedia content.

[0159] In summary, by providing detection templates that include different detection areas and setting different multimedia content elements in the detection templates, and detecting special effects based on the differences in pixel values ​​between multiple detection areas before and after applying the special effects, the detection templates can be applied to multiple special effects, thereby increasing the range of special effects to which the detection templates are applicable and improving the effectiveness and accuracy of the special effects detection results.

[0160] In some embodiments, the first detection unit 603 is further configured to:

[0161] For each detection region, calculate the maximum difference and the mean difference corresponding to that detection region;

[0162] Obtain the first preset threshold and the second preset threshold corresponding to each detection region;

[0163] For each detection region, a first relationship between the maximum value in the detection region and the corresponding first preset threshold is determined; and a second relationship between the mean value in the detection region and the corresponding second preset threshold is determined.

[0164] Based on the first and second size relationships corresponding to each detection area, it is determined whether the special effect can be applied to multimedia content.

[0165] In summary, by using multiple detection regions, each corresponding to the first and second size relationships mentioned above, to detect special effects, the efficiency of special effects detection can be improved.

[0166] In some embodiments, the first detection unit 603 is further configured to:

[0167] In response to the fact that the maximum value of the first size relationship indicator corresponding to each detection area is less than the first threshold, and the average value of the second size relationship indicator corresponding to each detection area is less than the second threshold, it is determined that the special effect cannot be applied to the multimedia content.

[0168] In summary, further, by ensuring that the maximum difference value in each detection area is less than a first threshold and the average difference value is less than a second preset threshold, it can be determined that special effects cannot be applied to multimedia content, thereby realizing the detection of special effects that cannot be applied to multimedia content.

[0169] In some embodiments, the first detection unit 603 is further configured to:

[0170] For each detection region, remove multiple rows or columns of pixels that are adjacent to other detection regions from the multiple pixels in that detection region;

[0171] For multiple pixels after removing multiple rows or columns of pixels adjacent to other detection areas, calculate the difference between the first pixel value and the initial pixel value corresponding to these multiple pixels.

[0172] In summary, further, for each detection region, multiple rows or columns of pixels adjacent to other detection regions can be removed from the image data of the detection template. That is, the pixel differences corresponding to these rows and columns are not used for judgment, thereby improving the accuracy of the detection results.

[0173] The device provided in this embodiment can be used to execute the technical solutions of the above method embodiments. Its implementation principle and technical effect are similar, and will not be described again here.

[0174] To implement the above embodiments, this disclosure also provides an electronic device.

[0175] refer to Figure 7 The diagram illustrates a structural schematic of an electronic device 700 suitable for implementing embodiments of the present disclosure. The electronic device 700 can be a terminal device or a server. The terminal device can include, but is not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, personal digital assistants (PDAs), tablet computers, portable media players (PMPs), and in-vehicle terminals (e.g., in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0176] like Figure 7As shown, the electronic device 700 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. The RAM 703 also stores various programs and data required for the operation of the electronic device 700. The processing unit 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0177] Typically, the following devices can be connected to I / O interface 705: input devices 706 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 707 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 708 including, for example, magnetic tapes, hard disks, etc.; and communication devices 709. Communication device 709 allows electronic device 700 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 700 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0178] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication device 709, or installed from storage device 708, or installed from ROM 702. When the computer program is executed by processing device 701, it performs the functions defined in the methods of embodiments of this disclosure.

[0179] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0180] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0181] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above embodiments.

[0182] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, and conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0183] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0184] The units described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a unit does not necessarily limit the unit itself; for example, the first acquisition unit can also be described as "a unit that acquires at least two Internet Protocol addresses".

[0185] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0186] The electronic device, computer-readable storage medium, and computer program product provided in this embodiment apply special effects to a detection template; obtain the first pixel value of each of the multiple pixels in the detection template after the special effects are applied, as well as the initial pixel value of each of the multiple pixels in the detection template before the special effects are applied; and determine whether the special effects can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of the multiple pixels. This achieves automatic detection of special effects, which can improve the detection efficiency of whether special effects can be applied to multimedia content and can quickly detect a large number of special effects.

[0187] In a first aspect, according to one or more embodiments of this disclosure, a method for detecting special effects is provided, comprising:

[0188] Special effects are applied to the detection template;

[0189] Get the first pixel value of each pixel in the detection template after the special effect is applied, and the initial pixel value of each pixel in the detection template before the special effect is applied;

[0190] Based on the difference between the first pixel value and the initial pixel value of multiple pixels, it is determined whether the effect can be applied to multimedia content.

[0191] According to one or more embodiments of this disclosure, special effects are applied to the detection template, including:

[0192] The detection template is flipped according to a preset axis of symmetry;

[0193] Apply special effects to the flipped detection template.

[0194] According to one or more embodiments of this disclosure, the detection template is a landscape display detection template, and the method further includes:

[0195] Detect black border areas; where the black border area is the filled area outside the detection area in the detection template; each pixel in the black border area is filled with the same preset pixel value; and

[0196] Based on the difference between the first pixel value and the initial pixel value of multiple pixels, it is determined whether the effect can be applied to multimedia content, including:

[0197] Remove pixels from the black border region from multiple pixels and determine the difference between the first pixel value and the initial pixel value of the remaining pixels;

[0198] Determine whether the special effects can be applied to landscape multimedia content based on the differences.

[0199] According to one or more embodiments of this disclosure, the detection template includes multiple detection areas, and different detection areas are filled with different multimedia content elements;

[0200] At least one detection area includes a face image.

[0201] According to one or more embodiments of this disclosure, the plurality of detection areas includes four detection areas arranged in two rows and two columns, wherein the pixel color in each detection area is the same, and the pixel color in different detection areas is different.

[0202] According to one or more embodiments of this disclosure, determining whether an effect can be applied to multimedia content based on the difference between a first pixel value and an initial pixel value of a plurality of pixels includes:

[0203] For each detection region, the pixel value difference of each pixel in the detection region is determined based on the first pixel value and the initial pixel value of each pixel in the detection region.

[0204] Based on the differences in pixel values ​​corresponding to multiple pixels in multiple detection areas, it is determined whether the special effect can be applied to multimedia content.

[0205] According to one or more embodiments of this disclosure, detecting whether a special effect can be applied to multimedia content based on the pixel value differences corresponding to multiple pixels in each of multiple detection regions includes:

[0206] For each detection region, calculate the maximum difference and the mean difference corresponding to that detection region;

[0207] Obtain the first preset threshold and the second preset threshold corresponding to each detection region;

[0208] For each detection region, a first relationship between the maximum value in the detection region and the corresponding first preset threshold is determined; and a second relationship between the mean value in the detection region and the corresponding second preset threshold is determined.

[0209] Based on the first and second size relationships corresponding to each detection area, it is determined whether the special effect can be applied to multimedia content.

[0210] According to one or more embodiments of this disclosure, determining whether a special effect can be applied to multimedia content based on a first size relationship and a second size relationship corresponding to each detection region includes:

[0211] In response to the fact that the maximum value of the first size relationship indicator corresponding to each detection area is less than the first threshold, and the average value of the second size relationship indicator corresponding to each detection area is less than the second threshold, it is determined that the special effect cannot be applied to the multimedia content.

[0212] According to one or more embodiments of this disclosure, for each detection region, determining the differences corresponding to multiple pixels in the detection region includes:

[0213] For each detection region, remove multiple rows or columns of pixels that are adjacent to other detection regions from the multiple pixels in that detection region;

[0214] For multiple pixels after removing multiple rows or columns of pixels adjacent to other detection areas, calculate the difference between the first pixel value and the initial pixel value corresponding to these multiple pixels.

[0215] Secondly, according to one or more embodiments of this disclosure, a detection device for special effects is provided, comprising:

[0216] Application unit, used to apply special effects to the detection template;

[0217] The acquisition unit is used to acquire the first pixel value of each of the multiple pixels in the detection template after the special effect is applied, and the initial pixel value of each of the multiple pixels in the detection template before the special effect is applied.

[0218] The first detection unit is used to determine whether the special effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of multiple pixels.

[0219] According to one or more embodiments of this disclosure, the application unit is further configured to:

[0220] The detection template is flipped according to a preset axis of symmetry;

[0221] Apply special effects to the flipped detection template.

[0222] According to one or more embodiments of this disclosure, the detection template is a landscape display detection template, and the device further includes a second detection unit, the second detection unit being used for:

[0223] Detect black border areas; where the black border area is the filled area outside the detection area in the detection template; each pixel in the black border area is filled with the same preset pixel value; and

[0224] The first detection unit is further used for:

[0225] Remove pixels from the black border region from multiple pixels and determine the difference between the first pixel value and the initial pixel value of the remaining pixels;

[0226] Determine whether the special effects can be applied to landscape multimedia content based on the differences.

[0227] According to one or more embodiments of this disclosure, the detection template includes multiple detection areas, and different detection areas are filled with different multimedia content elements;

[0228] At least one detection area includes a face image.

[0229] According to one or more embodiments of this disclosure, the plurality of detection areas includes four detection areas arranged in two rows and two columns, wherein the pixel color in each detection area is the same, and the pixel color in different detection areas is different.

[0230] According to one or more embodiments of this disclosure, the first detection unit is further configured to:

[0231] For each detection region, the pixel value difference of each pixel in the detection region is determined based on the first pixel value and the initial pixel value of each pixel in the detection region.

[0232] Based on the differences in pixel values ​​corresponding to multiple pixels in multiple detection areas, it is determined whether the special effect can be applied to multimedia content.

[0233] According to one or more embodiments of this disclosure, the first detection unit is further configured to:

[0234] For each detection region, calculate the maximum difference and the mean difference corresponding to that detection region;

[0235] Obtain the first preset threshold and the second preset threshold corresponding to each detection region;

[0236] For each detection region, a first relationship between the maximum value in the detection region and the corresponding first preset threshold is determined; and a second relationship between the mean value in the detection region and the corresponding second preset threshold is determined.

[0237] Based on the first and second size relationships corresponding to each detection area, it is determined whether the special effect can be applied to multimedia content.

[0238] According to one or more embodiments of this disclosure, the first detection unit is further configured to:

[0239] In response to the fact that the maximum value of the first size relationship indicator corresponding to each detection area is less than the first threshold, and the average value of the second size relationship indicator corresponding to each detection area is less than the second threshold, it is determined that the special effect cannot be applied to the multimedia content.

[0240] According to one or more embodiments of this disclosure, the first detection unit is further configured to:

[0241] For each detection region, remove multiple rows or columns of pixels that are adjacent to other detection regions from the multiple pixels in that detection region;

[0242] For multiple pixels after removing multiple rows or columns of pixels adjacent to other detection areas, calculate the difference between the first pixel value and the initial pixel value corresponding to these multiple pixels.

[0243] Thirdly, according to one or more embodiments of the present disclosure, an electronic device is provided, comprising: at least one processor and a memory;

[0244] The memory stores the instructions that the computer executes;

[0245] At least one processor executes computer execution instructions stored in memory, causing at least one processor to perform the detection method for special effects as described in the first aspect above and various possible designs of the first aspect.

[0246] Fourthly, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, which stores computer-executable instructions that, when executed by a processor, implement the first aspect above and various possible designs of the first aspect for detecting special effects.

[0247] Fifthly, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements the first aspect above and various possible designs of the first aspect for detecting special effects.

[0248] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0249] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0250] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A method for detecting special effects, comprising: Special effects are applied to the detection template; Obtain the first pixel value of each of the multiple pixels in the detection template after the effect is applied, and the initial pixel value of each of the multiple pixels in the detection template before the effect is applied; Based on the difference between the first pixel value and the initial pixel value of the plurality of pixels, it is determined whether the special effect can be applied to multimedia content.

2. The method according to claim 1, characterized in that, The special effects applied to the detection template include: The detection template is flipped according to a preset axis of symmetry; Apply special effects to the flipped detection template.

3. The method according to claim 2, characterized in that, The detection template is a landscape display detection template, and the method further includes: Detecting black border areas; wherein, the black border area is a filled area outside the detection area in the detection template; each pixel in the black border area is filled with the same preset pixel value; and Determining whether the special effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of the plurality of pixels includes: Remove pixels from the black border region from the plurality of pixels, and determine the difference between the first pixel value and the initial pixel value of the remaining pixels; Based on the differences, determine whether the special effect can be applied to landscape multimedia content.

4. The method according to any one of claims 1-3, characterized in that, The detection template includes multiple detection areas, and different detection areas are filled with different multimedia content elements. At least one detection area includes a face image.

5. The method according to claim 4, characterized in that, The plurality of detection areas includes four detection areas arranged in two rows and two columns. The pixel colors in each detection area are the same, and the pixel colors in different detection areas are different.

6. The method according to claim 4, characterized in that, Determining whether the special effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of the plurality of pixels includes: For each detection region, the pixel value difference of each pixel in the detection region is determined based on the first pixel value and the initial pixel value of each of the multiple pixels in the detection region. Based on the differences in pixel values ​​corresponding to multiple pixels in each of the multiple detection regions, it is determined whether the special effect can be applied to multimedia content.

7. The method according to claim 6, characterized in that, The step of detecting whether the special effect can be applied to multimedia content based on the pixel value differences corresponding to multiple pixels in each of the multiple detection regions includes: For each detection region, calculate the maximum difference and the mean difference corresponding to that detection region; Obtain the first preset threshold and the second preset threshold corresponding to each detection region; For each detection region, a first magnitude relationship is determined between the maximum value in the detection region and the corresponding first preset threshold; and a second magnitude relationship is determined between the mean value in the detection region and the corresponding second preset threshold. Based on the first size relationship and the second size relationship corresponding to each detection area, it is determined whether the special effect can be applied to multimedia content.

8. The method according to claim 7, characterized in that, The step of determining whether the special effect can be applied to multimedia content based on the first size relationship and the second size relationship corresponding to each detection region includes: In response to a first size relationship indicating that the maximum value is less than the first threshold, and a second size relationship indicating that the mean value is less than the second threshold, it is determined that the special effect cannot be applied to multimedia content.

9. The method according to any one of claims 6-8, characterized in that, For each detection region, determining the differences corresponding to multiple pixels in that detection region includes: For each detection region, remove multiple rows or columns of pixels that are adjacent to other detection regions from the multiple pixels in that detection region; For multiple pixels after removing multiple rows or columns of pixels adjacent to other detection areas, calculate the difference between the first pixel value and the initial pixel value corresponding to these multiple pixels.

10. A detection device for special effects, characterized in that, include: Application unit, used to apply special effects to the detection template; The acquisition unit is used to acquire the first pixel value of each of the multiple pixels in the detection template after the special effect has been applied, and the initial pixel value of each of the multiple pixels in the detection template before the special effect has been applied. The first detection unit is used to determine whether the special effect can be applied to multimedia content based on the difference between the first pixel value and the initial pixel value of the plurality of pixels.

11. An electronic device, characterized in that, include: Processor and memory; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the detection method for special effects as described in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, implement the detection method for special effects as described in any one of claims 1 to 9.

13. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the detection method for special effects as described in any one of claims 1 to 9.