CN111640186A - AR special effect generation method and device for building, electronic device and storage medium - Google Patents

AR special effect generation method and device for building, electronic device and storage medium Download PDF

Info

Publication number
CN111640186A
CN111640186A CN202010512513.6A CN202010512513A CN111640186A CN 111640186 A CN111640186 A CN 111640186A CN 202010512513 A CN202010512513 A CN 202010512513A CN 111640186 A CN111640186 A CN 111640186A
Authority
CN
China
Prior art keywords
target building
ancient character
type
character model
ancient
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.)
Pending
Application number
CN202010512513.6A
Other languages
Chinese (zh)
Inventor
王子彬
孙红亮
李炳泽
张一�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Sensetime Intelligent Technology Co Ltd
Original Assignee
Shanghai Sensetime Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Sensetime Intelligent Technology Co Ltd filed Critical Shanghai Sensetime Intelligent Technology Co Ltd
Priority to CN202010512513.6A priority Critical patent/CN111640186A/en
Publication of CN111640186A publication Critical patent/CN111640186A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/10Constructive solid geometry [CSG] using solid primitives, e.g. cylinders, cubes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/006Mixed reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Abstract

The present disclosure provides an AR special effect generation method, apparatus, electronic device, and storage medium for a building, the method comprising: acquiring a real scene image shot by AR equipment; when a target building is detected in the real scene image, acquiring an ancient character model matched with the target building; and generating AR display data for fusing the ancient character model into a real scene, and sending the AR display data to the AR equipment so as to display the AR picture fused by the target building and the ancient character model on the AR equipment.

Description

AR special effect generation method and device for building, electronic device and storage medium
Technical Field
The present disclosure relates to the field of augmented reality technologies, and in particular, to a method and an apparatus for generating an AR special effect for a building, an electronic device, and a storage medium.
Background
Generally, buildings are closely related to human life, so the buildings are filled in various places of human life, but buildings in different places and different ages have different characteristics, so people can easily know the living conditions, cultural arts and other aspects of people corresponding to the ages of the buildings by visiting the details and the structures of the stored buildings.
However, the display mode of the building is single through the mode that the user visits the building at a fixed place.
Disclosure of Invention
In view of the above, the present disclosure provides at least a method, an apparatus, an electronic device, and a storage medium for generating an AR special effect of a building.
In a first aspect, the present disclosure provides a method for generating an AR special effect of a building, including:
acquiring a real scene image shot by AR equipment;
when a target building is detected in the real scene image, acquiring an ancient character model matched with the target building;
and generating AR display data for fusing the ancient character model into a real scene, and sending the AR display data to the AR equipment so as to display the AR picture fused by the target building and the ancient character model on the AR equipment.
According to the method, under the condition that the target building is detected in the obtained real scene image, the ancient character model matched with the target building is obtained, AR display data for fusing the ancient character model into the real scene is generated, and then the AR display data is sent to the AR device, so that an AR picture fused with the target building and the ancient character model is displayed on the AR device, the corresponding ancient character model can be matched with the target building, the ancient character model and the target building are combined, the AR special effect is added to the target building, the historical lasting appeal of the target building is increased, the display flexibility and diversity of the building are improved, and the user can be helped to better know historical culture.
In one possible embodiment, in a case where a target building is detected in the image of the real scene, obtaining an ancient character model matching the target building includes:
and acquiring an ancient character model which is stored in advance and matched with the type of the target building according to the detected type of the target building.
In one possible embodiment, in a case where a target building is detected in the image of the real scene, obtaining an ancient character model matching the target building includes:
searching historical culture contents corresponding to the type of the target building according to the detected type of the target building;
determining ancient character information matched with the target building from the historical culture content;
and acquiring an ancient character model which is stored in advance and matched with the ancient character information.
In one possible embodiment, when each type corresponds to a plurality of ancient character models, obtaining, according to the detected type of the target building, an ancient character model which is stored in advance and matches with the type of the target building, includes:
selecting an ancient character model matched with the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR equipment;
and determining the selected ancient character model as the ancient character model matched with the type of the target building.
In the embodiment, a plurality of ancient character models are set for each type, and the ancient character models matched with the types of the target buildings are determined based on the user basic information corresponding to the AR equipment, so that the AR display special effect has diversity, the display special effect of the target buildings is enriched, and the display flexibility of the target buildings is improved.
In one possible embodiment, selecting an ancient character model matching the basic user information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the basic user information corresponding to the AR device includes:
and determining an ancient character model matched with the basic user information based on pre-stored characteristic information of each ancient character model in a plurality of ancient character models corresponding to the type of the target building.
In one possible embodiment, when each type corresponds to a plurality of ancient character models, obtaining, according to the detected type of the target building, an ancient character model which is stored in advance and matches with the type of the target building, includes:
sending description information of a plurality of ancient character models corresponding to the type of the target building to the AR device;
and responding to a selection operation of any one of the plurality of ancient character models corresponding to the type of the target building, which is triggered by a user, and determining the ancient character model corresponding to the selection operation as the ancient character model matched with the type of the target building.
In one possible embodiment, the type of target building is detected according to the following steps:
intercepting a target building image from the real scene image;
and determining the type of the target building based on the image characteristic information corresponding to the target building image.
The following descriptions of the effects of the apparatus, the electronic device, and the like refer to the description of the above method, and are not repeated here.
In a second aspect, the present disclosure provides an AR special effect generating apparatus for a building, including:
the first acquisition module is used for acquiring a real scene image shot by the AR equipment;
the second acquisition module is used for acquiring an ancient character model matched with a target building under the condition that the target building is detected in the real scene image;
and the generating module is used for generating AR display data for fusing the ancient character model into a real scene, and sending the AR display data to the AR equipment so as to display the AR picture fused by the target building and the ancient character model on the AR equipment.
In one possible implementation, the second obtaining module, in a case where a target building is detected in the image of the real scene, obtains an ancient character model matching the target building, and is configured to:
and acquiring an ancient character model which is stored in advance and matched with the type of the target building according to the detected type of the target building.
In one possible implementation, the second obtaining module, in a case where a target building is detected in the image of the real scene, obtains an ancient character model matching the target building, and is configured to:
searching historical culture contents corresponding to the type of the target building according to the detected type of the target building;
determining ancient character information matched with the target building from the historical culture content;
and acquiring an ancient character model which is stored in advance and matched with the ancient character information.
In one possible embodiment, when each type corresponds to a plurality of ancient character models, the second obtaining module, when obtaining, according to the detected type of the target building, an ancient character model that matches the type of the target building and is stored in advance, is configured to:
selecting an ancient character model matched with the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR equipment;
and determining the selected ancient character model as the ancient character model matched with the type of the target building.
In one possible implementation, the second obtaining module selects, from a plurality of ancient character models corresponding to the type of the target building, an ancient character model matching the user basic information, based on the detected type of the target building and the user basic information corresponding to the AR device, and is configured to:
and determining an ancient character model matched with the basic user information based on pre-stored characteristic information of each ancient character model in a plurality of ancient character models corresponding to the type of the target building.
In one possible embodiment, when each type corresponds to a plurality of ancient character models, the second obtaining module, when obtaining, according to the detected type of the target building, an ancient character model that matches the type of the target building and is stored in advance, is configured to:
sending description information of a plurality of ancient character models corresponding to the type of the target building to the AR device;
and responding to a selection operation of any one of the plurality of ancient character models corresponding to the type of the target building, which is triggered by a user, and determining the ancient character model corresponding to the selection operation as the ancient character model matched with the type of the target building.
In a possible implementation, the second obtaining module is configured to detect the type of the target building according to the following steps:
intercepting a target building image from the real scene image;
and determining the type of the target building based on the image characteristic information corresponding to the target building image.
In a third aspect, the present disclosure provides 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 running, the machine-readable instructions when executed by the processor performing the steps of the method for generating AR special effects for a building as described in the first aspect or any one of the embodiments above.
In a fourth aspect, the present disclosure provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the AR special effects generation method for a building as described in the first aspect or any one of the embodiments above.
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 illustrates a flow chart of an AR special effect generation method for a building according to an embodiment of the present disclosure;
fig. 2 is a schematic interface diagram of an AR device in an AR special effect generation method for a building according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating an architecture of an AR special effect generating apparatus of a building according to an embodiment of the present disclosure;
fig. 4 shows a schematic structural diagram of an electronic device 400 provided in an 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.
At present, a user can visit an ancient building and understand the aspects of life, economy, politics, art and the like of people of the corresponding age of the ancient building. However, the ancient buildings are displayed singly and are low in flexibility in a mode of visiting the aspects of structures, details and the like of the ancient buildings.
In order to solve the above problem, an embodiment of the present disclosure provides a method for generating an AR special effect of a building, where a matched ancient character model is determined for a target building, and AR display data for fusing the ancient character model into a real scene is generated, so that a user can display an AR picture after the target building and the ancient character model are fused through an AR device, thereby adding the AR special effect to the target building, and improving display flexibility and diversity of the ancient building.
For the convenience of understanding the embodiment of the present disclosure, first, a method for generating an AR special effect of a building disclosed in the embodiment of the present disclosure is described in detail.
Referring to fig. 1, a schematic flow chart of a method for generating an AR special effect of a building according to an embodiment of the present disclosure is shown, where the method includes S101 to S103, where:
and S101, acquiring a real scene image shot by the AR equipment.
S102, when the target building is detected in the real scene image, an ancient character model matched with the target building is obtained.
S103, AR display data of the ancient character model fused into the real scene are generated, and the AR display data are sent to the AR device so that the AR device can display the AR picture of the target building fused with the ancient character model.
According to the method, under the condition that the target building is detected in the obtained real scene image, the ancient character model matched with the target building is obtained, AR display data for fusing the ancient character model into the real scene is generated, and then the AR display data is sent to the AR device, so that an AR picture fused with the target building and the ancient character model is displayed on the AR device, the corresponding ancient character model can be matched with the target building, the ancient character model and the target building are combined, the AR special effect is added to the target building, the historical lasting appeal of the target building is increased, the display flexibility and diversity of the building are improved, and the user can be helped to better know historical culture.
For S101:
here, the AR device may be any smart device that displays AR data, for example, the AR device may be a smart phone, a tablet, a computer, AR glasses, and the like. The real scene image may be an image of the real scene acquired by the AR device in real time. Or the real scene image may also be a real scene image obtained by the AR device after the user triggers the shooting operation.
For S102:
here, the real scene image may be detected, and when it is detected that the target building is included in the real scene image, the ancient character model matching the target building may be acquired. And when the target building is not included in the real scene image, the step of obtaining the ancient character model is not carried out. The case where the target building is not included in the image of the real scene may include: buildings do not exist in the image of the real scene, or the buildings existing in the real scene do not meet the requirements, for example, the buildings existing in the real scene are not ancient buildings and the like.
In an alternative embodiment, in the case that a target building is detected in the image of the real scene, obtaining an ancient character model matching the target building may include:
the method comprises the steps of firstly, obtaining an ancient character model which is stored in advance and matched with the type of a target building according to the detected type of the target building.
Searching historical culture contents corresponding to the type of the target building according to the detected type of the target building; determining ancient character information matched with a target building from historical culture contents; and acquiring the pre-stored ancient character model matched with the ancient character information.
For the first mode, at least one corresponding ancient character model may be stored in advance for each type of building, and after the type of the target building is detected, at least one ancient character model corresponding to the type may be determined according to the type of the target building. For example, if the type of the target building is a palace, storing at least one corresponding ancient character model in the palace type, for example, the ancient character model corresponding to the palace type may be an emperor model, a imperial concubine concubine of an emperor model, a minister model, or the like; or, the ancient character model corresponding to the palace type can also be emperor models of different character images, such as emperor models of cartoon images, emperor models of formal images and the like; or, the ancient character model corresponding to the palace type can also be emperor models of different ages, such as an Ming dynasty emperor model, a Qing dynasty emperor model and the like. Or, if the type of the target building is the taihe hall, the ancient character model corresponding to the type can be a emperor model; if the type of the target building is the famous person residence, the ancient character model corresponding to the type can be a model of the famous person and the like.
As an optional embodiment, when each type corresponds to a plurality of ancient character models, obtaining, according to the detected type of the target building, an ancient character model which is stored in advance and matches with the type of the target building, includes:
step one, according to the detected type of the target building and the user basic information corresponding to the AR equipment, selecting an ancient character model matched with the user basic information from a plurality of ancient character models corresponding to the type of the target building.
And step two, determining the selected ancient character model as the ancient character model matched with the type of the target building.
For the first step, user basic information corresponding to the AR device may be acquired, for example, the user basic information may include at least one of information of gender, age, occupation, and the like of the user. Further, after the type of the target building is detected, an ancient character model matching the basic information of the user may be selected from a plurality of ancient character models corresponding to the type of the target building.
As an alternative embodiment, selecting an ancient character model matching with the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR device, includes: and determining an ancient character model matched with the basic information of the user based on the pre-stored characteristic information of each ancient character model in a plurality of ancient character models corresponding to the type of the target building.
Here, the corresponding feature information may be stored in advance for each of the ancient character models, and the feature information corresponding to the ancient character model may be a user feature that can be matched. For example, the plurality of ancient character models corresponding to the palace type may include an emperor model and a fei concubine of an emperor model, the characteristic information corresponding to the emperor model may be that the user capable of being matched is a male, the characteristic information corresponding to the fei concubine of an emperor model may be that the user capable of being matched is a female, and when it is detected that the user basic information corresponding to the AR device indicates that the user is a male, the user basic information is an ancient character model that determines the emperor model as being matched with the type of the target building; when the user basic information corresponding to the AR device is detected to indicate that the user is female, the imperial concubine concubine of an emperor model is determined to be an ancient character model matched with the user basic information.
For another example, the plurality of ancient character models corresponding to the palace type may include a cartoon image emperor model and a formal image emperor model, so that the feature information corresponding to the cartoon image emperor model may be a user with an age less than 18 years old, the feature information corresponding to the formal image emperor model may be a user with an age greater than or equal to 18 years old, and when it is detected that the user basic information corresponding to the AR device indicates that the user is 20 years old, the formal image emperor model is determined to be the ancient character model matching the type of the target building; when the fact that the basic information of the user corresponding to the AR device indicates that the user is 15 years old is detected, determining the emperor model of the cartoon image as an ancient character model matched with the basic information of the user.
For step two, the ancient character model matched with the basic information of the user can be determined as the ancient character model matched with the target building type.
In the embodiment, a plurality of ancient character models are set for each type, and the ancient character models matched with the types of the target buildings are determined based on the user basic information corresponding to the AR equipment, so that the AR display special effect has diversity, the display special effect of the target buildings is enriched, and the display flexibility of the target buildings is improved.
As an optional embodiment, when each type corresponds to a plurality of ancient character models, obtaining, according to the detected type of the target building, an ancient character model that is stored in advance and matches the type of the target building, may further include:
firstly, description information of a plurality of ancient character models corresponding to the type of the target building is sent to the AR device.
And secondly, responding to the selection operation of any one of the plurality of ancient character models corresponding to the type of the target building, which is triggered by the user, and determining the ancient character model corresponding to the selection operation as the ancient character model matched with the type of the target building.
Here, description information of a plurality of ancient character models corresponding to the model of the target building may be transmitted to the AR device, for example, the description information may be names of the ancient character models, birth information, image information, and the like.
The user can look over every ancient personage model that shows to can be to the ancient personage model of interest, trigger the selection operation, for example, the user is interested in emperor model, then can trigger the trigger operation to emperor model through clicking the button of emperor model, then with the ancient personage model (being emperor model) that the user triggered, confirm as the ancient personage model with the type matching of this target building.
In an alternative embodiment, the type of target building may be detected according to the following steps: intercepting a target building image from a real scene image; and determining the type of the target building based on the image characteristic information corresponding to the target building image.
In this embodiment, the target building image may be obtained by capturing from the real scene image according to the outline or the bounding box of the target building. And then, extracting image characteristic information corresponding to the target building from the target building image, and determining the type of the target building. In specific implementation, the target building image can be input into the trained image detection neural network, and the type of the target building can be determined. The types of the buildings can include palace, temple, tomb, bridge, pavilion, etc. Here, the type of the building may be set as needed.
For example, the real scene image including the target building can be input into the trained image detection neural network, and the type of the target building can be determined.
For S103:
here, the display position of the ancient character model can be determined based on the real scene image, AR display data for fusing the ancient character model into the real scene is generated based on the determined display position, and the generated AR display data is sent to the AR device, so that the AR device can display an AR picture after the target building and the ancient character model are fused, and the generation of a corresponding AR special effect for the target building is realized.
Referring to fig. 2, a target building 21 and an ancient character model 22 matching the type of the target building 21 are included in fig. 2. For example, when the type of the target building 21 is a palace, the corresponding ancient character model may be a imperial concubine concubine of an emperor model.
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 concept, an embodiment of the present disclosure further provides an AR special effect generating device for a building, as shown in fig. 3, which is an architectural schematic diagram of the AR special effect generating device for a building provided in the embodiment of the present disclosure, and includes a first obtaining module 301, a second obtaining module 302, and a generating module 303, specifically:
a first obtaining module 301, configured to obtain a real scene image captured by an AR device;
a second obtaining module 302, configured to obtain an ancient character model matching a target building when the target building is detected in the real scene image;
the generating module 303 is configured to generate AR display data obtained by fusing the ancient character model into a real scene, and send the AR display data to the AR device, so that an AR picture obtained by fusing the target building and the ancient character model is displayed on the AR device.
In a possible implementation manner, the second obtaining module 302, in a case that a target building is detected in the image of the real scene, obtains an ancient character model matching the target building, and is configured to:
and acquiring an ancient character model which is stored in advance and matched with the type of the target building according to the detected type of the target building.
In a possible implementation manner, the second obtaining module 302, in a case that a target building is detected in the image of the real scene, obtains an ancient character model matching the target building, and is configured to:
searching historical culture contents corresponding to the type of the target building according to the detected type of the target building;
determining ancient character information matched with the target building from the historical culture content;
and acquiring an ancient character model which is stored in advance and matched with the ancient character information.
In one possible embodiment, when each type corresponds to a plurality of ancient character models, the second obtaining module 302, when obtaining, according to the detected type of the target building, an ancient character model that matches the type of the target building and is stored in advance, is configured to:
selecting an ancient character model matched with the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR equipment;
and determining the selected ancient character model as the ancient character model matched with the type of the target building.
In one possible implementation, the second obtaining module 302 selects, from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR device, an ancient character model matching the user basic information, and is configured to:
and determining an ancient character model matched with the basic user information based on pre-stored characteristic information of each ancient character model in a plurality of ancient character models corresponding to the type of the target building.
In one possible embodiment, when each type corresponds to a plurality of ancient character models, the second obtaining module 302, when obtaining, according to the detected type of the target building, an ancient character model that matches the type of the target building and is stored in advance, is configured to:
sending description information of a plurality of ancient character models corresponding to the type of the target building to the AR device;
and responding to a selection operation of any one of the plurality of ancient character models corresponding to the type of the target building, which is triggered by a user, and determining the ancient character model corresponding to the selection operation as the ancient character model matched with the type of the target building.
In a possible implementation, the second obtaining module 302 is configured to detect the type of the target building according to the following steps:
intercepting a target building image from the real scene image;
and determining the type of the target building based on the image characteristic information corresponding to the target building image.
In some embodiments, the functions of the apparatus provided in the embodiments of the present disclosure or the included templates may be used to execute the method described in the above method embodiments, and specific implementation thereof may refer to the description of the above method embodiments, and for brevity, no further description is provided here.
Based on the same technical concept, the embodiment of the disclosure also provides an electronic device. Referring to fig. 4, a schematic structural diagram of an electronic device provided in the embodiment of the present disclosure includes a processor 401, a memory 402, and a bus 403. The memory 402 is used for storing execution instructions and includes a memory 4021 and an external memory 4022; the memory 4021 is also referred to as an internal memory, and is configured to temporarily store operation data in the processor 401 and data exchanged with the external memory 4022 such as a hard disk, the processor 401 exchanges data with the external memory 4022 through the memory 4021, and when the electronic device 400 operates, the processor 401 communicates with the memory 402 through the bus 403, so that the processor 401 executes the following instructions:
acquiring a real scene image shot by AR equipment;
when a target building is detected in the real scene image, acquiring an ancient character model matched with the target building;
and generating AR display data for fusing the ancient character model into a real scene, and sending the AR display data to the AR equipment so as to display the AR picture fused by the target building and the ancient character model on the AR equipment.
In one possible design, the processor 401 executes instructions for obtaining an ancient character model matching a target building when the target building is detected in the image of the real scene, including: and acquiring an ancient character model which is stored in advance and matched with the type of the target building according to the detected type of the target building.
In one possible design, the processor 401 executes instructions for obtaining an ancient character model matching a target building when the target building is detected in the image of the real scene, including:
searching historical culture contents corresponding to the type of the target building according to the detected type of the target building;
determining ancient character information matched with the target building from the historical culture content;
and acquiring an ancient character model which is stored in advance and matched with the ancient character information.
In one possible design, the instructions executed by the processor 401, when each type corresponds to a plurality of ancient character models, according to the detected type of the target building, obtaining a prestored ancient character model matching the type of the target building, and including:
selecting an ancient character model matched with the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR equipment;
and determining the selected ancient character model as the ancient character model matched with the type of the target building.
In one possible design, the instructions executed by the processor 401 for selecting an ancient character model matching the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR device includes:
and determining an ancient character model matched with the basic user information based on pre-stored characteristic information of each ancient character model in a plurality of ancient character models corresponding to the type of the target building.
In one possible design, the instructions executed by the processor 401, when each type corresponds to a plurality of ancient character models, according to the detected type of the target building, obtaining a prestored ancient character model matching the type of the target building, and including:
sending description information of a plurality of ancient character models corresponding to the type of the target building to the AR device;
and responding to a selection operation of any one of the plurality of ancient character models corresponding to the type of the target building, which is triggered by a user, and determining the ancient character model corresponding to the selection operation as the ancient character model matched with the type of the target building.
In one possible design, processor 401 may execute instructions that detect the type of the target building according to the following steps:
intercepting a target building image from the real scene image;
and determining the type of the target building based on the image characteristic information corresponding to the target building image.
In addition, 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 a processor, the computer program performs the steps of the AR special effect generation method for a building described in the above method embodiment.
The computer program product of the AR special effect generating method for a building 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 AR special effect generating method for a building described in the above method embodiments, which may be specifically referred to in the above method embodiments and are not described herein again.
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 a computer 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.
The above are only specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present disclosure, and shall be covered by the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. An AR special effect generation method for a building, comprising:
acquiring a real scene image shot by AR equipment;
when a target building is detected in the real scene image, acquiring an ancient character model matched with the target building;
and generating AR display data for fusing the ancient character model into a real scene, and sending the AR display data to the AR equipment so as to display the AR picture fused by the target building and the ancient character model on the AR equipment.
2. The method of claim 1, wherein in the case that a target building is detected in the image of the real scene, obtaining an ancient character model matching the target building comprises:
and acquiring an ancient character model which is stored in advance and matched with the type of the target building according to the detected type of the target building.
3. The method of claim 1, wherein in the case that a target building is detected in the image of the real scene, obtaining an ancient character model matching the target building comprises:
searching historical culture contents corresponding to the type of the target building according to the detected type of the target building;
determining ancient character information matched with the target building from the historical culture content;
and acquiring an ancient character model which is stored in advance and matched with the ancient character information.
4. The method of claim 2, wherein obtaining pre-stored ancient character models matching the type of the target building according to the detected type of the target building when each type corresponds to a plurality of ancient character models comprises:
selecting an ancient character model matched with the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR equipment;
and determining the selected ancient character model as the ancient character model matched with the type of the target building.
5. The method of claim 4, wherein selecting an ancient character model matching the user basic information from a plurality of ancient character models corresponding to the type of the target building according to the detected type of the target building and the user basic information corresponding to the AR device comprises:
and determining an ancient character model matched with the basic user information based on pre-stored characteristic information of each ancient character model in a plurality of ancient character models corresponding to the type of the target building.
6. The method of claim 2, wherein obtaining pre-stored ancient character models matching the type of the target building according to the detected type of the target building when each type corresponds to a plurality of ancient character models comprises:
sending description information of a plurality of ancient character models corresponding to the type of the target building to the AR device;
and responding to a selection operation of any one of the plurality of ancient character models corresponding to the type of the target building, which is triggered by a user, and determining the ancient character model corresponding to the selection operation as the ancient character model matched with the type of the target building.
7. The method of claim 2, wherein the type of the target building is detected according to the following steps:
intercepting a target building image from the real scene image;
and determining the type of the target building based on the image characteristic information corresponding to the target building image.
8. An AR special effect generation device for a building, comprising:
the first acquisition module is used for acquiring a real scene image shot by the AR equipment;
the second acquisition module is used for acquiring an ancient character model matched with a target building under the condition that the target building is detected in the real scene image;
and the generating module is used for generating AR display data for fusing the ancient character model into a real scene, and sending the AR display data to the AR equipment so as to display the AR picture fused by the target building and the ancient character model on the AR equipment.
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 over the bus when the electronic device is running, the machine-readable instructions when executed by the processor performing the steps of the AR special effects generation method of a building of any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, performs the steps of the AR special effects generation method of a building according to any one of claims 1 to 7.
CN202010512513.6A 2020-06-08 2020-06-08 AR special effect generation method and device for building, electronic device and storage medium Pending CN111640186A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010512513.6A CN111640186A (en) 2020-06-08 2020-06-08 AR special effect generation method and device for building, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010512513.6A CN111640186A (en) 2020-06-08 2020-06-08 AR special effect generation method and device for building, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN111640186A true CN111640186A (en) 2020-09-08

Family

ID=72332051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010512513.6A Pending CN111640186A (en) 2020-06-08 2020-06-08 AR special effect generation method and device for building, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN111640186A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973178A (en) * 2021-10-24 2022-01-25 云景文旅科技有限公司 Interactive photographing processing method and device in travel process

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108507541A (en) * 2018-03-01 2018-09-07 广东欧珀移动通信有限公司 Building recognition method and system and mobile terminal
CN109213728A (en) * 2017-06-29 2019-01-15 深圳市掌网科技股份有限公司 Cultural relic exhibition method and system based on augmented reality
CN110689623A (en) * 2019-08-20 2020-01-14 重庆特斯联智慧科技股份有限公司 Tourist guide system and method based on augmented reality display

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109213728A (en) * 2017-06-29 2019-01-15 深圳市掌网科技股份有限公司 Cultural relic exhibition method and system based on augmented reality
CN108507541A (en) * 2018-03-01 2018-09-07 广东欧珀移动通信有限公司 Building recognition method and system and mobile terminal
CN110689623A (en) * 2019-08-20 2020-01-14 重庆特斯联智慧科技股份有限公司 Tourist guide system and method based on augmented reality display

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973178A (en) * 2021-10-24 2022-01-25 云景文旅科技有限公司 Interactive photographing processing method and device in travel process

Similar Documents

Publication Publication Date Title
CN110716645A (en) Augmented reality data presentation method and device, electronic equipment and storage medium
CN111640197A (en) Augmented reality AR special effect control method, device and equipment
CN111652987B (en) AR group photo image generation method and device
CN111640169A (en) Historical event presenting method and device, electronic equipment and storage medium
JP7342366B2 (en) Avatar generation system, avatar generation method, and program
CN111638797A (en) Display control method and device
CN111696215A (en) Image processing method, device and equipment
CN111640184A (en) Ancient building reproduction method, ancient building reproduction device, electronic equipment and storage medium
CN111679742A (en) Interaction control method and device based on AR, electronic equipment and storage medium
CN106462615A (en) Information processing device, information presentation method, program, and system
CN111639979A (en) Entertainment item recommendation method and device
CN111667588A (en) Person image processing method, person image processing device, AR device and storage medium
CN111639613B (en) Augmented reality AR special effect generation method and device and electronic equipment
CN111625100A (en) Method and device for presenting picture content, computer equipment and storage medium
CN112905014A (en) Interaction method and device in AR scene, electronic equipment and storage medium
CN112882576A (en) AR interaction method and device, electronic equipment and storage medium
CN111640186A (en) AR special effect generation method and device for building, electronic device and storage medium
CN112288881B (en) Image display method and device, computer equipment and storage medium
CN102567048A (en) Change notifications from an updated data representation
CN111639977A (en) Information pushing method and device, computer equipment and storage medium
CN112333498A (en) Display control method and device, computer equipment and storage medium
CN111899349A (en) Model presentation method and device, electronic equipment and computer storage medium
CN111625103A (en) Sculpture display method and device, electronic equipment and storage medium
CN111640194A (en) AR scene image display control method and device, electronic equipment and storage medium
CN113345110A (en) Special effect display method and device, electronic equipment 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