Video polyphonic ringtone playing method and device, equipment and storage medium

By acquiring the first frame of the video ringback tone image for subject recognition and editing, a target image with naked-eye 3D effect is generated, which solves the problems of high resource consumption and effect differences in existing technologies and achieves a highly efficient naked-eye 3D display effect.

CN121397142APending Publication Date: 2026-01-23MIGU MUSIC CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511416975.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-30
Publication Date
2026-01-23

AI Technical Summary

Technical Problem

Existing technologies for naked-eye 3D display of video ringback tones consume a lot of resources and produce significantly different display effects on different terminals.

Method used

By acquiring the first frame of the video ringback tone image, subject recognition and editing are performed to generate a target image with naked-eye 3D effect. Naked-eye 3D display is achieved by overlaying the subject information layer and the mask layer.

Benefits of technology

It enables naked-eye 3D display of video ringback tones, improving user experience and reducing resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121397142A_ABST
    Figure CN121397142A_ABST
Patent Text Reader

Abstract

The invention provides a video polyphonic ringtone playing method and device, equipment and a storage medium, and the method comprises the steps: obtaining a first frame image in a to-be-played video polyphonic ringtone, carrying out the main body recognition of the first frame image, and obtaining a main body information layer; editing the main body information layer to obtain a target main body information layer; generating a target image with a naked eye 3D effect based on the first frame image, the target main body information layer and a preset mask layer; and displaying the target image with the naked eye 3D effect. Through the technical scheme of the invention, naked-eye 3D display of the video polyphonic ringtone can be realized, so that the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, and particularly relates to a video ringtone playing method and device, equipment and a storage medium. BACKGROUND

[0002] In the related art, naked-eye 3D display of a video ringtone can be realized by resetting the video ringtone, but this method needs to consume a large amount of resources, and the effects presented on different terminals also have differences. SUMMARY

[0003] The present application aims to at least partly solve one of the technical problems in the related art.

[0004] In a first aspect, the present application provides a video ringtone playing method, which comprises: obtaining a first frame image in a video ringtone to be played, performing subject identification on the first frame image to obtain a subject information layer; editing the subject information layer to obtain a target subject information layer; generating a target image with naked-eye 3D effect based on the first frame image, the target subject information layer and a preset mask layer; and displaying the target image with naked-eye 3D effect.

[0005] In an implementation manner, the obtaining of the first frame image in the video ringtone to be played comprises: providing a first interactive control in an interactive interface, the interactive interface being an interface for displaying a video ringtone image, and the first interactive control being a control for triggering a naked-eye 3D display effect; and in response to an interactive operation of an interactive object on the first interactive control, obtaining the first frame image in the video ringtone to be played.

[0006] In an implementation manner, the subject information layer comprises a plurality of subject images, and the editing of the subject information layer to obtain the target subject information layer comprises: providing a second interactive control, the second interactive control being used for an interactive object to select at least one target subject image from the plurality of subject images; and editing the target subject image to obtain the target subject information layer.

[0007] In an implementation manner, the generating of the target image with naked-eye 3D effect based on the first frame image, the target subject information layer and the preset mask layer comprises: obtaining a saturation difference value between the first frame image and a second frame image, the second frame image being a next frame image of the first frame image; in response to the saturation difference value being greater than or equal to a saturation difference value threshold, performing edge blurring processing on the target subject information layer; and based on the target subject information layer after the edge blurring processing, the first frame image and the mask layer, generating the target image with naked-eye 3D effect.

[0008] In an implementation manner, the generating the target image with the naked 3D effect based on the first frame image, the target subject information layer and the preset mask layer comprises: obtaining a layer position of the subject information layer; setting the target subject information layer as a top layer based on the layer position, setting the mask layer as a middle layer, setting the first frame image as a bottom layer, and generating the target image with the naked 3D effect.

[0009] In an implementation manner, the subject identification on the first frame image to obtain the subject information layer comprises: performing gray scale conversion on the first frame image to obtain a first gray scale image; obtaining pixel gradient information of each first pixel in the first gray scale image; performing non-maximum suppression processing on the first gray scale image based on the pixel gradient information to obtain a second gray scale image; performing pixel screening based on pixel intensity of a second pixel in the second gray scale image to obtain a target pixel; and obtaining the subject information layer from the first frame image based on a pixel range corresponding to the target pixel.

[0010] In a second aspect, the application provides a video ringtone playing device, which comprises: a first processing module configured to obtain a first frame image in a video ringtone to be played, and perform subject identification on the first frame image to obtain a subject information layer; a second processing module configured to edit the subject information layer to obtain a target subject information layer; a third processing module configured to generate a target image with a naked 3D effect based on the first frame image, the target subject information layer and a preset mask layer; and a display module configured to display the target image with the naked 3D effect.

[0011] In an implementation manner, the first processing module can be configured to provide a first interactive control in an interactive interface, the interactive interface being an interface for displaying a video ringtone image, the first interactive control being a control for triggering a naked 3D display effect; and in response to an interactive operation of an interactive object on the first interactive control, obtain a first frame image in a video ringtone to be played.

[0012] In an implementation manner, the subject information layer comprises a plurality of subject images, and the second processing module can be configured to provide a second interactive control, the second interactive control being used for an interactive object to select at least one target subject image from the plurality of subject images; and edit the target subject image to obtain the target subject information layer.

[0013] In an implementation manner, the third processing module can be configured to: acquire a saturation difference value between the first frame image and a second frame image, the second frame image being a next frame image of the first frame image; perform edge blurring processing on the target subject information layer in response to the saturation difference value being greater than or equal to a saturation difference value threshold; and generate the target image with the naked 3D effect based on the target subject information layer after the edge blurring processing, the frame image and the mask layer.

[0014] In an implementation manner, the third processing module can be configured to: acquire a layer position of the subject information layer; set the target subject information layer as a top layer based on the layer position, set the mask layer as a middle layer, set the first frame image as a bottom layer, and generate the target image with the naked 3D effect.

[0015] In an implementation manner, the first processing module can be configured to: perform gray scale conversion on the first frame image to obtain a first gray scale image; acquire pixel gradient information of each first pixel in the first gray scale image; perform non-maximum suppression processing on the first gray scale image based on the pixel gradient information to obtain a second gray scale image; perform pixel screening based on pixel intensity of a second pixel in the second gray scale image to obtain a target pixel; and acquire the subject information layer from the first frame image based on a pixel range corresponding to the target pixel.

[0016] In a third aspect, an electronic device is provided, which includes at least one processor, and a memory connected with the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the video ringtone playing method according to the first aspect.

[0017] In a fourth aspect, a computer readable storage medium is provided, which stores instructions, and when the instructions are executed, the method according to the first aspect is implemented.

[0018] In a fifth aspect, a computer program product is provided, which includes a computer program, and the computer program, when executed by a processor, implements the steps of the video ringtone playing method according to the first aspect.

[0019] The video ringtone playing method, device, equipment and storage medium provided by the present application can obtain the main body information layer of the first frame image in the video ringtone to be played, and obtain the target main body information layer capable of shielding the main body image in the first frame image based on the main body information layer, so as to generate and display the target image with naked 3D effect based on the first frame image, the target main body information layer and the preset mask layer. Naked 3D display of the video ringtone can be realized, thereby improving user experience.

[0020] Additional aspects and advantages of the present application will be made apparent by the following description and the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0021] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description, taken in conjunction with the accompanying drawings, in which:

[0022] Figure 1 is a flowchart of a video ringtone playing method provided by an embodiment of the present application;

[0023] Figure 2 is a schematic diagram of layer editing provided by an embodiment of the present application;

[0024] Figure 3 is another schematic diagram of layer editing provided by an embodiment of the present application;

[0025] Figure 4 is a schematic diagram of layer position relationship provided by an embodiment of the present application;

[0026] Figure 5 is a schematic diagram of a target image provided by an embodiment of the present application;

[0027] Figure 6 is a schematic diagram of an interactive interface provided by an embodiment of the present application;

[0028] Figure 7 is a flowchart of another video ringtone playing method provided by an embodiment of the present application;

[0029] Figure 8 is a schematic diagram of a main body image provided by an embodiment of the present application;

[0030] Figure 9 is a flowchart of still another video ringtone playing method provided by an embodiment of the present application;

[0031] Figure 10 is a flowchart of still another video ringtone playing method provided by an embodiment of the present application;

[0032] Figure 11is a flowchart of another video ringback tone playing method provided by an embodiment of the present application;

[0033] Figure 12 is a structural diagram of a video ringback tone playing device provided by an embodiment of the present application;

[0034] Figure 13 is a structural diagram of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0035] The embodiments of the present application are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar notations represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are intended to explain the present application, and cannot be understood as a limitation of the present application.

[0036] The video ringback tone playing method and device of the embodiments of the present application are described below with reference to the accompanying drawings.

[0037] Figure 1 is a flowchart of a video ringback tone playing method provided by an embodiment of the present application. As shown in Figure 1 , the method can include but is not limited to the following steps:

[0038] Step S101: obtaining a first frame image in a video ringback tone to be played, performing subject identification on the first frame image, and obtaining a subject information layer.

[0039] Exemplarily, when a calling party calls a called party, the calling party obtains a video ringback tone preset by the called party as the video ringback tone to be played, and performs subject identification on a first frame image in the video ringback tone to be played, and obtains a layer where a subject image in the first frame image is located as the subject information layer.

[0040] Exemplarily, the first frame image can be a frame image to be displayed immediately, or a next or multiple frame images to be displayed immediately in the video ringback tone to be played.

[0041] Step S102: editing the subject information layer to obtain a target subject information layer.

[0042] Exemplarily, the subject image in the subject information layer is subjected to image editing to obtain a target subject image, so that the target subject image can shield the subject image.

[0043] In the embodiments of the present application, the image editing can include at least one of the following: replacement, enlargement, cropping, and position adjustment.

[0044] In some embodiments, the subject image in the subject information layer can be enlarged by a preset magnification (e.g., 1.5 times).

[0045] In some embodiments, the magnification can be determined according to a proportional relationship between a first image size of the subject image and a second image size of the first frame image, so that a distance between an edge of the subject image in the subject information layer and an edge of the first frame image is less than a preset distance threshold.

[0046] In some embodiments, the subject information layer can be subjected to image recognition to obtain an image category label of the subject image, and a target subject image corresponding to the category label can be obtained from a pre-established image library, and a target subject information layer can be generated based on the target subject image.

[0047] As an example, taking a cat in a photographic style in the subject information layer as an example, the subject information layer is subjected to image recognition, and it is determined that the category label of the image in the subject information layer is a cat, then a cartoon-style cat image can be obtained from a pre-established image library as a target subject image, and a target subject information layer can be generated based on the target subject image. For example, the target subject image can be filled into a transparent layer to obtain the target subject information layer.

[0048] Optionally, the target subject image corresponding to the category label can be subjected to magnification processing, so that a distance between an edge of the target subject image and an edge of the first frame image is less than a preset distance threshold.

[0049] Step S103: generating a target image with a naked-eye 3D effect based on the first frame image, the target subject information layer, and a preset mask layer.

[0050] For example, the preset mask layer and the subject information layer are sequentially overlaid on the first frame image to generate a target image with a naked-eye 3D (3-Dimensional, three-dimensional) effect.

[0051] In some embodiments, the shape of the mask layer described above can be any one of the following: a rectangular mask, a circular mask, and a polygonal mask.

[0052] It should be noted that, in order to ensure the realization of the naked-eye 3D effect, when the subject information layer is edited in the foregoing steps, a part of the target subject image in the target subject information layer needs to overlap with a mask region of the mask layer. That is, the distance threshold described above can be a distance threshold that makes a part of the target subject image in the target subject information layer overlap with the mask region in the mask image.

[0053] As an example, please refer to Figure 2 , Figure 2is a schematic diagram of layer editing provided by an embodiment of the present application. As shown in Figure 2 , the subject image in the subject information layer can be enlarged, so that part of the target subject image in the target subject information layer overlaps the mask area of the mask layer.

[0054] As an example, please refer to Figure 3 , Figure 3 is another schematic diagram of layer editing provided by an embodiment of the present application. As shown in Figure 3 , the subject image in the subject information layer can be replaced, so that part of the subject image in the subject information layer overlaps the mask area of the mask layer.

[0055] In some embodiments, a transparent layer of naked-eye 3D visual effect can be added in the playing interface of the video ringtone, the transparent layer is arranged above the first frame image, the target subject information layer can be overlaid on the mask layer to obtain a mask image, and the mask image can be filled into the transparent layer when the first frame image is displayed, so as to generate a target image of naked-eye 3D effect.

[0056] In some embodiments, a first transparent layer and a second transparent layer of naked-eye 3D visual effect can be added in the playing interface of the video ringtone, the first transparent layer is arranged below the second transparent layer, the first transparent layer is arranged above the first frame image, the target subject information layer can be filled into the second transparent layer when the first frame image is displayed, and the mask image can be filled into the first transparent layer, so as to generate a target image of naked-eye 3D effect.

[0057] It should be noted that, in order to ensure that the target image of naked-eye 3D effect can be generated, the relative position relationship between the first frame image, the target subject information layer and the preset mask layer is fixed in different implementation manners of generating the target image based on the first frame image, the target subject information layer and the preset mask layer. As an example, please refer to Figure 4 and Figure 5 , Figure 4 is a schematic diagram of layer position relationship provided by an embodiment of the present application. Figure 5 is a schematic diagram of a target image provided by an embodiment of the present application. As shown in Figure 4 , the layer of the first frame image for displaying the video ringtone is located at the bottom, the mask layer is located in the middle, and the target subject information layer is located at the top. Thus, naked-eye 3D effect can be realized. As shown in Figure 5 , the first frame image, the target subject information layer and the preset mask layer can be overlapped according to the layer position relationship shown in Figure 4 , to obtain a target image.

[0058] Step S104: display the target image of naked-eye 3D effect.

[0059] Exemplarily, the target image with the naked-eye 3D effect is displayed in the display interface of the caller terminal device. That is, when the video ringtone of the callee is played, the video ringtone with the naked-eye 3D effect is displayed in the display interface of the caller terminal device.

[0060] By implementing the embodiments of the present application, the subject information layer of the first frame image in the video ringtone to be played can be obtained, and the target subject information layer capable of shielding the subject image in the first frame image can be obtained based on the subject information layer, so that the target image with the naked-eye 3D effect can be generated and displayed based on the first frame image, the target subject information layer, and the preset mask layer. The naked-eye 3D display of the video ringtone can be realized, thereby improving the user experience.

[0061] In some embodiments, a first interaction control can be provided on the interactive interface, and the interactive object can trigger the naked-eye 3D display effect of the video ringtone through the first interaction control. As an example, please refer to Figure 6 , Figure 6 is a schematic diagram of an interactive interface provided by an embodiment of the present application. As shown in Figure 6 , when the video ringtone starts to play, the first interaction control can be provided on the interface of the video ringtone playing, and the interactive object can control the opening and closing of the naked-eye 3D playing effect of the video ringtone through the interactive operation with the first interaction control.

[0062] In some embodiments, the above-mentioned interaction control can be issued by the video ringtone playing platform.

[0063] In some embodiments, the subject information layer includes a plurality of subject images, and the target subject information layer can be obtained by processing the subject image specified by the interactive object. As an example, please refer to Figure 7 , Figure 7 is a flowchart of another video ringtone playing method provided by an embodiment of the present application. As shown in Figure 7 , the method can include but is not limited to the following steps:

[0064] Step S701: obtaining the first frame image in the video ringtone to be played, and performing subject recognition on the first frame image to obtain a subject information layer.

[0065] In the embodiments of the present application, step S701 can be implemented by any one of the embodiments of the present application, and the embodiments of the present application do not limit this nor repeat it.

[0066] Step S702: providing a second interaction control, and the second interaction control is used for the interactive object to select at least one target subject image from a plurality of subject images.

[0067] Exemplarily, each subject image can be taken as a second interactive control, so that the subject image clicked by the interactive object can be taken as the target subject image.

[0068] Step S703: editing the target subject image to obtain a target subject information layer.

[0069] As an example, please refer to Figure 8 , Figure 8 is a schematic diagram of a subject image provided by an embodiment of the present application, as Figure 7 shown, if the interactive object selects subject image A as the target subject image, the target subject image is processed by zooming in; if the interactive object selects subject image B as the target subject image, the target subject image is processed by zooming in; if the interactive object selects subject image C as the target subject image, the target subject image is processed by zooming in.

[0070] Exemplarily, the target subject image is identified to obtain a category label, and based on the category label, a first subject image corresponding to the category label is obtained from a pre-established image library, the target subject image is replaced by the first subject image, and a target subject information layer is obtained.

[0071] Step S704: generating a target image with naked-eye 3D effect based on the first frame image, the target subject information layer and a preset mask layer.

[0072] In the embodiments of the present application, step S704 can be implemented by any one of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be repeated.

[0073] Step S705: displaying the target image with naked-eye 3D effect.

[0074] In the embodiments of the present application, step S705 can be implemented by any one of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be repeated.

[0075] By implementing the embodiments of the present application, when the subject information layer includes multiple subject images, the target subject image specified by the interactive object can be obtained through the second interactive control, the target subject image is processed to obtain a target subject information layer, and then a target image with naked-eye 3D effect is generated and displayed based on the first frame image, the target subject information layer and a preset mask layer. The 3D display of the personalized video ringtone can be realized, so as to further improve the user experience.

