Product display method, system, medium and electronic device based on augmented reality
By constructing a virtual product display scene in the user's current environment and dynamically adjusting it according to the position and interactive gestures, the problem of being unable to switch the display scene in the existing technology is solved, the user experience and freshness are improved, and the possibility of placing an order is increased. sex.
Patent Information
- Application Number
- CN201911053209.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-10-31
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-10-31
AI Technical Summary
The existing technology cannot switch between different product display scenarios for users, which affects the user experience. Moreover, the number of products displayed in a virtual space is limited and cannot bring a continuous sense of freshness to users.
By obtaining video data of the target space, a virtual space is constructed, and based on the user's location information, it is judged whether the preset conditions are met and the display space is switched, allowing users to experience different virtual product display scenarios in the real environment, including obtaining the user's interactive gestures to adjust How the product is displayed.
It realizes the switching of virtual product display scenes during the user's movement, improves the freshness and immersion of the user experience, and increases the possibility of users placing orders.
Smart Images

Figure CN111739169B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of augmented reality technology, and in particular to an augmented reality-based product display method, system, medium and electronic equipment. Background Art
[0002] AR (augmented reality) technology is a new technology that "seamlessly" integrates real-world information and virtual-world information. AR technology uses computer simulation to render three-dimensional models on camera images, achieving the superposition effect of virtual objects and real scenes, thereby applying virtual information to the real world and being perceived by human senses, achieving a sensory experience beyond reality.
[0003] With the rapid development and popularization of mobile AR technology, the number of users is increasing. Using AR technology to display products to users can give users more freshness and immersion in the shopping process, thereby increasing their interest in shopping. In the existing technology, usually only a product display scene in a virtual space can be built for users, and then virtual product models are added to the scene to interact with users. Users cannot experience the process of browsing products in different spaces, and the number of products displayed in a virtual space is limited, which cannot bring users a constant sense of freshness, affecting the user experience. Summary of the invention
[0004] The technical problem to be solved by the embodiments of the present invention is to overcome the defect in the prior art that different product display scenes cannot be switched for users, affecting the user experience, and to provide a product display method, system, medium and electronic device based on augmented reality.
[0005] The embodiment of the present invention solves the above technical problems through the following technical solutions:
[0006] A product display method based on augmented reality, the product display method comprising:
[0007] Acquire video data in a target space, where the target space is the environment space where the user is currently located;
[0008] constructing a virtual space using the video data;
[0009] Acquire the target product selected by the user, and retrieve the virtual model corresponding to the target product;
[0010] Adding the virtual model into the virtual space to form a target display space;
[0011] Obtaining location information of the user;
[0012] Determining whether the location information meets a preset condition;
[0013] If not, displaying the target display space to the user;
[0014] If so, the target display space is hidden, and a preset display space is displayed to the user, where the preset display space includes a preset virtual space and a preset virtual product.
[0015] Preferably, the step of acquiring the video data in the target space includes: calling a camera to collect the video data in the target space, the camera being located on the user's smart terminal;
[0016] The step of adding the virtual model into the virtual space comprises:
[0017] Acquire the posture information and the position information of the smart terminal, and correct the virtual model coordinate system in the virtual space with the posture information and the position information, so that the viewing angle of the virtual model coordinate system is consistent with the viewing angle of the camera;
[0018] The virtual model is added into the virtual model coordinate system.
[0019] Preferably, the virtual space includes a reference object;
[0020] After the step of adding the virtual model into the virtual model coordinate system, the following step further comprises:
[0021] calculating a scaling ratio of an actual size of the reference object relative to a size of the reference object in the virtual space;
[0022] The size of the virtual model in the virtual model coordinate system is adjusted according to the scaling ratio.
[0023] Preferably, the step of acquiring the user's location information includes: acquiring the real-time coordinates of the user when moving; and the step of determining whether the location information meets a preset condition includes: determining whether the real-time coordinates fall within a preset coordinate range.
[0024] Preferably, the step of constructing a virtual space using the video data comprises: extracting a preset number of temporally continuous static images from the video data; generating the virtual space using the static images;
[0025] and / or,
[0026] After the step of displaying the target display space to the user, the method further includes: obtaining the user's interactive gesture; adjusting the product according to the interactive gesture, wherein the adjustment includes one or more of scaling the product size, moving the product position, rotating the displayed product, and hiding / reproducing the product.
[0027] A product display system based on augmented reality, the product display system comprising:
[0028] A video data acquisition module is used to acquire video data in a target space, where the target space is the environment space where the user is currently located;
[0029] A virtual space construction module, used to construct a virtual space using the video data;
[0030] A virtual model calling module, used to obtain the target product selected by the user and call the virtual model corresponding to the target product;
[0031] A fusion module, used for adding the virtual model into the virtual space to form a target display space;
[0032] A location acquisition module, used to acquire the location information of the user;
[0033] A judging module, used to judge whether the location information meets a preset condition;
[0034] If not, calling a first display module, wherein the first display module is used to display the target display space to the user;
[0035] If so, a second display module is called, and the second display module is used to hide the target display space and display a preset display space to the user, where the preset display space includes a preset virtual space and a preset virtual product.
[0036] Preferably, the video data acquisition module is used to call a camera to collect video data in the target space, and the camera is located on the user's smart terminal;
[0037] The fusion module is used to obtain the posture information and position information of the smart terminal, and use the posture information and the position information to correct the virtual model coordinate system in the virtual space so that the viewing angle of the virtual model coordinate system is consistent with the viewing angle of the camera; the fusion module is also used to add the virtual model into the virtual model coordinate system.
[0038] Preferably, the virtual space includes a reference object;
[0039] The product display system further includes a calculation module and a size adjustment module, wherein the calculation module is used to calculate a scaling ratio of the actual size of the reference object relative to the size of the reference object in the virtual space;
[0040] The size adjustment module is used to adjust the size of the virtual model in the virtual model coordinate system according to the scaling ratio.
[0041] Preferably, the position acquisition module is used to acquire the real-time coordinates of the user when moving; and the judgment module is used to judge whether the real-time coordinates belong to a preset coordinate range.
[0042] Preferably, the virtual space construction module is used to extract a preset number of temporally continuous static images from the video data, and generate the virtual space using the static images;
[0043] and / or,
[0044] The product display system also includes an interaction information acquisition module and an adjustment module. The interaction information acquisition module is used to acquire the user's interaction gestures; the adjustment module is used to adjust the product according to the interaction gestures, and the adjustment includes one or more of scaling the product size, moving the product position, rotating the displayed product, and hiding / reproducing the product.
[0045] An electronic device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the aforementioned product display method based on augmented reality are implemented.
[0046] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the aforementioned product display method based on augmented reality.
[0047] The positive progressive effect of the present invention is that the augmented reality-based product display method, system, medium and electronic device provided by the embodiments of the present invention can not only construct a virtual product display scene with the user's current real environment as the background, but also trigger the scene switching condition when the user is walking. The preset completely virtual product display scene can be displayed to the user, thereby satisfying the user's experience of products in different virtual spaces during the movement, bringing a strong sense of freshness and immersion to the user, improving the user experience, and thereby increasing the number of user orders. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 This is a flow chart of the product display method based on augmented reality in Example 1 of the present invention.
[0049] Figure 2 This is a flow chart of the product display method based on augmented reality in Example 2 of the present invention.
[0050] Figure 3 This is a structural block diagram of an augmented reality-based product display system in Example 3 of the present invention.
[0051] Figure 4This is a structural block diagram of an augmented reality-based product display system in Example 4 of the present invention.
[0052] Figure 5 It is a structural schematic diagram of an electronic device used to implement the product display method based on augmented reality in Example 5 of the present invention. DETAILED DESCRIPTION
[0053] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0054] Example 1
[0055] This embodiment provides a product display method based on augmented reality, such as Figure 1 As shown, the product display method may include the following steps:
[0056] Step S10: acquiring video data in a target space, where the target space is the environment space where the user is currently located;
[0057] Specifically, the target space is a real space in reality, and the user can move around in the target space.
[0058] For example, if the user is currently standing in a square, the open space of the square can be considered as the target space; if the user is currently in a stadium, the enclosed space in the stadium can be considered as the target space.
[0059] Next, step S11 may be performed: constructing a virtual space using the video data; the virtual space truly reflects the environment information where the user is located, and may be used as a background space for product display.
[0060] Step S12: obtaining the target product selected by the user, and retrieving the virtual model corresponding to the target product;
[0061] The user can select a specific product (eg, refrigerator) or a product category (household appliances) that he / she intends to purchase, and upon receiving the user's selection command, the stored product virtual model can be retrieved from the database.
[0062] Step S13: adding the virtual model into the virtual space to form a target display space;
[0063] Furthermore, the virtual model is added to a predetermined position in the virtual space, which may also be referred to as a positioning point (ie, an anchor point).
[0064] In this step, the virtual model corresponding to the product that the user wants to buy can be added to the virtual space established above, thereby constructing a target display space that simulates displaying the product in the real environment where the user is located, thereby enhancing the user's sense of immersion.
[0065] Step S14: Obtaining the location information of the user;
[0066] Step S15: Determine whether the location information meets a preset condition;
[0067] If not, executing step S16: displaying the target display space to the user;
[0068] If so, step S17 is executed: hiding the target display space and displaying a preset display space to the user, wherein the preset display space includes a preset virtual space and a preset virtual product.
[0069] Preferably, the step S14 can be implemented by the following steps: obtaining the real-time coordinates of the user when moving.
[0070] The step S15 can be implemented by the following steps: determining whether the real-time coordinates belong to a preset coordinate range.
[0071] The user can walk around in the real environment, and the user's position coordinates can be monitored in real time and fed back to the virtual space in a timely manner. If the real-time coordinates exceed the preset coordinates when the user walks to a certain position, it can be considered that the user has triggered the entrance to another scene. At this time, the target display space is automatically hidden, and the preset display space is displayed to the user. The preset display space includes a preset virtual space and preset virtual products. The preset virtual space is another completely virtual shopping space and has nothing to do with the real environment where the user is currently located. The preset virtual products are products displayed in another shopping space. Among them, the preset virtual products set in the preset virtual space can be the same as or related to the product types of the virtual models in the aforementioned target display space, so that more products that users are interested in purchasing can be recommended to users, thereby increasing the probability of users placing orders.
[0072] When the user returns along the original path in the real scene, the preset display space can be hidden and the target display space can be displayed to the user again.
[0073] In this embodiment, after the target display space is displayed to the user or the preset display space is displayed to the user, the user can also interact with the product in the virtual scene, that is, the user's interaction gesture can be obtained, and then the product can be adjusted according to the interaction gesture. The adjustment includes one or more of scaling the product size, moving the product position, rotating the displayed product, and hiding / reproducing the product.
[0074] The product display method based on augmented reality provided in this embodiment can not only construct a virtual product display scene with the real environment in which the user is currently located as the background, but also display a preset completely virtual product display scene to the user after the scene switching condition is triggered during the user's movement. Therefore, it can satisfy the user's experience of products in different virtual spaces during the movement, bring a strong sense of freshness and immersion to the user, improve the user experience, and then increase the number of user orders.
[0075] Example 2
[0076] This embodiment provides a product display method based on augmented reality, such as Figure 2 As shown, the product display method is further improved on the basis of Example 1.
[0077] In this embodiment, step S10 may include:
[0078] Step S101: calling a camera to collect video data in the target space, where the camera is located on the user's smart terminal;
[0079] The smart terminal may be a mobile phone or a tablet computer, and the user may hold the smart terminal so that the camera can completely collect video data in the target space where the user is located.
[0080] When the user holds the smart terminal, the real-time coordinates of the user can be reflected by detecting the real-time coordinates of the smart terminal.
[0081] Furthermore, after obtaining the video data of the target space, the step S11 may specifically include:
[0082] Step S111: extracting a preset number of temporally continuous static images from the video data;
[0083] Step S112: Generate the virtual space using the static image;
[0084] In order to ensure that the fusion between the virtual model and the virtual space is not abrupt, the step S13 may include the following steps:
[0085] Step S131: acquiring the posture information and the position information of the smart terminal, and correcting the virtual model coordinate system in the virtual space with the posture information and the position information, so that the viewing angle of the virtual model coordinate system is consistent with the viewing angle of the camera;
[0086] Step S132: adding the virtual model into the virtual model coordinate system.
[0087] In this embodiment, the virtual space can be built using the arkit framework or arcore framework in AR technology, and the virtual model can also be rendered using Frostfire (a three-dimensional model rendering engine), and the rendering can include modifying the material properties of the model, modifying the color of the model, etc.
[0088] Preferably, the specific principle of correcting the virtual model coordinate system using the posture information and position information is as follows:
[0089] Construct the world transformation matrix TransformMatrix of ARCamera (camera).
[0090]
[0091] Among them, the position vector of the camera is P = [Px, Py, Pz], M00~M22 stores the rotation information of the camera, and the camera is not scaled when shooting.
[0092] An inverse operation is performed on the world transformation matrix TransformMatrix to obtain an inverse matrix of the world transformation matrix, that is, a view transformation matrix ViewTransformMatrix.
[0093]
[0094] Among them, the Up vector of the view transformation matrix can be expressed as U = [Ux, Uy, Uz], and the Look vector of the view transformation matrix can be expressed as D = [-Dx, -Dy, -Dz].
[0095] In addition, R=[Rx, Ry, Rz] represents the right coordinate axis, P·R represents the dot product of vector P and vector R, P·U represents the dot product of vector P and vector U, and P·D represents the dot product of vector P and vector D.
[0096] The position vector, the Up vector, and the Look vector can be used to indicate the viewing angle information of the camera. Since the user is constantly moving, the camera is also constantly moving, and the position vector, the Up vector, and the Look vector will also change in real time. The position vector, the Up vector, and the Look vector are used to correct the virtual model coordinate system in real time so that the viewing angle of the virtual model coordinate system is always consistent with the viewing angle of the camera.
[0097] In this embodiment, the current running direction, tilt angle, and relative distance from the horizontal plane of the smart terminal can be known through the posture information and position information, and the posture information and position information of the camera are consistent with the posture information and position information of the smart terminal. When the smart terminal is tilted at a certain angle relative to the ground, it can be considered that the camera's viewing angle is also tilted at a certain angle along the ground. At this time, the virtual model coordinate system can also be rotated by a corresponding angle relative to the horizontal line as a whole, so that the virtual model placed in the virtual model coordinate system can conform to the camera's viewing angle. In addition, looking along the positive direction of the running direction of the smart terminal, the virtual product should have a visual perspective effect of near large and far small, so that the displayed virtual product is more realistic.
[0098] It should be noted that before displaying the preset display space to the user, the viewing angle of the preset display space can also be adjusted to be consistent with the viewing angle of the camera of the smart terminal, so that after the scene is switched, the user's line of sight can naturally transition to the preset display space.
[0099] Furthermore, the virtual space may also include reference objects;
[0100] The step S132 may further include:
[0101] Step S133: Calculating a scaling ratio of the actual size of the reference object relative to the size of the reference object in the virtual space;
[0102] Step S134: adjusting the size of the virtual model in the virtual model coordinate system according to the scaling ratio.
[0103] In this way, the virtual model and the virtual space can be more coordinated, further improving the user's sense of immersion.
[0104] The product display method based on augmented reality provided in this embodiment can make the virtual model and the virtual space more compatible by adjusting the perspective of the virtual model to be consistent with the perspective of the camera of the smart terminal. In addition, by adjusting the size of the virtual model, the virtual model and the virtual space can be more coordinated, further improving the user's sense of immersion.
[0105] Example 3
[0106] This embodiment provides a product display system based on augmented reality. Figure 3 As shown, the product display system may include:
[0107] The video data acquisition module 110 is used to acquire video data in a target space, where the target space is the environment space where the user is currently located; specifically, the target space is a real space in reality, and the user can move around in the target space. For example, if the user is currently standing in a square, the open space where the square is located can be considered as the target space; if the user is currently in a stadium, the closed space in the stadium can be considered as the target space.
[0108] The virtual space construction module 111 is used to construct a virtual space using the video data; the virtual space truly reflects the environment information of the user and can be used as a background space for product display.
[0109] A virtual model calling module 112 is used to obtain the target product selected by the user and call the virtual model corresponding to the target product;
[0110] In this embodiment, the user can select a specific product (eg, refrigerator) or a product category (household appliances) that he / she intends to purchase, and upon receiving the user's selection command, the stored product virtual model can be retrieved from the database.
[0111] A fusion module 113, used for adding the virtual model into the virtual space to form a target display space;
[0112] Furthermore, the virtual model is added to a predetermined position in the virtual space, which may also be referred to as a positioning point (ie, an anchor point).
[0113] The fusion module 113 can add the virtual model corresponding to the product that the user wants to buy into the aforementioned established virtual space, thereby constructing a target display space that simulates displaying the product in the real environment where the user is located, thereby improving the user's sense of immersion.
[0114] A location acquisition module 114 is used to acquire the real-time coordinates of the user when moving;
[0115] A determination module 115, used to determine whether the real-time coordinate exceeds the preset coordinate;
[0116] If not, calling the first display module 116, the first display module is used to display the target display space to the user;
[0117] If so, the second display module 117 is called, and the second display module is used to hide the target display space and display a preset display space to the user, where the preset display space includes a preset virtual space and a preset virtual product.
[0118] Furthermore, the product display system may also include an interactive information acquisition module 118 and an adjustment module 119, wherein the interactive information acquisition module 118 is used to acquire the user's interactive gestures; the adjustment module 119 is used to adjust the product according to the interactive gestures, and the adjustment includes one or more of scaling the product size, moving the product position, rotating the displayed product, and hiding / reproducing the product.
[0119] In this embodiment, the user can move around in the real environment, and the user's position coordinates can be monitored in real time and fed back to the virtual space in a timely manner. If the real-time coordinates exceed the preset coordinates when the user reaches a certain position, it can be considered that the user has triggered the entrance to another scene. At this time, the target display space is automatically hidden, and the preset display space is displayed to the user. The preset display space includes a preset virtual space and preset virtual products. The preset virtual space is another completely virtual shopping space and has nothing to do with the real environment where the user is currently located. The preset virtual products are products displayed in another shopping space. Among them, the preset virtual products set in the preset virtual space can be the same as or related to the product types of the virtual models in the aforementioned target display space, so that more products that users are interested in purchasing can be recommended to users, thereby increasing the probability of users placing orders.
[0120] When the user returns along the original path in the real scene, the preset display space can be hidden and the target display space can be displayed to the user again.
[0121] When the augmented reality-based product display system provided in this embodiment is running, it can not only build a virtual product display scene with the user's current real environment as the background, but also display a preset completely virtual product display scene to the user after the scene switching condition is triggered during the user's movement. Therefore, it can satisfy the user's experience of products in different virtual spaces during the movement, bring a strong sense of freshness and immersion to the user, improve the user experience, and then increase the number of user orders.
[0122] Example 4
[0123] This embodiment provides a product display system based on augmented reality. Figure 4 As shown, the product display system is a further improvement based on Example 3.
[0124] Furthermore, the video data acquisition module 110 is used to call a camera to collect video data in the target space, and the camera is located on the user's smart terminal;
[0125] The smart terminal may be a mobile phone or a tablet computer, and the user may hold the smart terminal so that the camera can completely collect video data in the target space where the user is located.
[0126] When the user holds the smart terminal, the real-time coordinates of the user can be reflected by detecting the real-time coordinates of the smart terminal.
[0127] The virtual space construction module 111 is used to extract a preset number of temporally continuous static images from the video data, and generate the virtual space using the static images;
[0128] In order to ensure that the fusion between the virtual model and the virtual space is not abrupt, the fusion module 113 is also used to obtain the posture information and position information of the smart terminal, and use the posture information and the position information to correct the virtual model coordinate system in the virtual space, so that the viewing angle of the virtual model coordinate system is consistent with the viewing angle of the camera; the fusion module is also used to add the virtual model to the virtual model coordinate system.
[0129] Furthermore, the virtual space may also include reference objects;
[0130] The product display system may further include a calculation module 120 and a size adjustment module 121, wherein the calculation module 120 is used to calculate a scaling ratio of the actual size of the reference object relative to the size of the reference object in the virtual space;
[0131] The size adjustment module 121 is used to adjust the size of the virtual model in the virtual model coordinate system according to the scaling ratio.
[0132] It should be noted that before displaying the preset display space to the user, the adjustment module 119 can also adjust the viewing angle of the preset display space to be consistent with the viewing angle of the camera of the smart terminal, so that after the scene is switched, the user's line of sight can naturally transition to the preset display space.
[0133] In this embodiment, the virtual space can be built using the arkit framework or arcore framework in AR technology, and the virtual model can be rendered using Frostfire (a three-dimensional model rendering engine). The rendering can include modifying the material properties of the model, modifying the color of the model, etc.
[0134] Preferably, the specific principle of correcting the virtual model coordinate system using the posture information and position information is as follows:
[0135] Construct the world transformation matrix TransformMatrix of ARCamera (camera).
[0136]
[0137] Among them, the position vector of the camera is P = [Px, Py, Pz], M00~M22 stores the rotation information of the camera, and the camera is not scaled when shooting.
[0138] An inverse operation is performed on the world transformation matrix TransformMatrix to obtain an inverse matrix of the world transformation matrix, that is, a view transformation matrix ViewTransformMatrix.
[0139]
[0140] Among them, the Up vector of the view transformation matrix can be expressed as U = [Ux, Uy, Uz], and the Look vector of the view transformation matrix can be expressed as D = [-Dx, -Dy, -Dz].
[0141] In addition, R=[Rx, Ry, Rz] represents the right coordinate axis, P·R represents the dot product of vector P and vector R, P·U represents the dot product of vector P and vector U, and P·D represents the dot product of vector P and vector D.
[0142] The position vector, the Up vector, and the Look vector can be used to indicate the viewing angle information of the camera. Since the user is constantly moving, the camera is also constantly moving, and the position vector, the Up vector, and the Look vector will also change in real time. The position vector, the Up vector, and the Look vector are used to correct the virtual model coordinate system in real time so that the viewing angle of the virtual model coordinate system is always consistent with the viewing angle of the camera.
[0143] In this embodiment, the current running direction, tilt angle, and relative distance from the horizontal plane of the smart terminal can be known through the posture information and position information, and the posture information and position information of the camera are consistent with the posture information and position information of the smart terminal. When the smart terminal is tilted at a certain angle relative to the ground, it can be considered that the camera's viewing angle is also tilted at a certain angle along the ground. At this time, the virtual model coordinate system can also be rotated by a corresponding angle relative to the horizontal line as a whole, so that the virtual model placed in the virtual model coordinate system can conform to the camera's viewing angle. In addition, looking along the positive direction of the running direction of the smart terminal, the virtual product should have a visual perspective effect of near large and far small, so that the displayed virtual product is more realistic.
[0144] When the product display system based on augmented reality provided in this embodiment is running, the perspective of the virtual model can be adjusted to be consistent with the perspective of the camera of the smart terminal, so that the virtual model and the virtual space have a higher degree of fit. In addition, by adjusting the size of the virtual model, the virtual model and the virtual space can be more coordinated, further improving the user's immersion.
[0145] Example 5
[0146] The present invention also provides an electronic device, such as Figure 5 As shown, the electronic device may include a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the augmented reality-based product display method in the aforementioned embodiment 1 or embodiment 2 are implemented.
[0147] Understandably, Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0148] like Figure 5 As shown, the electronic device 2 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 2 may include, but are not limited to, the at least one processor 3, the at least one memory 4, and a bus 5 connecting different system components (including the memory 4 and the processor 3).
[0149] The bus 5 may include a data bus, an address bus and a control bus.
[0150] The memory 4 may include a volatile memory, such as a random access memory (RAM) 41 and / or a cache memory 42 , and may further include a read-only memory (ROM) 43 .
[0151] The memory 4 may also include a program tool 45 (or utility) having a set (at least one) of program modules 44, such program modules 44 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0152] The processor 3 executes various functional applications and data processing by running the computer program stored in the memory 4, such as the steps of the product display method based on augmented reality in Embodiment 1 or Embodiment 2 of the present invention.
[0153] The electronic device 2 may also communicate with one or more external devices 6 (e.g., keyboard, pointing device, etc.). Such communication may be performed via an input / output (I / O) interface 7. Furthermore, the model generating electronic device 2 may also communicate with one or more networks (e.g., a local area network LAN, a wide area network WAN, and / or a public network) via a network adapter 8.
[0154] like Figure 5 As shown, the network adapter 8 can communicate with other modules of the model-generated electronic device 2 through the bus 5. It should be understood by those skilled in the art that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the model-generated electronic device 2, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0155] It should be noted that, although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more units / modules described above may be embodied in one unit / module. Conversely, the features and functions of one unit / module described above may be further divided into multiple units / modules for embodiment.
[0156] Example 6
[0157] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the product display method based on augmented reality in Embodiment 1 or Embodiment 2 are implemented.
[0158] Among them, more specific forms in which computer-readable storage media can be used include but are not limited to: portable disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, optical storage devices, magnetic storage devices, or any suitable combination of the above.
[0159] In a possible implementation, the present invention can also be implemented in the form of a program product, which includes program code. When the program product runs on a terminal device, the program code is used to enable the terminal device to execute the steps of the augmented reality-based product display method in Example 1 or Example 2.
[0160] Among them, the program code for executing the present invention can be written in any combination of one or more programming languages, and the program code can be executed completely on the user device, partially on the user device, as an independent software package, partially on the user device and partially on a remote device, or completely on the remote device.
[0161] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A product display method based on augmented reality, It is characterized in that The product display method comprises: Acquire video data in a target space, where the target space is the environment space where the user is currently located; constructing a virtual space using the video data; Acquire the target product selected by the user, and retrieve the virtual model corresponding to the target product; Adding the virtual model into the virtual space to form a target display space; Obtaining location information of the user; Determining whether the location information meets a preset condition; If not, displaying the target display space to the user; If so, hiding the target display space and displaying a preset display space to the user, the preset display space including a preset virtual space and a preset virtual product; Among them, the target display space is a virtual space that simulates displaying the target product in the user's current environment, the preset virtual space is another virtual space unrelated to the user's current environment, and the preset virtual product is a product displayed in another virtual space unrelated to the user's current environment.
2. The product display method based on augmented reality as claimed in claim 1, It is characterized in that The step of acquiring the video data in the target space includes: calling a camera to collect the video data in the target space, the camera being located on the user's smart terminal; The step of adding the virtual model into the virtual space comprises: Acquire the posture information and the position information of the smart terminal, and correct the virtual model coordinate system in the virtual space with the posture information and the position information, so that the viewing angle of the virtual model coordinate system is consistent with the viewing angle of the camera; The virtual model is added into the virtual model coordinate system.
3. The product display method based on augmented reality as claimed in claim 2, It is characterized in that The virtual space includes a reference object; After the step of adding the virtual model into the virtual model coordinate system, the following step further comprises: calculating a scaling ratio of an actual size of the reference object relative to a size of the reference object in the virtual space; The size of the virtual model in the virtual model coordinate system is adjusted according to the scaling ratio.
4. The product display method based on augmented reality according to claim 1, It is characterized in that The step of obtaining the location information of the user comprises: Obtaining the real-time coordinates of the user when moving; The step of determining whether the location information meets a preset condition comprises: Determine whether the real-time coordinates belong to a preset coordinate range.
5. The product display method based on augmented reality according to any one of claims 1 to 4, It is characterized in that The step of constructing a virtual space using the video data comprises: extracting a preset number of temporally continuous static images from the video data; generating the virtual space using the static images; and / or, After the step of displaying the target display space to the user, the method further includes: obtaining the user's interactive gesture; adjusting the target product according to the interactive gesture, wherein the adjustment includes one or more of scaling the product size, moving the product position, rotating the displayed product, and hiding / reproducing the product.
6. A product display system based on augmented reality, It is characterized in that The product display system comprises: A video data acquisition module is used to acquire video data in a target space, where the target space is the environment space where the user is currently located; A virtual space construction module, used to construct a virtual space using the video data; A virtual model calling module, used to obtain the target product selected by the user and call the virtual model corresponding to the target product; A fusion module, used for adding the virtual model into the virtual space to form a target display space; A location acquisition module, used to acquire the location information of the user; A judging module, used to judge whether the location information meets a preset condition; If not, calling a first display module, wherein the first display module is used to display the target display space to the user; If yes, calling a second display module, the second display module is used to hide the target display space and display a preset display space to the user, the preset display space includes a preset virtual space and a preset virtual product; Among them, the target display space is a virtual space that simulates displaying the target product in the user's current environment, the preset virtual space is another virtual space unrelated to the user's current environment, and the preset virtual product is a product displayed in another virtual space unrelated to the user's current environment.
7. The product display system based on augmented reality as claimed in claim 6, It is characterized in that The video data acquisition module is used to call a camera to collect video data in the target space, and the camera is located on the user's smart terminal; The fusion module is used to obtain the posture information and position information of the smart terminal, and use the posture information and the position information to correct the virtual model coordinate system in the virtual space so that the viewing angle of the virtual model coordinate system is consistent with the viewing angle of the camera; the fusion module is also used to add the virtual model into the virtual model coordinate system.
8. The product display system based on augmented reality as claimed in claim 7, It is characterized in that The virtual space includes a reference object; The product display system further includes a calculation module and a size adjustment module, wherein the calculation module is used to calculate a scaling ratio of the actual size of the reference object relative to the size of the reference object in the virtual space; The size adjustment module is used to adjust the size of the virtual model in the virtual model coordinate system according to the scaling ratio.
9. The product display system based on augmented reality as claimed in claim 6, It is characterized in that The position acquisition module is used to acquire the real-time coordinates of the user when moving; the judgment module is used to judge whether the real-time coordinates belong to a preset coordinate range.
10. The product display system based on augmented reality according to any one of claims 6 to 9, It is characterized in that The virtual space construction module is used to extract a preset number of temporally continuous static images from the video data, and generate the virtual space using the static images; and / or, The product display system also includes an interaction information acquisition module and an adjustment module. The interaction information acquisition module is used to acquire the user's interaction gestures; the adjustment module is used to adjust the target product according to the interaction gestures, and the adjustment includes one or more of scaling the product size, moving the product position, rotating the displayed product, and hiding / reproducing the product.
11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the product display method based on augmented reality described in any one of claims 1 to 5 are implemented.
12. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the product display method based on augmented reality described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Augmented reality model adjustment method, device, storage medium and electronic equipment
CN108537889A
AR-based exhibit guide device and method, and storage medium
CN109741462A
An augmented reality-based online shopping assistance method, system and device, and a storage medium
CN109919716A
Method and Device for Adjusting Virtual Reality Image
US20180276897A1
