Media data generation method and apparatus, electronic device and storage medium
By displaying the reference media data and control sets in the target interaction page, determining the reference features and generating prompt information, the problem that the media data generation results do not meet user expectations is solved, and the accuracy and user experience of the generated results are improved.
Patent Information
- Application Number
- PCT/CN2024/138012
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-01-11
- Filing Date
- 2024-12-10
- Publication Date
- 2025-07-17
AI Technical Summary
In the prior art, the media data results generated based on text descriptions have a large deviation from user expectations, resulting in inaccurate generation results and poor user experience.
By displaying the reference media data and control set in the target interaction page, the reference features are determined in response to the control click event, and prompt information is generated based on the feature identification, and the target media data is finally generated, and the first prompt information and reference features are combined to realize the concrete process of media data generation.
Improve the accuracy and user experience of media data generation results, ensuring that the generated results meet user expectations.
Smart Images

Figure CN2024138012_17072025_PF_FP_ABST
Abstract
Description
Method, device, electronic device and storage medium for generating media data
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on January 11, 2024, with application number 202410045650.1 and invention name “A method, device, electronic device and storage medium for generating media data”, the entire contents of which are incorporated by reference into this application. Technical Field
[0003] The present disclosure relates to computer processing technology, and more particularly to a method, device, electronic device, and storage medium for generating media data. Background Art
[0004] Intelligent media data generation is a technology that uses intelligent tools to generate target images or videos that meet preset requirements based on text description content. Summary of the Invention
[0005] The present disclosure provides a method and apparatus for generating media data, an electronic device, and a storage medium.
[0006] In a first aspect, an embodiment of the present disclosure provides a method for generating media data, including:
[0007] In response to a media data loading event in a target interactive page, reference media data is loaded, and a first interactive window is displayed in the target interactive page, where the first interactive window includes the reference media data and a first control set, wherein the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data;
[0008] In response to a click event of a target control in the first control set, determining a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and displaying the reference feature in the first interactive window;
[0009] In response to a confirmation event for the reference feature, determining first prompt information according to the reference media data and the feature identifier, and displaying the first prompt information on the target interactive page;
[0010] In response to a generation event for the target media data, the target media data is generated according to the first prompt information and reference features, and the target media data is displayed in the target interactive page.
[0011] In a second aspect, an embodiment of the present disclosure further provides a media data generating device, including:
[0012] a window display module, configured to load reference media data in response to a media data loading event in a target interactive page, and display a first interactive window in the target interactive page, wherein the first interactive window includes the reference media data and a first control set, wherein the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data;
[0013] a feature display module, configured to, in response to a click event of a target control in the first control set, determine a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and display the reference feature in the first interactive window;
[0014] an information display module, configured to, in response to a confirmation event for the reference feature, determine first prompt information based on the reference media data and the feature identifier, and display the first prompt information on the target interactive page;
[0015] The media data generation module is configured to generate the target media data in response to a generation event for the target media data, based on the first prompt information and reference features, and display the target media data in the target interactive page.
[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:
[0017] one or more processors;
[0018] a storage device for storing one or more programs,
[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the media data generation method as described in any embodiment of the present disclosure.
[0020] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to execute the media data generation method as described in any embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.
[0022] FIG1 is a flow chart of a method for generating media data according to an embodiment of the present disclosure;
[0023] FIG2 is a schematic diagram of a first interactive window provided by an embodiment of the present disclosure;
[0024] FIG3 is a flow chart of another method for generating media data provided by an embodiment of the present disclosure;
[0025] FIG4 is a schematic diagram of a display position of a second interactive window provided by an embodiment of the present disclosure;
[0026] FIG5 is a flow chart of another method for generating media data according to an embodiment of the present disclosure;
[0027] FIG6 is a schematic diagram of a display position of a third interactive window provided in an embodiment of the present disclosure;
[0028] FIG7 is a schematic structural diagram of a media data generating device provided by an embodiment of the present disclosure;
[0029] FIG8 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.
[0031] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0032] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.
[0033] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0034] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".
[0035] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0036] It is understandable that before using the technical solutions disclosed in the various embodiments of this disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved in this disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.
[0037] For example, in response to a user's active request, a prompt message is sent to the user to clearly inform the user that the event requested will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the electronic device, application, server, storage medium, or other software or hardware that executes the event of the disclosed technical solution based on the prompt message.
[0038] As an optional but non-limiting implementation, in response to receiving a user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. Furthermore, the pop-up window may also contain a selection control for the user to select "agree" or "disagree" to provide personal information to the electronic device.
[0039] It is understandable that the above notification and user authorization process are merely illustrative and do not limit the implementation of the present disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of the present disclosure.
[0040] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) must comply with the requirements of relevant laws, regulations and relevant provisions.
[0041] As mentioned above, intelligent media data generation utilizes intelligent tools to generate target images or videos that meet preset requirements based on text descriptions. This method requires users to enter accurate and clear text descriptions. Inaccurate or inadequate descriptions of the desired effect can significantly deviate from the generated results, impacting accuracy and resulting in a poor user experience.
[0042] The present disclosure provides a media data generation method, device, electronic device and storage medium, which can improve the problem that the media data generation result does not meet the user's expectations and improve the accuracy of the media data generation result. In an embodiment of the present disclosure, by displaying a target interactive page, reference media data is loaded according to a media data loading event in the target interactive page, and a first interactive window is displayed in the target interactive page, and the first interactive window includes reference media data and a first control set; then, in response to a click event of a target control in the first control set, a reference feature corresponding to the reference media data and a feature identifier is determined according to the target control, and the reference feature is displayed in the first interactive window; then, in response to a confirmation event of the reference feature, a first prompt information is determined according to the reference media data and the feature identifier, and the first prompt information is displayed in the target interactive page; in response to a generation event for the target media data, the target media data is generated and displayed according to the first prompt information and the reference feature. The embodiment of the present disclosure combines the first prompt information and the reference feature to realize the visualization of the media data generation effect, solves the problem that the media data generation result does not meet the user's expectations, and improves the accuracy of the media data generation result and the user experience.
[0043] Figure 1 is a flow chart of a media data generation method provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to scenarios of intelligent mapping. The method can be executed by a media data generation device, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC, or a server.
[0044] As shown in FIG1 , the method includes:
[0045] S110. In response to a media data loading event in a target interactive page, load reference media data, and display a first interactive window in the target interactive page, where the first interactive window includes the reference media data and a first control set.
[0046] The target interactive page is a preset page of the intelligent drawing tool. For example, the target interactive page is the main page or home page of the intelligent drawing tool. The media data loading event is used to trigger the media data loading operation. Optionally, in response to a click event of the media data upload control in the target interactive page, the media data loading event is triggered. Optionally, the media data loading operation includes the following steps: detecting that the media data loading event is triggered, displaying a media data selection page, and the media data selection page includes several candidate media data. Determine the selected candidate media data as reference media data, load the reference media data into the first interactive window, and the first interactive window is displayed in the target interactive page.
[0047] Media data includes data in the form of images or videos.
[0048] The first control set includes candidate controls, and feature identifiers are displayed at corresponding positions of the candidate controls. The first control set includes several candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data. Feature identifiers corresponding to different candidate controls represent different reference features.
[0049] For example, if the feature identifier is object XX, the content displayed on the candidate control may be object XX, and the reference feature may be a feature corresponding to object XX in the reference media data.
[0050] Reference features corresponding to feature identifiers include clear feature types and fuzzy feature types. Clear feature types satisfy first-type conditions, while fuzzy feature types satisfy second-type conditions. The first-type condition specifies that the reference feature's type is clear. The second-type condition specifies that the reference feature's type is fuzzy.
[0051] Optionally, if the type of the reference feature is clear, the reference feature corresponding to the feature identifier in the reference media data is retained in the target media data. If the type of the reference feature is ambiguous, the target media data is generated based on at least one of the multi-dimensional information such as style, composition, and elements of the reference media data.
[0052] Exemplarily, a click operation on a media data upload control on a target interactive page is detected, triggering a media data loading event on the target interactive page, and displaying a media data selection page on the target interactive page. The media data selection page includes a plurality of candidate media data. A selection operation on the candidate media data is detected, and the selected candidate media data is determined as reference media data. The reference media data is loaded into a first interactive window, which is then displayed on the target interactive page.
[0053] For example, in response to a click on an image upload control on a target interactive page, an image loading event is triggered, and several candidate images are displayed in a pop-up window on the target interactive page. The selected candidate image is used as a reference image, and a first interactive window is generated based on the reference image, which is then displayed on the target interactive page.
[0054] The first interactive window also includes a first control set, which includes candidate controls corresponding to feature identifiers. The content of the candidate controls is the feature identifier, and the feature identifier represents the reference feature. Assuming there are three candidate controls, and the feature identifiers for each candidate control are A, B, or C, feature recognition is performed on the reference media data based on feature identifiers A, B, or C to obtain the corresponding reference feature.
[0055] S120: In response to a click event of a target control in the first control set, determine a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and display the reference feature in the first interactive window.
[0056] The target control represents the candidate control selected from the first control set. If the reference feature is A and the type of the reference feature is clear, the reference feature corresponding to A in the reference media data is retained in the target media data. If the type of the reference feature is ambiguous, the entire reference media data is used as the reference feature. Thus, the preset media data generation model references information such as the style, composition, or elements of the reference media data when generating the target media data.
[0057] Exemplarily, a click operation on a target control in the first control set is detected, and a feature identifier corresponding to the target control is obtained. For example, the content displayed on the target control is used as the feature identifier corresponding to the target control. Alternatively, the content associated with the target control is used as the feature identifier corresponding to the target control. If the feature identifier is "subject", it can be determined that the reference feature corresponding to the reference media data is the subject in the reference media data. The subject of the reference media data is displayed in the first interactive window. Figure 2 is a schematic diagram of a first interactive window provided by an embodiment of the present disclosure. As shown in Figure 2, the target interactive page 200 includes a first interactive window 210, and the subject of the reference image 220 displayed in the first interactive window 210 is a water cup.
[0058] In some embodiments, if the feature identifier corresponding to the target control meets the first type condition, feature identification is performed on the reference media data based on the feature identifier to obtain the reference feature; the marking information and feature update control of the reference feature are displayed in the first interactive window, wherein the feature update control is used to trigger an update event for the reference feature by updating the marking information.
[0059] The marking information is used to prominently mark the area where the reference feature is located in the reference media data.
[0060] For example, the marking information may include a framing frame, and the framing frame is used to mark the reference features in the reference media data in the first interactive window, and the features within the framing frame are the reference features. If the reference features in the reference media data include features of different target objects, the framing frames of the different target objects are determined respectively, and the default target object is determined according to the preset feature selection algorithm, and the framing frame corresponding to the default target object is highlighted. If the remaining target objects other than the default target object are selected in the first interactive window, the features of the remaining selected target objects are used as reference features. The framing frames of the remaining selected target objects are highlighted, and the originally highlighted framing frames are set to gray. Optionally, thumbnails of each target object are displayed at a set position in the first interactive window as feature update controls, and the brightness of the thumbnail of the target object corresponding to the reference feature in the currently highlighted framing frame is higher than that of other thumbnails. In response to the thumbnail switching operation, the thumbnail after switching is highlighted, and the thumbnail before switching is set to gray, thereby achieving reference feature switching.
[0061] Alternatively, the marking information may include a preset layer, and the preset layer is used to cover the reference features in the reference media data in the first interactive window, and the features covered by the preset layer are the reference features. The editing area controls are displayed at a set position in the first interactive window, and the editing area controls include one or more editing controls such as smart recognition controls, manual editing controls, erase controls, and undo controls. Automatic recognition of reference features is achieved through the smart recognition controls. Manually adjust the intelligently recognized reference features through the manual editing controls. For example, use the manual editing controls to smear out missed features. Or, use the erase control to erase multiple selected features.
[0062] Optionally, if the feature identifier corresponding to the target control meets the first type condition, feature recognition is performed on the reference media data based on the feature identifier, and a preset mask is displayed in the first interactive window during the feature recognition process. The preset mask includes preset prompt information, which is used to indicate that feature recognition is currently in progress. After feature recognition is completed, the tag information of the reference feature and the feature update control are displayed in the first interactive window. If a cancel operation is detected during the feature recognition process, the feature recognition operation is terminated. The reference media data is displayed in the first interactive window.
[0063] In some other embodiments, if the feature identifier corresponding to the target control satisfies the second type condition, the reference media data is determined to be a reference feature; the reference media data and a reference degree control are displayed in the first interactive window, wherein the reference degree control is used to set a weight value corresponding to the reference feature. The weight value corresponding to the reference feature represents the degree of reference of the target media data to the reference media data. If the weight value is high, the degree of reference of the target media data to the reference media data is high; if the weight value is low, the degree of reference of the target media data to the reference media data is low.
[0064] S130: In response to a confirmation event for the reference feature, determine first prompt information according to the reference media data and the feature identifier, and display the first prompt information in the target interactive page.
[0065] The triggering condition of the confirmation event may be that a preset control in the first interactive window is clicked. For example, if it is detected that a save control in the first interactive window is clicked, a confirmation event for the reference feature is triggered.
[0066] The first prompt information is a combination of an image and text. For example, the first prompt information can be a control with an image and text. Alternatively, the image and text are marked as a whole using a label to obtain the first prompt information. The image on the control can be a reduced version of the reference media data. If the reference media data is a reference image, the image is a reduced version of the reference image. If the reference media data is a video, the image on the control is a thumbnail of a preset frame in the video. The text can be determined based on the feature identifier of the target control. For example, the image in the first prompt information can be an image of a water cup as the main subject, and the text can be the reference subject.
[0067] Exemplarily, a reference feature and a save control are displayed in a first interactive window. If a click operation on the save control in the first interactive window is detected, a confirmation event for the reference feature is triggered. The resolution of the reference media data is adjusted to obtain reduced reference media data, and the first prompt information is determined based on the reduced reference media data and the reference identifier.
[0068] Optionally, the resolution of the reference image is adjusted to obtain a reduced reference image, and image prompt information is determined according to the reduced reference image and reference features.
[0069] Optionally, a preset video frame in a reference video is obtained, a resolution of the preset video frame is reduced to obtain a reduced reference video frame, and the first prompt information is determined according to the reduced reference video frame and a reference identifier.
[0070] Taking the reference media data as a water cup image and the reference feature as a subject as an example, the water cup image is reduced to a set resolution, and the reduced water cup image and the reference subject are combined to obtain the first prompt information.
[0071] In some embodiments, the target interactive page further includes second prompt information, the second prompt information representing prompt text for generating the target media data, and the first prompt information and the second prompt information constitute the target prompt information. At least one first prompt information may be added before the second prompt information. Alternatively, at least one first prompt information may be added to the second prompt information based on the cursor position.
[0072] Optionally, before inputting the second prompt information, a first preset statement is displayed in the input box of the target interactive page. The first preset statement may include "Describe the media data information you want to generate." If a click operation of the save control in the first interactive window is detected, the first prompt information and the second preset statement are displayed in the input box of the target interactive page. The second preset statement may be determined based on a reference feature. For example, if the reference feature is the subject, the second preset statement may include "Describe the subject image scene you want to generate." Alternatively, if the reference feature is the target object, the second preset statement may include "Describe the target object scene you want to generate," etc. Alternatively, if the reference feature is "Generate more creative ideas based on this image," the first preset statement is displayed after the first prompt information. The text entered by the user for the first preset statement or the second preset statement is used as the second prompt information.
[0073] Optionally, displaying the first prompt information on the target interactive page includes: displaying a first form of the first prompt information on the target interactive page. If a display attribute of the first prompt information in the first form satisfies a first display condition, converting the first form to a second form, and displaying the second form of the first prompt information on the target interactive page. If a display attribute of the first prompt information in the second form satisfies a second display condition, restoring the second form to the first form, and displaying the first form of the first prompt information on the target interactive page.
[0074] Among them, the first form and the second form represent different values of the display attribute of the first prompt information. If the display attribute is the brightness of the control, the first form represents the first brightness, the second form represents the second brightness, and the first brightness is less than the second brightness. For example, if a click operation of saving the control in the first interactive window is detected, the first prompt information is displayed with the first brightness in the input box of the target interactive page. After the first prompt information is displayed with the first brightness for a set time, the brightness of the first prompt information is adjusted to the second brightness, and the first prompt information is displayed with the second brightness in the input box of the target interactive page. After the first prompt information is displayed with the second brightness for a set time, the brightness of the first prompt information is restored to the first brightness, and the first prompt information is displayed with the first brightness in the input box of the target interactive page. Alternatively, the display attributes may also include attributes such as font color, control color, or font boldness, which are not specifically limited by the embodiment of the present disclosure.
[0075] Optionally, after displaying the first prompt information in the target interaction page, it also includes: in response to a deletion event for the first prompt information, displaying the selected state of the first prompt information in the target interaction page; in response to a deletion event for the first prompt information in the selected state, deleting the first prompt information in the target interaction page.
[0076] If the first prompt information in the input box of the target interactive page needs to be deleted and the cursor is located behind the first prompt information, the first prompt information will be converted to a selected state in response to a delete event for the first prompt information. The brightness of the first prompt information in the selected state is higher than that of the first prompt information in the unselected state to inform the user that the first prompt information has been selected. If a delete event for the first prompt information in the selected state is detected, the first prompt information will be deleted from the input box.
[0077] S140: In response to a generation event for the target media data, generate the target media data according to the first prompt information and reference features, and display the target media data in the target interactive page.
[0078] The triggering condition for generating the event may include triggering a media data generation control in the target interactive page. The first prompt information is used to guide the preset media data generation model to determine the type of the media data generation scenario.
[0079] Taking the case where the media data is an image as an example, the preset media data generation model generates a target image based on the first prompt information and the reference features. Taking the case where the media data is a video as an example, the preset media data generation model generates a target video frame based on the first prompt information and the reference features corresponding to each video frame in the reference video, and then generates a target video based on the target video frames.
[0080] In some embodiments, a second prompt information may be input into the target interactive page, and the second prompt information may be used to guide the preset media data generation model in understanding the user's expectations regarding the target media data. For example, upon detecting a click event on a media data generation control in the target interactive page, the first prompt information, the second prompt information, and the reference features may be input into the preset media data generation model, and the target media data may be output by the preset media data generation model.
[0081] If the media data generation scenario is a scenario where the reference feature type is clear, the target media data output by the preset media data generation model will include the reference feature. If the media data generation scenario is a scenario where the reference feature type is ambiguous, the preset media data generation model will generate the target media data based on the style, composition, or elements of the reference media data.
[0082] If the media data generation scenario is a scenario where the type of reference feature is ambiguous, a weight value is determined based on an interactive operation of a reference degree control in the first interactive window. In response to a click event of the media data generation control in the target interactive page, a preset media data generation model is used to generate target media data based on the first prompt information, the reference feature, and the weight value.
[0083] Optionally, if a first prompt and at least two second prompts are displayed in the input field of the target interactive page, the second prompt does not need to be entered, and the first prompt, the second prompt, and the reference features are input into the preset media data generation model. The first prompt is determined based on a feature identifier that satisfies a first type of condition, and the second prompt is determined based on a feature identifier that satisfies a second type of condition.
[0084] Optionally, if a first prompt information and a second prompt information are displayed in the input field of the target interactive page, the second prompt information is obtained, and the first prompt information, the second prompt information and the reference feature are input into the preset media data generation model.
[0085] In the disclosed embodiment, after generating multiple pieces of target media data, each piece of target media data is displayed at a preset location on the target interactive page. The target interactive page also includes an edit control and a regenerate control. The edit control is used to trigger the display of target prompt information in an input box on the target interactive page. The regenerate control is used to trigger a preset media data generation model to regenerate the target media data based on the first prompt information and the reference media data.
[0086] The technical solution of the embodiment of the present disclosure is to display the target interactive page, load the reference media data according to the media data loading event in the target interactive page, and display the first interactive window in the target interactive page, and the first interactive window includes the reference media data and the first control set; then, in response to the click event of the target control in the first control set, determine the reference feature corresponding to the reference media data and the feature identifier according to the target control, and display the reference feature in the first interactive window; then, in response to the confirmation event of the reference feature, determine the first prompt information according to the reference media data and the feature identifier, and display the first prompt information in the target interactive page; in response to the generation event for the target media data, generate and display the target media data according to the first prompt information and the reference feature. The embodiment of the present disclosure combines the first prompt information and the reference feature to realize the visualization of the media data generation effect, solve the problem that the media data generation result does not meet the user's expectations, and improve the accuracy of the media data generation result and the user experience.
[0087] FIG3 is a flow chart of another method for generating media data provided by an embodiment of the present disclosure. Based on the above embodiments, the embodiment of the present disclosure additionally defines a second interactive window.
[0088] As shown in FIG3 , the method includes:
[0089] S310. In response to a media data loading event in a target interactive page, reference media data is loaded, and a first interactive window is displayed in the target interactive page, wherein the first interactive window includes the reference media data and a first control set, wherein the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data.
[0090] S320. In response to a triggering event of a target control in the first control set, determine a display position of a second interactive window in the first interactive window based on a positional relationship between the target control and the reference media data, wherein the second interactive window is used to display reference features corresponding to preset media data and the target control.
[0091] Among them, the trigger event of the target control can be triggered by hovering the mouse.
[0092] Exemplarily, it is detected that the mouse stays on the target control for more than a set time threshold, triggering a trigger event of the target control. Based on the positional relationship between the target control and the reference media data, the display position of the second interactive window in the first interactive window is determined, including: determining a first object based on a first area corresponding to the target control in the first interactive window. Determining a second object based on a second area corresponding to the reference media data in the first interactive window. Determining a first alignment between the second interactive window and the target control based on the positional relationship between the first object and the second object. Determining the display position of the second interactive window in the first interactive window based on the first area and the first alignment.
[0093] Figure 4 is a schematic diagram of the display position of a second interactive window provided by an embodiment of the present disclosure. The first interactive window 410 includes a reference image 413 and a candidate control 411. The feature identifier of the target control selected in the candidate control 411 is the main body. Based on the first area corresponding to the target control 411 in the first interactive window 410, the center line of the target control is determined as the first object 412. Based on the second area corresponding to the reference image 413 in the first interactive window 410, the image boundary of the reference image 413 in the horizontal direction is determined as the second object 414. The second object 414 includes an image left boundary and an image right boundary. If the distance between the first object 412 and the left boundary of the image is less than or equal to a preset distance threshold, the second interactive window 420 is determined to be left-aligned with the target control 411. If the distance between the first object 412 and the left boundary of the image is greater than the preset distance threshold, and the distance between the first object 412 and the right boundary of the image is greater than the preset distance threshold, the second interactive window 420 is determined to be centered with the target control 411. If the distance between the first object 412 and the left border of the image is greater than the preset distance threshold, and the distance between the first object 412 and the right border of the image is less than or equal to the preset distance threshold, it is determined that the second interaction window 420 is right-aligned with the target control.
[0094] The display position of the second interactive window 420 in the first interactive window 410 is determined based on the alignment between the second interactive window 420 and the target control 411 and the position of the target control 411 in the first interactive window 410. The second interactive window 420 includes a preset image 421, and the three flowers serving as the main body of the preset image are covered by a preset layer.
[0095] S330: Display the second interactive window at the display position in the first interactive window.
[0096] For example, a second interactive window is displayed in the display position of the first interactive window, and the marking information of the reference feature in the preset media data is displayed in the second interactive window. For example, the identification process of the reference feature in the preset media data can be displayed in the form of an animated image. If the feature corresponding to the target control is identified as the main body, the reference feature in the preset media data is overlaid with a preset layer.
[0097] S340: In response to a click event of a target control in the first control set, determine a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and display the reference feature in the first interactive window.
[0098] Exemplarily, when a click operation of a target control in the first control set is detected, the reference feature corresponding to the reference media data is identified based on the feature identifier corresponding to the target control, and a preset mask is displayed in the first interactive window. The preset mask includes preset prompt information, and the preset prompt information is used to prompt that feature recognition is currently in progress. If the feature identifier corresponding to the target control is a subject, after the feature recognition is completed, the reference media data is displayed through the first interactive window, and the subject of the reference media data is covered by a preset layer. If the feature identifier corresponding to the target control is a target object, after the feature recognition is completed, the reference media data is displayed through the first interactive window, and the target object in the reference media data is selected using a viewfinder.
[0099] If the feature identifier corresponding to the target control is the main body, an editing area control is displayed at a set position in the first interactive window. The editing area control includes one or more editing controls such as an intelligent recognition control, a manual editing control, an erase control, and an undo control. In response to an interactive operation of the manual editing control, a new area corresponding to the manual editing control is identified, and a preset layer is used to cover the new area, so as to update the reference feature based on the features of the new area. In response to an interactive operation of the erase control, an erase area corresponding to the erase control is identified, and the preset layer corresponding to the erase area is deleted to delete the features corresponding to the erase area in the reference feature.
[0100] S350: In response to a confirmation event for the reference feature, determine first prompt information according to the reference media data and the feature identifier, and display the first prompt information in the target interactive page.
[0101] S360: In response to a generation event for the target media data, generate the target media data according to the first prompt information and reference features, and display the target media data in the target interactive page.
[0102] The technical solution of the embodiment of the present disclosure obtains the triggering event of the target control, determines the display position of the second interactive window in the first interactive window based on the positional relationship between the target control and the reference media data, and then displays the second interactive window at the display position in the first interactive window. The recognition process and recognition results of the reference features are displayed through the preset media data in the second interactive window, so as to realize the visual display of the reference features corresponding to the target control, thereby avoiding a large deviation between the target media data and the expectation due to the incorrect selection of the target control.
[0103] FIG5 is a flow chart of another method for generating media data provided by an embodiment of the present disclosure. Based on the above embodiments, the embodiment of the present disclosure additionally defines a third interactive window.
[0104] As shown in FIG5 , the method includes:
[0105] S510. In response to a media data loading event in a target interactive page, reference media data is loaded, and a first interactive window is displayed in the target interactive page, wherein the first interactive window includes the reference media data and a first control set, wherein the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data.
[0106] S520: In response to a click event of a target control in the first control set, determine a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and display the reference feature in the first interactive window.
[0107] S530: In response to a confirmation event for the reference feature, determine first prompt information according to the reference media data and the feature identifier, and display the first prompt information in the target interactive page.
[0108] S540. In response to a triggering event for the first prompt information, based on the positional relationship between the first prompt information and the target prompt information, determine the display position of the third interactive window in the target interactive page, wherein the target prompt information includes the first prompt information and the second prompt information.
[0109] Exemplarily, if it is detected that the mouse stays on the first prompt information for longer than a set time threshold, a trigger event for the first prompt information is triggered. A third object is determined based on a third area corresponding to the first prompt information in the target interaction page. A fourth object is determined based on a fourth area corresponding to the target prompt information in the target interaction page. Based on the positional relationship between the third object and the fourth object, a second alignment method of the third interaction window with the first prompt information is determined. Based on the third area and the second alignment method, a display position of the third interaction window in the target interaction page is determined.
[0110] Figure 6 is a schematic diagram illustrating the display position of a third interactive window provided by an embodiment of the present disclosure. The target interactive page 610 includes, among other things, a target image display area 611 and an input box 612. The input box 612 includes target prompt information 613 and a generation control 614. The target prompt information 613 includes, among other things, first prompt information 615 and second prompt information 616. Based on the third area corresponding to the first prompt information 615, the centerline of the first prompt information 615 is determined as a third object 617. Based on the fourth area corresponding to the target prompt information 613, the horizontal content boundaries of the target prompt information 613 are determined as a fourth object 618. The fourth object 618 includes a left content boundary and a right content boundary. If the distance between the third object 617 and the left content boundary is less than or equal to a preset distance threshold, the third interactive window 619 is left-aligned with the target prompt information 613. If the distance between the third object 617 and the left content boundary is greater than the preset distance threshold, and the distance between the third object 617 and the right content boundary is greater than the preset distance threshold, the third interactive window 619 is center-aligned with the target prompt information 613. If the distance between the third object 617 and the left boundary of the content is greater than the preset distance threshold, and the distance between the third object 617 and the right boundary of the content is less than or equal to the preset distance threshold, the third interaction window 619 is determined to be right-aligned with the target prompt information 613.
[0111] The display position of the third interaction window 619 in the target interaction page 610 is determined based on the alignment between the third interaction window 619 and the target prompt information 613 and the position of the target prompt information 613 in the input box.
[0112] S550: Display the third interaction window at the display position in the target interaction page, where the third interaction window includes reference media data.
[0113] Exemplarily, a third interactive window is displayed at the display location in the target interactive page, the reference media data is adjusted based on the length and height of the third interactive window so that the adjusted reference media data fits the third interactive window, and the adjusted reference media data is displayed in the third interactive window. If the mouse moves away from the first prompt information in the input box, the third interactive window is closed.
[0114] S560: In response to a generation event for the target media data, generate the target media data according to the first prompt information and reference features, and display the target media data in the target interactive page.
[0115] Exemplarily, a click operation of a generation control in an input box is detected, triggering a generation event of target media data. The target media data is generated according to the first prompt information, the second prompt information, and the reference feature, and displayed in a media data display area of a target interactive page.
[0116] Optionally, the media data display area of the target interactive page also includes target prompt information, and the target prompt information includes first prompt information and second prompt information. If a triggering event of the first prompt information is detected, the first distance between the center line of the first prompt information and the left boundary of the content of the target prompt information is determined. If the first distance is less than or equal to the set distance threshold, the third interactive window is displayed in the media data display area in a manner of left-aligned with the first prompt information. If the first distance is greater than the set distance threshold, the second distance between the center line of the first prompt information and the right boundary of the content of the target prompt information is determined. If the second distance is greater than the set distance threshold, the third interactive window is displayed in the media data display area in a manner of centered alignment with the first prompt information. If the first distance is greater than the set distance threshold, and the second distance is less than or less than the set distance threshold, the third interactive window is displayed in the media data display area in a manner of right-aligned with the first prompt information.
[0117] The technical solution of the embodiment of the present disclosure determines the display position of the third interactive window in the target interactive page based on the positional relationship between the first prompt information and the target prompt information in response to a triggering event for the first prompt information, and then displays the third interactive window at the display position in the target interactive page. The reference media data is displayed through the third interactive window to achieve a visual display of the reference media data, thereby quickly determining whether there is a problem of misselection of reference media data, further improving the accuracy of the target media data, and discovering the problem of misselection of reference media data before generating the target media data, saving computing resources.
[0118] FIG7 is a schematic structural diagram of a media data generating device provided in an embodiment of the present disclosure. The device may be implemented in the form of software and / or hardware. Optionally, the device may be implemented by an electronic device, which may be a mobile terminal, a PC, or a server.
[0119] As shown in FIG. 7 , the apparatus includes: a window display module 710 , a feature display module 720 , an information display module 730 , and a media data generation module 740 .
[0120] A window display module 710 is configured to load reference media data in response to a media data loading event in a target interactive page, and display a first interactive window in the target interactive page, wherein the first interactive window includes the reference media data and a first control set, wherein the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data;
[0121] a feature display module 720 configured to, in response to a click event of a target control in the first control set, determine a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and display the reference feature in the first interactive window;
[0122] An information display module 730 is configured to, in response to a confirmation event for the reference feature, determine first prompt information based on the reference media data and the feature identifier, and display the first prompt information on the target interactive page;
[0123] The media data generation module 740 is configured to generate the target media data in response to a generation event for the target media data according to the first prompt information and reference features, and display the target media data in the target interactive page.
[0124] Optionally, the device further comprises:
[0125] a first position determining module configured to, after displaying the first interactive window in the target interactive page, determine, in response to a triggering event of a target control in the first control set, a display position of a second interactive window in the first interactive window based on a positional relationship between the target control and reference media data, wherein the second interactive window is configured to display a reference feature corresponding to preset media data and the target control;
[0126] The first window display module is configured to display the second interactive window at the display position in the first interactive window.
[0127] Furthermore, the first location determination module is specifically configured to:
[0128] Determine a first object based on a first area corresponding to the target control in the first interactive window;
[0129] determining a second object based on a second area corresponding to the reference media data in the first interactive window;
[0130] Determining a first alignment between the second interactive window and the target control according to a positional relationship between the first object and the second object;
[0131] A display position of the second interactive window in the first interactive window is determined according to the first area and the first alignment.
[0132] Optionally, the information display module 730 is specifically configured to:
[0133] The resolution of the reference media data is adjusted to obtain reduced reference media data, and first prompt information is determined according to the reduced reference media data and the reference identifier.
[0134] Optionally, displaying the first prompt information in the target interaction page includes:
[0135] Displaying a first form of the first prompt information on the target interactive page;
[0136] If the display attribute of the first prompt information in the first form satisfies the first display condition, converting the first form into a second form, and displaying the second form of the first prompt information on the target interactive page;
[0137] If the display attribute of the first prompt information in the second form meets the second display condition, the second form is restored to the first form, and the first form of the first prompt information is displayed in the target interactive page.
[0138] Optionally, the device further comprises:
[0139] a second position determination module configured to, after displaying the first prompt information on the target interactive page, determine, in response to a triggering event for the first prompt information, a display position of a third interactive window on the target interactive page based on a positional relationship between the first prompt information and target prompt information, wherein the target prompt information includes first prompt information and second prompt information, and the second prompt information represents prompt text for generating target media data;
[0140] The second window display module is configured to display the third interactive window at the display position in the target interactive page, where the third interactive window includes reference media data.
[0141] Optionally, the second location determination module is specifically configured to:
[0142] Determining a third object based on a third area corresponding to the first prompt information in the target interactive page;
[0143] determining a fourth object based on a fourth area corresponding to the target prompt information in the target interaction page;
[0144] determining a second alignment mode between the third interaction window and the first prompt information according to a positional relationship between the third object and the fourth object;
[0145] The display position of the third interaction window in the target interaction page is determined according to the third area and the second alignment.
[0146] Optionally, the device further includes a deletion module, configured to:
[0147] After displaying the first prompt information on the target interaction page, in response to a deletion event for the first prompt information, displaying a selected state of the first prompt information on the target interaction page;
[0148] In response to a deletion event for the first prompt information in the selected state, the first prompt information is deleted in the target interaction page.
[0149] Optionally, the feature display module 720 is specifically configured to:
[0150] If the feature identifier corresponding to the target control meets the first type condition, perform feature recognition on the reference media data according to the feature identifier to obtain the reference feature;
[0151] The marking information and the feature update control of the reference feature are displayed in the first interactive window, wherein the feature update control is used to trigger an update event for the reference feature by updating the marking information.
[0152] Optionally, the feature display module 720 is specifically configured to:
[0153] If the feature identifier corresponding to the target control meets the second type condition, determining that the reference media data is a reference feature;
[0154] The reference media data and a reference degree control are displayed in the first interactive window, wherein the reference degree control is used to set a weight value corresponding to the reference feature.
[0155] Optionally, the media data generation module 740 is specifically configured to:
[0156] In response to a click event of a media data generation control in the target interactive page, a preset media data generation model is used to generate target media data based on the first prompt information, reference features, and weight values.
[0157] The media data generating device provided in the embodiments of the present disclosure can execute the media data generating method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of the execution method.
[0158] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
[0159] FIG8 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG8 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG8 ) 800 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG8 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
[0160] As shown in Figure 8, electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. Various programs and data required for the electronic device 800 events are also stored in RAM 803. Processing device 801, ROM 802, and RAM 803 are connected to each other via a bus 804. An edit / output (I / O) interface 805 is also connected to bus 804.
[0161] Typically, the following devices may be connected to the I / O interface 805: an input device 806 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 808 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although FIG8 shows the electronic device 800 with various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0162] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0163] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0164] The electronic device provided by the embodiment of the present disclosure and the media data generation method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0165] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the media data generation method provided in the above embodiment is implemented.
[0166] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0167] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0168] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0169] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:
[0170] In response to a media data loading event in a target interactive page, reference media data is loaded, and a first interactive window is displayed in the target interactive page, where the first interactive window includes the reference media data and a first control set, wherein the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and the target media data;
[0171] In response to a click event of a target control in the first control set, determining a reference feature corresponding to the reference media data according to a feature identifier corresponding to the target control, and displaying the reference feature in the first interactive window;
[0172] In response to a confirmation event for the reference feature, determining first prompt information according to the reference media data and the feature identifier, and displaying the first prompt information on the target interactive page;
[0173] In response to a generation event for the target media data, the target media data is generated according to the first prompt information and reference features, and the target media data is displayed in the target interactive page.
[0174] The computer program code for performing the events of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone 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 a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0175] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and events of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or event, or can be implemented by a combination of dedicated hardware and computer instructions.
[0176] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit does not necessarily limit the unit itself.
[0177] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0178] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0179] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0180] In addition, although each event is described in a specific order, this should not be understood as requiring these events to be executed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.
[0181] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. A method for generating media data, comprising: In response to a media data loading event in a target interaction page, loading reference media data, and displaying a first interaction window in the target interaction page, where the first interaction window includes the reference media data and a first control set, and the first control set includes candidate controls for characterizing feature identifiers associated with the reference media data and target media data; In response to a click event on a target control in the first control set, determining a reference feature corresponding to the reference media data according to the feature identifier corresponding to the target control, and displaying the reference feature in the first interaction window; In response to a confirmation event for the reference feature, determining a first prompt message according to the reference media data and the feature identifier, and displaying the first prompt message in the target interaction page; In response to a generation event for the target media data, generating the target media data according to the first prompt message and the reference feature, and displaying the target media data in the target interaction page.
2. The method according to claim 1, wherein, After displaying the first interaction window in the target interaction page, further comprising: In response to a trigger event on a target control in the first control set, determining a display position of a second interaction window in the first interaction window based on a positional relationship between the target control and the reference media data, where the second interaction window is for displaying preset media data and a reference feature corresponding to the target control; Displaying the second interaction window at the display position in the first interaction window.
3. The method according to claim 2, wherein The determining the display position of the second interaction window in the first interaction window based on the positional relationship between the target control and the reference media data includes: Determining a first object based on a first area corresponding to the target control in the first interaction window; Determining a second object based on a second area corresponding to the reference media data in the first interaction window; Determining a first alignment mode of the second interaction window with respect to the target control according to the positional relationship between the first object and the second object; Determining the display position of the second interaction window in the first interaction window according to the first area and the first alignment mode.
4. The method according to claim 1, wherein The determining the first prompt message according to the reference media data and the feature identifier includes: Adjusting the resolution of the reference media data to obtain a reduced reference media data, and determining the first prompt message according to the reduced reference media data and the reference identifier.
5. The method according to claim 1, wherein The displaying the first prompt message in the target interaction page includes: Displaying a first form of the first prompt message in the target interaction page; If a display attribute of the first form of the first prompt message meets a first display condition, converting the first form to a second form, and displaying a second form of the first prompt message in the target interaction page; If a display attribute of the second form of the first prompt message meets a second display condition, restoring the second form to the first form, and displaying the first form of the first prompt message in the target interaction page.
6. The method according to claim 1, wherein After displaying the first prompt message in the target interaction page, further comprising: In response to a trigger event for the first prompt message, based on the positional relationship between the first prompt message and the target prompt message, determine the display position of the third interaction window on the target interaction page, where the target prompt message includes the first prompt message and the second prompt message, and the second prompt message represents a prompt text for generating target media data; Display the third interaction window at the display position on the target interaction page, where the third interaction window includes reference media data.
7. The method according to claim 6, wherein The determining the display position of the third interaction window on the target interaction page based on the positional relationship between the first prompt message and the target prompt message includes: Determine a third object based on a third area corresponding to the first prompt message on the target interaction page; Determine a fourth object based on a fourth area corresponding to the target prompt message on the target interaction page; Determine a second alignment method between the third interaction window and the first prompt message according to the positional relationship between the third object and the fourth object; Determine the display position of the third interaction window on the target interaction page according to the third area and the second alignment method.
8. The method according to claim 1, wherein, After displaying the first prompt message on the target interaction page, it further includes: In response to a deletion event for the first prompt message, display a selected state of the first prompt message on the target interaction page; In response to a deletion event for the first prompt message in the selected state, delete the first prompt message on the target interaction page.
9. The method according to claim 1, wherein, The displaying the reference feature corresponding to the reference media data in the first interaction window according to the feature identifier corresponding to the target control includes: If the feature identifier corresponding to the target control meets a first type condition, perform feature recognition on the reference media data according to the feature identifier to obtain the reference feature; Display a marker information and a feature update control of the reference feature in the first interaction window, where the feature update control is used to trigger an update event for the reference feature by updating the marker information.
10. The method according to claim 1, wherein, The displaying the reference feature corresponding to the reference media data in the first interaction window according to the feature identifier corresponding to the target control includes: If the feature identifier corresponding to the target control meets a second type condition, determine the reference media data as the reference feature; Display the reference media data and a reference degree control in the first interaction window, where the reference degree control is used to set a weight value corresponding to the reference feature.
11. The method according to claim 10, wherein, The generating the target media data according to the first prompt message and the reference feature in response to a generation event for the target media data includes: In response to a click event of a media data generation control on the target interaction page, use a preset media data generation model to generate target media data based on the first prompt message, the reference feature, and the weight value.
12. A media data generation device, including: A window display module, configured to load reference media data in response to a media data loading event in a target interaction page, and display a first interaction window in the target interaction page, where the first interaction window includes the reference media data and a first control set, and the first control set includes candidate controls, and the candidate controls are used to represent feature identifiers associated with the reference media data and target media data; A feature display module, configured to, in response to a click event on a target control in the first control set, determine a reference feature corresponding to the reference media data according to the feature identifier corresponding to the target control, and display the reference feature in the first interaction window; An information display module, configured to, in response to a confirmation event for the reference feature, determine first prompt information according to the reference media data and the feature identifier, and display the first prompt information in the target interaction page; A media data generation module, configured to, in response to a generation event for the target media data, generate the target media data according to the first prompt information and the reference feature, and display the target media data in the target interaction page.
13. An electronic device, the electronic device comprising: One or more processors; A storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the media data generation method according to any one of claims 1-11.
14. A storage medium containing computer-executable instructions, the computer-executable instructions being used to execute the media data generation method according to any one of claims 1-11 when executed by a computer processor.
Citation Information
Patent Citations
Information issuing method, identification method, electronic equipment and medium
CN116166151A
Media content display method and device, equipment, readable storage medium and product
CN117041647A
Multimedia processing method and apparatus based on artificial intelligence, and electronic device
US20230057566A1
Video sharing method and apparatus, device, and medium
US20240062443A1