[0076] In some embodiments, the target subject information layer can be processed according to the difference between adjacent frame images. As an example, please refer to Figure 9 , Figure 9is a flowchart of another video ringtone playing method provided by an embodiment of the present application. As shown in Figure 9 the method can include but is not limited to the following steps:

[0077] Step S901: obtaining a first frame image in a video ringtone to be played, performing subject identification on the first frame image, and obtaining a subject information layer.

[0078] In an embodiment of the present application, step S901 can be implemented by any of the embodiments of the present application, and the present application does not limit this and will not be repeated.

[0079] Step S902: editing the subject information layer to obtain a target subject information layer.

[0080] In an embodiment of the present application, step S902 can be implemented by any of the embodiments of the present application, and the present application does not limit this and will not be repeated.

[0081] Step S903: obtaining a saturation difference value between the first frame image and a second frame image, the second frame image being a next frame image of the first frame image.

[0082] For example, a first saturation of the first frame image and a second saturation of the second frame image in the video ringtone to be played are obtained to obtain a saturation difference value between the first saturation and the second saturation, and the second frame image is a next frame image adjacent to the first frame image in the video ringtone to be played.

[0083] Step S904: in response to the saturation difference value being greater than or equal to a saturation difference value threshold, performing edge blurring processing on the target subject information layer.

[0084] For example, in response to the saturation difference value being greater than or equal to the saturation difference value threshold, edge blurring processing is performed on a target subject image in the target subject information layer.

[0085] Optionally, in response to the saturation difference value being less than or equal to the saturation difference value threshold, the target subject information layer does not need to be subjected to edge blurring processing, and a target image with a naked-eye 3D effect is generated based on the target subject information layer, the frame image and the mask layer.

[0086] Step S905: generating a target image with a naked-eye 3D effect based on the target subject information layer subjected to edge blurring processing, the frame image and the mask layer.

[0087] In an embodiment of the present application, step S905 can be implemented by any of the embodiments of the present application, and the present application does not limit this and will not be repeated.

[0088] Step S906: display the target image with the naked-eye 3D effect.

[0089] In embodiments of the present application, step S906 can be implemented in any of the manners of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be repeated here.

[0090] By implementing the embodiments of the present application, when the saturation difference between the first frame image and the adjacent second frame image is greater than or equal to the preset saturation difference threshold, the edge blurring processing is performed on the target subject information layer, so as to enhance the naked-eye 3D effect, thereby further improving the user experience.

[0091] In some embodiments, the target image with the naked-eye 3D effect can be generated based on the first frame image, the target subject information layer, and the preset mask layer in combination with the layer position of the subject information layer. As an example, please refer to Figure 10 , Figure 10 is a flowchart of another video ringtone playing method provided by an embodiment of the present application. As shown in Figure 10 , the method can include but is not limited to the following steps:

[0092] Step S1001: acquire a first frame image in a video ringtone to be played, perform subject identification on the first frame image, and obtain a subject information layer.

[0093] In embodiments of the present application, step S1001 can be implemented in any of the manners of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be repeated here.

[0094] Step S1002: edit the subject information layer to obtain a target subject information layer.

[0095] In embodiments of the present application, step S1002 can be implemented in any of the manners of the embodiments of the present application, and the embodiments of the present application do not limit this and will not be repeated here.

[0096] Step S1003: acquire a layer position of the subject information layer.

[0097] Exemplarily, the coordinate position of the image center in the subject information layer is acquired as the layer position.

[0098] In some embodiments, the subject image track in the subject information layer can be tracked to determine the position of the image in the frame as the layer position.

[0099] Step S1004: set the target subject information layer as a top layer, set a mask layer as a middle layer, and set the first frame image as a bottom layer based on the layer position, to generate a target image with a naked-eye 3D effect.

[0100] Exemplarily, the target subject information layer is taken as a top layer, the center position of the target subject image is located at the aforementioned layer position, the mask layer is taken as a middle layer, and the first frame image is taken as a bottom layer to generate the target image with the naked eye 3D effect.

[0101] Step S1005: display the target image with the naked eye 3D effect.

[0102] In the embodiments of the present application, step S1005 can be implemented by any of the embodiments of the present application, and the present application does not limit this and will not be repeated here.

[0103] By implementing the embodiments of the present application, the target image with the naked eye 3D effect can be generated based on the first frame image, the target subject information layer and the preset mask layer in combination with the layer position of the subject information layer, so that the subject image in the target subject information layer can completely block the corresponding image in the subject information layer, thereby improving the 3D display effect of the target image.

