WO2022205026A1 - Product display method and apparatus, and electronic device - Google Patents

Product display method and apparatus, and electronic device Download PDF

Info

Publication number
WO2022205026A1
WO2022205026A1 PCT/CN2021/084247 CN2021084247W WO2022205026A1 WO 2022205026 A1 WO2022205026 A1 WO 2022205026A1 CN 2021084247 W CN2021084247 W CN 2021084247W WO 2022205026 A1 WO2022205026 A1 WO 2022205026A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
scene
user
real
program instructions
Prior art date
Application number
PCT/CN2021/084247
Other languages
French (fr)
Chinese (zh)
Inventor
程龙一
Original Assignee
深圳市大疆创新科技有限公司
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 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2021/084247 priority Critical patent/WO2022205026A1/en
Publication of WO2022205026A1 publication Critical patent/WO2022205026A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics

Definitions

  • the present application relates to the field of augmented reality technology, and in particular, to a product display method, a product display device, and an electronic device.
  • the embodiments of the present application provide a product display method, including:
  • a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
  • the virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  • an embodiment of the present application provides a product display device, including:
  • memory for storing processor executable program instructions
  • the processor implements the following operations when executing the executable program instructions:
  • a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
  • the virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  • an electronic device including:
  • memory for storing processor executable program instructions
  • the processor implements the following operations when executing the executable program instructions:
  • a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
  • the virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  • the virtual elements used to form the first virtual model corresponding to the product and the first virtual elements corresponding to the product are rendered and displayed on the scene image of the real scene obtained by the camera in real time.
  • a special effect of the unfolding structure of the virtual model so that the user can see the unfolding structure of the product displayed in the real scene and the components of the product through the scene image in real time, so that the user can experience the real display of the product no matter where the user is.
  • the visual effects in front of their own eyes also allow users to get close contact to understand the specific shape of the product.
  • the user can also freely operate the components of the displayed product, such as assembling, thereby allowing the user to experience the assembly process of the product, and because the unfolding structure of the product is also displayed at the same time, it can help the user more A clear and visual understanding of the structure and composition of the product, and the ability to assemble components with reference to the unfolded structure of the displayed product.
  • FIG. 1 is a flow chart of a product display method according to an exemplary embodiment of the present application.
  • FIG. 2 is a schematic diagram of a scene of a product display according to an exemplary embodiment of the present application.
  • Figure 3a is a scene image of a real scene captured by a camera in real time.
  • Figure 3b is a picture output and displayed by the electronic device after the camera completes the plane information detection of the real scene.
  • Fig. 3c is a schematic diagram of a user selecting a landing point in a scene image by clicking on the screen with a finger.
  • FIG. 3d is a screen output by the electronic device after the user clicks and selects a landing point in the scene image.
  • FIG. 3e is a screen output and displayed by the electronic device after the user clicks on the virtual package.
  • FIG. 3f is a screen output and displayed by the electronic device after the user clicks and selects a certain component.
  • FIG. 3g is a schematic diagram of the user selecting the component and sliding the screen to rotate the component.
  • Figure 3h is a schematic diagram of the user completing a component assembly.
  • Figure 3i is a schematic diagram of the user selecting another component on the screen.
  • FIG. 3j is a schematic diagram of the user clicking to expand the area of the corresponding component in the structure special effect.
  • Figure 3k is a schematic diagram of the user completing another component assembly.
  • FIG. 31 is a screen output and displayed by the electronic device after the user assembles.
  • FIG. 3m is a schematic diagram of a control component composed of virtual joysticks and virtual buttons rendered on the screen of an electronic device.
  • FIG. 4 is a schematic diagram of a product display device according to an exemplary embodiment of the present application.
  • FIG. 5 is a schematic diagram of an electronic device according to an exemplary embodiment of the present application.
  • FIG. 1 is a flowchart of a product display method shown in an exemplary embodiment of the present application, and the method includes the following steps:
  • S103 Render the virtual scene in the scene image, adjust the display content of the virtual scene based on the obtained operation information input by the user, and re-render the adjusted virtual scene in the scene image.
  • the methods of the above embodiments of the present application can be applied to electronic devices, such as mobile phones, tablets, notebook computers, AR (Augmented Reality, augmented reality) glasses and other electronic devices.
  • the camera can be equipped with a camera for capturing images, or real-time image capturing can be performed through an external camera, which is not limited.
  • the electronic device may also be equipped with a display screen for outputting and displaying the rendered scene image, so that the user can view the rendered scene image through the screen.
  • the product display method provided by the above embodiments of the present application renders and displays the virtual elements used to form the first virtual model corresponding to the product on the scene image of the real scene acquired by the camera in real time, and the product corresponds to
  • the special effects of the unfolded structure of the first virtual model of the virtual model allow the user to see the unfolded structure of the product displayed in the real scene and the components of the product through the scene image in real time, so that the user can feel as if the user is wherever he is.
  • the product is displayed in front of their own eyes, so that users can get a close contact to understand the specific shape of the product.
  • the user can also freely operate the components of the displayed product, such as assembling them into a product, thereby allowing the user to experience the assembly process of the product, and because the unfolded structure of the product is also displayed at the same time. , which can help the user to understand the structure and composition of the product more clearly and vividly, and the user can also assemble the components with reference to the unfolded structure of the displayed product.
  • rendering the virtual scene in the scene image can be realized by technologies such as ARkit, ARcore, etc.
  • technologies such as ARkit, ARcore, etc.
  • such technologies can realize the placement of 2D or 3D elements (text, pictures, models, audio and video, etc.) in the image collected by the device camera, Thereby creating an illusion that the virtual elements actually exist in the real world.
  • ARkit ARkit
  • ARcore ARcore
  • technologies can realize the placement of 2D or 3D elements (text, pictures, models, audio and video, etc.) in the image collected by the device camera, Thereby creating an illusion that the virtual elements actually exist in the real world.
  • ARKit it integrates technologies such as device motion tracking, camera image acquisition, image visual processing, and scene rendering, and provides an easy-to-use API (Application Programming Interface) to facilitate developers to develop AR application, developers can no longer pay attention to the underlying technical implementation details, which reduces the difficulty of AR application development to a certain extent.
  • API Application Programming Interface
  • the embodiments of the present application may use the above-mentioned technologies as the basis for realizing product display, and of course it is not limited to this. If feasible, the embodiments of the present application may also adopt other means. This is not listed one by one.
  • the virtual scene may be a virtual space
  • a specific method of rendering the virtual scene in the scene image may be to first establish a reference coordinate system at a position corresponding to a specified position in the real scene in the pre-built virtual scene, The virtual scene is then rendered in the scene image based on the transformation relationship between the reference coordinate system and the image coordinate system of the scene image.
  • the origin of the reference coordinate system in the virtual scene can be used as the reference point corresponding to the specified position in the real scene, so that any position in the virtual scene can correspond to the position in the real scene.
  • the virtual scene When the virtual scene is rendered into the scene image based on the conversion relationship between the reference coordinate system and the image coordinate system of the scene image, it is equivalent to superimposing the two-dimensional image of the virtual scene on the scene image of the real scene.
  • the position corresponds to the position in the real scene, so that the final rendered scene image can show the visual effects that the virtual model, special effects, etc. placed in the virtual scene seem to exist in the real world.
  • the products mentioned in the embodiments of the present application may be arbitrarily manufactured products, especially some products that may require certain assembly after purchase by the user, such as drones, unmanned vehicles, robots, and other types of products.
  • the first virtual model corresponding to the product may be a virtual model constructed with reference to the external structure, components, etc. of the product, and the first virtual model may be completely consistent with the product.
  • the complexity of the model and the difficulty of modeling can allow a certain structural error between the first virtual model and the product, which the technician can choose according to the actual needs during modeling.
  • the special effect of the expanded structure of the first virtual model may specifically be used to represent the virtual elements (ie, components) included in the first virtual model (ie, the product) and the relative positional relationship between the virtual elements (ie, the assembly between the components). relationship) effects.
  • the first preset relative position mentioned in S102 it can be any relative position of the virtual element, for example, it can be to render and display the special effect of the expanded structure above the virtual element, of course, it is not limited to this.
  • any position in the pre-built virtual scene corresponds to the position in the real scene
  • the virtual element used to assemble the first virtual model corresponding to the product at the position in the virtual scene corresponding to the specified position in the real scene and displaying the special effects of the unfolding structure of the first virtual model at the first preset relative position of the virtual element, and then rendering the virtual scene on the scene image
  • the first virtual corresponding to a product can be displayed on the scene image.
  • Model and unfolding structure effects are visual effects that actually exist in the real world where the user lives. Further users can also freely manipulate virtual elements in the virtual scene rendered on the scene image, such as assembling virtual elements.
  • the device applying the method can adjust the position, posture, etc.
  • the effect of assembling virtual elements allows users to experience a more realistic product assembly process.
  • FIG. 2 is a schematic diagram of a product display scene shown in an exemplary embodiment of the present application.
  • a virtual element 201 and an expanded structure 202 displayed above the virtual element 201 .
  • the plane information in the real scene can also be detected, and the plane information in the virtual scene can be determined based on the plane information. plane.
  • the plane in the real scene can be determined, and then the plane in the virtual scene can be determined accordingly, so that if the specified position in the real scene is on a certain plane, the plane in the virtual scene can be determined by
  • the virtual elements are displayed on the corresponding plane positions, and then the virtual scene is rendered on the scene image, which can more realistically display the visual effect of the virtual elements placed on a specified position on a certain plane in the real scene on the scene image.
  • the specified position in the real scene it may be the position in the real scene corresponding to the position selected by the user in the scene image obtained by the camera in real time; or it may be the position in the real scene corresponding to the random position in the scene image ; Or it can also be a location with a logo in the real scene, etc.
  • the technician can select it according to the actual needs, which is not limited. The description is given by taking as an example that the specified position in the real scene is the position in the real scene corresponding to the position selected by the user in the scene image obtained by the camera in real time.
  • the display device is displayed at the position corresponding to the specified position in the real scene in the pre-built virtual scene.
  • the position selected by the user in the scene image can also be obtained, and the position in the real scene corresponding to the position selected by the user in the scene image is determined as the Specify the location.
  • the plane information in the real scene can also be detected with reference to the previous embodiment, so as to identify the collected scene. Plane information on the image.
  • a prompt special effect for prompting the user to select a position in the scene image can also be rendered in the scene image.
  • the form of the prompt effect can be any text, picture, virtual model, etc.
  • One form or a combination of multiple forms can be set by technical personnel according to requirements, which is not limited.
  • the second virtual model is displayed at the position of the specified position, and the virtual scene is rendered in the scene image, that is, the second virtual model is displayed at the position selected by the user in the scene image, so that the second virtual model is displayed on the scene image.
  • the second virtual model may be any type of virtual model, for example, a virtual box, a virtual box, and the like.
  • the second virtual model may be a virtual box used to represent a product to be displayed inside, and while rendering the virtual box, a prompting text may be added to the scene image to prompt the user to obtain the product successfully.
  • Product enter the operation information to display the product, for example, a specific text form can be "Wow! Get XX product! Please click to open the box".
  • displaying the virtual elements used to assemble the first virtual model corresponding to the product at a position corresponding to a specified position in the real scene in the pre-built virtual scene may During the selection operation of the second virtual model, the second virtual model is rendered at a position corresponding to the specified position in the real scene in the pre-built virtual scene as a virtual image for assembling the first virtual model corresponding to the product element. In this way, a visual effect of unboxing a product can be shown to the user, making the user experience more realistic.
  • adjusting the display content of the virtual scene based on the obtained operation information input by the user may be, moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user, of course, at the same time, The pose of the virtual element is changed based on the operation information input by the user.
  • This allows users to freely manipulate virtual elements to assemble them.
  • the user can assemble the virtual elements based on the special effects of the unfolded structure of the first virtual model.
  • Each component of the model, so in fact, each virtual element has a corresponding area on the expanded structure effect.
  • the virtual element When the user moves the virtual element to the area corresponding to the virtual element in the expanded structure effect, the virtual element can be fixed and displayed in this area. area. Therefore, if all the virtual elements are moved by the user to the area corresponding to the virtual elements in the unfolded structure special effect, the unfolded structure special effect can be rendered into the first virtual model, thereby completing the assembly process of the product.
  • Such an assembly process is relatively simple for the user, which not only helps the user experience the simple assembly process, but also enables the user to more clearly understand the structural composition of the product.
  • the camera represents the viewing angle of the user observing the virtual elements and special effects in the virtual scene
  • the conversion relationship between the reference coordinate system in the virtual scene and the image coordinate system of the scene image varies with the relative pose of the camera and the virtual scene. Therefore, the relative pose between the camera and the virtual scene can also be acquired in real time, so that when the shooting angle of the camera changes, the virtual scene can be rendered on the scene image collected in real time according to the changed perspective.
  • moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user may include determining the selected virtual element based on the operation information input by the user, and rendering the selected virtual element in the virtual scene of the camera. at the second preset relative position.
  • the operation information input by the user may be the user's operation of clicking and selecting the virtual element rendered on the scene image
  • the second preset relative position may be any relative position of the camera. Preferably, it may be the one in front of the camera that is close to the camera.
  • the position more preferably, can be the position of the preset distance directly in front of the camera, similar to the effect of "sucking" in front of the lens.
  • the virtual element when the user clicks to select a certain virtual element, the virtual element can be fixed and rendered at the center of the scene image as the visual focus, and its position on the scene image will not change with the change of the camera view.
  • the position of the camera in the virtual scene changes, the position of the selected virtual element in the virtual scene can be changed accordingly, so that the selected virtual element can be moved by changing the pose of the camera in the virtual scene.
  • the position of the selected virtual element in the virtual scene may be moved based on the position selected by the user in the scene image. For example, for the virtual element selected by the user in the scene image, the position of the selected virtual element in the scene image may be moved The selected position determines the corresponding position in the virtual scene and moves the virtual element to that position.
  • the brief information of the selected virtual element may be added to the scene image for output display.
  • the brief information displayed in the output may include the basic information of the components that make up the product corresponding to the virtual element, such as one or more kinds of information such as name, material, color, use, size, etc. Get a comprehensive understanding of the part's information and its role in the product.
  • the posture of the selected virtual element at the second preset relative position of the camera may be further changed based on other operation information input by the user, wherein the user Other input operation information may include the user's operation of selecting a virtual element in the displayed scene image on the display screen of the device, and a sliding operation in any direction on the screen while selecting the virtual element.
  • the posture of the selected virtual element in the virtual scene is changed by the sliding operation, so that the user can rotate the virtual element by selecting and sliding on the display screen, so as to observe the structure of the virtual element from a full perspective.
  • the user on the basis that the user assembles the virtual element by moving the virtual element to the area corresponding to the virtual element in the expanded structure special effect, when the user selects the virtual element, in the expanded structure special effect Rendering the region identifier corresponding to the selected virtual element, for example, it can be to highlight, flash, expand, etc., the region corresponding to the selected virtual element in the expanded structure effect, so as to highlight the virtual element corresponding to the user selected virtual element in the expanded structure effect. area, which is convenient for users to quickly find the target area for assembly.
  • a control component may be further rendered on the display screen of the electronic device for the user to control the movement of the first virtual model. Since what the user sees from the electronic device is that the first virtual model is moving in the real scene, but in fact the first virtual model is moving in the virtual scene, in order to make the user's operating experience more realistic, the previous implementation can be combined with For example, the plane information in the real scene is detected to determine the plane in the virtual scene, so that the user can control the first virtual model to move based on the plane information in the real scene.
  • Fig. 3a is a scene image of a real scene collected in real time by a camera on the electronic device called by the application when the user opens a specified application on the electronic device, and the camera detects the plane information of the real scene while collecting the image, for example, a real scene.
  • the ground in the scene, and the electronic device outputs and displays the acquired scene image through the display screen, and below the output and displayed scene image is also added explanatory text for introducing the application.
  • Fig. 3b is the screen output and displayed by the electronic device after the camera completes the plane information detection of the real scene, wherein the transparent carton special effect rendered on the scene image of the real scene is displayed in the middle of the screen, and the bottom of the scene image is output and displayed with The prompt text to guide the user to select the drop point.
  • Fig. 3c is a schematic diagram showing that the user selects a landing point in the scene image by clicking the screen with a finger.
  • Fig. 3d is a screen output by the electronic device after the user clicks and selects the drop point in the scene image. Specifically, the electronic device renders the animation effect of the virtual packaging box falling from the sky, and at the same time, the virtual packaging is rendered at the drop point selected by the user. box, and output and display the prompt text for prompting the user to obtain the XX product, and prompting the user to click on the virtual packaging box to display the product.
  • Fig. 3e is a picture displayed by the electronic device after the user clicks on the virtual packaging box.
  • the upper part of the picture shows the special effects of the unfolding structure of the product rendered on the scene image, and the lower part shows the corresponding product for assembling into a product.
  • Fig. 3f is the screen output and displayed by the electronic device after the user clicks and selects a certain part, in which the part selected by the user is rendered in the center of the scene image, and the explanatory text introducing the basic information of the part is displayed at the bottom of the screen, and at the same time.
  • the area of the expanded structure effect corresponding to the user-selected component is highlighted.
  • the user can slide the screen to rotate the component while selecting the component, the schematic diagram of which can be seen in Figure 3g.
  • the user can move the selected component to the corresponding area in the unfolded structure effect by holding the electronic device in the real scene to complete the assembly.
  • FIG. 3h for a schematic diagram showing the assembly of a component.
  • Fig. 3i is a schematic diagram of another component selected by the user on the screen.
  • the component selected by the user is rendered in the center of the scene image, and an explanatory text introducing the basic information of the component is displayed at the bottom of the screen.
  • the area corresponding to the component selected by the user in the expanded structure effect is highlighted.
  • the user can also click to expand the area corresponding to the component in the structural effect to complete the assembly of the component.
  • Figure 3j and Figure 3k for the schematic diagrams of the area corresponding to the component in the user click to expand the structural effect, and Schematic diagram of the completed assembly of this part.
  • Fig. 31 is the picture of the output display of the electronic device after the assembly is completed, wherein the unfolded structural special effects and each component are rendered as the model corresponding to the product, further referring to Fig. 3m, the screen is rendered by a virtual joystick and a virtual button. Consists of control components for the user to control the movement of the manipulator model.
  • FIG. 4 is a schematic diagram of a product display device shown in an exemplary embodiment of the present application, including:
  • a memory 402 for storing program instructions executable by the processor 401;
  • a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
  • the virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  • the product display device may also include other components necessary for normal operation according to its actual type.
  • the product display device is a processing chip or a motherboard integrated with a processing chip, it can realize the control function by being installed on the device, for example, installed on the electronic device described in the previous embodiment.
  • the product display device can also be Including a communication interface for data interaction with other devices on the device; in the case where the product display device is an electronic device, the product display device may also include, for example, an input/output interface, a communication interface, a bus, etc., input/output Interfaces can be used to connect input/output modules to realize information input and output.
  • the input/output/module can be configured in the electronic device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions.
  • Input devices may include keyboards, mice, touch screens, microphones, various types of sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, and the like.
  • the communication interface is used to connect a communication module (not shown in the figure) to realize communication interaction between the electronic device and other devices.
  • the communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.).
  • a bus includes a path that transfers information between various components of an electronic device, such as the processor, memory, input/output interfaces, and communication interfaces.
  • FIG. 5 is a schematic diagram of an electronic device shown in an exemplary embodiment of the present application, including:
  • a camera 501 used for capturing images
  • a memory 503 for storing program instructions executable by the processor 502;
  • a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
  • the virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  • the embodiments of the present application further provide a computer storage medium, on which a computer program is stored, and when the computer program is executed, the method described in any of the foregoing embodiments is implemented.
  • a computer storage medium on which a computer program is stored, and when the computer program is executed, the method described in any of the foregoing embodiments is implemented.
  • the apparatus embodiments since they basically correspond to the method embodiments, reference may be made to the partial descriptions of the method embodiments for related parts.
  • the device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
  • All the embodiments given in this application may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • software When implemented in software, it can be implemented in whole or in part in the form of a computer program product.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted over a computer-readable storage medium.
  • Computer instructions may be sent from one website site, computer, server, or data center to another website site, computer, via wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , server or data center for transmission.
  • a computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains one or more of the available mediums integrated.
  • Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Embodiments of the present application provide a product display method, comprising: obtaining in real time a scene image of a real scene by means of a camera; displaying, at a position in a pre-constructed virtual scene corresponding to a designated position in the real scene, a virtual element used for assembling a first virtual model corresponding to the product, and displaying an unfolding structural special effect of the first virtual model at a first preset relative position of the virtual element; and rendering the virtual scene in the scene image, adjusting display content of the virtual scene on the basis of obtained operation information inputted by a user, and re-rendering the adjusted virtual scene in the scene image. The embodiments of the present application further provide a product display apparatus and an electronic device.

Description

产品展示方法、装置以及电子设备Product display method, device and electronic device 技术领域technical field
本申请涉及增强现实技术领域,尤其涉及一种产品展示方法、产品展示装置以及电子设备。The present application relates to the field of augmented reality technology, and in particular, to a product display method, a product display device, and an electronic device.
背景技术Background technique
目前用户了解产品主要通过在网络上查询产品的相关信息,或者到实体店参观了解,但从网络上了解产品无法让用户近距离体验产品,而实体店中展示的往往是完整形态的产品,用户难以通过展示的产品了解其内部构造,也体验不到产品的组装过程。At present, users learn about products mainly by inquiring about the relevant information of the products on the Internet, or by visiting the physical store. However, learning about the products from the Internet cannot allow users to experience the products at close range. It is difficult to understand the internal structure of the product on display, and it is difficult to experience the assembly process of the product.
发明内容SUMMARY OF THE INVENTION
第一方面,本申请实施例提供一种产品展示方法,包括:In a first aspect, the embodiments of the present application provide a product display method, including:
通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
第二方面,本申请实施例提供一种产品展示装置,包括:In a second aspect, an embodiment of the present application provides a product display device, including:
处理器;processor;
用于存储处理器可执行程序指令的存储器;memory for storing processor executable program instructions;
所述处理器执行所述可执行程序指令时实现以下操作:The processor implements the following operations when executing the executable program instructions:
通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
第三方面,本申请实施例提供一种电子设备,包括:In a third aspect, an embodiment of the present application provides an electronic device, including:
摄像头,用于采集图像;camera, for capturing images;
处理器;processor;
用于存储处理器可执行程序指令的存储器;memory for storing processor executable program instructions;
所述处理器执行所述可执行程序指令时实现以下操作:The processor implements the following operations when executing the executable program instructions:
通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
本申请实施例提供的产品展示方法,作为改进,通过在摄像头实时获取的真实场景的场景图像上渲染展示用于组成所述产品对应的第一虚拟模型的虚拟元素,以及所述产品对应的第一虚拟模型的展开结构特效,使 得用户可以实时通过场景图像看到展示在真实场景中的产品的展开结构以及产品的组成部件,由此无论用户身处何处都能让用户体验到产品真实展示在自己眼前的视觉效果,同时也使得用户可以近距离地接触了解产品的具体形态。进一步的,用户还可以对所展示的产品的组成部件进行自由操作,例如组装,由此还可以让用户体验产品的组装过程,并且由于同时进行展示的还有产品的展开结构,可以帮助用户更加清楚形象地了解产品的结构和组成,以及可以参照所展示的产品的展开结构对部件进行组装。In the product display method provided by the embodiment of the present application, as an improvement, the virtual elements used to form the first virtual model corresponding to the product and the first virtual elements corresponding to the product are rendered and displayed on the scene image of the real scene obtained by the camera in real time. A special effect of the unfolding structure of the virtual model, so that the user can see the unfolding structure of the product displayed in the real scene and the components of the product through the scene image in real time, so that the user can experience the real display of the product no matter where the user is. The visual effects in front of their own eyes also allow users to get close contact to understand the specific shape of the product. Further, the user can also freely operate the components of the displayed product, such as assembling, thereby allowing the user to experience the assembly process of the product, and because the unfolding structure of the product is also displayed at the same time, it can help the user more A clear and visual understanding of the structure and composition of the product, and the ability to assemble components with reference to the unfolded structure of the displayed product.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative labor.
图1是本申请一示例性实施例示出的一种产品展示方法的流程图。FIG. 1 is a flow chart of a product display method according to an exemplary embodiment of the present application.
图2是本申请一示例性实施例示出的一种产品展示的场景示意图。FIG. 2 is a schematic diagram of a scene of a product display according to an exemplary embodiment of the present application.
图3a是摄像头实时采集的真实场景的场景图像。Figure 3a is a scene image of a real scene captured by a camera in real time.
图3b是摄像头完成对真实场景的平面信息检测之后电子设备输出显示的画面。Figure 3b is a picture output and displayed by the electronic device after the camera completes the plane information detection of the real scene.
图3c是用户通过手指点击屏幕在场景图像中选择落点的示意图。Fig. 3c is a schematic diagram of a user selecting a landing point in a scene image by clicking on the screen with a finger.
图3d是用户在场景图像中点击选择落点后电子设备输出的画面。FIG. 3d is a screen output by the electronic device after the user clicks and selects a landing point in the scene image.
图3e是在用户点击虚拟包装盒后电子设备输出显示的画面。FIG. 3e is a screen output and displayed by the electronic device after the user clicks on the virtual package.
图3f是用户在点击选中某个零部件后电子设备输出显示的画面。FIG. 3f is a screen output and displayed by the electronic device after the user clicks and selects a certain component.
图3g是用户选中该零部件的同时滑动屏幕以旋转该零部件的示意图。FIG. 3g is a schematic diagram of the user selecting the component and sliding the screen to rotate the component.
图3h是用户完成一个零部件组装的示意图。Figure 3h is a schematic diagram of the user completing a component assembly.
图3i是用户在屏幕上选中另一零部件的示意图。Figure 3i is a schematic diagram of the user selecting another component on the screen.
图3j是用户点击展开结构特效中对应零部件的区域的示意图。FIG. 3j is a schematic diagram of the user clicking to expand the area of the corresponding component in the structure special effect.
图3k是用户完成另一零部件组装的示意图。Figure 3k is a schematic diagram of the user completing another component assembly.
图3l是用户组装完成后电子设备输出显示的画面。FIG. 31 is a screen output and displayed by the electronic device after the user assembles.
图3m是电子设备屏幕上渲染出由虚拟摇杆和虚拟按键组成的控制组件的示意图。FIG. 3m is a schematic diagram of a control component composed of virtual joysticks and virtual buttons rendered on the screen of an electronic device.
图4是本申请一示例性实施例示出的一种产品展示装置的示意图。FIG. 4 is a schematic diagram of a product display device according to an exemplary embodiment of the present application.
图5是本申请一示例性实施例示出的一种电子设备的示意图。FIG. 5 is a schematic diagram of an electronic device according to an exemplary embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。可以理解,本申请中所给出的各实施例在不冲突的情况下可以相互结合。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application. It can be understood that the various embodiments presented in this application can be combined with each other without conflict.
一些情况下,对于一些可能需要用户自行组装的产品,在实体店展示时往往是以组装完成的完整形态进行展示,用户即便在实体店中也很难清楚了解到产品的具体结构和组成。并且用户组装产品往往可能是依赖于配以文字和图片的纸质说明书、教学视频或者是人工讲解等,用户难以形象了解记忆组成产品的部件以及各部件之间的组装关系等,由此目前需要一种能够帮助用户更好地了解以及组装产品的方式。In some cases, for some products that may need to be assembled by the user, they are often displayed in the complete assembled form when displayed in the physical store, and it is difficult for the user to clearly understand the specific structure and composition of the product even in the physical store. In addition, users may often rely on paper manuals, teaching videos or manual explanations with text and pictures to assemble products. It is difficult for users to visually understand and memorize the components that make up the product and the assembly relationship between the components. Therefore, it is currently required. A way to help users better understand and assemble products.
针对至少以上问题,本申请实施例首先提出了一种产品展示方法, 参见图1,图1是本申请一示例性实施例示出的一种产品展示方法的流程图,该方法包括以下步骤:In view of at least the above problems, an embodiment of the present application first proposes a product display method. Referring to FIG. 1 , FIG. 1 is a flowchart of a product display method shown in an exemplary embodiment of the present application, and the method includes the following steps:
S101,通过摄像头实时获取真实场景的场景图像;S101, obtain a scene image of a real scene in real time through a camera;
S102,在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;S102, displaying a virtual element used to assemble a first virtual model corresponding to the product at a position corresponding to a specified position in the real scene in the pre-built virtual scene, and at a first preset relative position of the virtual element displaying the special effects of the expanded structure of the first virtual model;
S103,在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。S103: Render the virtual scene in the scene image, adjust the display content of the virtual scene based on the obtained operation information input by the user, and re-render the adjusted virtual scene in the scene image.
本申请以上实施例的方法可以应用于电子设备上,例如可以应用于手机、平板、笔记本电脑、AR(Augmented Reality,增强现实)眼镜等电子设备上,为实现以上所述的方法步骤,电子设备上可以搭载用于采集图像的摄像头,或者是通过外接摄像头实时进行图像采集,对此并不限定。电子设备上还可搭载用于输出显示渲染后的场景图像的显示屏幕,以供用户通过屏幕观看渲染后的场景图像。The methods of the above embodiments of the present application can be applied to electronic devices, such as mobile phones, tablets, notebook computers, AR (Augmented Reality, augmented reality) glasses and other electronic devices. The camera can be equipped with a camera for capturing images, or real-time image capturing can be performed through an external camera, which is not limited. The electronic device may also be equipped with a display screen for outputting and displaying the rendered scene image, so that the user can view the rendered scene image through the screen.
本申请以上实施例提供的产品展示的方法,作为改进,通过在摄像头实时获取的真实场景的场景图像上渲染展示用于组成所述产品对应的第一虚拟模型的虚拟元素,以及所述产品对应的第一虚拟模型的展开结构特效,使得用户可以实时通过场景图像看到展示在真实场景中的产品的展开结构以及产品的组成部件,由此无论用户身处何处都能让用户感觉到仿佛产品就展示在自己眼前一样,使得用户可以近距离地接触了解产品的具体形态。进一步的,用户还可以对所展示的产品的组成部件进行自由操作,例如对其进行组装成产品,由此还可以让用户体验产品的组装过程,并且由于同时进行展示的还有产品的展开结构,可以帮助用户更加清楚形象地了解产品的结构和组成,用户也可以参照所展示的产品的展开结构对部件 进行组装。The product display method provided by the above embodiments of the present application, as an improvement, renders and displays the virtual elements used to form the first virtual model corresponding to the product on the scene image of the real scene acquired by the camera in real time, and the product corresponds to The special effects of the unfolded structure of the first virtual model of the virtual model allow the user to see the unfolded structure of the product displayed in the real scene and the components of the product through the scene image in real time, so that the user can feel as if the user is wherever he is. The product is displayed in front of their own eyes, so that users can get a close contact to understand the specific shape of the product. Further, the user can also freely operate the components of the displayed product, such as assembling them into a product, thereby allowing the user to experience the assembly process of the product, and because the unfolded structure of the product is also displayed at the same time. , which can help the user to understand the structure and composition of the product more clearly and vividly, and the user can also assemble the components with reference to the unfolded structure of the displayed product.
下面对本申请以上实施例提供的产品展示方法作进一步的介绍。其中,在场景图像中渲染虚拟场景可以是通过ARkit、ARcore等技术实现,此类技术可以实现将2D或者3D元素(文字、图片、模型、音视频等)放置于设备摄像头所采集的图像中,从而营造一种虚拟元素真实存在于现实世界中的假象。具体的,以ARKit为例,其整合了设备运动跟踪、摄像头图像采集、图像视觉处理、场景渲染等技术,提供了简单易用的API(Application Programming Interface,应用程序接口)以方便开发人员开发AR应用,开发人员可以无需再关注底层的技术实现细节,一定程度上降低了AR应用开发难度。可以理解,本申请实施例可以是将以上所提及的技术作为实现产品展示的基础,当然也并不局限于此,在可行的情况下,本申请实施例还可以是采用其他的手段,在此不一一列举。The product display method provided by the above embodiments of the present application will be further introduced below. Among them, rendering the virtual scene in the scene image can be realized by technologies such as ARkit, ARcore, etc., such technologies can realize the placement of 2D or 3D elements (text, pictures, models, audio and video, etc.) in the image collected by the device camera, Thereby creating an illusion that the virtual elements actually exist in the real world. Specifically, taking ARKit as an example, it integrates technologies such as device motion tracking, camera image acquisition, image visual processing, and scene rendering, and provides an easy-to-use API (Application Programming Interface) to facilitate developers to develop AR application, developers can no longer pay attention to the underlying technical implementation details, which reduces the difficulty of AR application development to a certain extent. It can be understood that the embodiments of the present application may use the above-mentioned technologies as the basis for realizing product display, and of course it is not limited to this. If feasible, the embodiments of the present application may also adopt other means. This is not listed one by one.
示例性的,虚拟场景可以是一个虚拟空间,在场景图像中渲染虚拟场景的一种具体的做法可以是,先在预先构建的虚拟场景中对应真实场景中指定位置的位置处建立参考坐标系,再基于所述参考坐标系与场景图像的图像坐标系之间的转换关系,在场景图像中渲染所述虚拟场景。通过参考坐标系的建立,可以将虚拟场景中参考坐标系的原点作为与真实场景中指定位置之间相对应的基准点,使得虚拟场景中任意位置可以与真实场景中位置相对应,由此在基于参考坐标系与场景图像的图像坐标系之间的转换关系来将虚拟场景渲染到场景图像中时,相当于将虚拟场景的二维图像叠加到真实场景的场景图像上,由于虚拟场景中任意位置与真实场景中位置相对应,可以使得最终渲染后的场景图像展示出在虚拟场景中放置的虚拟模型、特效等仿佛真实存在于现实世界的视觉效果。Exemplarily, the virtual scene may be a virtual space, and a specific method of rendering the virtual scene in the scene image may be to first establish a reference coordinate system at a position corresponding to a specified position in the real scene in the pre-built virtual scene, The virtual scene is then rendered in the scene image based on the transformation relationship between the reference coordinate system and the image coordinate system of the scene image. Through the establishment of the reference coordinate system, the origin of the reference coordinate system in the virtual scene can be used as the reference point corresponding to the specified position in the real scene, so that any position in the virtual scene can correspond to the position in the real scene. When the virtual scene is rendered into the scene image based on the conversion relationship between the reference coordinate system and the image coordinate system of the scene image, it is equivalent to superimposing the two-dimensional image of the virtual scene on the scene image of the real scene. The position corresponds to the position in the real scene, so that the final rendered scene image can show the visual effects that the virtual model, special effects, etc. placed in the virtual scene seem to exist in the real world.
本申请实施例所说的产品可以是任意生产制造的产品,尤其可以是一些可能需要用户购买后进行一定组装的产品,例如可以是无人机、无人车、机器人等类型的产品。在S102中所说的,与该产品对应的第一虚拟 模型可以是参照该产品的外形结构、组成部件等构建的虚拟模型,第一虚拟模型可以是与产品完全一致,当然,出于产品结构的复杂度以及建模的难度,可以容许第一虚拟模型与产品之间存在一定的结构误差,对此技术人员可以在建模时根据实际需求选择。第一虚拟模型的展开结构特效具体可以是用于表示第一虚拟模型(即产品)所包括的虚拟元素(即组成部件)以及各虚拟元素之间的相对位置关系(即组成部件之间的组装关系)的特效。另外,对于S102中所说的第一预设相对位置,其可以是所述虚拟元素的任意相对位置,例如可以是将展开结构特效渲染展示在虚拟元素的上方,当然,并不限于此。由于预先构建的虚拟场景中任意位置与真实场景中位置对应,因此通过在该虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效,再将虚拟场景渲染到场景图像上,可以在场景图像上展示一种产品对应的第一虚拟模型、展开结构特效真实存在于用户身处的现实世界中的视觉效果。进一步的用户还可以对渲染在场景图像上的虚拟场景中的虚拟元素进行自由操作,例如对虚拟元素进行组装。应用该方法的设备可以根据用户输入的操作信息调整虚拟场景展示的虚拟元素的位置、姿态等内容,并重新在实时获取的场景图像上渲染调整后的虚拟场景,以呈现出用户在现实世界中对虚拟元素进行组装的效果,让用户体验更真实的产品组装过程。The products mentioned in the embodiments of the present application may be arbitrarily manufactured products, especially some products that may require certain assembly after purchase by the user, such as drones, unmanned vehicles, robots, and other types of products. As mentioned in S102, the first virtual model corresponding to the product may be a virtual model constructed with reference to the external structure, components, etc. of the product, and the first virtual model may be completely consistent with the product. Of course, due to the product structure The complexity of the model and the difficulty of modeling can allow a certain structural error between the first virtual model and the product, which the technician can choose according to the actual needs during modeling. The special effect of the expanded structure of the first virtual model may specifically be used to represent the virtual elements (ie, components) included in the first virtual model (ie, the product) and the relative positional relationship between the virtual elements (ie, the assembly between the components). relationship) effects. In addition, for the first preset relative position mentioned in S102, it can be any relative position of the virtual element, for example, it can be to render and display the special effect of the expanded structure above the virtual element, of course, it is not limited to this. Since any position in the pre-built virtual scene corresponds to the position in the real scene, by displaying the virtual element used to assemble the first virtual model corresponding to the product at the position in the virtual scene corresponding to the specified position in the real scene, and displaying the special effects of the unfolding structure of the first virtual model at the first preset relative position of the virtual element, and then rendering the virtual scene on the scene image, the first virtual corresponding to a product can be displayed on the scene image. Model and unfolding structure effects are visual effects that actually exist in the real world where the user lives. Further users can also freely manipulate virtual elements in the virtual scene rendered on the scene image, such as assembling virtual elements. The device applying the method can adjust the position, posture, etc. of the virtual elements displayed in the virtual scene according to the operation information input by the user, and re-render the adjusted virtual scene on the scene image obtained in real time, so as to present the user in the real world. The effect of assembling virtual elements allows users to experience a more realistic product assembly process.
为更形象地说明本申请实施例提供的产品展示方法的产品展示效果,可以参见图2,图2是本申请一示例性实施例示出的一种产品展示的场景示意图,其中包括放置于下方的虚拟元素201,以及展示于虚拟元素201上方的展开结构202。In order to more vividly illustrate the product display effect of the product display method provided by the embodiment of the present application, reference may be made to FIG. 2 . FIG. 2 is a schematic diagram of a product display scene shown in an exemplary embodiment of the present application. A virtual element 201 , and an expanded structure 202 displayed above the virtual element 201 .
为使得在真实场景中展示产品的视觉效果更真实,在一个实施例中,通过摄像头实时获取真实场景的场景图像之后,还可以检测真实场景中的平面信息,基于所述平面信息确定虚拟场景中的平面。通过检测真实场景 中的平面信息,可以确定真实场景中的平面,进一步地相应地确定虚拟场景中的平面,由此如果真实场景中指定位置处于某个平面上的情况下,通过在虚拟场景中相应的平面的位置上展示虚拟元素,再将虚拟场景渲染到场景图像上,可以在场景图像上更加真实地展示出虚拟元素放置在真实场景中某个平面上的指定位置上的视觉效果。In order to make the visual effect of displaying the product in the real scene more realistic, in one embodiment, after obtaining the scene image of the real scene through the camera in real time, the plane information in the real scene can also be detected, and the plane information in the virtual scene can be determined based on the plane information. plane. By detecting the plane information in the real scene, the plane in the real scene can be determined, and then the plane in the virtual scene can be determined accordingly, so that if the specified position in the real scene is on a certain plane, the plane in the virtual scene can be determined by The virtual elements are displayed on the corresponding plane positions, and then the virtual scene is rendered on the scene image, which can more realistically display the visual effect of the virtual elements placed on a specified position on a certain plane in the real scene on the scene image.
对于真实场景中的指定位置,其可以是用户在摄像头实时获取的场景图像中选中的位置所对应的真实场景中的位置;或者也可以是场景图像中随机的位置所对应的真实场景中的位置;或者还可以是真实场景中带有标识的位置等,具体如何设置真实场景中的指定位置,技术人员可以根据实际需求选取,对此并不限定。以真实场景中的指定位置是用户在摄像头实时获取的场景图像中选中的位置所对应的真实场景中的位置为例进行说明。For the specified position in the real scene, it may be the position in the real scene corresponding to the position selected by the user in the scene image obtained by the camera in real time; or it may be the position in the real scene corresponding to the random position in the scene image ; Or it can also be a location with a logo in the real scene, etc. How to set the designated position in the real scene specifically, the technician can select it according to the actual needs, which is not limited. The description is given by taking as an example that the specified position in the real scene is the position in the real scene corresponding to the position selected by the user in the scene image obtained by the camera in real time.
在一个实施例中,如果该指定位置是用户在摄像头实时获取的场景图像中选中的位置所对应的真实场景中的位置,在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素之前,还可以获取用户在场景图像中选中的位置,将用户在场景图像中选中的位置所对应的真实场景中的位置确定为所述指定位置。进一步的,为了更准确地识别出用户在场景图像中选中的位置在真实场景中对应的平面位置,还可以参照前面实施例所介绍的,检测真实场景中的平面信息,以识别出采集的场景图像上的平面信息。In one embodiment, if the specified position is the position in the real scene corresponding to the position selected by the user in the scene image obtained by the camera in real time, the display device is displayed at the position corresponding to the specified position in the real scene in the pre-built virtual scene. Before assembling into the virtual element of the first virtual model corresponding to the product, the position selected by the user in the scene image can also be obtained, and the position in the real scene corresponding to the position selected by the user in the scene image is determined as the Specify the location. Further, in order to more accurately identify the plane position corresponding to the position selected by the user in the scene image in the real scene, the plane information in the real scene can also be detected with reference to the previous embodiment, so as to identify the collected scene. Plane information on the image.
为提示用户在场景图像中选择位置,还可以在场景图像中渲染用于提示用户在场景图像中选择位置的提示特效,对于该提示特效的形式,其可以是文字、图片、虚拟模型等任意的一种形式或多种形式的组合,技术人员可以根据需求设定,对此并不限定。In order to prompt the user to select a position in the scene image, a prompt special effect for prompting the user to select a position in the scene image can also be rendered in the scene image. The form of the prompt effect can be any text, picture, virtual model, etc. One form or a combination of multiple forms can be set by technical personnel according to requirements, which is not limited.
另外,当获取到用户根据该提示特效在场景图像中选中的位置之后,In addition, after obtaining the position selected by the user in the scene image according to the prompt effect,
可以停止在场景图像中渲染该提示特效,并执行前面实施例所述的S102、S103;或者还可以是,停止在场景图像中渲染该提示特效,并在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示第二虚拟模型,以及在场景图像中渲染所述虚拟场景,也即在场景图像中用户所选中的位置上展示第二虚拟模型,以在场景图像上展示第二虚拟模型放置于用户身处的现实世界中用户指定的位置上的视觉效果。其中第二虚拟模型可以是任意类型的虚拟模型,例如可以是虚拟箱子、虚拟盒子等。优选的,第二虚拟模型可以是一个用于表示内部装有待展示的产品的虚拟箱子,并且在渲染该虚拟箱子的同时,还可以在场景图像中添加提示说明的文字,以提示用户成功获得了产品,输入操作信息以展示产品,例如一种具体的文字形式可以是“Wow!获得XX产品!请点击开箱”。在此基础上,进一步的,在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,可以是在接收到用户对所述第二虚拟模型的选中操作时,在预先构建的虚拟场景中对应真实场景中指定位置的位置处将所述第二虚拟模型渲染为用于组装成所述产品对应的第一虚拟模型的虚拟元素。由此可以向用户展示一种产品开箱的视觉效果,让用户的体验更真实。It is possible to stop rendering the prompting special effect in the scene image, and perform S102 and S103 described in the previous embodiment; or it can also stop rendering the prompting special effect in the scene image, and correspond to the real scene in the pre-built virtual scene. The second virtual model is displayed at the position of the specified position, and the virtual scene is rendered in the scene image, that is, the second virtual model is displayed at the position selected by the user in the scene image, so that the second virtual model is displayed on the scene image. A visual effect placed at a user-specified location in the user's real world. The second virtual model may be any type of virtual model, for example, a virtual box, a virtual box, and the like. Preferably, the second virtual model may be a virtual box used to represent a product to be displayed inside, and while rendering the virtual box, a prompting text may be added to the scene image to prompt the user to obtain the product successfully. Product, enter the operation information to display the product, for example, a specific text form can be "Wow! Get XX product! Please click to open the box". On this basis, further, displaying the virtual elements used to assemble the first virtual model corresponding to the product at a position corresponding to a specified position in the real scene in the pre-built virtual scene may During the selection operation of the second virtual model, the second virtual model is rendered at a position corresponding to the specified position in the real scene in the pre-built virtual scene as a virtual image for assembling the first virtual model corresponding to the product element. In this way, a visual effect of unboxing a product can be shown to the user, making the user experience more realistic.
下面结合用户输入的操作信息介绍本申请实施例提供的产品展示方法。在一个实施例中,S103中,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容可以是,基于用户输入的操作信息实时移动虚拟元素在虚拟场景中的位置,当然,同时还可以基于用户输入的操作信息改变虚拟元素的姿态。由此用户可以自由操作虚拟元素对其进行组装。其中,为使用户的组装过程更加简便,用户对虚拟元素的组装可以是基于第一虚拟模型的展开结构特效进行,具体的,由于第一虚拟元素的展开结构特效中展示的是组成第一虚拟模型的各部件,因此实际上各虚拟元素在展开结构特效上都有对应的区域,在用户将虚拟元素移动至展开结构特效中对应该 虚拟元素的区域时,可以将该虚拟元素固定展示在该区域。由此,如果所有虚拟元素均被用户移动至展开结构特效中对应虚拟元素的区域的情况下,可以将该展开结构特效渲染成为第一虚拟模型,由此完成对产品的组装过程。如此组装过程对于用户而言较为简便,在帮助用户体验简单的组装过程的同时也能够让用户更加清楚地认识产品的结构组成。The following describes the product display method provided by the embodiment of the present application in combination with the operation information input by the user. In one embodiment, in S103, adjusting the display content of the virtual scene based on the obtained operation information input by the user may be, moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user, of course, at the same time, The pose of the virtual element is changed based on the operation information input by the user. This allows users to freely manipulate virtual elements to assemble them. Wherein, in order to make the user's assembling process more convenient, the user can assemble the virtual elements based on the special effects of the unfolded structure of the first virtual model. Each component of the model, so in fact, each virtual element has a corresponding area on the expanded structure effect. When the user moves the virtual element to the area corresponding to the virtual element in the expanded structure effect, the virtual element can be fixed and displayed in this area. area. Therefore, if all the virtual elements are moved by the user to the area corresponding to the virtual elements in the unfolded structure special effect, the unfolded structure special effect can be rendered into the first virtual model, thereby completing the assembly process of the product. Such an assembly process is relatively simple for the user, which not only helps the user experience the simple assembly process, but also enables the user to more clearly understand the structural composition of the product.
其中,由于摄像头代表的是用户观测虚拟场景中的虚拟元素、特效的视角,虚拟场景中参考坐标系与场景图像的图像坐标系之间的转换关系随摄像头与虚拟场景的相对位姿的变化而变化,由此,还可以实时获取摄像头与虚拟场景之间的相对位姿,以便在摄像头的拍摄角度发生变化时可以按照变化后的视角将虚拟场景渲染在实时采集的场景图像上。Among them, since the camera represents the viewing angle of the user observing the virtual elements and special effects in the virtual scene, the conversion relationship between the reference coordinate system in the virtual scene and the image coordinate system of the scene image varies with the relative pose of the camera and the virtual scene. Therefore, the relative pose between the camera and the virtual scene can also be acquired in real time, so that when the shooting angle of the camera changes, the virtual scene can be rendered on the scene image collected in real time according to the changed perspective.
进一步的,基于用户输入的操作信息实时移动虚拟元素在虚拟场景中的位置可以包括,基于用户输入的操作信息确定被选中的虚拟元素,将被选中的虚拟元素渲染在虚拟场景中所述摄像头的第二预设相对位置处。其中用户输入的操作信息可以是用户对渲染在场景图像上的虚拟元素的进行点击选中的操作,第二预设相对位置可以是摄像头的任意相对位置,优选的,其可以是摄像头前方靠近摄像头的位置,更优的其可以是摄像头正前方的预设距离的位置,类似于“吸附”镜头前的效果。由此可以使得用户在点击选中某个虚拟元素时,该虚拟元素可以作为视觉焦点固定渲染在场景图像的中心处,其在场景图像上的位置不会随着摄像头取景画面的变化而发生变化。在此基础上,当摄像头在虚拟场景中的位置发生变化时,相应的可以改变被选中的虚拟元素在虚拟场景中的位置,由此可以通过改变摄像头在虚拟场景中的位姿实现移动被选中的虚拟元素在虚拟场景中的位置。除此之外,还可以是基于用户在场景图像中选中的位置移动被选中的虚拟元素在虚拟场景中的位置,例如,对于用户在场景图像中选中的虚拟元素,可以根据用户在场景图像中选中的位置确定在虚拟场景中相应的位置,并将虚拟元素移动至该位置上。Further, moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user may include determining the selected virtual element based on the operation information input by the user, and rendering the selected virtual element in the virtual scene of the camera. at the second preset relative position. The operation information input by the user may be the user's operation of clicking and selecting the virtual element rendered on the scene image, and the second preset relative position may be any relative position of the camera. Preferably, it may be the one in front of the camera that is close to the camera. The position, more preferably, can be the position of the preset distance directly in front of the camera, similar to the effect of "sucking" in front of the lens. Therefore, when the user clicks to select a certain virtual element, the virtual element can be fixed and rendered at the center of the scene image as the visual focus, and its position on the scene image will not change with the change of the camera view. On this basis, when the position of the camera in the virtual scene changes, the position of the selected virtual element in the virtual scene can be changed accordingly, so that the selected virtual element can be moved by changing the pose of the camera in the virtual scene. The position of the virtual element in the virtual scene. In addition, the position of the selected virtual element in the virtual scene may be moved based on the position selected by the user in the scene image. For example, for the virtual element selected by the user in the scene image, the position of the selected virtual element in the scene image may be moved The selected position determines the corresponding position in the virtual scene and moves the virtual element to that position.
在一个实施例中,在用户选中了虚拟元素的情况下,可以在场景图像上添加被选中的虚拟元素的简介信息进行输出显示,其中,由于虚拟元素用于表示组成产品的虚拟部件,由此输出显示的简介信息可以包括虚拟元素对应的组成产品的部件的基本信息,例如名称、材料、颜色、用途、尺寸等一种或一种以上的信息,当然并不限于此,以此帮助用户更全面地认识该部件的信息以及其在产品中所起到的作用。In one embodiment, when the user selects a virtual element, the brief information of the selected virtual element may be added to the scene image for output display. The brief information displayed in the output may include the basic information of the components that make up the product corresponding to the virtual element, such as one or more kinds of information such as name, material, color, use, size, etc. Get a comprehensive understanding of the part's information and its role in the product.
在一个实施例中,在用户选中了虚拟元素的情况下,可以进一步地基于用户输入的其他操作信息改变被选中的虚拟元素在摄像头的第二预设相对位置处的姿态,其中所说的用户输入的其他操作信息可以包括用户在设备的显示屏幕上对显示的场景图像中的虚拟元素的进行选中的操作,以及在选中虚拟元素的同时在屏幕上进行任意方向上的滑动操作,由此可以通过滑动操作来改变被选中的虚拟元素在虚拟场景中的姿态,使得用户可以通过在显示屏幕上进行选中以及滑动操作来对虚拟元素进行旋转,以实现全视角地观察虚拟元素的结构形态。In one embodiment, when the user selects a virtual element, the posture of the selected virtual element at the second preset relative position of the camera may be further changed based on other operation information input by the user, wherein the user Other input operation information may include the user's operation of selecting a virtual element in the displayed scene image on the display screen of the device, and a sliding operation in any direction on the screen while selecting the virtual element. The posture of the selected virtual element in the virtual scene is changed by the sliding operation, so that the user can rotate the virtual element by selecting and sliding on the display screen, so as to observe the structure of the virtual element from a full perspective.
在一个实施例中,在用户通过将虚拟元素移动至展开结构特效中对应虚拟元素的区域来进行虚拟元素的组装的基础上,还可以在用户选中了虚拟元素的情况下,在展开结构特效中渲染对应被选中的虚拟元素的区域标识,例如可以是使展开结构特效中对应被选中的虚拟元素的区域高亮、闪烁、扩大等,以突出显示展开结构特效中与用户选中的虚拟元素对应的区域,方便用户快速找到目标区域进行组装。In one embodiment, on the basis that the user assembles the virtual element by moving the virtual element to the area corresponding to the virtual element in the expanded structure special effect, when the user selects the virtual element, in the expanded structure special effect Rendering the region identifier corresponding to the selected virtual element, for example, it can be to highlight, flash, expand, etc., the region corresponding to the selected virtual element in the expanded structure effect, so as to highlight the virtual element corresponding to the user selected virtual element in the expanded structure effect. area, which is convenient for users to quickly find the target area for assembly.
在一个实施例中,当用户将虚拟元素组装完成得到第一虚拟模型后,还可以进一步地在电子设备的显示屏幕上渲染出控制组件,以供用户控制第一虚拟模型运动。其中由于用户从电子设备上所看到的是第一虚拟模型在真实场景中运动,而实际上第一虚拟模型是在虚拟场景中进行运动,为了使得用户的操作体验更加真实,可以结合前面实施例检测真实场景中的平面信息,以确定虚拟场景中的平面,由此使得用户可以控制第一虚拟模 型基于真实场景中的平面信息运动。In one embodiment, after the user completes assembling the virtual elements to obtain the first virtual model, a control component may be further rendered on the display screen of the electronic device for the user to control the movement of the first virtual model. Since what the user sees from the electronic device is that the first virtual model is moving in the real scene, but in fact the first virtual model is moving in the virtual scene, in order to make the user's operating experience more realistic, the previous implementation can be combined with For example, the plane information in the real scene is detected to determine the plane in the virtual scene, so that the user can control the first virtual model to move based on the plane information in the real scene.
至此完成对本申请实施例所提供的产品展示方法的介绍,为具象化本申请以上实施例所介绍的方法,在此结合图示以及说明文字举出一个实际的例子来进一步说明,可以理解,以下所举出的例子仅用于示例说明,并非限定。So far, the introduction of the product display method provided by the embodiments of the present application has been completed. In order to visualize the methods introduced by the above embodiments of the present application, an actual example is given here for further explanation in conjunction with the diagrams and the description text. It can be understood that the following The given examples are for illustrative purposes only, and are not intended to be limiting.
参见图3a,图3a是用户打开电子设备上指定的应用的情况下,应用调用电子设备上的摄像头实时采集的真实场景的场景图像,摄像头在采集图像的同时检测真实场景的平面信息,例如真实场景中的地面,同时电子设备将所获取的场景图像通过显示屏幕输出显示,其中输出显示的场景图像的下方还添加了用于介绍应用的说明文字。Referring to Fig. 3a, Fig. 3a is a scene image of a real scene collected in real time by a camera on the electronic device called by the application when the user opens a specified application on the electronic device, and the camera detects the plane information of the real scene while collecting the image, for example, a real scene. The ground in the scene, and the electronic device outputs and displays the acquired scene image through the display screen, and below the output and displayed scene image is also added explanatory text for introducing the application.
参见图3b,图3b是摄像头完成对真实场景的平面信息检测之后电子设备输出显示的画面,其中画面中间显示出渲染于真实场景的场景图像上的透明纸箱特效,同时场景图像的下方输出显示用于引导用户选择落点的提示文字。Referring to Fig. 3b, Fig. 3b is the screen output and displayed by the electronic device after the camera completes the plane information detection of the real scene, wherein the transparent carton special effect rendered on the scene image of the real scene is displayed in the middle of the screen, and the bottom of the scene image is output and displayed with The prompt text to guide the user to select the drop point.
参加图3c,图3c是示出的用户通过手指点击屏幕在场景图像中选择落点的示意图。Referring to Fig. 3c, Fig. 3c is a schematic diagram showing that the user selects a landing point in the scene image by clicking the screen with a finger.
参见图3d,图3d是用户在场景图像中点击选择落点后电子设备输出的画面,具体的,电子设备渲染虚拟包装盒从天而降的动画效果,同时在用户选中的落点处渲染出该虚拟包装盒,并输出显示用于提示用户获得XX产品的提示文字,以及用于提示用户点击虚拟包装盒以展示产品。Referring to Fig. 3d, Fig. 3d is a screen output by the electronic device after the user clicks and selects the drop point in the scene image. Specifically, the electronic device renders the animation effect of the virtual packaging box falling from the sky, and at the same time, the virtual packaging is rendered at the drop point selected by the user. box, and output and display the prompt text for prompting the user to obtain the XX product, and prompting the user to click on the virtual packaging box to display the product.
参见图3e,图3e是在用户点击虚拟包装盒后电子设备输出显示的画面,画面中上方展示的是渲染在场景图像上的产品的展开结构特效,以及下方展示的是用于组装成产品对应的模型的零部件,同时配以提示用户进行零件组装的文字说明,以及用户组装的进度和所耗时长。Referring to Fig. 3e, Fig. 3e is a picture displayed by the electronic device after the user clicks on the virtual packaging box. The upper part of the picture shows the special effects of the unfolding structure of the product rendered on the scene image, and the lower part shows the corresponding product for assembling into a product. The parts of the model, together with the text description prompting the user to assemble the parts, as well as the progress and time of the user's assembly.
参见图3f,图3f是用户在点击选中某个零部件后电子设备输出显示 的画面,其中用户选中的零部件渲染在场景图像的中心,画面下方展示介绍零部件的基本信息的说明文字,同时展开结构特效中对应用户选中的零部件的区域高亮显示。进一步的,用户可以在选中该零部件的同时滑动屏幕以旋转该零部件,其示意图可参见图3g。同时用户可以通过手持该电子设备在真实场景中移动将所选中的零部件对位到展开结构特效中相应的区域以完成组装,参见图3h为示出的完成一个零部件组装的示意图。Referring to Fig. 3f, Fig. 3f is the screen output and displayed by the electronic device after the user clicks and selects a certain part, in which the part selected by the user is rendered in the center of the scene image, and the explanatory text introducing the basic information of the part is displayed at the bottom of the screen, and at the same time. The area of the expanded structure effect corresponding to the user-selected component is highlighted. Further, the user can slide the screen to rotate the component while selecting the component, the schematic diagram of which can be seen in Figure 3g. At the same time, the user can move the selected component to the corresponding area in the unfolded structure effect by holding the electronic device in the real scene to complete the assembly. Refer to FIG. 3h for a schematic diagram showing the assembly of a component.
参见图3i,图3i是用户在屏幕上选中另一零部件的示意图,类似的,用户选中的该零部件渲染在场景图像的中心,画面下方展示介绍该零部件的基本信息的说明文字,同时展开结构特效中对应用户选中的该零部件的区域高亮显示。此时用户还可以通过点击展开结构特效中对应该零部件的区域以完成对该零部件的组装,参见图3j、图3k分别为用户点击展开结构特效中对应该零部件的区域的示意图,以及该零部件组装完成的示意图。Referring to Fig. 3i, Fig. 3i is a schematic diagram of another component selected by the user on the screen. Similarly, the component selected by the user is rendered in the center of the scene image, and an explanatory text introducing the basic information of the component is displayed at the bottom of the screen. The area corresponding to the component selected by the user in the expanded structure effect is highlighted. At this time, the user can also click to expand the area corresponding to the component in the structural effect to complete the assembly of the component. Refer to Figure 3j and Figure 3k for the schematic diagrams of the area corresponding to the component in the user click to expand the structural effect, and Schematic diagram of the completed assembly of this part.
参见图3l,图3l为组装完成后电子设备输出显示的画面,其中展开结构特效以及各零部件被渲染为产品对应的模型,进一步的参见图3m,屏幕上渲染出由虚拟摇杆和虚拟按键组成的控制组件,以供用户控制操作模型的运动。Referring to Fig. 31, Fig. 31 is the picture of the output display of the electronic device after the assembly is completed, wherein the unfolded structural special effects and each component are rendered as the model corresponding to the product, further referring to Fig. 3m, the screen is rendered by a virtual joystick and a virtual button. Consists of control components for the user to control the movement of the manipulator model.
本申请实施例还提供一种产品展示装置,参见图4,图4是本申请一示例性实施例示出的一种产品展示装置的示意图,包括:An embodiment of the present application further provides a product display device. Referring to FIG. 4, FIG. 4 is a schematic diagram of a product display device shown in an exemplary embodiment of the present application, including:
处理器401; processor 401;
用于存储处理器401可执行程序指令的存储器402;a memory 402 for storing program instructions executable by the processor 401;
所述处理器401执行所述可执行程序指令时实现以下操作:When the processor 401 executes the executable program instructions, the following operations are implemented:
通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
可以理解,在上述产品展示装置所示出的处理器、存储器的基础上,产品展示装置根据其实际的类型还可以包括实现正常运行所必需的其他组件。例如,在产品展示装置为处理芯片或集成有处理芯片的主板的情况下,其通过安装于设备上实现控制功能,例如安装于前面实施例所述的电子设备上,此时产品展示装置还可以包括通信接口,用于与设备上其他器件进行数据的交互;在产品展示装置为电子设备的情况下,此时产品展示装置还可以包括例如输入/输出接口、通信接口、总线等,输入/输出接口可以用于连接输入/输出模块,以实现信息输入及输出。输入输出/模块可以作为组件配置在电子设备中(图中未示出),也可以外接于设备以提供相应功能。输入设备可以包括键盘、鼠标、触摸屏、麦克风、各类传感器等,输出设备可以包括显示器、扬声器、振动器、指示灯等。通信接口用于连接通信模块(图中未示出),以实现电子设备与其他设备的通信交互。其中通信模块可以通过有线方式(例如USB、网线等)实现通信,也可以通过无线方式(例如移动网络、WIFI、蓝牙等)实现通信。总线包括一通路,在电子设备的各个组件(例如处理器、存储器、输入/输出接口和通信接口)之间传输信息。It can be understood that, on the basis of the processor and memory shown in the above-mentioned product display device, the product display device may also include other components necessary for normal operation according to its actual type. For example, in the case where the product display device is a processing chip or a motherboard integrated with a processing chip, it can realize the control function by being installed on the device, for example, installed on the electronic device described in the previous embodiment. At this time, the product display device can also be Including a communication interface for data interaction with other devices on the device; in the case where the product display device is an electronic device, the product display device may also include, for example, an input/output interface, a communication interface, a bus, etc., input/output Interfaces can be used to connect input/output modules to realize information input and output. The input/output/module can be configured in the electronic device as a component (not shown in the figure), or can be externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various types of sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, and the like. The communication interface is used to connect a communication module (not shown in the figure) to realize communication interaction between the electronic device and other devices. The communication module may implement communication through wired means (eg, USB, network cable, etc.), or may implement communication through wireless means (eg, mobile network, WIFI, Bluetooth, etc.). A bus includes a path that transfers information between various components of an electronic device, such as the processor, memory, input/output interfaces, and communication interfaces.
本申请实施例还提供一种电子设备,参见图5,图5是本申请一示例性实施例示出的一种电子设备的示意图,包括:An embodiment of the present application further provides an electronic device. Referring to FIG. 5, FIG. 5 is a schematic diagram of an electronic device shown in an exemplary embodiment of the present application, including:
摄像头501,用于采集图像;a camera 501, used for capturing images;
处理器502; processor 502;
用于存储处理器502可执行程序指令的存储器503;a memory 503 for storing program instructions executable by the processor 502;
输入/输出接口504;input/output interface 504;
通信接口505; communication interface 505;
总线506; bus 506;
所述处理器502执行所述可执行程序指令时实现以下操作:When the processor 502 executes the executable program instructions, the following operations are implemented:
通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
本申请实施例还提供一种计算机存储介质,其上存储有计算机程序,所述计算机程序被执行时实现上述任意实施例所述的方法。对于装置实施例而言,由于其基本对应于方法实施例,所以相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。The embodiments of the present application further provide a computer storage medium, on which a computer program is stored, and when the computer program is executed, the method described in any of the foregoing embodiments is implemented. For the apparatus embodiments, since they basically correspond to the method embodiments, reference may be made to the partial descriptions of the method embodiments for related parts. The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
本申请所给出的所有实施例,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中, 或者通过计算机可读存储介质进行传输。计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。All the embodiments given in this application may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable device. Computer instructions may be stored in or transmitted over a computer-readable storage medium. Computer instructions may be sent from one website site, computer, server, or data center to another website site, computer, via wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.) , server or data center for transmission. A computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, or the like that contains one or more of the available mediums integrated. Useful media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVDs), or semiconductor media (eg, solid state disks (SSDs)), and the like.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. The terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also other not expressly listed elements, or also include elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
以上对本申请实施例所提供的方法和装置进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。The methods and devices provided by the embodiments of the present application have been introduced in detail above, and specific examples are used to illustrate the principles and implementations of the present application. At the same time, for those of ordinary skill in the art, according to the idea of the application, there will be changes in the specific implementation and application scope. In summary, the content of this specification should not be construed as a limitation to the application. .

Claims (48)

  1. 一种产品展示方法,其特征在于,包括:A product display method, comprising:
    通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
    在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
    在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  2. 根据权利要求1所述的方法,其特征在于,所述通过摄像头实时获取真实场景的场景图像,之后包括:The method according to claim 1, wherein the acquiring the scene image of the real scene through the camera in real time comprises:
    检测真实场景中的平面信息;Detect plane information in real scenes;
    基于所述平面信息确定虚拟场景中的平面。A plane in the virtual scene is determined based on the plane information.
  3. 根据权利要求1所述的方法,其特征在于,所述在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,之前包括:The method according to claim 1, wherein the virtual elements for assembling into the first virtual model corresponding to the product are displayed at a position corresponding to a specified position in the real scene in the pre-built virtual scene, before include:
    获取用户在场景图像中选中的位置,将用户在场景图像中选中的位置所对应的真实场景中的位置确定为所述指定位置。The position selected by the user in the scene image is acquired, and the position in the real scene corresponding to the position selected by the user in the scene image is determined as the designated position.
  4. 根据权利要求3所述的方法,其特征在于,所述获取用户在场景图像中选中的位置,之前包括:The method according to claim 3, wherein the obtaining of the position selected by the user in the scene image includes:
    在场景图像中渲染用于提示用户在场景图像中选择位置的提示特效。Renders a prompt effect in the scene image that prompts the user to select a location in the scene image.
  5. 根据权利要求4所述的方法,其特征在于,所述获取用户在场景图像中选中的位置,之后还包括:The method according to claim 4, wherein the acquiring the position selected by the user in the scene image further comprises:
    停止在场景图像中渲染所述提示特效,并在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示第二虚拟模型,以及在场景图像中渲染所述虚拟场景;Stop rendering the prompt special effect in the scene image, and display a second virtual model in the pre-built virtual scene at a position corresponding to the specified position in the real scene, and render the virtual scene in the scene image;
    所述在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,包括:The virtual elements for assembling into the first virtual model corresponding to the product are displayed at the position corresponding to the specified position in the real scene in the pre-built virtual scene, including:
    在接收到用户对所述第二虚拟模型的选中操作时,在预先构建的虚拟场景中对应真实场景中指定位置的位置处将所述第二虚拟模型渲染为用于组装成所述产品对应的第一虚拟模型的虚拟元素。When the user's selection operation on the second virtual model is received, the second virtual model is rendered in the pre-built virtual scene at a position corresponding to the specified position in the real scene, for assembling into the corresponding product of the product. A virtual element of the first virtual model.
  6. 根据权利要求1所述的方法,其特征在于,所述在场景图像中渲染所述虚拟场景,包括:The method according to claim 1, wherein the rendering the virtual scene in the scene image comprises:
    在预先构建的虚拟场景中对应真实场景中指定位置的位置处建立参考坐标系;A reference coordinate system is established at the position corresponding to the specified position in the real scene in the pre-built virtual scene;
    基于所述参考坐标系与场景图像的图像坐标系之间的转换关系,在场景图像中渲染所述虚拟场景。The virtual scene is rendered in the scene image based on the transformation relationship between the reference coordinate system and the image coordinate system of the scene image.
  7. 根据权利要求1所述的方法,其特征在于,所述基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,包括:The method according to claim 1, wherein the adjusting the display content of the virtual scene based on the obtained operation information input by the user comprises:
    基于用户输入的操作信息实时移动所述虚拟元素在虚拟场景中的位置,如果所述虚拟元素移动至所述展开结构特效中对应所述虚拟元素的区域,将所述虚拟元素固定展示在所述区域。The position of the virtual element in the virtual scene is moved in real time based on the operation information input by the user. If the virtual element moves to the area corresponding to the virtual element in the special effect of the unfolded structure, the virtual element is fixedly displayed in the virtual scene. area.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括获取所述摄像头与虚拟场景的相对位姿;The method according to claim 7, wherein the method further comprises obtaining the relative pose of the camera and the virtual scene;
    所述基于用户输入的操作信息实时移动所述虚拟元素在虚拟场景中的位置,包括:The moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user includes:
    基于所述操作信息确定被选中的虚拟元素,将被选中的虚拟元素渲染在虚拟场景中所述摄像头的第二预设相对位置处。The selected virtual element is determined based on the operation information, and the selected virtual element is rendered at a second preset relative position of the camera in the virtual scene.
  9. 根据权利要求8所述的方法,其特征在于,所述基于用户输入的操作信息实时移动所述虚拟元素在虚拟场景中的位置,还包括:The method according to claim 8, wherein the moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user further comprises:
    基于所述摄像头在虚拟场景中的位姿变化移动被选中的虚拟元素在虚拟场景中的位置。The position of the selected virtual element in the virtual scene is moved based on the pose change of the camera in the virtual scene.
  10. 根据权利要求8所述的方法,其特征在于,所述基于用户输入的操作信息实时移动所述虚拟元素在虚拟场景中的位置,包括:The method according to claim 8, wherein the moving the position of the virtual element in the virtual scene in real time based on the operation information input by the user comprises:
    基于用户在场景图像中选中的位置移动被选中的虚拟元素在虚拟场景 中的位置。Moves the position of the selected virtual element in the virtual scene based on the position selected by the user in the scene image.
  11. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    输出显示被选中的虚拟元素的简介信息。The output displays brief information about the selected virtual element.
  12. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    基于所述操作信息改变被选中的虚拟元素在所述摄像头的第二预设相对位置处的姿态。The posture of the selected virtual element at the second preset relative position of the camera is changed based on the operation information.
  13. 根据权利要求8所述的方法,其特征在于,所述方法还包括:The method according to claim 8, wherein the method further comprises:
    在所述展开结构特效中渲染对应被选中的虚拟元素的区域标识。The region identifier corresponding to the selected virtual element is rendered in the expanded structure special effect.
  14. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    如果所有所述虚拟元素均移动至所述展开结构特效中对应所述虚拟元素的区域,将所述展开结构特效渲染为所述第一虚拟模型。If all the virtual elements are moved to the area corresponding to the virtual elements in the expanded structure effect, the expanded structure effect is rendered as the first virtual model.
  15. 根据权利要求14所述的方法,其特征在于,所述方法应用于电子设备,所述方法还包括:The method according to claim 14, wherein the method is applied to an electronic device, and the method further comprises:
    在所述电子设备的显示屏幕上渲染控制组件,以供用户控制所述第一虚拟模型运动。A control component is rendered on the display screen of the electronic device for the user to control the movement of the first virtual model.
  16. 根据权利要求15所述的方法,其特征在于,所述第一虚拟模型基于虚拟场景的平面进行运动;所述虚拟场景的平面基于真实场景的平面信息确定。The method according to claim 15, wherein the first virtual model moves based on a plane of a virtual scene; and the plane of the virtual scene is determined based on plane information of a real scene.
  17. 一种产品展示装置,其特征在于,包括:A product display device, characterized in that it includes:
    处理器;processor;
    用于存储处理器可执行程序指令的存储器;memory for storing processor executable program instructions;
    所述处理器执行所述可执行程序指令时实现以下操作:The processor implements the following operations when executing the executable program instructions:
    通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
    在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成所述产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to the product is displayed at a position corresponding to a specified position in the real scene, and the virtual element is displayed at a first preset relative position of the virtual element. Describe the unfolding structure special effects of the first virtual model;
    在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调 整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  18. 根据权利要求17所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 17, wherein the processor implements the following operations when executing the executable program instructions:
    检测真实场景中的平面信息;Detect plane information in real scenes;
    基于所述平面信息确定虚拟场景中的平面。A plane in the virtual scene is determined based on the plane information.
  19. 根据权利要求18所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 18, wherein the processor implements the following operations when executing the executable program instructions:
    获取用户在场景图像中选中的位置,将用户在场景图像中选中的位置所对应的真实场景中的位置确定为所述指定位置。The position selected by the user in the scene image is acquired, and the position in the real scene corresponding to the position selected by the user in the scene image is determined as the designated position.
  20. 根据权利要求19所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 19, wherein the processor implements the following operations when executing the executable program instructions:
    在场景图像中渲染用于提示用户在场景图像中选择位置的提示特效。Renders a prompt effect in the scene image that prompts the user to select a location in the scene image.
  21. 根据权利要求20所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus according to claim 20, wherein the processor implements the following operations when executing the executable program instructions:
    停止在场景图像中渲染所述提示特效,并在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示第二虚拟模型,以及在场景图像中渲染所述虚拟场景;Stop rendering the prompt special effect in the scene image, and display a second virtual model in the pre-built virtual scene at a position corresponding to the specified position in the real scene, and render the virtual scene in the scene image;
    所述处理器执行所述可执行程序指令时还实现以下操作:The processor also implements the following operations when executing the executable program instructions:
    在接收到用户对所述第二虚拟模型的选中操作时,在预先构建的虚拟场景中对应真实场景中指定位置的位置处将所述第二虚拟模型渲染为用于组装成所述产品对应的第一虚拟模型的虚拟元素。When the user's selection operation on the second virtual model is received, the second virtual model is rendered in the pre-built virtual scene at a position corresponding to the specified position in the real scene, for assembling into the corresponding product of the product. A virtual element of the first virtual model.
  22. 根据权利要求17所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 17, wherein the processor implements the following operations when executing the executable program instructions:
    在预先构建的虚拟场景中对应真实场景中指定位置的位置处建立参考坐标系;A reference coordinate system is established at the position corresponding to the specified position in the real scene in the pre-built virtual scene;
    基于所述参考坐标系与场景图像的图像坐标系之间的转换关系,在场景图像中渲染所述虚拟场景。The virtual scene is rendered in the scene image based on the transformation relationship between the reference coordinate system and the image coordinate system of the scene image.
  23. 根据权利要求17所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 17, wherein the processor implements the following operations when executing the executable program instructions:
    基于用户输入的操作信息实时移动所述虚拟元素在虚拟场景中的位置,如果所述虚拟元素移动至所述展开结构特效中对应所述虚拟元素的区域,将所述虚拟元素固定展示在所述区域。Based on the operation information input by the user, the position of the virtual element in the virtual scene is moved in real time. If the virtual element moves to the area corresponding to the virtual element in the special effect of the unfolded structure, the virtual element is fixedly displayed in the virtual scene. area.
  24. 根据权利要求23所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 23, wherein the processor implements the following operations when executing the executable program instructions:
    获取所述摄像头与虚拟场景的相对位姿;obtaining the relative pose of the camera and the virtual scene;
    基于所述操作信息确定被选中的虚拟元素,将被选中的虚拟元素渲染在虚拟场景中所述摄像头的第二预设相对位置处。The selected virtual element is determined based on the operation information, and the selected virtual element is rendered at a second preset relative position of the camera in the virtual scene.
  25. 根据权利要求24所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 24, wherein the processor implements the following operations when executing the executable program instructions:
    基于所述摄像头在虚拟场景中的位姿变化移动被选中的虚拟元素在虚拟场景中的位置。The position of the selected virtual element in the virtual scene is moved based on the pose change of the camera in the virtual scene.
  26. 根据权利要求24所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 24, wherein the processor implements the following operations when executing the executable program instructions:
    基于用户在场景图像中选中的位置移动被选中的虚拟元素在虚拟场景中的位置。Moves the position of the selected virtual element in the virtual scene based on the position selected by the user in the scene image.
  27. 根据权利要求24所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 24, wherein the processor implements the following operations when executing the executable program instructions:
    输出显示被选中的虚拟元素的简介信息。The output displays brief information about the selected virtual element.
  28. 根据权利要求24所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 24, wherein the processor implements the following operations when executing the executable program instructions:
    基于所述操作信息改变被选中的虚拟元素在所述摄像头的第二预设相对位置处的姿态。The posture of the selected virtual element at the second preset relative position of the camera is changed based on the operation information.
  29. 根据权利要求24所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 24, wherein the processor implements the following operations when executing the executable program instructions:
    在所述展开结构特效中渲染对应被选中的虚拟元素的区域标识。The region identifier corresponding to the selected virtual element is rendered in the expanded structure special effect.
  30. 根据权利要求23所述的装置,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus of claim 23, wherein the processor implements the following operations when executing the executable program instructions:
    如果所有所述虚拟元素均移动至所述展开结构特效中对应所述虚拟元素的区域,将所述展开结构特效渲染为所述第一虚拟模型。If all the virtual elements are moved to the area corresponding to the virtual elements in the expanded structure effect, the expanded structure effect is rendered as the first virtual model.
  31. 根据权利要求30所述的装置,其特征在于,所述装置安装于电子设备,所述处理器执行所述可执行程序指令时实现以下操作:The apparatus according to claim 30, wherein the apparatus is installed in an electronic device, and the processor implements the following operations when executing the executable program instructions:
    在所述电子设备的显示屏幕上渲染控制组件,以供用户控制所述第一虚拟模型运动。A control component is rendered on the display screen of the electronic device for the user to control the movement of the first virtual model.
  32. 根据权利要求31所述的装置,其特征在于,所述第一虚拟模型基于虚拟场景的平面进行运动;所述虚拟场景的平面基于真实场景的平面信息确定。The apparatus according to claim 31, wherein the first virtual model moves based on a plane of a virtual scene; and the plane of the virtual scene is determined based on plane information of a real scene.
  33. 一种电子设备,其特征在于,包括:An electronic device, comprising:
    摄像头,用于采集图像;camera, for capturing images;
    处理器;processor;
    用于存储处理器可执行程序指令的存储器;memory for storing processor executable program instructions;
    所述处理器执行所述可执行程序指令时实现以下操作:The processor implements the following operations when executing the executable program instructions:
    通过摄像头实时获取真实场景的场景图像;Real-time acquisition of scene images of real scenes through cameras;
    在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示用于组装成产品对应的第一虚拟模型的虚拟元素,以及在所述虚拟元素的第一预设相对位置处展示所述第一虚拟模型的展开结构特效;In the pre-built virtual scene, a virtual element for assembling a first virtual model corresponding to a product is displayed at a position corresponding to a specified position in the real scene, and the first virtual element is displayed at a first preset relative position of the virtual element. 1. The unfolding structure special effect of virtual model;
    在场景图像中渲染所述虚拟场景,基于获取的用户输入的操作信息调整所述虚拟场景的展示内容,并重新在场景图像中渲染调整后的虚拟场景。The virtual scene is rendered in the scene image, the display content of the virtual scene is adjusted based on the obtained operation information input by the user, and the adjusted virtual scene is re-rendered in the scene image.
  34. 根据权利要求33所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 33, wherein the processor implements the following operations when executing the executable program instructions:
    检测真实场景中的平面信息;Detect plane information in real scenes;
    基于所述平面信息确定虚拟场景中的平面。A plane in the virtual scene is determined based on the plane information.
  35. 根据权利要求33所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 33, wherein the processor implements the following operations when executing the executable program instructions:
    获取用户在场景图像中选中的位置,将用户在场景图像中选中的位置所对应的真实场景中的位置确定为所述指定位置。The position selected by the user in the scene image is acquired, and the position in the real scene corresponding to the position selected by the user in the scene image is determined as the designated position.
  36. 根据权利要求35所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 35, wherein the processor implements the following operations when executing the executable program instructions:
    在场景图像中渲染用于提示用户在场景图像中选择位置的提示特效。Renders a prompt effect in the scene image that prompts the user to select a location in the scene image.
  37. 根据权利要求36所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 36, wherein the processor implements the following operations when executing the executable program instructions:
    停止在场景图像中渲染所述提示特效,并在预先构建的虚拟场景中对应真实场景中指定位置的位置处展示第二虚拟模型,以及在场景图像中渲染所述虚拟场景;Stop rendering the prompt special effect in the scene image, and display a second virtual model in the pre-built virtual scene at a position corresponding to the specified position in the real scene, and render the virtual scene in the scene image;
    所述处理器执行所述可执行程序指令时还实现以下操作:The processor also implements the following operations when executing the executable program instructions:
    在接收到用户对所述第二虚拟模型的选中操作时,在预先构建的虚拟场景中对应真实场景中指定位置的位置处将所述第二虚拟模型渲染为用于组装成所述产品对应的第一虚拟模型的虚拟元素。When the user's selection operation on the second virtual model is received, the second virtual model is rendered in the pre-built virtual scene at a position corresponding to the specified position in the real scene, for assembling into the corresponding product of the product. A virtual element of the first virtual model.
  38. 根据权利要求33所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 33, wherein the processor implements the following operations when executing the executable program instructions:
    在预先构建的虚拟场景中对应真实场景中指定位置的位置处建立参考坐标系;A reference coordinate system is established at the position corresponding to the specified position in the real scene in the pre-built virtual scene;
    基于所述参考坐标系与场景图像的图像坐标系之间的转换关系,在场景图像中渲染所述虚拟场景。The virtual scene is rendered in the scene image based on the transformation relationship between the reference coordinate system and the image coordinate system of the scene image.
  39. 根据权利要求33所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 33, wherein the processor implements the following operations when executing the executable program instructions:
    基于用户输入的操作信息实时移动所述虚拟元素在虚拟场景中的位置,如果所述虚拟元素移动至所述展开结构特效中对应所述虚拟元素的区域,将所述虚拟元素固定展示在所述区域。The position of the virtual element in the virtual scene is moved in real time based on the operation information input by the user. If the virtual element moves to the area corresponding to the virtual element in the special effect of the unfolded structure, the virtual element is fixedly displayed in the virtual scene. area.
  40. 根据权利要求39所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 39, wherein the processor implements the following operations when executing the executable program instructions:
    获取所述摄像头与虚拟场景的相对位姿;obtaining the relative pose of the camera and the virtual scene;
    基于所述操作信息确定被选中的虚拟元素,将被选中的虚拟元素渲染在虚拟场景中所述摄像头的第二预设相对位置处。The selected virtual element is determined based on the operation information, and the selected virtual element is rendered at a second preset relative position of the camera in the virtual scene.
  41. 根据权利要求40所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 40, wherein the processor implements the following operations when executing the executable program instructions:
    基于所述摄像头在虚拟场景中的位姿变化移动被选中的虚拟元素在虚拟场景中的位置。The position of the selected virtual element in the virtual scene is moved based on the pose change of the camera in the virtual scene.
  42. 根据权利要求40所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 40, wherein the processor implements the following operations when executing the executable program instructions:
    基于用户在场景图像中选中的位置移动被选中的虚拟元素在虚拟场景中的位置。Moves the position of the selected virtual element in the virtual scene based on the position selected by the user in the scene image.
  43. 根据权利要求40所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 40, wherein the processor implements the following operations when executing the executable program instructions:
    输出显示被选中的虚拟元素的简介信息。The output displays brief information about the selected virtual element.
  44. 根据权利要求40所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 40, wherein the processor implements the following operations when executing the executable program instructions:
    基于所述操作信息改变被选中的虚拟元素在所述摄像头的第二预设相对位置处的姿态。The posture of the selected virtual element at the second preset relative position of the camera is changed based on the operation information.
  45. 根据权利要求40所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 40, wherein the processor implements the following operations when executing the executable program instructions:
    在所述展开结构特效中渲染对应被选中的虚拟元素的区域标识。The region identifier corresponding to the selected virtual element is rendered in the expanded structure special effect.
  46. 根据权利要求39所述的电子设备,其特征在于,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 39, wherein the processor implements the following operations when executing the executable program instructions:
    如果所有所述虚拟元素均移动至所述展开结构特效中对应所述虚拟元素的区域,将所述展开结构特效渲染为所述第一虚拟模型。If all the virtual elements are moved to the area corresponding to the virtual elements in the expanded structure effect, the expanded structure effect is rendered as the first virtual model.
  47. 根据权利要求46所述的电子设备,其特征在于,所述电子设备还包括显示屏幕,所述处理器执行所述可执行程序指令时实现以下操作:The electronic device according to claim 46, wherein the electronic device further comprises a display screen, and the processor implements the following operations when executing the executable program instructions:
    在所述电子设备的显示屏幕上渲染控制组件,以供用户控制所述第一虚拟模型运动。A control component is rendered on the display screen of the electronic device for the user to control the movement of the first virtual model.
  48. 根据权利要求47所述的电子设备,其特征在于,所述第一虚拟模型基于虚拟场景的平面进行运动;所述虚拟场景的平面基于真实场景的平面信息确定。The electronic device according to claim 47, wherein the first virtual model moves based on a plane of a virtual scene; and the plane of the virtual scene is determined based on plane information of a real scene.
PCT/CN2021/084247 2021-03-31 2021-03-31 Product display method and apparatus, and electronic device WO2022205026A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084247 WO2022205026A1 (en) 2021-03-31 2021-03-31 Product display method and apparatus, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/084247 WO2022205026A1 (en) 2021-03-31 2021-03-31 Product display method and apparatus, and electronic device

Publications (1)

Publication Number Publication Date
WO2022205026A1 true WO2022205026A1 (en) 2022-10-06

Family

ID=83455502

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/084247 WO2022205026A1 (en) 2021-03-31 2021-03-31 Product display method and apparatus, and electronic device

Country Status (1)

Country Link
WO (1) WO2022205026A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130215109A1 (en) * 2012-02-22 2013-08-22 Silka Miesnieks Designating Real World Locations for Virtual World Control
CN104134229A (en) * 2014-08-08 2014-11-05 李成 Real-time interaction reality augmenting system and method
CN109427096A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 A kind of automatic guide method and system based on augmented reality
CN109859542A (en) * 2017-11-30 2019-06-07 江西科骏实业有限公司 A kind of 3D intelligence classroom instruction application method and system based on mixed reality

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130215109A1 (en) * 2012-02-22 2013-08-22 Silka Miesnieks Designating Real World Locations for Virtual World Control
CN104134229A (en) * 2014-08-08 2014-11-05 李成 Real-time interaction reality augmenting system and method
CN109427096A (en) * 2017-08-29 2019-03-05 深圳市掌网科技股份有限公司 A kind of automatic guide method and system based on augmented reality
CN109859542A (en) * 2017-11-30 2019-06-07 江西科骏实业有限公司 A kind of 3D intelligence classroom instruction application method and system based on mixed reality

Similar Documents

Publication Publication Date Title
US10553031B2 (en) Digital project file presentation
US10755485B2 (en) Augmented reality product preview
Linowes et al. Augmented reality for developers: Build practical augmented reality applications with unity, ARCore, ARKit, and Vuforia
WO2021073268A1 (en) Augmented reality data presentation method and apparatus, electronic device, and storage medium
US10657716B2 (en) Collaborative augmented reality system
CN107209570B (en) Dynamic adaptive virtual list
US11275481B2 (en) Collaborative augmented reality system
JP6967043B2 (en) Virtual element modality based on location in 3D content
JP2020074058A (en) Detection and display of mixed 2d/3d content
KR20220035380A (en) System and method for augmented reality scenes
WO2012101272A9 (en) A method for managing ir image data
CA3114601A1 (en) A cloud-based system and method for creating a virtual tour
EP3761249A1 (en) Guided retail experience
US20180005440A1 (en) Universal application programming interface for augmented reality
US20160371885A1 (en) Sharing of markup to image data
CN112783700A (en) Computer readable medium for network-based remote assistance system
CN114327700A (en) Virtual reality equipment and screenshot picture playing method
CN114514493A (en) Reinforcing apparatus
Kodeboyina et al. Low cost augmented reality framework for construction applications
EP3190503B1 (en) An apparatus and associated methods
WO2022205026A1 (en) Product display method and apparatus, and electronic device
JP6152888B2 (en) Information processing apparatus, control method and program thereof, and information processing system, control method and program thereof
TWI777333B (en) Method and electronic device for setting spatial positions of a virtual object
CN112286355B (en) Interactive method and system for immersive content
US20240062279A1 (en) Method of displaying products in a virtual environment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21933706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21933706

Country of ref document: EP

Kind code of ref document: A1