Augmented reality image interaction method, terminal and storage medium

By identifying and generating matching augmented reality image materials, it solves the problem of fixed material libraries in the existing AR photography function, enables users to add materials independently, and improves the effect and flexibility of AR photography.

CN111915744BActive Publication Date: 2024-09-27SHENZHEN TRANSSION HLDG CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010907327.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-09-27
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

The material library of the existing AR photography function is fixed, and its use is not flexible enough to meet the diverse needs of users.

Method used

By detecting the augmented reality image generation operation, picking up the target image data, identifying the characteristic values ​​of the target object, searching for the target augmented reality image data matching the characteristic values, and generating the augmented reality image based on the target augmented reality image data, or based on the characteristic values ​​and The preset drawing method draws and generates augmented reality images, allowing users to independently add any image as augmented reality image material.

Benefits of technology

It realizes the flexibility of augmented reality image materials, enriches the material types of AR photography, and improves the effect and user experience of augmented reality photography.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111915744B
    Figure CN111915744B
Patent Text Reader

Abstract

The present application discloses an interactive method for augmented reality images, comprising the following steps: detecting an augmented reality image generation operation and picking up target image data; identifying characteristic values ​​of a target object in the target image data; searching for target augmented reality image data that matches the characteristic values, and generating an augmented reality image based on the target augmented reality image data; and / or, drawing and generating an augmented reality image based on the characteristic values ​​and a preset drawing method. The present application also discloses a terminal and a storage medium. In the present application, any picked-up image can be added as an augmented hyper-reality image material, and the augmented reality image material can be flexibly added to achieve flexible and diverse materials, enrich the material types for augmented reality photography, and improve the augmented reality photography effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an interactive method, terminal and storage medium for augmented reality images. Background Art

[0002] With the development of AR (augmented reality) technology, mobile terminal manufacturers are constantly trying to apply AR technology to the camera function in order to increase the fun of camera functions, so that some interesting expressions can be added or interesting image processing can be achieved during the photo shooting process. After the specific terminal device opens the camera, when it recognizes a portrait, it adds some decorations, stickers, or replaces the head of the person with an animal, cartoon image, etc. based on the preset material library.

[0003] However, the material library of the existing camera AR photography function is set by the background system. The material library can only be updated after the camera APP function is upgraded. In addition, the materials in the material library are fixed, and the use of materials is not flexible enough.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide an interactive method, terminal and storage medium for augmented reality images, aiming to solve the technical problem that the AR photo materials of existing terminals are fixed and lack flexibility in use.

[0006] To achieve the above object, the present application provides an augmented reality image interaction method, the augmented reality image interaction method comprising the following steps:

[0007] An augmented reality image generation operation is detected, and target image data is picked up;

[0008] identifying a characteristic value of a target object in the target image data;

[0009] Searching for target augmented reality image data matching the feature value, and generating the augmented reality image according to the target augmented reality image data;

[0010] And / or, the augmented reality image is generated by drawing based on the feature value and a preset drawing method.

[0011] Optionally, the step of picking up target image data includes:

[0012] Extracting a target object based on image data presented on a camera preview interface;

[0013] The image data of the target object is used as the target image data.

[0014] Optionally, after the step of searching for target augmented reality image data matching the feature value and before the step of generating an augmented reality image according to the target image data, the method further includes:

[0015] Determine that the matching degree between the target augmented reality image data and the characteristic value is greater than or equal to a preset threshold, and execute the step of generating the augmented reality image according to the target augmented reality image data; and / or,

[0016] It is determined that the matching degree between the target augmented reality image data and the characteristic value is less than the preset value, and a prompt message for re-picking up the target image data is output.

[0017] Optionally, the prompt information includes at least one of a preview parameter to be adjusted on the camera preview interface and an adjustment parameter of the target object.

[0018] Optionally, after the step of generating an augmented reality image based on the target image data, the method further includes:

[0019] When the facial features of the camera preview interface are recognized, the augmented reality image is displayed at a preset display position of the camera preview interface.

[0020] Optionally, after the step of displaying the augmented reality image at a preset display position of the camera preview interface, the method further includes:

[0021] Detecting an adjustment operation of the augmented reality image, and acquiring an adjustment parameter corresponding to the adjustment operation;

[0022] The display position of the augmented reality image on the camera preview interface is adjusted according to the adjustment parameter.

[0023] Optionally, after the step of generating the augmented reality image, the method further includes:

[0024] identifying attributes of the augmented reality image;

[0025] The augmented reality image is associated with parameter information corresponding to the attribute, and the augmented reality image is saved. Optionally, the parameter information includes at least one of a preset position, an action parameter, and augmented reality image information.

[0026] Optionally, the preset position is a display position of the augmented reality image in a camera preview interface, or a position of the augmented reality image relative to a target object in the camera preview interface.

[0027] The present application also provides an augmented reality image interaction method, characterized in that the augmented reality image interaction method comprises the following steps:

[0028] When audio data is detected, obtaining audio information corresponding to the audio data;

[0029] Acquire augmented reality image information matching the audio information, and output an augmented reality image associated with the augmented reality image information in a camera preview interface; and / or

[0030] Acquire action parameters matching the audio information, and control the augmented reality image to perform an action corresponding to the action parameters in a camera preview interface. Optionally, the augmented reality image is a pre-stored augmented reality image or a generated augmented reality image.

[0031] Optionally, the audio data includes at least one of audio data detected by a microphone of the terminal, audio data stored in the terminal, and audio data played by the terminal or other audio playing devices.

[0032] Optionally, the step of acquiring augmented reality image information matching the audio information includes:

[0033] Acquire audio attributes of the audio information, where the audio attributes include at least one of a control keyword, a genre of the song, and an audio rhythm;

[0034] The augmented reality image information matching the audio information is acquired according to the audio attribute.

[0035] Optionally, the step of acquiring action parameters matching the audio information includes:

[0036] Acquire the audio rhythm in the audio information;

[0037] Searching for action parameters matching the audio rhythm from a preset action library;

[0038] Alternatively, corresponding action parameters are generated according to the audio rhythm.

[0039] Optionally, the step of searching for action parameters matching the audio rhythm from a preset action library includes:

[0040] At least one action matching the audio rhythm is obtained from a preset action library, and a series of actions is generated from the at least one matching action according to the rhythm sequence of the audio rhythm, and the series of actions is used as the action parameter.

[0041] Optionally, the step of acquiring action parameters matching the audio information includes:

[0042] When the output augmented reality image is associated with a follow-up instruction, a user action in a camera preview interface is obtained as the action parameter. Optionally, the user action is obtained by an action collected in real time by a camera of the terminal.

[0043] Optionally, while executing the step of controlling the augmented reality image to execute the action corresponding to the action parameter in the camera preview interface, the following steps are also performed:

[0044] The audio data is played, or other audio data associated with the action parameter is played.

[0045] Optionally, the augmented reality image interaction method further includes:

[0046] Detecting a photo-taking or video-recording operation, receiving image data uploaded on the camera preview interface, the image data including image information collected in real time by the terminal camera and augmented reality image information presented on the camera preview interface;

[0047] generating a target image based on the image data;

[0048] And / or, the image data of each image frame is spliced ​​based on the timestamp of each image frame to generate a target video.

[0049] The present application also provides a terminal, which includes: a memory, a processor, and an augmented reality image interaction program stored in the memory and executable on the processor, wherein the augmented reality image interaction program, when executed by the processor, implements the steps of the augmented reality image interaction method as described above.

[0050] In addition, the present application also provides a storage medium, on which an augmented reality image interaction program is stored, and when the augmented reality image interaction program is executed by a processor, the steps of the augmented reality image interaction method as described above are implemented.

[0051] The embodiment of the present application proposes an augmented reality image interaction method, terminal and storage medium, which, by setting an augmented reality image interaction program, picks up target image data based on the augmented reality image interaction program when an augmented reality image generation operation is detected, and generates an augmented reality image based on the feature value of the target object in the target image data. In this way, the user can add any picked up image as an augmented hyper-reality image material, and the augmented reality image material can be flexibly added to achieve flexible and changeable materials, enrich the material types of augmented reality photography, and improve the augmented reality photography effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 A schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application;

[0053] Figure 2 This is a flow chart of the first embodiment of the method for interacting with augmented reality images of the present application;

[0054] Figure 3 This is a flow chart of a second embodiment of the method for interacting with augmented reality images of the present application;

[0055] Figure 4 A schematic diagram of the flow chart of the third embodiment of the method for interacting with augmented reality images of the present application;

[0056] Figure 5 A schematic diagram of the flow chart of the fourth embodiment of the method for interacting with augmented reality images of the present application;

[0057] Figure 6 A schematic diagram of the flow chart of the fifth embodiment of the method for interacting with augmented reality images of the present application;

[0058] Figure 7 A flowchart of a sixth embodiment of the method for interacting with augmented reality images of the present application;

[0059] Figure 8 This is a flowchart of the tenth embodiment of the method for interacting with augmented reality images of the present application;

[0060] Fig. 9 A schematic diagram of the hardware structure of another mobile terminal for implementing various embodiments of the present application;

[0061] Fig.10 A communication network system architecture diagram provided for an embodiment of the present application.

[0062] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0063] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] The main solution of the embodiment of the present application is: detecting an augmented reality image generation operation and picking up target image data; identifying characteristic values ​​of a target object in the target image data; searching for target augmented reality image data that matches the characteristic values, and generating an augmented reality image based on the target augmented reality image data; and / or, generating an augmented reality image based on the characteristic values ​​and a preset drawing method.

[0065] like Figure 1 As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0066] The terminal in the embodiment of the present application may be a smart phone, or may be a terminal with a display interface such as a tablet computer or a portable computer.

[0067] like Figure 1As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002, and a camera 1006. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001. The camera 1006 is connected to the processor 1001, and the processor 1001 is used to receive and process the image data uploaded by the camera 1006, and send the processed image data to the display interface of the terminal, and display the objects picked up by the camera on the display interface.

[0068] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0069] like Figure 1 As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an augmented reality image interaction program.

[0070] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the augmented reality image interaction program stored in the memory 1005 and perform the following operations:

[0071] An augmented reality image generation operation is detected, and target image data is picked up;

[0072] identifying a characteristic value of a target object in the target image data;

[0073] Searching for target augmented reality image data matching the feature value, and generating the augmented reality image according to the target augmented reality image data;

[0074] And / or, the augmented reality image is generated by drawing based on the feature value and a preset drawing method.

[0075] Alternatively, the processor 1001 may be used to call the augmented reality image interaction program stored in the memory 1005, and perform the following operations:

[0076] When audio data is detected, obtaining audio information corresponding to the audio data;

[0077] Acquire augmented reality image information matching the audio information, and output an augmented reality image associated with the augmented reality image information in a camera preview interface; and / or

[0078] Acquire action parameters matching the audio information, and control the augmented reality image to perform an action corresponding to the action parameters in a camera preview interface. Optionally, the augmented reality image is a pre-stored augmented reality image or a generated augmented reality image.

[0079] The interactive method of augmented reality images provided in the present application adds an augmented reality image material generation program so that when a user picks up an image with a camera at any time and anywhere, the picked up image can be generated into augmented reality image material. In this way, augmented reality image material can be generated flexibly, solving the problem of single material caused by the preset material library. Based on camera pickup, any object or person can be picked up. The material is flexible and changeable, enriching the material types of augmented reality photography and improving the augmented reality photography effect.

[0080] Based on this, the augmented reality image generation solution provided in this application can be implemented in a variety of embodiments, specifically:

[0081] First embodiment:

[0082] Please refer to Figure 2 The present application provides an augmented reality image interaction method comprising the following steps:

[0083] Step S10, detecting an augmented reality image generation operation and picking up target image data;

[0084] Step S20, identifying feature values ​​of a target object in the target image data;

[0085] Step S30, searching for target augmented reality image data matching the feature value;

[0086] Step S40, generating the augmented reality image according to the target augmented reality image data;

[0087] And / or after identifying the feature value of the target object in the target image data, executing step S50, generating the augmented reality image based on the feature value and a preset drawing method.

[0088] This embodiment takes running on a smartphone as an example to illustrate the generation process and application process of augmented reality images. This embodiment is mainly applied to the photo-taking process of a smartphone. With the development of AR technology (augmented reality technology), the application scope of AR technology is becoming wider and wider. For example, during the photo-taking process of a smartphone, AR photography can add fun to the photos, making them colorful.

[0089] In this embodiment, the application of self-generated augmented reality image materials is added to the application of AR photography. For example, when using a smartphone, the user can open the camera anytime and anywhere, open the camera through the augmented reality generation control, pick up a person or object in the real scene, and then convert the picked person or object into AR virtual material. When taking pictures, the user can use the self-generated augmented reality image material to generate AR pictures. The smartphone can automatically generate a variety of materials, making the AR materials richer, and can generate AR materials from people or objects in the real scene according to the needs of the user, increasing the use effect of AR photography.

[0090] An augmented reality image adding control is provided in the camera preview interface of the smartphone. When the user triggers the augmented reality image adding control, the smartphone detects the augmented reality image generation operation, and the smartphone processor controls the camera to pick up the image preview data and uploads the image preview data to the processor. After the processor processes the image preview data, it sends the image data to the camera preview interface of the smartphone, and then displays it in the camera preview interface for the user to view the picked-up image data. After the terminal obtains the target image data from the image data, it uploads the target image data to the processor, and the processor processes the target image data and generates an augmented reality image. It should be noted here that the augmented reality image described in the embodiment of the present application is a cartoon or animation, etc.

[0091] It is understandable that after the augmented reality image is generated, it can be saved in the memory or directly displayed in the camera preview interface. When the user triggers the photo, the augmented reality image is combined with the character image captured by the camera to generate the final photo, completing the AR photo.

[0092] Furthermore, when the smart phone detects an augmented reality image generation operation, the processor pre-processes the image preview data picked up by the camera to obtain target image data, and returns the target image data to the camera preview interface. Among them, the processor's processing method for the image preview data includes adjusting the display parameters of the image preview data, that is, adjusting the display parameters of the image preview data, and the target image data is all image data collected by the camera, and the target image data includes a main part and a background part. The processor's processing method for the image preview data may also include image segmentation processing of the image preview data to obtain the main part and delete the background part, that is, the target image data is the image data corresponding to the target object, and the target image data only includes the main part. Based on this, the camera preview interface displays the background and the main body, or the camera preview interface only displays the main body.

[0093] Based on the above different processing methods, the target image data is picked up in different ways:

[0094] For example, the camera preview interface only displays the subject (that is, the target object). In this case, the target image data includes image data of the target object. The step of acquiring the image data in the camera preview interface includes:

[0095] Extracting a target object based on image data presented on a camera preview interface;

[0096] The image data of the target object is used as the target image data.

[0097] That is, before generating an augmented reality image, when obtaining data from the camera preview interface to generate the augmented reality image, based on the fact that only the target object is displayed in the camera preview interface (the background part has been segmented in the preprocessing and only the main part is retained), the processor can directly extract the target object based on the image data presented in the camera preview interface, and then convert the data corresponding to the target object into an augmented reality image, thereby realizing the creation of augmented reality image material.

[0098] For another example, if the processor only performs simple display parameter processing on the image preview data, the camera preview interface displays the subject and the background, that is, the target image data at this time includes the image data of the target object and the image data of the background. Under normal circumstances, it is usually the peculiar structure of an object or the image of a certain person that attracts users and users want to convert it into augmented reality image materials. Therefore, the materials that users generally want to generate generally only include the subject part. Therefore, in these cases, only the subject part needs to be generated as augmented reality image materials.

[0099] Based on this, the subject data and the background data are displayed in the camera preview interface, and the image data of the target object is extracted from the target image data in the camera preview interface; so as to identify the feature value of the target object from the image data of the target object.

[0100] That is, the processor extracts the image data of the target object from all the target image data in the camera preview interface, deletes the image data corresponding to the background, and then identifies the feature value of the target object.

[0101] Furthermore, in this embodiment, the step of generating an augmented reality image according to the target image data includes: generating the augmented reality image according to the target image data and preset augmented reality image parameters. The augmented reality image whose size and display effect meet the AR requirements or meet the augmented reality image displayed in the image is generated according to the preset augmented reality image parameters, so that during AR photography, the synthesis of the AR image and the captured image is more natural and the display effect is better. The preset augmented reality image parameters are different based on the terminal parameters of the terminal, and the terminal parameters include terminal type, display parameters, etc.

[0102] It should be noted that, in the process of generating augmented reality images, the methods of converting target image data into AR materials such as animation or cartoon images include but are not limited to the following two methods:

[0103] After the feature value of the target object is identified, target augmented reality image data matching the feature value is searched, and then the augmented reality image is generated according to the target augmented reality image data.

[0104] The target augmented reality image data matching the feature value may be searched from a preset database stored in the memory of the smartphone, or may be searched from a server associated with the smartphone. The preset gallery data may be a database storing a large number of images. The preset gallery data may also be obtained based on training of a neural network model, which is a neural network model formed after training based on a large number of images.

[0105] After the processor obtains the image data of the target object, it identifies the characteristic values ​​of the target object, such as the characteristic values ​​including contours, corners, pixels and attributes, etc. The method of searching for the target augmented reality image data matching the characteristic values ​​from the preset gallery data includes but is not limited to the terminal determining the attributes of the target object based on the characteristic values ​​of the target object, and then searching for the target image corresponding to the attributes, and then searching for the target augmented reality image that is similar to the contour of the target object from the target image, so as to achieve searching for the target augmented reality image data matching the characteristic values ​​from the preset gallery data, and then using the target augmented reality image data as the added augmented reality image.

[0106] It is understandable that the preset gallery data stores a database of a large number of images, and the target augmented reality image data is obtained by searching and comparing one by one. Or when the preset gallery data is a neural network model, based on the fact that the neural network model is formed by training a large number of images, when the feature value is input into the neural network model, the neural network model outputs the target augmented reality image data. The neural network model determines the corresponding target augmented reality image data according to the matching feature value by searching for the feature value that matches the feature value.

[0107] In this embodiment, the augmented reality image generation process is relatively simple and easy to implement, and the generated augmented reality image has a good display effect.

[0108] Please continue to refer to Figure 2 In another embodiment, after identifying the feature value of the target object, the augmented reality image is generated by drawing based on the feature value and a preset drawing method. For example, a drawing method of an animation or cartoon pattern is used to draw the target object into the augmented reality image in combination with the feature value.

[0109] It should be noted that, based on the present embodiment, the augmented reality image is generated by direct drawing, generally a simple outline is drawn to form the augmented reality image.

[0110] The augmented reality image is drawn by a preset drawing method, which further enriches the types of augmented reality images, and the generated augmented reality image is closer to the image actually required by the user.

[0111] This embodiment sets an augmented reality image interaction program. Based on the augmented reality image interaction program, when an augmented reality image generation operation is detected, the target image data is picked up, and an augmented reality image is generated based on the feature value of the target object in the target image data, such as directly searching for an augmented reality image with matching feature values ​​from a preset database, or drawing an augmented reality image based on the feature values. In this way, the user can add any picked up image as an augmented reality image material, and the augmented reality image material can be flexibly added to achieve flexible and changeable materials, enrich the material types of augmented reality photography, and improve the augmented reality photography effect.

[0112] Second embodiment:

[0113] In order to improve the accuracy of augmented reality image generation, so that the augmented reality image created based on the collected image data is closer to the collected image data, the second embodiment is proposed. This embodiment is based on the above-mentioned first embodiment. For details, please refer to Figure 3, after the step of searching for target augmented reality image data matching the feature value and before the step of generating an augmented reality image according to the target image data, further comprising:

[0114] Step S60, determining whether the matching degree between the target augmented reality image data and the characteristic value is greater than or equal to a preset threshold;

[0115] If yes, executing step S40, the step of generating the augmented reality image according to the target augmented reality image data;

[0116] It should be noted that when the processor finds the target augmented reality image data that matches the feature value from the preset database, the target augmented reality image data found may not have a high degree of matching with the feature value. In some embodiments, as long as the matching target augmented reality data is found, the target augmented reality data is used to generate an augmented reality image regardless of whether the matching degree is high or not. However, if the matching degree is not high, the generated augmented reality image is quite different from the actual picked-up object or character image, which will reduce the user experience and the generation effect of the AR image. Based on this, before generating an augmented reality image, this embodiment pre-determines whether the matching degree between the target augmented reality image data and the feature value is greater than or equal to a preset threshold. Optionally, the preset threshold is a critical value that makes the similarity more acceptable to the user. When the matching degree between the target augmented reality image data and the feature value is greater than or equal to the preset threshold, it is determined that the target augmented reality image has a high similarity with the picked-up object image or character image. At this time, the target augmented reality image data can be used to generate the augmented reality image.

[0117] If not, step S70 is executed to output a prompt message for re-picking the target image data.

[0118] If the matching degree between the target augmented reality image data and the characteristic value is less than the preset threshold, it is determined that the target augmented reality image data has a low similarity with the picked object image data or character image data. At this time, the user can be reminded to pick up the target image data again, or the augmented reality image generated according to the target augmented image data can be displayed to the user, and a prompt message of whether to confirm or pick up again can be input, so that the user can choose to keep the augmented reality image or regenerate the augmented reality image.

[0119] Furthermore, the prompt information includes text and other information reminding the user to re-pick up the target image data, and may also include preview parameters to be adjusted of the camera preview interface or adjustment parameters of the target object, so as to prompt the user to adjust the camera preview interface according to the preview parameters to be adjusted, and then use the adjusted camera preview interface to re-acquire the target image data; or prompt the user to adjust the picking angle or picking distance of the target object. After adjustment according to the prompt information, the newly picked up target image data is more likely to find target augmented reality image data with a higher degree of match with the characteristic values ​​of the target object. The augmented reality image generated in this way is closer to the real object, thereby improving the generation effect of the augmented reality image.

[0120] Third embodiment:

[0121] This embodiment is based on all the above embodiments. Please refer to Figure 4 , after the step of generating an augmented reality image, further comprising:

[0122] Step S80, identifying the attributes of the augmented reality image;

[0123] Step S90, associating the augmented reality image with the parameter information corresponding to the attribute, and saving the augmented reality image. Optionally, the parameter information includes at least one of a preset position, action parameters, and augmented reality image information.

[0124] After the augmented reality image is generated, the augmented reality image is saved, and the user can call the augmented reality image based on the memory when using AR to take photos in the future.

[0125] Since users may want to turn the objects or people they are looking at into AR materials in their mobile phones at any time and anywhere for use in subsequent photography, the generated augmented reality images are saved for easy access by users.

[0126] Furthermore, in order to make the autonomously generated augmented reality image have the same functions as the AR materials that come with the system, such as being displayed in a reasonable position, such as a hat displayed on the top of a person's head, a headdress displayed on a person's hair, or clothes displayed on the upper or lower body of a person, or being able to perform corresponding actions, or executing corresponding instructions based on the image to which it belongs, etc., in this embodiment, after the augmented reality image is generated, the attributes of the augmented reality image are identified, including augmented reality image information of the augmented reality image, such as a hat, clothing, headdress or animated image, image type, follow-up image, etc., the augmented reality image is classified according to its attributes, and the augmented reality image is associated with the parameter information corresponding to the attributes and saved. For example, when the terminal is triggered to perform an augmented reality image interaction operation, based on the association between the parameter information and the augmented reality image, interaction with the augmented reality image is achieved.

[0127] This embodiment takes the parameter information including the preset position as an example for explanation: the terminal presets the association relationship between the attributes of the augmented reality image and the preset position, such as the preset position corresponding to the hat is the top of the head, the preset position corresponding to the bracelet is the hand, the preset position corresponding to the shoe is the foot, the preset position corresponding to the avatar is the head, etc. The attributes of the augmented reality image are associated with the preset position, and then the augmented reality image is saved. In this way, when the user subsequently calls the augmented reality image, based on the association relationship between the attributes of the augmented reality image and the preset position, the augmented reality image is displayed at the preset position, directly presenting its use effect on the screen, and improving the AR photography effect.

[0128] It should be noted that the preset position is the display position of the augmented reality image in the camera preview interface, which is a fixed position; or the position of the augmented reality image relative to the target object in the camera preview interface, that is, by identifying the position of the target object, the position of the augmented reality image is determined, reflecting the positional relationship between the augmented reality image and the target object, and the display effect is better.

[0129] It is understood that, in some embodiments, before saving the augmented reality image, a storage space in a free state is obtained in the preset storage area, and the augmented reality image is saved in the storage space. If there is no free storage space in the preset storage area, a prompt message for deleting the augmented reality image is output, and the user selects the augmented reality image to be deleted from the preset storage area, and then the generated augmented reality image is saved. It is understood that the deleted augmented reality image can be an augmented reality image generated previously, or an augmented reality image configured by the system.

[0130] Fourth embodiment:

[0131] This embodiment is based on all the above embodiments. Please refer to Figure 5 , after the step of generating an augmented reality image, the method further comprises:

[0132] Step S100, when a facial feature of a camera preview interface is recognized, the augmented reality image is displayed at a preset display position of the camera preview interface.

[0133] It should be noted that after the smartphone generates an augmented reality image, it can automatically jump to the camera shooting interface, automatically trigger the camera to pick up the face information, and display the generated augmented reality image in the camera preview interface. The display position of the generated augmented reality image can be a preset fixed position, or it can be determined by identifying the facial features of the camera preview interface, and then displaying the augmented reality image based on the location of the facial features and the relative position relationship with the face.

[0134] In addition, this embodiment can also trigger the camera AR photo taking based on the user. After turning on the camera, a person is displayed in the camera preview interface, and then the facial features in the camera preview interface are identified, and then the augmented reality image is displayed at the preset display position of the camera preview interface.

[0135] It should be noted that the preset display position is different based on the type of the augmented reality image, such as the display position of shoes on a person's feet, the display position of hats on the top of a person's head, and the display position of cartoon avatars on a person's head.

[0136] It should be noted that this embodiment is explained using AR photography of people as an example. When the augmented reality image has no positional relationship with the person and the facial features cannot be recognized, the augmented reality image can also be used to take photos, that is, the augmented reality image can also be displayed at the preset display position of the camera preview interface.

[0137] After generating the augmented reality image, this embodiment automatically jumps to the photo taking interface, eliminating the need for manual operation by the user and improving the photo taking effect of AR photography.

[0138] Fifth embodiment:

[0139] This embodiment is based on the fourth embodiment mentioned above. It should be noted that the augmented reality image can be directly displayed at the preset display position according to the association relationship of the preset position, or the display position or display size can be adjusted based on the user's adjustment operation after the preset display position.

[0140] Please refer to Figure 6 , after the step of displaying the augmented reality image at the preset display position of the camera preview interface, it also includes:

[0141] Step S110, detecting an adjustment operation of the augmented reality image, and acquiring an adjustment parameter corresponding to the adjustment operation;

[0142] Step S120: adjusting the display position of the augmented reality image on the camera preview interface according to the adjustment parameters.

[0143] It is understandable that the adjustment operation includes at least one of size adjustment, position adjustment and angle adjustment. Size adjustment is achieved by stretching or shrinking the augmented reality image, position adjustment is achieved by moving the augmented reality image, and angle adjustment is achieved by rotating the augmented reality image.

[0144] When it is detected that the triggering duration of the augmented reality image is greater than or equal to the preset duration, such as when the user touches the augmented reality image for a certain period of time, it is determined that an adjustment operation of the augmented reality image is detected. At this time, the augmented reality image is in an adjustable state. When an operation of stretching or reducing the augmented reality image is detected, the stretching distance or the reduction distance is obtained, and then the augmented reality image is stretched according to the stretching distance or reduced according to the reduction distance. Or when an operation of rotating the augmented reality image is detected, the rotation angle is obtained, and the display position of the augmented reality image on the camera preview interface is adjusted according to the rotation angle. Or when an operation of sliding the augmented reality image is detected, the sliding distance is obtained, and the display position of the augmented reality image on the camera preview interface is adjusted according to the sliding distance.

[0145] Since the augmented reality image is automatically generated and there are many types of augmented reality images, different display positions bring different effects. Therefore, in order to facilitate users to create AR photo effects, the display position of the augmented reality image in this embodiment can be adjusted based on user triggers, and the position of the augmented reality image can be flexibly adjusted to improve the display effect of AR photography.

[0146] Sixth embodiment:

[0147] This embodiment further provides an augmented reality image interaction method based on the augmented reality image interaction process, and specific reference is made to Figure 7 , the interactive method of augmented reality image comprises the following steps:

[0148] Step S210, when audio data is detected, obtaining audio information corresponding to the audio data;

[0149] Step S220, obtaining augmented reality image information matching the audio information, and outputting an augmented reality image associated with the augmented reality image information in a camera preview interface; and / or

[0150] Step S230, obtaining action parameters matching the audio information, and controlling the augmented reality image to perform an action corresponding to the action parameters in the camera preview interface. Optionally, the augmented reality image is a pre-stored augmented reality image or a generated augmented reality image.

[0151] This embodiment is applied to a terminal such as a mobile terminal, which has an audio control function. Specifically, when using the camera function of the terminal, the audio can trigger the camera to take pictures or the personalized function to interact with people. The specific interaction process is described below:

[0152] The terminal has a microphone for detecting audio data played by itself or an external audio device, or detecting user voice, or the terminal device can detect audio data stored by itself; therefore, the audio data described in this embodiment includes audio data detected by the microphone of the terminal, such as audio data played by the terminal itself or by an external audio device; the audio data also includes audio data stored by the terminal, audio data played by the terminal or other audio playback devices and sent to the terminal. The audio data can be a control voice issued by the user, or music played, etc.

[0153] The corresponding relationship between the audio information and the augmented reality image information and / or the action parameters is preset, and the relationship between the audio information and the augmented reality image information and / or the action parameters is stored in the memory. The audio information includes audio attributes, such as control keywords, the style of the song, and the audio rhythm.

[0154] When the terminal detects audio data during the photo-taking process, it analyzes the audio data to obtain audio information corresponding to the audio data, obtains augmented reality image information matching the audio information based on the audio information, and then outputs an augmented reality image associated with the augmented reality image information in the camera preview interface. And / or obtains action parameters matching the audio information based on the audio information, controls the augmented reality image to perform the action corresponding to the action parameter in the preview interface, and optionally, the augmented reality image that executes the action parameter can be an augmented reality image output based on the augmented reality information, or can be an augmented reality image manually selected by the user.

[0155] It should be noted here that the audio information may also be other parameter information that controls the augmented reality image, which is different based on different definitions.

[0156] The augmented reality image information is defined based on the augmented reality image type. Based on the augmented reality image type, various images of objects in the real world can be defined, such as people, animals, plants, daily necessities, accessories, cartoons, animations, etc., which are not limited in this embodiment; the action parameters can be jumping, rotating, nodding, shaking the head, bending, etc., which are not specifically limited in this embodiment. For example, when the currently output augmented reality image is a cat and the action parameter is jumping, the augmented reality image is controlled to make a jumping action.

[0157] It should be noted that the augmented reality image output or controlled in the above manner based on the present embodiment may be an augmented reality image pre-stored in the memory by the terminal, or may be an augmented reality image automatically generated based on the interaction method described in any of the first to fifth embodiments above. In this way, the augmented reality image generated autonomously by the user may also have an audio interaction function, so as to further enrich the interaction function with the augmented reality image during the terminal's photo-taking process and improve the photo-taking effect of the terminal.

[0158] In a further embodiment, while executing the step of controlling the augmented reality image to execute the action corresponding to the action parameter in the camera preview interface, the following steps are also executed:

[0159] Step S240: play the audio data, or play other audio data associated with the action parameter.

[0160] While controlling the augmented reality image to execute the action corresponding to the action parameter, the audio data is played so that the augmented reality image changes along with the audio, so that the user can obtain visual and auditory enjoyment. The user can also decide whether to switch the audio data based on the audio data heard, thereby increasing the interaction methods between the user and the augmented reality image.

[0161] In the embodiment of the present application, when audio data is received, audio information corresponding to the audio data is obtained; augmented reality image information matching the audio information is obtained, and an augmented reality image associated with the augmented reality image information is output in the camera preview interface; and / or action parameters matching the audio information are obtained, and the augmented reality image is controlled to perform the action corresponding to the action parameters in the camera preview interface, and the augmented reality image is controlled based on audio, such as outputting the augmented reality image or controlling the augmented reality image to perform the corresponding action, enriching the control function of the camera for taking pictures, and enhancing the fun of the user's interaction with the augmented reality image during the photo-taking process. Alternatively, controlling the augmented reality image based on audio data can save the user the difficulty of selecting the augmented reality image, and provide the user with better choices and suggestions.

[0162] Seventh embodiment:

[0163] This embodiment further proposes an augmented reality image interaction method based on the sixth embodiment, wherein the step of obtaining augmented reality image information matching the audio information includes:

[0164] Acquire audio attributes of the audio information, where the audio attributes include at least one of a control keyword, a genre of the song, and an audio rhythm;

[0165] The augmented reality image information matching the audio information is acquired according to the audio attribute.

[0166] Specifically, the audio information includes audio attributes, such as the audio attributes including control keywords, the style of the song, and audio rhythm. After the terminal obtains the audio information according to the audio data, it analyzes the audio attributes of the audio information, and determines the matching augmented reality image information based on the corresponding relationship between the control keywords and the augmented reality image information when the audio data includes the control keywords. For example, when the control keyword is dancing, the augmented reality information information matched with the dance is a human image, an animal image, a plant image, or a cartoon image with dance movements. Or when the audio information includes the style of the song, the matching augmented reality image information is determined based on the corresponding relationship between the style and the augmented reality image information. For example, when the audio data is the song currently being played, and it is determined that the style of the song is Chinese style, the augmented reality image information matched with the style is a human image, an animal image, or a cartoon image with a national style image, etc. Optionally, the style includes Chinese style, country style, jazz style, pop style, rock style, electronic style, etc. It can be understood that the audio attributes include but are not limited to the above three. Alternatively, when the audio information includes audio rhythm, the matching augmented reality image information is determined based on the correspondence between the audio rhythm and the augmented reality image information. For example, if the audio data is a song currently being played, the audio rhythm is determined based on the song being played. For example, when the audio rhythm is a fast rhythm, the augmented reality image information corresponding to the audio rhythm may be a fast-flashing human image, animal image, or cartoon image, etc.; or when the audio data is a voice control instruction issued by a user, the audio rhythm is determined based on the voice control instruction. For example, if the audio rhythm is the rhythm issued by a child, the augmented reality image information corresponding to the audio may be a cartoon image, etc.

[0167] This embodiment determines augmented reality information that matches the audio information based on the audio attributes in the audio information, and recommends augmented reality images that meet the characteristics of the current audio data based on the audio attributes, so that the augmented reality images controlled by the audio data better meet the requirements of the user and the current environment, thereby improving the interaction effect.

[0168] Eighth embodiment:

[0169] This embodiment is based on the sixth embodiment and / or the seventh embodiment. The interactive method of augmented reality images is further proposed. The step of obtaining the action parameters matching the audio information includes:

[0170] Acquire the audio rhythm in the audio information;

[0171] Searching for action parameters matching the audio rhythm from a preset action library;

[0172] Alternatively, corresponding action parameters are generated according to the audio rhythm.

[0173] In this embodiment, the audio data may include audio data detected by the microphone of the terminal device, such as humming audio input by the user; the audio data may also include music audio saved by the terminal device; the audio data may also include music audio played by the terminal device itself or other audio playback devices. Since the detected audio data are all music audio, the audio information includes the audio rhythm. The augmented reality image in this embodiment can perform actions that are the same or similar to the action parameters based on the association relationship with the action parameters. Therefore, this embodiment sets the association relationship between the audio rhythm and the action parameters, and when the audio rhythm in the audio information is obtained, the action parameters that match the audio rhythm are searched from the preset action library. Or based on the relationship between rhythm and action in big data, the corresponding action parameters are generated according to the currently obtained audio rhythm, so that the augmented reality image performs an action that matches the action parameters.

[0174] Specifically, at least one classic dance action is provided in the action library pre-set in the terminal, and the dance action can be a set of associated or discrete dance actions. For example, each song type is set to correspond to a set of continuous actions, and after obtaining audio information, the song type is determined based on the audio rhythm, and then the action parameters corresponding to the song type are obtained, and the action parameters are used as action parameters matching the audio rhythm, and the augmented reality image is controlled to perform the corresponding action according to the action parameters.

[0175] Alternatively, when the dance action is a discrete action, the terminal can generate a series of actions based on the audio rhythm after acquiring the audio rhythm based on the association relationship between each rhythm and the action, so as to generate a dance action corresponding to the audio data. For example, in a further embodiment, the step of searching for action parameters matching the audio rhythm from a preset action library includes:

[0176] At least one action matching the audio rhythm is obtained from a preset action library, and a series of actions is generated from the at least one matching action according to the rhythm sequence of the audio rhythm, and the series of actions is used as the action parameter.

[0177] That is, the actions in the preset action library are mapped one-to-one with the audio rhythm, the rhythm order is determined based on the acquired audio rhythm and the acquisition time, and a series of actions are generated based on the rhythm order and the mapping relationship between each rhythm and the action, and then the series of actions are used as the action parameters. Based on the one-to-one mapping relationship between actions and audio rhythms, this embodiment can generate new actions according to audio data combinations. For example, when an augmented reality image performs dance actions, a new dance can be created based on the method of this embodiment to increase the fun of terminal interaction.

[0178] In this embodiment, an action library is pre-installed in the terminal device or a server communicating with the terminal device. The actions in the action library may be dance actions or other actions, but are not limited to dance actions. At least one action matching the audio rhythm is obtained from the preset action library according to the audio rhythm, and a series of actions are generated according to the rhythm playing order of the at least one matched action in the audio rhythm. The series of actions is used as the action parameter. For example, the series of actions may be opening eyes, smiling, and then waving hands to say hello.

[0179] It should be noted that this embodiment can be executed after executing the above-mentioned seventh embodiment. For example, after determining the augmented reality image based on the method of the above-mentioned seventh embodiment, if the augmented reality image contains action execution instructions, the action parameters of the augmented reality image can be obtained according to the method of this embodiment, and then the augmented reality image can be controlled to perform corresponding actions based on the action parameters.

[0180] Ninth embodiment:

[0181] This embodiment is an augmented reality image interaction method further proposed based on the sixth embodiment and / or the seventh embodiment. This embodiment is another embodiment proposed relative to the eighth embodiment. The action parameters in this embodiment can also be collected in real time. For example, the step of obtaining the action parameters matching the audio information includes:

[0182] When the output augmented reality image is associated with a follow-up instruction, a user action in a camera preview interface is obtained as the action parameter. Optionally, the user action is obtained by an action collected in real time by a camera of the terminal.

[0183] In this embodiment, based on some augmented reality image requirements or user requirements, an augmented reality image is associated with a follow-up instruction. When the output evaporator reality image has a follow-up function, the user action in the camera preview interface is obtained as the action parameter to control the augmented reality image to perform a corresponding action according to the action parameter, thereby enabling the augmented reality image to follow the user action.

[0184] Or the augmented reality image is set to have a following function, based on the user's indicated following action or the audio data has a following instruction, for example, the user's voice issues a following instruction of "Follow me", and is detected by the terminal device as audio data, and the terminal device recognizes that the audio data includes the following instruction of "Follow me", the terminal device collects the user's real-time action through its own camera, and uses the user's real-time action as the action parameter, controls the AR image to move with the user, thereby increasing the fun of the user interacting with the AR image.

[0185] Tenth embodiment:

[0186] This embodiment is an interactive method for augmented reality images proposed based on all the above embodiments. Please refer to Figure 8 After outputting the augmented reality image associated with the augmented reality information in the camera preview interface and / or controlling the augmented reality image to perform the action corresponding to the action parameter in the camera preview interface, the augmented reality image interaction method further includes:

[0187] Step S250, detecting a photo taking or video recording operation, and receiving image data uploaded on the camera preview interface, wherein the image data includes image information collected in real time by the terminal camera and augmented reality image information presented on the camera preview interface;

[0188] Step S260, generating a target image based on the image data;

[0189] And / or, executing step S270, splicing the image data of each image frame based on the timestamp of each image frame to generate a target video.

[0190] During the interaction between the terminal and the user, in order to save the interaction process or interaction results, the terminal interface in this embodiment has a photo or video recording function. The user can trigger the photo or video recording function based on the display interface of the terminal to obtain the interaction process or interaction results with the augmented reality image.

[0191] Specifically, when the terminal detects that a photo is being taken, the image data currently displayed in the camera preview interface is obtained from the camera preview interface, and the real-time image information collected by the terminal camera, such as portrait information, is displayed in the camera preview interface of the current terminal. The camera preview interface also presents augmented reality image information for interaction with the user, so the image data obtained by the terminal from the camera preview interface includes real-time collected image information and augmented reality image information. Based on this, the real-time collected image information and augmented reality image information are processed to combine and form a target picture having the image information and the augmented reality image information, thereby completing the photo taking process.

[0192] Alternatively, when the terminal detects a recording operation, it continuously obtains the image data currently displayed on the camera preview interface from the camera preview interface, and then splices the image data into a target video based on each image frame uploaded by the camera preview interface and the timestamp of each image frame, thereby completing the video recording process.

[0193] It can be understood that during the video recording process, the augmented reality image in the camera preview interface can continuously switch actions based on the currently playing audio data. For example, when the action is a dance action, a series of dance actions can be completed based on the audio data, and in the process of executing the series of dance actions, the animation process of the augmented reality image can be formed into a video based on the video recording function.

[0194] In the process of augmented reality image interaction, this embodiment saves the interaction process based on the video recording function or the photo taking function, enriches the interaction function, and improves the user experience.

[0195] The present application also provides a terminal, which includes: a memory, a processor, and an augmented reality image interaction program stored in the memory and executable on the processor, wherein the augmented reality image interaction program, when executed by the processor, implements the steps of the augmented reality image interaction method as described above.

[0196] In addition, the present application also provides a storage medium, on which an augmented reality image interaction program is stored, and when the augmented reality image interaction program is executed by a processor, the steps of the augmented reality image interaction method as described above are implemented.

[0197] An embodiment of the present application further provides a computer program product, which includes a computer program code. When the computer program code is executed on a computer, the computer executes the methods described in the various possible implementation modes above.

[0198] An embodiment of the present application also provides a chip, including a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device equipped with the chip executes the methods described in the various possible implementation modes above.

[0199] It should be noted that, in this article, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element. In addition, components, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further combined with the context of the specific embodiment.

[0200] It should be understood that, although the terms first, second, third, etc. may be used to describe various information in this article, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this article, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination". Furthermore, as used in this article, the singular forms "one", "one" and "the" are intended to also include plural forms, unless there is an opposite indication in the context. It should be further understood that the terms "comprising", "including" indicate the presence of the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or at least one other feature, step, operation, element, component, project, kind, and / or group. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, “A, B, or C” or “A, B and / or C” means “any of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” An exception to this definition will occur only when a combination of elements, functions, steps, or operations are inherently mutually exclusive in some manner.

[0201] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are displayed in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and it can be performed in other orders. Moreover, at least a portion of the steps in the figure may include at least one sub-step or at least one stage, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0202] It should be noted that in this article, step codes such as S10 and S20 are used for the purpose of expressing the corresponding content more clearly and concisely, and do not constitute a substantial limitation on the sequence. When implementing the step, those skilled in the art may execute S20 first and then S10, etc., but these should all be within the scope of protection of this application.

[0203] In the description herein, suffixes such as "module", "component" or "unit" used to represent elements are only used to facilitate the description of the present application and have no specific meanings. Therefore, "module", "component" or "unit" can be used in a mixed manner.

[0204] The terminal may be implemented in various forms. For example, the terminal described in the present application may include mobile terminals such as mobile phones, tablet computers, laptop computers, PDAs, portable media players (PMPs), navigation devices, wearable devices, smart bracelets, pedometers, etc., as well as fixed terminals such as digital TVs and desktop computers.

[0205] The description herein will be made by taking a mobile terminal as an example, and those skilled in the art will appreciate that, in addition to components specifically used for mobile purposes, the configuration according to the embodiments of the present application can also be applied to fixed-type terminals.

[0206] See also Fig. 9 , which is a schematic diagram of the hardware structure of another mobile terminal for implementing various embodiments of the present application, the mobile terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit 103, A / V (audio / video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111 and other components. Those skilled in the art can understand that Fig. 9 The structure of the mobile terminal shown in the figure does not constitute a limitation on the mobile terminal. The mobile terminal may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0207] Combine the following Fig. 9 The following is a detailed introduction to the various components of the mobile terminal:

[0208] The radio frequency unit 101 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving the downlink information of the base station, it is sent to the processor 110 for processing; in addition, the uplink data is sent to the base station. Generally, the radio frequency unit 101 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 101 can also communicate with the network and other devices through wireless communication. The above-mentioned wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System of Mobile communication), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division Duplexing-Long Term Evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution), etc.

[0209] WiFi is a short-range wireless transmission technology. Mobile terminals can help users send and receive emails, browse web pages, and access streaming media through WiFi module 102. It provides users with wireless broadband Internet access. Fig. 9 The WiFi module 102 is shown, but it is understandable that it is not an essential component of the mobile terminal and can be omitted as needed without changing the essence of the invention.

[0210] The audio output unit 103 can convert the audio data received by the RF unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output it as sound when the mobile terminal 100 is in a call signal reception mode, a talk mode, a recording mode, a voice recognition mode, a broadcast reception mode, etc. Moreover, the audio output unit 103 can also provide audio output related to a specific function performed by the mobile terminal 100 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, etc.

[0211] The A / V input unit 104 is used to receive audio or video signals. The A / V input unit 104 may include a graphics processor (GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 106. The image frame processed by the graphics processor 1041 can be stored in the memory 109 (or other storage medium) or sent via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 can receive sound (audio data) via the microphone 1042 in a telephone call mode, a recording mode, a voice recognition mode, and other operating modes, and can process such sound into audio data. The processed audio (voice) data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 101 in the case of a telephone call mode. The microphone 1042 can implement various types of noise elimination (or suppression) algorithms to eliminate (or suppress) noise or interference generated in the process of receiving and sending audio signals.

[0212] The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. Optionally, the ambient light sensor can adjust the brightness of the display panel 1061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 1061 and / or the backlight when the mobile terminal 100 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in all directions (generally three axes), and can detect the magnitude and direction of gravity when stationary. It can be used for applications that identify the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as for other sensors that can be configured on the mobile phone, such as fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., they will not be repeated here.

[0213] The display unit 106 is used to display information input by the user or information provided to the user. The display unit 106 may include a display panel 1061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0214] The user input unit 107 can be used to receive input digital or character information, and to generate key signal input related to the user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 1071 or near the touch panel 1071 using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 110, and can receive and execute the command sent by the processor 110. In addition, the touch panel 1071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1071, the user input unit 107 may also include other input devices 1072. Specifically, the other input devices 1072 may include, but are not limited to, one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a trackball, a mouse, a joystick, etc., which are not specifically limited here.

[0215] Furthermore, the touch panel 1071 may cover the display panel 1061. When the touch panel 1071 detects a touch operation on or near it, it transmits the information to the processor 110 to determine the type of the touch event. Then, the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Fig. 9 In the figure, the touch panel 1071 and the display panel 1061 are used as two independent components to implement the input and output functions of the mobile terminal. However, in some embodiments, the touch panel 1071 and the display panel 1061 can be integrated to implement the input and output functions of the mobile terminal, which is not limited here.

[0216] The interface unit 108 serves as an interface through which at least one external device can be connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and an external device.

[0217] The memory 109 can be used to store software programs and various data. The memory 109 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 109 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0218] The processor 110 is the control center of the mobile terminal. It uses various interfaces and lines to connect various parts of the entire mobile terminal. It executes various functions of the mobile terminal and processes data by running or executing software programs and / or modules stored in the memory 109, and calling data stored in the memory 109, so as to monitor the mobile terminal as a whole. The processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, etc., and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 110.

[0219] The mobile terminal 100 may also include a power supply 111 (such as a battery) for supplying power to various components. Preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.

[0220] although Fig. 9 Not shown, the mobile terminal 100 may further include a Bluetooth module, etc., which will not be described in detail here.

[0221] In order to facilitate understanding of the embodiments of the present application, the communication network system on which the mobile terminal of the present application is based is described below.

[0222] See also Fig.10 , Fig.10 A communication network system architecture diagram is provided for an embodiment of the present application, wherein the communication network system is an LTE system of universal mobile communication technology, and the LTE system includes a UE (User Equipment) 201, an E-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an EPC (Evolved Packet Core) 203 and an operator's IP service 204, which are connected in sequence for communication.

[0223] Specifically, UE201 may be the above-mentioned terminal 100, which will not be described in detail here.

[0224] E-UTRAN 202 includes eNodeB 2021 and other eNodeBs 2022 , etc. Among them, eNodeB 2021 can be connected to other eNodeBs 2022 through a backhaul (eg, an X2 interface), and eNodeB 2021 is connected to EPC 203 , and eNodeB 2021 can provide UE 201 with access to EPC 203 .

[0225] EPC203 may include MME (Mobility Management Entity) 2031, HSS (Home Subscriber Server) 2032, other MMEs 2033, SGW (Serving Gate Way) 2034, PGW (PDN Gate Way) 2035 and PCRF (Policy and Charging Rules Function) 2036, etc. Among them, MME2031 is a control node that processes signaling between UE201 and EPC203, and provides bearer and connection management. HSS2032 is used to provide some registers to manage functions such as home location register (not shown in the figure), and save some user-specific information such as service features and data rates. All user data can be sent through SGW2034, PGW2035 can provide IP address allocation and other functions for UE 201, PCRF2036 is the policy and charging control policy decision point for service data flow and IP bearer resources, which selects and provides available policy and charging control decisions for the policy and charging execution function unit (not shown in the figure).

[0226] The IP service 204 may include the Internet, an intranet, an IMS (IP Multimedia Subsystem) or other IP services.

[0227] Although the above introduction takes the LTE system as an example, those skilled in the art should know that the present application is not only applicable to the LTE system, but also to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA and future new network systems, etc., which are not limited here.

[0228] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0229] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. An interactive method for augmented reality images, characterized in that: The method for interacting with the augmented reality image comprises the following steps: An augmented reality image generation operation is detected, and target image data is picked up, where the target image data includes a main body part and a background part, and the main body part is a target object; Identify feature values ​​of a target object in the target image data, wherein the feature values ​​include contours, corners, pixels, and attributes; Searching for target augmented reality image data matching the feature value, and generating an augmented reality image according to the target augmented reality image data and preset augmented reality image parameters, wherein the preset augmented reality image parameters are different based on different terminal parameters of the terminal, and the terminal parameters include terminal type and display parameters; And / or, generating an augmented reality image by drawing based on the feature value and a preset drawing method, wherein the augmented reality image is a cartoon or animation; After the step of generating an augmented reality image, the method further includes: Identify attributes of the augmented reality image, including hats, clothing, headwear, animation, image type, and follow-up image; Associating the augmented reality image with parameter information corresponding to the attribute, and saving the augmented reality image, the parameter information including at least one of a preset position, an action parameter, and augmented reality image information; The method for interacting with the augmented reality image further comprises the following steps: When audio data is detected, the audio information corresponding to the audio data is obtained , The audio data is the control voice issued by the user or the music played; Acquire augmented reality image information matching the audio information, wherein the augmented reality image information is defined based on an augmented reality image type, and various images of objects in the real world are defined based on the augmented reality image type, and output an augmented reality image associated with the augmented reality image information in a camera preview interface; and / or Acquire action parameters matching the audio information, and control the augmented reality image to perform actions corresponding to the action parameters in the camera preview interface; The step of obtaining augmented reality image information matching the audio information comprises: Acquire audio attributes of the audio information, where the audio attributes include at least one of a control keyword, a genre of the song, and an audio rhythm; Acquire augmented reality image information matching the audio information according to the audio attribute, wherein the augmented reality image information is a human image, an animal image, or a cartoon image corresponding to the audio attribute; While executing the step of controlling the augmented reality image to execute the action corresponding to the action parameter in the camera preview interface, the following steps are also executed: The audio data is played, or other audio data associated with the action parameter is played, and the audio data can be switched by the user.

2. The method for interacting with augmented reality images according to claim 1, wherein: The step of picking up target image data comprises: Extracting a target object based on image data presented on a camera preview interface; The image data of the target object is used as the target image data.

3. The method for interacting with augmented reality images according to claim 1, wherein: After the step of searching for target augmented reality image data matching the feature value and before the step of generating an augmented reality image according to the target image data, the step further includes: Determine that the matching degree between the target augmented reality image data and the characteristic value is greater than or equal to a preset threshold, and execute the step of generating the augmented reality image according to the target augmented reality image data; and / or, It is determined that the matching degree between the target augmented reality image data and the characteristic value is less than the preset value, and a prompt message for re-picking up the target image data is output.

4. The method for interacting with augmented reality images according to claim 1, wherein: After the step of generating an augmented reality image, the method further includes: When the facial features of the camera preview interface are recognized, the augmented reality image is displayed at a preset display position of the camera preview interface.

5. The method for interacting with augmented reality images as claimed in claim 4, characterized in that: After the step of displaying the augmented reality image at a preset display position of the camera preview interface, the method further includes: Detecting an adjustment operation of the augmented reality image, and acquiring an adjustment parameter corresponding to the adjustment operation; The display position of the augmented reality image on the camera preview interface is adjusted according to the adjustment parameter.

6. The method for interacting with augmented reality images according to claim 1, wherein: The audio data includes at least one of audio data detected by a microphone of the terminal, audio data stored in the terminal, and audio data played by the terminal or other audio playing devices.

7. The method for interacting with augmented reality images according to claim 1, wherein: The step of obtaining action parameters matching the audio information comprises: Acquire the audio rhythm in the audio information; Searching for action parameters matching the audio rhythm from a preset action library; Alternatively, corresponding action parameters are generated according to the audio rhythm.

8. The method for interacting with augmented reality images as claimed in claim 7, characterized in that: The step of searching for action parameters matching the audio rhythm from the preset action library comprises: At least one action matching the audio rhythm is obtained from a preset action library, and a series of actions is generated from the at least one matching action according to the rhythm sequence of the audio rhythm, and the series of actions is used as the action parameter.

9. The method for interacting with augmented reality images according to claim 1, characterized in that: The step of obtaining action parameters matching the audio information comprises: When the output augmented reality image is associated with a follow-up instruction, a user action in a camera preview interface is obtained as the action parameter.

10. The method for interacting with augmented reality images according to claim 1, wherein: The method for interacting with the augmented reality image further includes: Detecting a photo-taking or video-recording operation, receiving image data uploaded on the camera preview interface, the image data including image information collected in real time by the terminal camera and augmented reality image information presented on the camera preview interface; generating a target image based on the image data; And / or, the image data of each image frame is spliced ​​based on the timestamp of each image frame to generate a target video.

11. A terminal, characterized in that: The terminal includes: a memory, a processor, and an augmented reality image interaction program stored in the memory and executable on the processor, wherein the augmented reality image interaction program, when executed by the processor, implements the steps of the augmented reality image interaction method according to any one of claims 1 to 10.

12. A storage medium, characterized in that: An augmented reality image interaction program is stored on the storage medium, and when the augmented reality image interaction program is executed by the processor, the steps of the augmented reality image interaction method according to any one of claims 1 to 10 are implemented.