[0104] In some embodiments, an edge detection algorithm can be used to identify the subject in the first frame image. As an example, please refer to Figure 11 , Figure 11 is another flowchart of a video ringtone playing method provided by the embodiments of the present application. As shown in Figure 11 , the method can include but is not limited to the following steps:

[0105] Step S1101: obtaining a first frame image in a video ringtone to be played, and performing gray scale conversion on the first frame image to obtain a first gray scale image.

[0106] Exemplarily, the first frame image in the video ringtone to be played is obtained, the first pixel in the first frame image is subjected to gray scale conversion, and denoising processing is performed through Gaussian filtering to obtain the first gray scale image corresponding to the first frame image.

[0107] Step S1102: obtaining pixel gradient information of each first pixel in the first gray scale image.

[0108] Exemplarily, an edge detection operator (for example, Sobel operator) is used to calculate the gradient in the horizontal direction and the vertical direction of the first gray scale image. The gradient amplitude and direction of each first pixel in the first gray scale image are obtained as the pixel gradient information of each first pixel.

[0109] Step S1103: performing non-maximum suppression processing on the first gray scale image based on the pixel gradient information to obtain a second gray scale image.

[0110] Exemplarily, non-maximum suppression is performed on the first gray-scale image in a gradient direction to retain a pixel point with a maximum local gradient, to obtain a second gray-scale image.

[0111] Step S1104: performing pixel screening based on the pixel intensity of the second pixel in the second gray-scale image, to obtain a target pixel.

[0112] Exemplarily, for each second pixel, in response to the pixel intensity of the second pixel being greater than or equal to the first pixel intensity threshold, the second pixel is taken as the target pixel; or for each second pixel, in response to the pixel intensity of the second pixel being greater than or equal to the second pixel intensity threshold and less than the first pixel intensity threshold, and there being a target pixel in the adjacent pixels of the second pixel, the second pixel is taken as the target pixel.

[0113] Step S1105: obtaining a subject information layer from the first frame image based on the pixel range corresponding to the target pixel.

[0114] Exemplarily, a partial image is obtained from the first frame image based on the pixel range corresponding to the target pixel, and the subject information layer is generated based on the partial image.

[0115] Step S1106: editing the subject information layer to obtain a target subject information layer.

[0116] In embodiments of the present application, step S1106 can be implemented by any one of the embodiments of the present application, and the present application does not limit this, and will not be repeated.

[0117] Step S1107: generating a target image with a naked-eye 3D effect based on the first frame image, the target subject information layer and a preset mask layer.

[0118] In embodiments of the present application, step S1107 can be implemented by any one of the embodiments of the present application, and the present application does not limit this, and will not be repeated.

[0119] Step S1108: displaying the target image with the naked-eye 3D effect.

[0120] In embodiments of the present application, step S1108 can be implemented by any one of the embodiments of the present application, and the present application does not limit this, and will not be repeated.

[0121] By implementing the embodiments of the present application, the edge detection algorithm can be used to perform subject recognition on the first frame image to obtain a subject information layer, so as to generate and display a target image with a naked-eye 3D effect based on the first frame image, the target subject information layer and a preset mask layer. Naked-eye 3D display of a video ringtone can be realized, thereby improving user experience.

[0122] Please refer to Figure 12 , Figure 12 is a structural schematic diagram of a video ringback tone playing device provided by an embodiment of the present application. As shown in Figure 12 , the device 1200 comprises: a first processing module 1201 configured to acquire a first frame image in a video ringback tone to be played, perform subject identification on the first frame image, and obtain a subject information layer; a second processing module 1202 configured to edit the subject information layer and obtain a target subject information layer; a third processing module 1203 configured to generate a target image with naked-eye 3D effect based on the first frame image, the target subject information layer, and a preset mask layer; and a display module 1204 configured to display the target image with naked-eye 3D effect.

[0123] In an implementation manner, the first processing module 1201 can be configured to provide a first interactive control in an interactive interface, the interactive interface being an interface for displaying a video ringback tone image, and the first interactive control being a control for triggering a naked-eye 3D display effect; and in response to an interactive operation of an interactive object on the first interactive control, acquire the first frame image in the video ringback tone to be played.

[0124] In an implementation manner, the subject information layer comprises a plurality of subject images, and the second processing module 1202 can be configured to provide a second interactive control, the second interactive control being used by an interactive object to select at least one target subject image from the plurality of subject images; and edit the target subject image to obtain the target subject information layer.

[0125] In an implementation manner, the third processing module 1203 can be configured to acquire a saturation difference value between the first frame image and a second frame image, the second frame image being a next frame image of the first frame image; in response to the saturation difference value being greater than or equal to a saturation difference value threshold, perform edge blurring processing on the target subject information layer; and generate the target image with naked-eye 3D effect based on the target subject information layer after the edge blurring processing, the frame image, and the mask layer.

[0126] In an implementation manner, the third processing module 1203 can be configured to acquire a layer position of the subject information layer; based on the layer position, set the target subject information layer as a top layer, set the mask layer as an intermediate layer, and set the first frame image as a bottom layer to generate the target image with naked-eye 3D effect.

[0127] In an implementation manner, the first processing module 1201 can be configured to: perform gray scale conversion on the first frame image to obtain a first gray scale image; acquire pixel gradient information of each first pixel in the first gray scale image; perform non-maximum suppression processing on the first gray scale image based on the pixel gradient information to obtain a second gray scale image; perform pixel screening based on pixel intensity of a second pixel in the second gray scale image to obtain a target pixel; and acquire a subject information layer from the first frame image based on a pixel range corresponding to the target pixel.

[0128] Through the device provided in the embodiment of the present application, the subject information layer of the first frame image in the to-be-played video ringtone can be acquired, and the target subject information layer capable of shielding the subject image in the first frame image can be acquired based on the subject information layer, so that the target image with naked-eye 3D effect can be generated and displayed based on the first frame image, the target subject information layer and the preset mask layer. Naked-eye 3D display of the video ringtone can be realized, thereby improving user experience.

[0129] It should be noted that the foregoing explanation and description of the embodiment of the video ringtone playing method are also applicable to the embodiment of the video ringtone playing device, and details are not described herein again.

[0130] In order to realize the above-mentioned embodiments, the present application further provides an electronic device. Please refer to Figure 13 , Figure 13 is a structural schematic diagram of the electronic device provided in the embodiment of the present application. As shown in Figure 13 , the electronic device 1300 comprises a processor 1301 and a memory 1302 connected with the processor 1301; the memory 1302 stores computer execution instructions; and the processor 1301 executes the computer execution instructions stored in the memory to realize the method provided in the foregoing embodiments.

[0131] In order to realize the above-mentioned embodiments, the present application further provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by the processor to realize the method provided in the foregoing embodiments.

[0132] In order to realize the above-mentioned embodiments, the present application further provides a computer program product, comprising a computer program, and the computer program is executed by the processor to realize the method provided in the foregoing embodiments.

[0133] It should be noted that the acquisition, transmission, storage, use, processing and the like of data in the technical solutions of the present application comply with relevant provisions of national laws and regulations, and do not violate public order and good customs.

[0134] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are authorized by the user or fully authorized by all parties, and the collection, use and processing of related data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0135] It should be noted that in the embodiments of the present application, some software, components, models, etc. may be mentioned in the prior art, which should be considered as exemplary, and the purpose is only to illustrate the feasibility of the implementation of the technical solutions of the present application, but it does not mean that the applicant has or will necessarily use the scheme.

[0136] In the description of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this paper is only a description of the association between the associated objects, which means that there are three kinds of relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone.

[0137] In the foregoing embodiment description, the description of the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" 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 application. In the present specification, the illustrative description of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine the different embodiments or examples described in the specification and the features of the different embodiments or examples without contradiction.

[0138] In addition, the terms "first", "second" are only for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features limited by "first", "second" can explicitly or implicitly include at least one feature. In the description of the present application, the meaning of "multiple" is at least two, for example, two, three, etc., unless otherwise specifically limited.

[0139] Any processes or methods described in the flowcharts or otherwise described herein can be understood as representing modules, segments, or portions of code that include one or more executable instructions for implementing specific logic functions (or steps) and / or can be implemented entirely in hardware. The various embodiments of the application can be further implemented in a computer program product tangibly embodied in a machine-readable storage medium (e.g., memory) including instructions

[0140] Logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be embodied in computer-readable instructions, modules, segments, or portions of codes, which are executable by a processing system, apparatus, or device, such as a computer based system, processor, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For purposes of this section, a "computer-readable medium" can be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer readable medium can specifically include a hardware element, such as a memory, a processor, or a combination of hardware elements, which can be tangible in nature. More specific examples (a non-exhaustive list) of the computer readable medium include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium can even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, for example, via an optical scanner, then compiled, interpreted, or otherwise processed, and stored in a computer memory in a form that can be later executed by a computer. In this context, a "processor" can mean any hardware system, apparatus, or device that can fetch instructions from a computer readable medium and execute the instructions, including a processing system, a processor, or a combination of hardware and software that can fetch instructions from a computer readable medium and execute the instructions.

[0141] It should be understood that aspects of the application can be implemented in hardware, software, firmware, or combinations thereof. In the above embodiments, various steps or methods can be implemented in software or firmware that is stored in memory and executed by a suitable instruction execution system. As such, in some embodiments, specifically configured hardware can be used, and in another embodiment, software stored on a storage medium can be used, in combination with a suitably configured general purpose computer or other device. In some embodiments, one or more computer programs that can be written in any of a number of suitable programming languages and embodying the present application can be stored in a memory (e.g., a storage medium) of a machine (e.g., any of a variety of available computational platforms, such as those available from Intel Corporation of Santa Clara, California; Advanced Micro Devices, Inc. of

[0142] Those skilled in the art of the present technology can understand that all or part of the steps carried out by the above-mentioned embodiment method can be completed by programs instructing related hardware, and the programs can be stored in a computer readable storage medium. When the program is executed, it includes one of the steps of the method embodiment or a combination thereof.

[0143] In addition, each functional unit in each embodiment of the present application can be integrated into one processing module, or each unit can exist physically alone, or two or more units can be integrated into one module. The integrated module can be realized in the form of hardware or in the form of a software functional module. When the integrated module is realized in the form of a software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium.

[0144] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it should be understood that the above-mentioned embodiments are exemplary and cannot be understood as limiting the present application, and those skilled in the art can make changes, modifications, replacements and variations to the above-mentioned embodiments within the scope of the present application.

Claims

1. A method for playing video ringback tones, characterized in that, include: Obtain the first frame image from the video ringback tone to be played, perform subject recognition on the first frame image, and obtain the subject information layer; Edit the main information layer to obtain the target main information layer; Based on the first frame image, the target subject information layer, and the preset mask layer, a target image with naked-eye 3D effect is generated; The target image displays the naked-eye 3D effect.

2. The method according to claim 1, characterized in that, The step of obtaining the first frame image in the video ringback tone to be played includes: A first interactive control is provided in the interactive interface, which is an interface for displaying video ringback tone images, and the first interactive control is a control for triggering naked-eye 3D display effects; In response to the interaction operation of the interactive object on the first interactive control, the first frame image in the video ringtone to be played is obtained.

3. The method according to claim 1, characterized in that, The main information layer includes multiple main images. Editing the main information layer to obtain the target main information layer includes: A second interactive control is provided, which is used by an interactive object to select at least one target subject image from the plurality of subject images; The target subject image is edited to obtain the target subject information layer.

4. The method according to claim 1, characterized in that, The step of generating a target image with a naked-eye 3D effect based on the first frame image, the target subject information layer, and a preset mask layer includes: Obtain the saturation difference between the first frame image and the second frame image, where the second frame image is the next frame image after the first frame image; In response to the saturation difference being greater than or equal to a saturation difference threshold, edge blurring processing is applied to the target subject information layer; Based on the target subject information layer after edge blurring, the frame image, and the mask layer, the target image with naked-eye 3D effect is generated.

5. The method according to claim 1, characterized in that, The step of generating a target image with a naked-eye 3D effect based on the first frame image, the target subject information layer, and a preset mask layer includes: Obtain the layer position of the main information layer; Based on the layer position, the target subject information layer is set as the top layer, the mask layer is used as the middle layer, and the first frame image is used as the bottom layer to generate the target image with naked-eye 3D effect.

6. The method according to claim 1, characterized in that, The step of performing subject recognition on the first frame image to obtain a subject information layer includes: Perform grayscale conversion on the first frame image to obtain a first grayscale image; Obtain the pixel gradient information of each first pixel in the first grayscale image; Based on the pixel gradient information, the first grayscale image is subjected to non-maximum suppression processing to obtain the second grayscale image; Pixel filtering is performed based on the pixel intensity of the second pixel in the second grayscale image to obtain the target pixel; Based on the pixel range corresponding to the target pixel, the main information layer is obtained from the first frame image.

7. A video ringback tone playback device, characterized in that, include: The first processing module is used to acquire the first frame image in the video ringback to be played, perform subject recognition on the first frame image, and obtain the subject information layer. The second processing module is used to edit the main information layer to obtain the target main information layer; The third processing module is used to generate a target image with naked-eye 3D effect based on the first frame image, the target subject information layer, and the preset mask layer; The display module is used to display the target image of the naked-eye 3D effect.

8. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1 to 6.

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

10. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 6.