CN111667590A - Interactive group photo method and device, electronic equipment and storage medium - Google Patents
Interactive group photo method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111667590A CN111667590A CN202010538304.9A CN202010538304A CN111667590A CN 111667590 A CN111667590 A CN 111667590A CN 202010538304 A CN202010538304 A CN 202010538304A CN 111667590 A CN111667590 A CN 111667590A
- Authority
- CN
- China
- Prior art keywords
- target virtual
- scene
- target
- user
- virtual object
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 55
- 230000002452 interceptive effect Effects 0.000 title claims abstract description 40
- 238000001514 detection method Methods 0.000 claims abstract description 8
- 230000000694 effects Effects 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 10
- 241001465754 Metazoa Species 0.000 abstract description 12
- 241001147416 Ursus maritimus Species 0.000 description 11
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000001960 triggered effect Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000003068 static effect Effects 0.000 description 3
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 2
- 241000283080 Proboscidea <mammal> Species 0.000 description 1
- 241000287486 Spheniscidae Species 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 239000011521 glass Substances 0.000 description 1
- 238000007654 immersion Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000013535 sea water Substances 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/60—Editing figures and text; Combining figures or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
Abstract
The present disclosure provides an interactive group photo method, an apparatus, an electronic device and a storage medium, wherein the method comprises: acquiring a user image of a target user in a real scene in real time, and generating an AR scene picture based on the user image and a target virtual scene; a target virtual scene and the target user merged into the target virtual scene are displayed in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene; and detecting the pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets the preset condition. The group photo between the target user and the target virtual object can be automatically generated based on the pose detection result, close-range group photo between people and animals is achieved, manual photographing by the user is not needed, and visiting experience is improved.
Description
Technical Field
The present disclosure relates to the field of augmented reality technologies, and in particular, to an interactive group photo method, an interactive group photo device, an electronic device, and a storage medium.
Background
With the modernization of cities and the improvement of social, economic and cultural levels, amusement activity places such as amusement parks, zoos and parks are increasingly popular with people. To meet the entertainment needs of various users, various play items are often involved at these amusement rides.
Taking zoological visits as an example, people always expect to have a shadow-composition with animals. However, to better protect visitors and animals themselves, most current animals are kept in cages, which makes close-up a less realistic event and often self-timer or co-visit people to take pictures, which is inconvenient for visiting.
Disclosure of Invention
The embodiment of the disclosure provides at least one interactive group photo scheme, and the group photo between the target user and the target virtual object can be automatically generated based on the pose detection result, so that close-range group photo between the human and the animal is realized, manual photographing by the user is not needed, and the visiting experience is improved.
Mainly comprises the following aspects:
in a first aspect, an embodiment of the present disclosure provides an interactive group photo method, where the method includes:
acquiring a user image of a target user in a real scene in real time;
generating an AR scene picture based on the user image and the target virtual scene; a target virtual scene and the target user merged into the target virtual scene are displayed in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
and detecting the pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets the preset condition.
In one embodiment, when the pose information meets a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene includes:
and when the included angle between the orientation of the target virtual object and the direction perpendicular to the AR scene picture is smaller than a set angle threshold value, generating the group photo.
In one embodiment, when the pose information meets a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene includes:
when the relative pose between the target virtual object and the target user in the AR scene picture meets a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene.
In one embodiment, the condition that the relative pose meets the preset condition includes that a relative distance between the target virtual object and the target user in the AR scene picture is smaller than a set distance, and a preset matching pose is put between the target virtual object and the target user in the AR scene picture.
In one embodiment, generating a group photo of the target user and the target virtual object in the target virtual scene includes:
and intercepting the image of the AR scene picture, and storing the image for the target user to extract.
In one embodiment, after the image of the AR scene picture is captured and saved, the method further includes:
and generating a corresponding two-dimensional code based on the download address corresponding to the AR scene picture, and presenting the two-dimensional code to a user, so that the target user can obtain the group photo by scanning the two-dimensional code by using a terminal device.
In one embodiment, the method further comprises:
generating and storing virtual animation data corresponding to the target virtual scene in advance so as to display the corresponding target virtual scene based on the virtual animation data;
the virtual animation data comprises a target virtual object with an animation special effect, and the animation special effect of the target virtual object is periodically played in a displayed target virtual scene.
In a second aspect, an embodiment of the present disclosure further provides an interactive group photo device, where the device includes:
the acquisition module is used for acquiring a user image of a target user in a real scene in real time;
a generating module, configured to generate an AR scene picture based on the user image and a target virtual scene; a target virtual scene and the target user merged into the target virtual scene are displayed in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
and the detection module is used for detecting the pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets a preset condition.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the interactive group photo method according to the first aspect and any of its various embodiments.
In a fourth aspect, this disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the interactive group photo method according to the first aspect and any of the various embodiments thereof are performed.
By adopting the interactive group photo scheme, firstly, a user image of a target user in a real scene can be acquired in real time, an AR scene picture can be generated based on the user image and the target virtual scene, and a target virtual scene comprising a target virtual object and a target user blended into the target virtual scene are displayed in the AR scene picture. That is, according to the interactive group photo scheme, when it is determined that the pose of the target virtual object in the AR scene picture meets the preset condition, for example, when the target virtual object, polar bear, is detected out from water, the group photo of the target user and the target virtual object can be automatically triggered, that is, the group photo between the target user and the target virtual object can be automatically generated based on the pose detection result, so that the close-range group photo between the human and the animal is realized, the user does not need to take a photo manually, and the visiting experience is improved.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly described below, and the drawings herein incorporated in and forming a part of the specification illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the technical solutions of the present disclosure. It is appreciated that the following drawings depict only certain embodiments of the disclosure and are therefore not to be considered limiting of its scope, for those skilled in the art will be able to derive additional related drawings therefrom without the benefit of the inventive faculty.
Fig. 1 is a flowchart illustrating an interactive group photo method according to a first embodiment of the disclosure;
fig. 2 is a schematic application diagram of an interactive group photo method according to an embodiment of the present disclosure
Fig. 3 is a schematic diagram illustrating an interactive group photo device according to a second embodiment of the disclosure;
fig. 4 shows a schematic diagram of an electronic device provided in a third embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described clearly and completely with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, not all of the embodiments. The components of the embodiments of the present disclosure, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present disclosure, presented in the figures, is not intended to limit the scope of the claimed disclosure, but is merely representative of selected embodiments of the disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the disclosure without making creative efforts, shall fall within the protection scope of the disclosure.
It has been found that people always expect to have a shadow-composition with animals when visiting zoos. However, to better protect visitors and animals themselves, most current animals are kept in cages, which makes close-up a less realistic event and often self-timer or co-visit people to take pictures, which is inconvenient for visiting.
Based on the research, the disclosure provides at least one interactive group photo scheme, and the group photo between the target user and the target virtual object can be automatically generated based on the pose detection result, so that close-range group photo between people and animals is realized, manual photographing by the user is not needed, and the visiting experience is improved.
The above-mentioned drawbacks are the results of the inventor after practical and careful study, and therefore, the discovery process of the above-mentioned problems and the solutions proposed by the present disclosure to the above-mentioned problems should be the contribution of the inventor in the process of the present disclosure.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
To facilitate understanding of the present embodiment, first, an interactive group photo method disclosed in the embodiments of the present disclosure is described in detail, where an execution subject of the interactive group photo method provided in the embodiments of the present disclosure is generally an electronic device with certain computing capability, and the electronic device includes: a terminal device, which may be a User Equipment (UE), a mobile device, a User terminal, a cellular phone, a cordless phone, a Personal Digital Assistant (PDA), a handheld device, a computing device, a vehicle-mounted device, a wearable device, etc., or a server or other processing device, which may be an Augmented Reality (AR) device, such as AR glasses, an AR helmet, etc. In some possible implementations, the interactive group photo method may be implemented by a processor calling computer readable instructions stored in a memory.
The following describes the interactive group photo method provided by the embodiment of the present disclosure by taking the execution subject as a server.
Example one
Referring to fig. 1, a flowchart of an interactive group photo method provided in the embodiment of the present disclosure is shown, where the method includes steps S101 to S103, where:
s101, acquiring a user image of a target user in a real scene in real time;
s102, generating an AR scene picture based on the user image and the target virtual scene; displaying a target virtual scene and a target user merged into the target virtual scene in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
s103, detecting pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets a preset condition.
Here, in order to facilitate understanding of the interactive group photo method provided by the embodiments of the present disclosure, the following first describes the interactive group photo method in detail. The interactive group photo method in the embodiment of the disclosure can be applied to any activity scene where a real user and a virtual object interact with each other. Therefore, under the condition that the user enters an activity scene deployed to the interactive group photo method, the group photo with the target virtual object can be provided for the user, the close-range group photo between the real person and the virtual object is realized, manual photographing by the user is not needed, and the visiting experience is improved.
It should be noted that the target virtual object in the embodiment of the present disclosure may be constructed based on any real object model, for example, the target virtual object may be various virtual animals such as polar bears, penguins, elephants, and the like, and may also be various virtual objects such as roller coasters, trojans, and the like, which is not limited herein. Next, a virtual animal such as a polar bear will be specifically described. In addition, the target virtual scene in the implementation of the present disclosure may be specifically set in combination with different application scenes, for example, an application scene of polar bear playing at sea.
In order to generate a group photo of a target user and a target virtual object, the interactive group photo method provided by the embodiment of the disclosure first needs to determine pose information of the target virtual object in an AR scene picture. In this way, generation of the group photo can be triggered when the pose information of the target virtual object meets the preset condition.
Wherein the pose information about the target virtual object may be determined based on real-time detection results of the AR scene picture. In the embodiment of the present disclosure, the AR scene picture may be a picture including a target user and a target virtual object, and the target user in the picture may be any user merged into the target virtual scene in which the target virtual object is located, so that after it is determined based on the AR scene picture that the pose information of the target virtual object meets the preset condition, the generation of the group photo can be automatically controlled based on the pose information.
The related AR scene picture can be generated by fusion based on the acquired user image of the target user in the real scene and the target virtual scene showing the target virtual object with dynamically changed posture. In the specific process of generating the AR scene picture, the target user in the acquired user image may be first merged into a specific position in the target virtual scene, and then the AR scene picture may be obtained by combining the target user at the specific position and the splicing operation of other target virtual scenes.
The determination of whether the pose information meets the preset condition in the embodiment of the present disclosure may be determined based on the pose of one target virtual object, or may be determined in combination with the pose of the target user, and the following two aspects may be specifically described.
In a first aspect: in the embodiment of the present disclosure, the group photo may be generated when an included angle between the orientation of the target virtual object and the direction perpendicular to the outside of the AR scene picture is smaller than a set angle threshold.
Here, when the target virtual animal is the target virtual object, the relevant orientation may refer to a direction in which the head of the animal is located. Here, still taking the target virtual scene of the polar bear playing at sea as an example, the generation of the group photo may be automatically triggered when the polar bear probes the head.
In a second aspect, in the embodiment of the present disclosure, when the relative pose between the target virtual object and the target user in the AR scene picture meets a preset condition, the generation of the group photo may be automatically triggered.
The above-mentioned relative pose may describe a pose matching condition between the target virtual object and the target user, where the relative distance between the target virtual object and the target user in the AR scene picture may be smaller than a set distance, and a preset matching pose is put between the target virtual object and the target user in the AR scene picture.
Here, still taking the target virtual scene of the polar bear playing at sea as an example, the group photo of the target user and the polar bear in the application scene may be generated when the polar bear is detected out and is low and the target user makes a stroking gesture, that is, the user and the polar bear are put out a preset matching gesture. As shown in fig. 2.
In the disclosed embodiments, a group photo may be generated by capturing an image of an AR scene picture. In order to further improve the viewing experience, the embodiment of the present disclosure may store the captured image to meet the requirement of the user for extracting the photo.
In specific application, the requirement of a user for extracting photos can be met by a code scanning method. Here, first, the corresponding two-dimensional code may be generated based on the download address corresponding to the AR scene picture and presented to the user, so that after the target user scans the two-dimensional code using the terminal device, the target user may jump to the corresponding download address to download the group photo.
It should be noted that, in order to ensure that the photo privacy of the user is not revealed, before the photo is downloaded, authentication may be performed, that is, a person with a legal identity may download a group photo matched with the identity of the person, so that on the premise of satisfying interactive group photo, the security of photo downloading is ensured.
The target virtual scene in the embodiments of the present disclosure may be a dynamic scene or a static scene. When the static scene is used as the target virtual scene, the target virtual object in the target virtual scene can be periodically controlled to show the corresponding pose dynamic change. When the dynamic scene is used, the pose dynamic change corresponding to the target virtual object display can be fused in the animation special effect, that is, virtual animation data corresponding to the target virtual scene can be generated and stored in advance, wherein the virtual animation data comprises the target virtual object with the animation special effect, so that the animation effect of the target virtual object can be played periodically in the displayed target virtual scene, and here, the arctic bear can be played in a seaside game, and the animation effect from a probe in seawater to a low head can be executed repeatedly for the arctic bear.
Regardless of whether a static scene or a dynamic scene is adopted as a target virtual scene, the interactive group photo method provided by the embodiment of the disclosure can generate a corresponding AR scene picture based on seamless connection between a target user in a real scene and the target virtual scene including a target virtual object. At this moment, the display screen arranged in front of the target user can be used for realizing the dynamic AR scene picture in real time, and the AR immersion experience degree of the user is improved.
It will be understood by those skilled in the art that in the method of the present invention, the order of writing the steps does not imply a strict order of execution and any limitations on the implementation, and the specific order of execution of the steps should be determined by their function and possible inherent logic.
Based on the same inventive concept, an interactive group photo device corresponding to the interactive group photo method is also provided in the embodiments of the present disclosure, and since the principle of solving the problem of the device in the embodiments of the present disclosure is similar to that of the above-mentioned interactive group photo method in the embodiments of the present disclosure, the implementation of the device can refer to the implementation of the method, and repeated details are not described again.
Example two
Referring to fig. 3, which is a schematic diagram of an architecture of an interactive group photo device according to an embodiment of the present disclosure, the device includes: an acquisition module 301, a generation module 302 and a detection module 303; wherein the content of the first and second substances,
an obtaining module 301, configured to obtain a user image of a target user in a real scene in real time;
a generating module 302, configured to generate an AR scene picture based on the user image and the target virtual scene; displaying a target virtual scene and a target user merged into the target virtual scene in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
the detecting module 303 is configured to detect pose information of the target virtual object in the AR scene picture in real time, and generate a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets a preset condition.
By adopting the interactive group photo device, when the pose of the target virtual object in the AR scene picture is determined to meet the preset condition, for example, when the target virtual object of polar bear is detected out of water, the preset condition is considered to be met, at this time, the group photo of the target user and the target virtual object can be automatically triggered, namely, the group photo between the target user and the target virtual object can be automatically generated based on the pose detection result, so that the close-range group photo between people and animals is realized, the manual photo of the user is not needed, and the visiting experience is improved.
In one embodiment, the detecting module 303 is configured to generate a group photo of the target user and the target virtual object in the target virtual scene according to the following steps:
and when the included angle between the orientation of the target virtual object and the direction perpendicular to the AR scene picture is smaller than a set angle threshold value, generating a group photo.
In one embodiment, the detecting module 303 is configured to generate a group photo of the target user and the target virtual object in the target virtual scene according to the following steps:
and when the relative pose between the target virtual object and the target user in the AR scene picture accords with a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene.
In one embodiment, the condition that the relative pose meets the preset condition includes that the relative distance between the target virtual object and the target user in the AR scene picture is smaller than a set distance, and a preset matching gesture is put between the target virtual object and the target user in the AR scene picture.
In one embodiment, the detecting module 303 is configured to generate a group photo of the target user and the target virtual object in the target virtual scene according to the following steps:
and intercepting an image of the AR scene picture, and storing the image for the target user to extract.
In one embodiment, the above apparatus further comprises:
and the scanning module 304 is configured to capture an image of the AR scene picture, store the image, and generate a corresponding two-dimensional code based on a download address corresponding to the AR scene picture to present the two-dimensional code to a user, so that a target user can obtain a group photo by scanning the two-dimensional code using a terminal device.
In one embodiment, the generating module 302 is configured to expose the target virtual scene according to the following steps:
generating and storing virtual animation data corresponding to a target virtual scene in advance so as to display the corresponding target virtual scene based on the virtual animation data;
the virtual animation data comprises a target virtual object with an animation special effect, and the animation special effect of the target virtual object is periodically played in a displayed target virtual scene.
The description of the processing flow of each module in the device and the interaction flow between the modules may refer to the related description in the above method embodiments, and will not be described in detail here.
EXAMPLE III
An embodiment of the present disclosure further provides an electronic device, as shown in fig. 4, which is a schematic structural diagram of the electronic device provided in the embodiment of the present disclosure, and the electronic device includes: a processor 401, a memory 402, and a bus 403. The memory 402 stores machine-readable instructions executable by the processor 401, the processor 401 and the memory 402 communicating via the bus 403 when the electronic device is operating, the machine-readable instructions when executed by the processor 401 performing the following:
acquiring a user image of a target user in a real scene in real time;
generating an AR scene picture based on the user image and the target virtual scene; displaying a target virtual scene and a target user merged into the target virtual scene in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
and detecting the pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets the preset condition.
In an embodiment, in the instructions executed by the processor 401, when the pose information meets a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene includes:
and when the included angle between the orientation of the target virtual object and the direction perpendicular to the AR scene picture is smaller than a set angle threshold value, generating a group photo.
In an embodiment, in the instructions executed by the processor 401, when the pose information meets a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene includes:
and when the relative pose between the target virtual object and the target user in the AR scene picture accords with a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene.
In one embodiment, the condition that the relative pose meets the preset condition includes that the relative distance between the target virtual object and the target user in the AR scene picture is smaller than a set distance, and a preset matching gesture is put between the target virtual object and the target user in the AR scene picture.
In one embodiment, the instructions executed by the processor 401 to generate a group photo of the target user and the target virtual object in the target virtual scene includes:
and intercepting an image of the AR scene picture, and storing the image for the target user to extract.
In one embodiment, after capturing and saving the image of the AR scene picture, the instructions executed by the processor 401 further include:
and generating a corresponding two-dimensional code based on the download address corresponding to the AR scene picture, and presenting the two-dimensional code to the user so that the target user can obtain the group photo by scanning the two-dimensional code by using the terminal equipment.
In one embodiment, the instructions executed by the processor 401 further include:
generating and storing virtual animation data corresponding to a target virtual scene in advance so as to display the corresponding target virtual scene based on the virtual animation data;
the virtual animation data comprises a target virtual object with an animation special effect, and the animation special effect of the target virtual object is periodically played in a displayed target virtual scene.
The embodiment of the present disclosure further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by the processor 401, the steps of the interactive group photo method in the above method embodiments are executed. The storage medium may be a volatile or non-volatile computer-readable storage medium.
The computer program product of the interactive group photo method provided in the embodiments of the present disclosure includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute steps of the interactive group photo method in the above method embodiments, which may be referred to in the above method embodiments specifically, and are not described herein again.
The embodiments of the present disclosure also provide a computer program, which when executed by a processor implements any one of the methods of the foregoing embodiments. The computer program product may be embodied in hardware, software or a combination thereof. In an alternative embodiment, the computer program product is embodied in a computer storage medium, and in another alternative embodiment, the computer program product is embodied in a Software product, such as a Software Development Kit (SDK), or the like.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present disclosure, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present disclosure. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are merely specific embodiments of the present disclosure, which are used for illustrating the technical solutions of the present disclosure and not for limiting the same, and the scope of the present disclosure is not limited thereto, and although the present disclosure is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive of the technical solutions described in the foregoing embodiments or equivalent technical features thereof within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present disclosure, and should be construed as being included therein. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.
Claims (10)
1. An interactive group photo method, comprising:
acquiring a user image of a target user in a real scene in real time;
generating an AR scene picture based on the user image and the target virtual scene; a target virtual scene and the target user merged into the target virtual scene are displayed in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
and detecting the pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets the preset condition.
2. The method according to claim 1, wherein generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets a preset condition comprises:
and when the included angle between the orientation of the target virtual object and the direction perpendicular to the AR scene picture is smaller than a set angle threshold value, generating the group photo.
3. The method according to claim 1, wherein generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets a preset condition comprises:
when the relative pose between the target virtual object and the target user in the AR scene picture meets a preset condition, generating a group photo of the target user and the target virtual object in the target virtual scene.
4. The method according to claim 3, wherein the relative pose meeting the preset condition comprises that the relative distance between the target virtual object and the target user in the AR scene picture is smaller than a set distance, and a preset matching gesture is put between the target virtual object and the target user in the AR scene picture.
5. The method according to any one of claims 1 to 4, wherein generating a group photo of the target user and the target virtual object in the target virtual scene comprises:
and intercepting the image of the AR scene picture, and storing the image for the target user to extract.
6. The method of claim 5, wherein after capturing the image of the AR scene picture and saving, further comprising:
and generating a corresponding two-dimensional code based on the download address corresponding to the AR scene picture, and presenting the two-dimensional code to a user, so that the target user can obtain the group photo by scanning the two-dimensional code by using a terminal device.
7. The method according to any one of claims 1 to 6, further comprising:
generating and storing virtual animation data corresponding to the target virtual scene in advance so as to display the corresponding target virtual scene based on the virtual animation data;
the virtual animation data comprises a target virtual object with an animation special effect, and the animation special effect of the target virtual object is periodically played in a displayed target virtual scene.
8. An interactive group photo device, comprising:
the acquisition module is used for acquiring a user image of a target user in a real scene in real time;
a generating module, configured to generate an AR scene picture based on the user image and a target virtual scene; a target virtual scene and the target user merged into the target virtual scene are displayed in the AR scene picture; displaying a target virtual object with dynamically changed pose in the target virtual scene;
and the detection module is used for detecting the pose information of the target virtual object in the AR scene picture in real time, and generating a group photo of the target user and the target virtual object in the target virtual scene when the pose information meets a preset condition.
9. An electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, the processor and the memory communicating via the bus when the electronic device is operating, the machine-readable instructions when executed by the processor performing the steps of the interactive group photo method of any of claims 1 to 7.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, performs the steps of the interactive group photo method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010538304.9A CN111667590B (en) | 2020-06-12 | 2020-06-12 | Interactive group photo method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010538304.9A CN111667590B (en) | 2020-06-12 | 2020-06-12 | Interactive group photo method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111667590A true CN111667590A (en) | 2020-09-15 |
CN111667590B CN111667590B (en) | 2024-03-22 |
Family
ID=72387427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010538304.9A Active CN111667590B (en) | 2020-06-12 | 2020-06-12 | Interactive group photo method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111667590B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112150349A (en) * | 2020-09-23 | 2020-12-29 | 北京市商汤科技开发有限公司 | Image processing method and device, computer equipment and storage medium |
CN112906467A (en) * | 2021-01-15 | 2021-06-04 | 深圳市慧鲤科技有限公司 | Group photo image generation method and device, electronic device and storage medium |
CN113055602A (en) * | 2021-03-31 | 2021-06-29 | 广东小天才科技有限公司 | Remote group photo method, system, intelligent terminal and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105912102A (en) * | 2016-03-31 | 2016-08-31 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106485782A (en) * | 2016-09-30 | 2017-03-08 | 珠海市魅族科技有限公司 | Method and device that a kind of reality scene is shown in virtual scene |
WO2019020022A1 (en) * | 2017-07-28 | 2019-01-31 | 腾讯科技(深圳)有限公司 | Information processing method and apparatus, terminal device and computer-readable storage medium |
CN110176077A (en) * | 2019-05-23 | 2019-08-27 | 北京悉见科技有限公司 | The method, apparatus and computer storage medium that augmented reality is taken pictures |
CN110716645A (en) * | 2019-10-15 | 2020-01-21 | 北京市商汤科技开发有限公司 | Augmented reality data presentation method and device, electronic equipment and storage medium |
CN110738737A (en) * | 2019-10-15 | 2020-01-31 | 北京市商汤科技开发有限公司 | AR scene image processing method and device, electronic equipment and storage medium |
WO2020056692A1 (en) * | 2018-09-20 | 2020-03-26 | 太平洋未来科技(深圳)有限公司 | Information interaction method and apparatus, and electronic device |
CN110928411A (en) * | 2019-11-18 | 2020-03-27 | 珠海格力电器股份有限公司 | AR-based interaction method and device, storage medium and electronic equipment |
CN110944109A (en) * | 2018-09-21 | 2020-03-31 | 华为技术有限公司 | Photographing method, device and equipment |
WO2020072985A1 (en) * | 2018-10-05 | 2020-04-09 | Magic Leap, Inc. | Rendering location specific virtual content in any location |
-
2020
- 2020-06-12 CN CN202010538304.9A patent/CN111667590B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105912102A (en) * | 2016-03-31 | 2016-08-31 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN106485782A (en) * | 2016-09-30 | 2017-03-08 | 珠海市魅族科技有限公司 | Method and device that a kind of reality scene is shown in virtual scene |
WO2019020022A1 (en) * | 2017-07-28 | 2019-01-31 | 腾讯科技(深圳)有限公司 | Information processing method and apparatus, terminal device and computer-readable storage medium |
WO2020056692A1 (en) * | 2018-09-20 | 2020-03-26 | 太平洋未来科技(深圳)有限公司 | Information interaction method and apparatus, and electronic device |
CN110944109A (en) * | 2018-09-21 | 2020-03-31 | 华为技术有限公司 | Photographing method, device and equipment |
WO2020072985A1 (en) * | 2018-10-05 | 2020-04-09 | Magic Leap, Inc. | Rendering location specific virtual content in any location |
CN110176077A (en) * | 2019-05-23 | 2019-08-27 | 北京悉见科技有限公司 | The method, apparatus and computer storage medium that augmented reality is taken pictures |
CN110716645A (en) * | 2019-10-15 | 2020-01-21 | 北京市商汤科技开发有限公司 | Augmented reality data presentation method and device, electronic equipment and storage medium |
CN110738737A (en) * | 2019-10-15 | 2020-01-31 | 北京市商汤科技开发有限公司 | AR scene image processing method and device, electronic equipment and storage medium |
CN110928411A (en) * | 2019-11-18 | 2020-03-27 | 珠海格力电器股份有限公司 | AR-based interaction method and device, storage medium and electronic equipment |
Non-Patent Citations (3)
Title |
---|
余亦豪;谭冲;周忠;吴威;: "虚实融合的实景视频WebGIS系统", 系统仿真学报, no. 07, 2 April 2018 (2018-04-02) * |
张艺江;秦学英;JULIEN PETTRÉ;彭群生;: "虚拟群体与动态视频场景的在线实时融合", 计算机辅助设计与图形学学报, no. 01, 15 January 2011 (2011-01-15) * |
陈宝权;秦学英;: "混合现实中的虚实融合与人机智能交融", 中国科学:信息科学, no. 12, 20 December 2016 (2016-12-20) * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112150349A (en) * | 2020-09-23 | 2020-12-29 | 北京市商汤科技开发有限公司 | Image processing method and device, computer equipment and storage medium |
CN112906467A (en) * | 2021-01-15 | 2021-06-04 | 深圳市慧鲤科技有限公司 | Group photo image generation method and device, electronic device and storage medium |
CN113055602A (en) * | 2021-03-31 | 2021-06-29 | 广东小天才科技有限公司 | Remote group photo method, system, intelligent terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111667590B (en) | 2024-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111667590B (en) | Interactive group photo method and device, electronic equipment and storage medium | |
CN108965982A (en) | Video recording method, device, electronic equipment and readable storage medium storing program for executing | |
US20150104061A1 (en) | Method and device for augmented reality message hiding and revealing | |
CN111638796A (en) | Virtual object display method and device, computer equipment and storage medium | |
CN111640202B (en) | AR scene special effect generation method and device | |
US20170186235A1 (en) | Augmented reality system | |
CN111652987B (en) | AR group photo image generation method and device | |
CN112933606A (en) | Game scene conversion method and device, storage medium and computer equipment | |
CN111625100A (en) | Method and device for presenting picture content, computer equipment and storage medium | |
CN111639613B (en) | Augmented reality AR special effect generation method and device and electronic equipment | |
CN111640165A (en) | Method and device for acquiring AR group photo image, computer equipment and storage medium | |
CN111639979A (en) | Entertainment item recommendation method and device | |
CN111581547B (en) | Tour information pushing method and device, electronic equipment and storage medium | |
CN108134945B (en) | AR service processing method, AR service processing device and terminal | |
CN111638798A (en) | AR group photo method, AR group photo device, computer equipment and storage medium | |
CN111640167A (en) | AR group photo method, AR group photo device, computer equipment and storage medium | |
CN112163993A (en) | Image processing method, device, equipment and storage medium | |
CN107203646A (en) | A kind of intelligent social sharing method and device | |
CN114153548A (en) | Display method and device, computer equipment and storage medium | |
CN111639977A (en) | Information pushing method and device, computer equipment and storage medium | |
CN112333498A (en) | Display control method and device, computer equipment and storage medium | |
CN111639975A (en) | Information pushing method and device | |
CN111652985B (en) | Virtual object control method and device, electronic equipment and storage medium | |
CN111580679A (en) | Space capsule display method and device, electronic equipment and storage medium | |
CN111640190A (en) | AR effect presentation method and apparatus, electronic device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |