CN113760209B - Virtual object replacement method - Google Patents

Virtual object replacement method Download PDF

Info

Publication number
CN113760209B
CN113760209B CN202110839039.2A CN202110839039A CN113760209B CN 113760209 B CN113760209 B CN 113760209B CN 202110839039 A CN202110839039 A CN 202110839039A CN 113760209 B CN113760209 B CN 113760209B
Authority
CN
China
Prior art keywords
interaction identifier
target
key
identifier
virtual object
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110839039.2A
Other languages
Chinese (zh)
Other versions
CN113760209A (en
Inventor
陶宁
杨洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beike Technology Co Ltd
Original Assignee
Beike Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beike Technology Co Ltd filed Critical Beike Technology Co Ltd
Priority to CN202110839039.2A priority Critical patent/CN113760209B/en
Publication of CN113760209A publication Critical patent/CN113760209A/en
Application granted granted Critical
Publication of CN113760209B publication Critical patent/CN113760209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a virtual object replacement method. The method is used for identifying the terminal and comprises the following steps: identifying a target object in the object display book, and acquiring a target interaction identifier corresponding to the target object; sending the target interaction identifier to the display terminal so that the display terminal obtains a target object corresponding to the target interaction identifier to replace the virtual object to be processed; wherein the virtual object to be processed is determined by the display terminal in response to user input of the virtual object displayed in the display terminal. According to the virtual object replacing method, the target interaction identification in the real physical environment is obtained by utilizing the identification terminal and is sent to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identification, and the target object replaces the object to be processed in the virtual scene, so that the problem that the virtual scene cannot interact with the real physical environment is solved.

Description

Virtual object replacement method
Technical Field
The invention relates to the technical field of computers, in particular to a virtual object replacement method.
Background
With the development of science and technology, virtual scenes are applied to more and more industry fields. The application to the virtual scene mainly refers to that the target environment and/or the target object are displayed through the virtual scene.
Currently, all application requirements for a virtual scene include a target requirement for interaction of the virtual scene with a real physical environment. However, in the prior art, the interaction of the virtual scene is realized by operating an interface of a target application or a target webpage carrying the virtual scene, and the interaction of the object in the virtual scene and other virtual objects is realized. However, in the case of interaction between the virtual scene and the real physical environment, the interaction cannot be realized.
Disclosure of Invention
Aiming at the problems in the prior art, the embodiment of the invention provides a virtual object replacing method.
The invention provides a virtual object replacing method, which is used for identifying a terminal and comprises the following steps:
identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object;
The target interaction identifier is sent to a display terminal, so that the display terminal obtains a target object corresponding to the target interaction identifier to replace a virtual object to be processed;
the virtual object to be processed is determined by the display terminal in response to input of a user on the virtual object displayed in the display terminal.
According to the method for replacing the virtual object provided by the invention, before the target interaction identifier corresponding to the target object is obtained, the method further comprises the following steps:
Acquiring a first key and batch information corresponding to the object display book;
And storing the first key and the batch information in a server in a corresponding manner.
According to the method for replacing the virtual object provided by the invention, the obtaining the target interaction identifier corresponding to the target object comprises the following steps:
Acquiring the preset interaction identifier corresponding to the target object;
Performing exclusive OR processing on the preset interaction identifier and the first key to generate the original interaction identifier;
and processing the original interaction identifier to generate the target interaction identifier.
According to the method for replacing the virtual object provided by the invention, the original interaction identifier is processed to generate the target interaction identifier, which comprises the following steps:
Obtaining a second key, performing exclusive-or processing on the original interaction identifier and the second key, and generating an intermediate interaction identifier; wherein the second key is generated for physical address processing of the identification terminal;
And processing the intermediate interaction identifier to generate the target interaction identifier.
According to the method for replacing the virtual object provided by the invention, the processing of the intermediate interaction identifier and the generation of the target interaction identifier comprise the following steps:
Performing exclusive OR processing on the intermediate interaction identifier and a prestored third key to generate the target interaction identifier;
the third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
The invention provides a virtual object replacing method, which is used for a display terminal and comprises the following steps:
responding to the input of a user to the virtual object displayed in the display terminal, and determining a virtual object to be processed;
receiving a target interaction identifier sent by an identification terminal; the target interaction identification is obtained by the identification terminal identifying a target object in an object display book;
Acquiring the target object corresponding to the target interaction identifier;
and replacing the virtual object to be processed with the target object.
According to the method for replacing a virtual object provided by the invention, before the target object corresponding to the target interaction identifier is obtained, the method further comprises the following steps:
Acquiring batch information corresponding to the object display book;
inquiring the server side to obtain a first key corresponding to the batch information.
According to the method for replacing a virtual object provided by the invention, the obtaining the target object corresponding to the target interaction identifier includes:
Performing exclusive OR processing on the target interaction identifier and a prestored third key to generate an intermediate interaction identifier; the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage;
processing the intermediate interaction identifier to generate the preset interaction identifier;
sending the preset interaction identifier to a server to obtain the target object corresponding to the preset interaction identifier; the server stores the preset interaction identifiers with corresponding relations and virtual models of all objects contained in the object display book.
According to the method for replacing the virtual object provided by the invention, the processing the intermediate interaction identifier to generate the preset interaction identifier comprises the following steps:
Performing exclusive OR processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier; the second secret key is obtained and stored by obtaining the physical address of the identification terminal and processing the physical address;
And processing the original interaction identifier to generate the preset interaction identifier.
According to the method for replacing the virtual object provided by the invention, the processing of the original interaction identifier and the generation of the preset interaction identifier comprise the following steps:
And performing exclusive OR processing on the original interaction identifier and the first key to generate the preset interaction identifier.
The invention also provides a device for replacing the virtual object, which is used for identifying the terminal and comprises the following steps:
The acquisition module is used for identifying a target object in the object display book and acquiring a target interaction identifier corresponding to the target object;
The replacing module is used for sending the target interaction identifier to a display terminal so that the display terminal can acquire a target object corresponding to the target interaction identifier to replace a virtual object to be processed;
the virtual object to be processed is determined by the display terminal in response to input of a user on the virtual object displayed in the display terminal.
According to the replacing device for the virtual object provided by the invention, the acquiring module is further used for:
Acquiring a first key and batch information corresponding to the object display book;
And storing the first key and the batch information in the server in a corresponding mode.
According to the replacing device of the virtual object provided by the invention, the acquiring module comprises:
the acquisition sub-module is used for acquiring the preset interaction identifier corresponding to the target object;
The processing sub-module is used for performing exclusive-or processing on the preset interaction identifier and the first key to generate the original interaction identifier;
and the generation sub-module is used for processing the original interaction identifier and generating the target interaction identifier.
According to the virtual object replacing device provided by the invention, the generating submodule is specifically used for:
Obtaining a second key, performing exclusive-or processing on the original interaction identifier and the second key, and generating an intermediate interaction identifier; wherein the second key is generated for physical address processing of the identification terminal;
And processing the intermediate interaction identifier to generate the target interaction identifier.
According to the replacing device of the virtual object provided by the invention, the generating sub-module is further used for:
Performing exclusive OR processing on the intermediate interaction identifier and a prestored third key to generate the target interaction identifier;
the third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
The invention also provides a device for replacing the virtual object, which is used for the display terminal and comprises:
the response module is used for responding to the input of the user to the virtual object displayed in the display terminal and determining the virtual object to be processed;
The receiving module is used for receiving the target interaction identifier sent by the identification terminal; the target interaction identification is obtained by the identification terminal identifying a target object in an object display book;
the acquisition module is used for acquiring the target object corresponding to the target interaction identifier;
And the replacing module is used for replacing the virtual object to be processed into the target object.
According to the replacing device for the virtual object provided by the invention, the acquiring module is further used for:
Acquiring batch information corresponding to the object display book;
inquiring the server side to obtain a first key corresponding to the batch information.
According to the replacing device of the virtual object provided by the invention, the acquiring module comprises:
The processing sub-module is used for performing exclusive or processing on the target interaction identifier and the prestored third key to generate an intermediate interaction identifier; the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage;
The generation sub-module is used for processing the intermediate interaction identifier and generating the preset interaction identifier;
The acquisition sub-module is used for sending the preset interaction identifier to a server and acquiring the target object corresponding to the preset interaction identifier; the server stores the preset interaction identifiers with corresponding relations and virtual models of all objects contained in the object display book.
According to the virtual object replacing device provided by the invention, the generating submodule is specifically used for:
Performing exclusive OR processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier; the second secret key is obtained and stored by obtaining the physical address of the identification terminal and processing the physical address;
And processing the original interaction identifier to generate the preset interaction identifier.
According to the replacing device of the virtual object provided by the invention, the generating sub-module is further used for:
And performing exclusive OR processing on the original interaction identifier and the first key to generate the preset interaction identifier.
The invention also provides a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the method of replacing a virtual object as described in any of the above.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the virtual object replacement method as described in any of the above.
According to the virtual object replacement method, the target interaction identification in the real physical environment is obtained by using the identification terminal and is sent to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identification, and the target object replaces the object to be processed in the virtual scene, so that the problem that the virtual scene cannot interact with the real physical environment is solved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an alternative method (for identifying a terminal) of a virtual object according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a first flow for generating a target interaction identifier in an alternative method (for identifying a terminal) for a virtual object according to an embodiment of the present invention;
FIG. 3 is a second flow chart of generating a target interaction identifier in an alternative method (for identifying a terminal) for a virtual object according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a refinement of an alternative method (for identifying a terminal) of a virtual object according to an embodiment of the present invention;
fig. 5 is a schematic flow chart of an alternative method (for a display terminal) of a virtual object according to an embodiment of the present invention;
fig. 6 is a schematic flow chart of acquiring a target object corresponding to a target interaction identifier in a virtual object replacement method (for a display terminal) provided in an embodiment of the present invention;
fig. 7 is a schematic diagram of a refinement flow of an alternative method (for a display terminal) of a virtual object according to an embodiment of the present invention;
Fig. 8 is an interaction flow diagram of an alternative method (in which an identification terminal interacts with a display terminal) of a virtual object according to an embodiment of the present invention;
Fig. 9 is a schematic structural diagram of an alternative device (for identifying a terminal) for a virtual object according to an embodiment of the present invention;
Fig. 10 is a schematic structural diagram of an alternative device (for a display terminal) for a virtual object according to an embodiment of the present invention;
fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The figures are merely examples and are not drawn to scale. As used herein, the term "preferred" and similar terms are used as a table approximation, not as a table degree, and are intended to illustrate inherent deviations in measured or calculated values that would be recognized by one of ordinary skill in the art. It should be noted that in this specification, the expressions "first", "second", "third", etc. are used only to distinguish one feature from another feature, and do not denote any limitation of the features, particularly do not denote any order of precedence.
It will be further understood that terms such as "comprises," "comprising," "includes," "including," and/or "having," are intended to be inclusive and not to open ended as defined in the specification, and to exclude the presence of other features, elements, components, and/or groups thereof. Furthermore, when describing embodiments of the application, use of "may" means "one or more embodiments of the application. Also, the term "exemplary" is intended to refer to an example or illustration.
Unless otherwise defined, all terms (including engineering and technical terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application pertains. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In order to solve the problems existing in the prior art, an embodiment of the present invention provides an alternative method for a virtual object.
First, terms related to one or more embodiments of the present invention will be explained.
The identification terminal is a hardware platform for identifying the identification corresponding to each application object, such as a touch-and-talk pen, a code scanner and other hardware platform products. The identifier corresponding to each application object refers to a flag representing related information such as a name, a specification, a color, a category, and the like of each application object.
The display terminal is a hardware platform for three-dimensionally exhibiting the virtual object.
A virtual object refers to an object having a virtualized three-dimensional structure.
Fig. 1 is a flow chart illustrating an alternative method (for identifying a terminal) of a virtual object according to an embodiment of the present invention. As shown in fig. 1, the method includes:
Step 101, identifying a target object in the object display book, and obtaining a target interaction identifier corresponding to the target object.
Specifically, the object display album refers to a display album containing a plurality of objects in a real environment, for example, the object display album can be a decoration article selection album used for house decoration. The target interaction identifier is a processed identifier representing the related information of the name, specification, color, category and the like of each object.
It should be noted that, in the object display book, each object corresponds to a unique original interaction identifier.
And 102, sending the target interaction identifier to the display terminal so that the display terminal acquires the target object corresponding to the target interaction identifier to replace the virtual object to be processed.
Wherein the virtual object to be processed is determined by the display terminal in response to user input of the virtual object displayed in the display terminal. In addition, before the target interaction identifier corresponding to the target object is obtained, the steps further executed include:
step S1, a first key and batch information corresponding to an object display list are obtained.
Specifically, the batch information refers to related information printed in a preset area of the object display album, and represents the printing batch of the object display album. The first key is an encryption key which is determined when the object display album is printed and printed on the object display album.
Step S2, the first secret key and the batch information are stored in the server in a corresponding mode.
Illustratively, if the first key is key1, key2, and key3, respectively, and the batch information corresponding to key1 is ba, the batch information corresponding to key2 is bb, and the batch information corresponding to key3 is bc, then key1, ba; key2, bb and key3, bc are stored in the server.
Based on the above embodiment, the method for replacing the virtual object provided by the invention obtains the target interaction identifier in the real physical environment by using the identification terminal and sends the target interaction identifier to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identifier, and replaces the object to be processed in the virtual scene by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Based on the above embodiments, fig. 2 is a first flowchart of generating a target interaction identifier in an alternative method (for identifying a terminal) of a virtual object according to an embodiment of the present invention. As shown in fig. 2, a first process for generating a target interaction identifier includes:
step 201, obtaining a preset interaction identifier corresponding to a target object.
Specifically, the preset interactive identifier is a preset mark corresponding to each object in the object display list and representing related information such as a name, a specification, a color, a category and the like of the related object.
For example, if the object display album is a decoration article album for house decoration, the album may include a plurality of decoration articles such as sofa with various colors, foldable single bed, non-foldable double bed, floor, wallpaper, curtains with various colors with various specifications, various lamps, and so on; the interactive identification is preset, and corresponding to the preset code points representing the relevant information of each decoration article, which are printed in each decoration article picture such as sofa picture, single bed picture, double bed picture and floor picture and the like, and are not easy to perceive.
And 202, performing exclusive OR processing on the preset interaction identifier and the first key to generate an original interaction identifier.
Illustratively, if the preset interaction identifier is Va, the first key is Keya, and Va Keya is executed, the original interaction identifier Vb is obtained.
And 203, processing the original interaction identifier to generate a target interaction identifier.
Based on the above embodiment, the data integrity and security of the preset interaction identifier can be improved before the preset interaction identifier is acquired and transmitted.
Based on the above embodiments, fig. 3 is a second flowchart of generating a target interaction identifier in an alternative method (for identifying a terminal) of a virtual object according to an embodiment of the present invention. As shown in fig. 3, a second process for generating a target interaction identifier includes:
Step 301, obtaining a second key, performing exclusive-or processing on the original interaction identifier and the second key, and generating an intermediate interaction identifier.
Wherein the second key is generated for processing a physical address of the identification terminal.
Correspondingly, the second key is obtained by taking the lower 32 bits identifying the physical address of the terminal.
Illustratively, if the original interaction identifier is Vb, the second key is Keym, and Vb Keym is executed, the intermediate interaction identifier Vc may be obtained.
Step 302, the intermediate interaction identifier is processed to generate a target interaction identifier.
Specifically, step 302 includes:
and performing exclusive OR processing on the intermediate interaction identifier and the prestored third key to generate a target interaction identifier.
The third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
Illustratively, if the intermediate interaction identifier is Vc, the third key is Keyb, and Vc Keyb is performed, the target interaction identifier Vd is obtained.
Based on the above embodiments, the data integrity and security of the original interaction identifier may be improved before the original interaction identifier is transmitted.
Based on the above embodiments, fig. 4 is a schematic flowchart of a refinement of an alternative method (for identifying a terminal) of virtual objects provided according to an embodiment of the present invention. As shown in fig. 4, the method includes:
Step 401, identifying a target object in an object display book.
Step 402, obtaining a first key and batch information corresponding to the object display book.
In step 403, the first key and the batch information are stored in the server.
Step 404, obtaining a preset interaction identifier corresponding to the target object.
And 405, performing exclusive OR processing on the preset interaction identifier and the first key to generate an original interaction identifier. And 406, obtaining a second key, performing exclusive OR processing on the original interaction identifier and the second key, and generating an intermediate interaction identifier.
Wherein the second key is generated for processing a physical address of the identification terminal.
And step 407, performing exclusive OR processing on the intermediate interaction identifier and the pre-stored third key to generate a target interaction identifier.
The third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
And step 408, sending the target interaction identifier to the display terminal so that the display terminal obtains the target object corresponding to the target interaction identifier to replace the virtual object to be processed.
Wherein the virtual object to be processed is determined by the display terminal in response to user input of the virtual object displayed in the display terminal.
Based on the above embodiment, the method for replacing the virtual object provided by the invention obtains the target interaction identifier in the real physical environment by using the identification terminal and sends the target interaction identifier to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identifier, and replaces the object to be processed in the virtual scene by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Fig. 5 is a flow chart illustrating an alternative method (for a display terminal) of a virtual object according to an embodiment of the present invention. As shown in fig. 5, the method includes:
In step 501, a virtual object to be processed is determined in response to a user input of a virtual object displayed in a display terminal.
Specifically, the virtual object to be processed refers to an object having a virtualized three-dimensional structure that needs replacement.
Step 502, receiving a target interaction identifier sent by an identification terminal.
The target interaction identification is obtained by identifying a target object in the terminal identification object display book.
Step 503, obtaining a target object corresponding to the target interaction identifier.
Specifically, the target object corresponding to the target interaction identifier refers to a virtual model of an object stored in the server corresponding to the target interaction identifier.
Step 504, replacing the virtual object to be processed as a target object.
In addition, before the target object corresponding to the target interaction identifier is acquired, the steps further executed include:
Step S1, obtaining batch information corresponding to an object display book.
Specifically, the object display album refers to a display album containing a plurality of objects in a real environment. The batch information refers to related information of the printing batch of the object display book, which is printed in a preset area of the object display book.
Step S2, inquiring the server to obtain a first key corresponding to the batch information.
Specifically, the query server refers to traversing the data storage area of the server.
The first key is an encryption key which is determined when the object display album is printed and printed on the object display album.
Based on the above embodiment, the virtual object replacing method provided by the invention obtains the target object by receiving the target interaction identifier, and replaces the object to be processed by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Based on the above embodiments, fig. 6 is a schematic flow chart of acquiring a target object corresponding to a target interaction identifier in a virtual object replacing method (for a display terminal) according to an embodiment of the present invention. As shown in fig. 6, obtaining a target object corresponding to a target interaction identifier includes:
And 601, performing exclusive OR processing on the target interaction identifier and the pre-stored third key to generate an intermediate interaction identifier.
The third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
Illustratively, if the target interaction identifier is Vd, the third key is Keyb, vd Keyb is performed, and the intermediate interaction identifier Vc can be obtained.
Step 602, processing the intermediate interaction identifier to generate a preset interaction identifier.
Specifically, step 602 includes:
And S1, performing exclusive OR processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier.
The second key is obtained and stored by obtaining the physical address of the identification terminal and processing the physical address.
Correspondingly, the second key is obtained by taking the lower 32 bits identifying the physical address of the terminal.
Illustratively, if the intermediate interaction identifier is Vc, the second key is Keym, and Vc Keym is performed, the original interaction identifier Vb is obtained.
And S2, processing the original interaction identifier to generate a preset interaction identifier.
Specifically, step S2 includes:
And performing exclusive OR processing on the original interaction identifier and the first key to generate a preset interaction identifier.
Illustratively, if the original interaction identifier is Vb, the first key is Keya, and vb≡ Keya is executed, the preset interaction identifier Va may be obtained.
Step 603, sending the preset interaction identifier to the server, and obtaining a target object corresponding to the preset interaction identifier.
The server stores a preset interaction identifier with a corresponding relation and a virtual model of each object contained in the object display book.
Specifically, the target object corresponding to the preset interaction identifier refers to a virtual model of the object corresponding to the preset interaction identifier.
Based on the above embodiment, the preset interaction identifier is generated by decrypting the target interaction identifier, so that the data integrity and the security of the preset interaction identifier in the transmission process are improved.
Based on the above embodiments, fig. 7 is a schematic flowchart of a method for replacing a virtual object (for a display terminal) according to an embodiment of the present invention. As shown in fig. 7, the method includes:
in step 701, a virtual object to be processed is determined in response to user input of the virtual object displayed in the display terminal.
And step 702, receiving a target interaction identifier sent by the identification terminal.
The target interaction identification is obtained by identifying a target object in the terminal identification object display book.
Step 703, obtaining batch information corresponding to the object display book.
Step 704, query the server to obtain the first key corresponding to the batch information.
Step 705, performing exclusive or processing on the target interaction identifier and the pre-stored third key, and generating an intermediate interaction identifier.
The third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
And 706, performing exclusive OR processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier.
The second key is obtained and stored by obtaining the physical address of the identification terminal and processing the physical address.
And step 707, performing exclusive or processing on the original interaction identifier and the first key to generate a preset interaction identifier.
Step 708, send the preset interaction identifier to the server, and obtain the target object corresponding to the preset interaction identifier.
The server stores a preset interaction identifier with a corresponding relation and a virtual model of each object contained in the object display book.
Step 709, replacing the virtual object to be processed as the target object.
Based on the above embodiment, the virtual object replacing method provided by the invention obtains the target object by receiving the target interaction identifier, and replaces the object to be processed by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Based on any of the above embodiments, fig. 8 is an interaction flow diagram of an alternative method (in which an identification terminal interacts with a display terminal) for a virtual object according to an embodiment of the present invention. As shown in fig. 8, the specific steps involved in the interaction flow of the virtual object replacement method include:
Step 801, a displayed virtual object is selected.
In step 802, a virtual object to be processed is determined in response to user input of the virtual object displayed in the display terminal.
Step 803, identifying a target object in the object display book, and obtaining a target interaction identifier corresponding to the target object.
Step 804, the target interaction identifier is sent.
In step 805, a target interaction identification is received.
Step 806, obtaining a target object corresponding to the target interaction identifier.
Step 807, replacing the virtual object to be processed as a target object.
The method for replacing a virtual object described in the above embodiment can be specifically described with reference to a specific application example.
For example, before building is finished, if different building effects are wanted to be felt, a sofa in a virtual scene showing the preset building finishing effects is prepared to be replaced, the identification terminal is a touch-and-talk pen with a short-distance wireless communication function, the display terminal is a tablet computer, and the object display book is a finishing option book. The step of replacing one sofa in the virtual scene displaying the preset house decoration effect comprises the following steps:
step one, a virtual object displayed is selected by a user.
And step two, responding to the input of the user to the virtual sofa displayed in the tablet personal computer, and determining the virtual sofa to be processed.
And thirdly, in a real environment, identifying the target sofa in the decoration option book by using a touch-and-talk pen, and obtaining a target interaction identifier corresponding to the target sofa.
And step four, sending the target interaction identification to the tablet personal computer by using the touch pen.
And fifthly, receiving the target interaction identifier sent by the touch-and-talk pen by the tablet personal computer.
And step six, acquiring a target sofa corresponding to the target interaction identifier at the tablet personal computer end.
And seventhly, replacing the virtual sofa to be treated as a target sofa.
Furthermore, the method for replacing the virtual object can be used in the process of replacing other objects such as floors, lamps, wallpaper, curtains and beds in a virtual scene showing the preset house decoration effect before house decoration.
It should be noted that, the above-mentioned method for replacing virtual objects may also be used in related fields such as computer vision, animation display, artificial intelligence, etc.
Based on the above embodiment, the method for replacing the virtual object provided by the invention obtains the target interaction identifier in the real physical environment by using the identification terminal and sends the target interaction identifier to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identifier, and replaces the object to be processed in the virtual scene by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Based on the above embodiments, fig. 9 is a schematic structural diagram of a virtual object replacing apparatus (for identifying a terminal) provided according to an embodiment of the present invention. As shown in fig. 9, the apparatus for identifying a terminal includes: an acquisition module 910 and a replacement module 920.
The obtaining module 910 is configured to identify a target object in the object display album, and obtain a target interaction identifier corresponding to the target object.
The obtaining module 910 is further configured to:
Acquiring a first key and batch information corresponding to an object display book;
and storing the first key and the batch information in the server in a corresponding manner.
Wherein, the obtaining module 910 includes: the device comprises an acquisition sub-module, a processing sub-module and a generation sub-module.
And the acquisition sub-module is used for acquiring a preset interaction identifier corresponding to the target object.
And the processing sub-module is used for carrying out exclusive OR processing on the preset interaction identifier and the first key to generate an original interaction identifier.
And the generation sub-module is used for processing the original interaction identifier and generating a target interaction identifier.
The generating submodule is specifically configured to:
obtaining a second key, performing exclusive OR processing on the original interaction identifier and the second key, and generating an intermediate interaction identifier; wherein the second key is generated for processing the physical address of the identification terminal;
And processing the intermediate interaction identifier to generate a target interaction identifier.
The generating sub-module is further configured to:
performing exclusive OR processing on the intermediate interaction identifier and the prestored third key to generate a target interaction identifier; the third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
The replacing module 920 is configured to send the target interaction identifier to the display terminal, so that the display terminal obtains a target object corresponding to the target interaction identifier to replace the virtual object to be processed; wherein the virtual object to be processed is determined by the display terminal in response to user input of the virtual object displayed in the display terminal.
Based on the above embodiment, the device for replacing virtual objects provided by the invention obtains the target interaction identifier in the real physical environment by using the identification terminal and sends the target interaction identifier to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identifier, and replaces the object to be processed in the virtual scene by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Based on the above embodiments, fig. 10 is a schematic structural view of a virtual object replacing apparatus (for a display terminal) provided according to one embodiment of the present invention. As shown in fig. 10, the apparatus is used for a display terminal, and includes: a response module 1010, a receiving module 1020, an obtaining module 1030, and a replacing module 1040.
And a response module 1010, configured to determine a virtual object to be processed in response to an input of the virtual object displayed in the display terminal by the user.
A receiving module 1020, configured to receive a target interaction identifier sent by the identification terminal; the target interaction identification is obtained by identifying a target object in the terminal identification object display book.
And the obtaining module 1030 is configured to obtain a target object corresponding to the target interaction identifier.
The obtaining module 1030 is further configured to:
Obtaining batch information corresponding to an object display book;
and inquiring the server to obtain a first key corresponding to the batch information.
Wherein, the obtaining module 1030 includes: the device comprises a processing sub-module, a generating sub-module and an acquiring sub-module.
The processing sub-module is used for performing exclusive or processing on the target interaction identifier and the prestored third key to generate an intermediate interaction identifier; the third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
The generation sub-module is used for processing the intermediate interaction identifier and generating a preset interaction identifier.
The acquisition sub-module is used for sending the preset interaction identifier to the server and acquiring a target object corresponding to the preset interaction identifier; the server stores a preset interaction identifier with a corresponding relation and a virtual model of each object contained in the object display book.
The generating submodule is specifically configured to:
performing exclusive OR processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier; the second secret key is obtained and stored by obtaining the physical address of the identification terminal and processing the physical address;
and processing the original interaction identifier to generate a preset interaction identifier.
The generating sub-module is further configured to:
And performing exclusive OR processing on the original interaction identifier and the first key to generate a preset interaction identifier.
And the replacing module 1040 is configured to replace the virtual object to be processed as a target object.
Based on the above embodiment, the virtual object replacing device provided by the invention obtains the target object by receiving the target interaction identifier, and replaces the object to be processed by the target object, thereby solving the problem that the virtual scene cannot interact with the real physical environment.
Fig. 11 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention. As shown in fig. 11, the electronic device may include: processor 1110, communication interface Communications Interface 1120, memory 1130, and communication bus 1140, wherein processor 1110, communication interface 1120, memory 1130 perform communication with each other through communication bus 1140. Processor 1110 may invoke logic instructions in memory 1130 to perform an alternative method of virtual objects for identifying a terminal, including: identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object; the target interaction identifier is sent to a display terminal, so that the display terminal obtains a target object corresponding to the target interaction identifier to replace a virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to input of a user on the virtual object displayed in the display terminal. The replacing method of the virtual object is used for the display terminal and comprises the following steps: responding to the input of a user to the virtual object displayed in the display terminal, and determining a virtual object to be processed; receiving a target interaction identifier sent by an identification terminal; the target interaction identification is obtained by the identification terminal identifying a target object in an object display book; acquiring the target object corresponding to the target interaction identifier; and replacing the virtual object to be processed with the target object.
Further, the logic instructions in the memory 1130 described above may be implemented in the form of software functional units and sold or used as a stand-alone product, stored on a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform a method of replacing a virtual object provided by the methods described above, the method for identifying a terminal, comprising: identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object; the target interaction identifier is sent to a display terminal, so that the display terminal obtains a target object corresponding to the target interaction identifier to replace a virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to input of a user on the virtual object displayed in the display terminal. The replacing method of the virtual object is used for the display terminal and comprises the following steps: responding to the input of a user to the virtual object displayed in the display terminal, and determining a virtual object to be processed; receiving a target interaction identifier sent by an identification terminal; the target interaction identification is obtained by the identification terminal identifying a target object in an object display book; acquiring the target object corresponding to the target interaction identifier; and replacing the virtual object to be processed with the target object.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform a method of replacing a virtual object provided by the above methods, the method for identifying a terminal, comprising: identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object; the target interaction identifier is sent to a display terminal, so that the display terminal obtains a target object corresponding to the target interaction identifier to replace a virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to input of a user on the virtual object displayed in the display terminal. The replacing method of the virtual object is used for the display terminal and comprises the following steps: responding to the input of a user to the virtual object displayed in the display terminal, and determining a virtual object to be processed; receiving a target interaction identifier sent by an identification terminal; the target interaction identification is obtained by the identification terminal identifying a target object in an object display book; acquiring the target object corresponding to the target interaction identifier; and replacing the virtual object to be processed with the target object.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A method for replacing a virtual object, comprising:
identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object;
The target interaction identifier is sent to a display terminal, so that the display terminal obtains a target object corresponding to the target interaction identifier to replace a virtual object to be processed;
wherein the virtual object to be processed is determined by the display terminal in response to user input of the virtual object displayed in the display terminal;
The obtaining the target interaction identifier corresponding to the target object includes:
acquiring a preset interaction identifier corresponding to the target object; the preset interaction identifier is a preset identifier which is arranged corresponding to each object in the object display book and used for representing the information of the object;
Performing exclusive OR processing on the preset interaction identifier and the first key to generate an original interaction identifier; the first key is an encryption key which is determined when the object display book is printed and printed on the object display book;
and processing the original interaction identifier to generate the target interaction identifier.
2. The method for replacing a virtual object according to claim 1, further comprising, before the obtaining the target interaction identifier corresponding to the target object:
Acquiring a first key and batch information corresponding to the object display book;
And storing the first key and the batch information in a server in a corresponding manner.
3. The method of replacing a virtual object according to claim 1, wherein the processing the original interaction identifier to generate the target interaction identifier comprises:
Obtaining a second key, performing exclusive-or processing on the original interaction identifier and the second key, and generating an intermediate interaction identifier; wherein the second key is generated for physical address processing of the identification terminal;
And processing the intermediate interaction identifier to generate the target interaction identifier.
4. A method of replacing a virtual object according to claim 3, wherein said processing said intermediate interaction identity to generate said target interaction identity comprises:
Performing exclusive OR processing on the intermediate interaction identifier and a prestored third key to generate the target interaction identifier;
the third key is generated and recorded by the display terminal and sent to the identification terminal for storage.
5. A method for replacing a virtual object, for a display terminal, comprising:
responding to the input of a user to the virtual object displayed in the display terminal, and determining a virtual object to be processed;
receiving a target interaction identifier sent by an identification terminal; the target interaction identification is obtained by the identification terminal identifying a target object in an object display book;
Acquiring the target object corresponding to the target interaction identifier;
replacing the virtual object to be processed with the target object;
The obtaining the target object corresponding to the target interaction identifier includes:
Performing exclusive OR processing on the target interaction identifier and a prestored third key to generate an intermediate interaction identifier; the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage;
processing the intermediate interaction identifier to generate a preset interaction identifier;
sending the preset interaction identifier to a server to obtain the target object corresponding to the preset interaction identifier; the server stores the preset interaction identifiers with corresponding relations and virtual models of all objects contained in the object display book.
6. The method for replacing a virtual object according to claim 5, wherein before the target object corresponding to the target interaction identifier is obtained, further comprising:
Acquiring batch information corresponding to the object display book;
inquiring the server side to obtain a first key corresponding to the batch information.
7. The method according to claim 5, wherein the processing the intermediate interaction identifier to generate the preset interaction identifier comprises:
Performing exclusive OR processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier; the second secret key is obtained and stored by obtaining the physical address of the identification terminal and processing the physical address;
And processing the original interaction identifier to generate the preset interaction identifier.
8. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the virtual object replacement method of any one of claims 1 to 7.
CN202110839039.2A 2021-07-23 2021-07-23 Virtual object replacement method Active CN113760209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110839039.2A CN113760209B (en) 2021-07-23 2021-07-23 Virtual object replacement method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839039.2A CN113760209B (en) 2021-07-23 2021-07-23 Virtual object replacement method

Publications (2)

Publication Number Publication Date
CN113760209A CN113760209A (en) 2021-12-07
CN113760209B true CN113760209B (en) 2024-04-26

Family

ID=78787924

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839039.2A Active CN113760209B (en) 2021-07-23 2021-07-23 Virtual object replacement method

Country Status (1)

Country Link
CN (1) CN113760209B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983923A (en) * 2005-12-16 2007-06-20 Pmc-斯尔若以色列有限公司 Triple churning
US10115149B1 (en) * 2014-12-18 2018-10-30 Amazon Technologies, Inc. Virtual world electronic commerce platform
CN111338466A (en) * 2018-12-19 2020-06-26 西门子医疗有限公司 Method and apparatus for controlling virtual reality display unit
CN112561739A (en) * 2019-11-08 2021-03-26 广东卡百利新材料科技有限公司 Home decoration experience platform and use method thereof

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100050100A1 (en) * 2008-08-21 2010-02-25 Dettinger Richard D Virtual World Object Presentation, Recommendations and Navigation
WO2020191101A1 (en) * 2019-03-18 2020-09-24 Geomagical Labs, Inc. Virtual interaction with three-dimensional indoor room imagery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983923A (en) * 2005-12-16 2007-06-20 Pmc-斯尔若以色列有限公司 Triple churning
US10115149B1 (en) * 2014-12-18 2018-10-30 Amazon Technologies, Inc. Virtual world electronic commerce platform
CN111338466A (en) * 2018-12-19 2020-06-26 西门子医疗有限公司 Method and apparatus for controlling virtual reality display unit
CN112561739A (en) * 2019-11-08 2021-03-26 广东卡百利新材料科技有限公司 Home decoration experience platform and use method thereof

Also Published As

Publication number Publication date
CN113760209A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
CN110287724B (en) Data storage and verification method and device
KR102545296B1 (en) How to control a device to create an augmented reality environment
KR20130087305A (en) System and method for avatar service through cable and wireless web
CN104281865B (en) A kind of method and apparatus for generating Quick Response Code
CN107092634A (en) The implementation method and device of page preview
CN114153548A (en) Display method and device, computer equipment and storage medium
CN113760209B (en) Virtual object replacement method
CN110650350A (en) Method and device for displaying coded image and electronic equipment
CN108335163A (en) A kind of method and system of synchronization object information, and synchronous inventory method
CN107808076B (en) Unlocking method of terminal equipment, terminal equipment and storage medium
CN111651049B (en) Interaction method, device, computer equipment and storage medium
CN107872441B (en) Method and device for generating equipment attribute configuration file
CN111049735B (en) Group head portrait display method, device, equipment and storage medium
CN112925595A (en) Resource distribution method and device, electronic equipment and storage medium
CN103745071B (en) Data processing method and device for labeled product manufacturing information
CN111310135A (en) Watermark adding method and device based on virtual desktop
CN114332424A (en) Display method and device, computer equipment and storage medium
CN114240551A (en) Virtual special effect display method and device, computer equipment and storage medium
CN112199970B (en) Method and device for writing description information of storage object and intelligent storage system
CN108667647A (en) A kind of setting method of device parameter, equipment and server
CN110806696B (en) Method and device for determining household control application theme and computer storage medium
CN107944885A (en) A kind of commodity tracing management system based on AR technologies
CN113345110A (en) Special effect display method and device, electronic equipment and storage medium
US20180335926A1 (en) Media resource sharing method, and device
US20240177361A1 (en) Human to avatar transformation

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211229

Address after: Unit 05, room 112, 1st floor, office building, Nangang Industrial Zone, economic and Technological Development Zone, Binhai New Area, Tianjin 300457

Applicant after: BEIKE TECHNOLOGY Co.,Ltd.

Address before: 101309 room 24, 62 Farm Road, Erjie village, Yangzhen, Shunyi District, Beijing

Applicant before: Beijing fangjianghu Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant