CN113760209A - Virtual object replacing method - Google Patents

Virtual object replacing method Download PDF

Info

Publication number
CN113760209A
CN113760209A CN202110839039.2A CN202110839039A CN113760209A CN 113760209 A CN113760209 A CN 113760209A CN 202110839039 A CN202110839039 A CN 202110839039A CN 113760209 A CN113760209 A CN 113760209A
Authority
CN
China
Prior art keywords
target
interaction identifier
identifier
virtual object
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110839039.2A
Other languages
Chinese (zh)
Other versions
CN113760209B (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
Beijing Fangjianghu 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 Beijing Fangjianghu Technology Co Ltd filed Critical Beijing Fangjianghu 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

Images

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

Abstract

The invention provides a method for replacing a virtual object. The method is used for identifying the 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; sending the target interaction identifier to a display terminal so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to the input of the user to 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 through the recognition terminal and is sent to the display terminal, so that the display terminal obtains the target object corresponding to the target interaction identification, the target object replaces the object to be processed in the virtual scene, and the problem that the virtual scene and the real physical environment cannot interact is solved.

Description

Virtual object replacing 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 industrial fields. The application of the virtual scene mainly means that a target environment and/or a target object are displayed through the virtual scene.
Currently, all application requirements for a virtual scene include target requirements for interacting the virtual scene with a real physical environment. However, in the prior art, the interaction of the virtual scene is to implement the interaction of the object in the virtual scene and other virtual objects by operating the interface of the target application or the target webpage carrying the virtual scene. However, for the case that the virtual scene interacts with the real physical environment, the interaction cannot be realized.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a method for replacing a virtual object.
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;
sending the target interaction identifier to a display terminal so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed;
the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal.
According to the method for replacing a virtual object provided by the present invention, before obtaining a target interaction identifier corresponding to the target object, the method further comprises:
acquiring a first key and batch information corresponding to the object display book;
and correspondingly storing the first key and the batch information in a server.
According to the method for replacing the virtual object provided by the invention, the step of 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 secret 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 a virtual object provided by the present invention, the processing the original interaction identifier to generate the target interaction identifier includes:
acquiring a second key, and performing exclusive-or processing on the original interaction identifier and the second key to generate an intermediate interaction identifier; wherein the second key is generated for physical address processing of the identification terminal;
and processing the intermediate interactive identification to generate the target interactive identification.
According to the method for replacing a virtual object provided by the present invention, the processing the intermediate interaction identifier to generate the target interaction identifier includes:
performing exclusive-or processing on the intermediate interactive identifier and a pre-stored third key to generate the target interactive identifier;
and the third key is generated and recorded by the display terminal and is 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 interactive identification is obtained by identifying a target object in an object display book by the identification terminal;
acquiring the target object corresponding to the target interaction identifier;
and replacing the virtual object to be processed as the target object.
According to the method for replacing a virtual object provided by the present invention, before the target object corresponding to the target interaction identifier is obtained, the method further includes:
acquiring batch information corresponding to the object display book;
and inquiring the server to obtain a first key corresponding to the batch information.
According to the method for replacing a virtual object provided by the present invention, the obtaining of the target object corresponding to the target interaction identifier includes:
performing exclusive-or processing on the target interaction identifier and a pre-stored 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 interactive identification to generate the preset interactive identification;
sending the preset interaction identifier to a server to acquire the target object corresponding to the preset interaction identifier; the server stores the preset interaction identifiers with corresponding relations and virtual models of the objects contained in the object display book.
According to the method for replacing the virtual object provided by the invention, the processing the intermediate interactive identifier to generate the preset interactive identifier comprises the following steps:
performing XOR processing on the intermediate interactive identifier and a pre-stored second key to generate an original interactive identifier; the second key is obtained by acquiring a physical address of the identification terminal, processing the physical address and storing the physical address;
and processing the original interactive identification to generate the preset interactive identification.
According to the method for replacing a virtual object provided by the present invention, the processing the original interaction identifier to generate the preset interaction identifier includes:
and carrying out XOR processing on the original interactive identifier and the first secret key to generate the preset interactive identifier.
The present invention also provides a virtual object replacing apparatus, for identifying a terminal, comprising:
the acquisition module is used for identifying a target object in an 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 the virtual object to be processed;
the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal.
According to an apparatus for replacing a virtual object provided by the present invention, the obtaining module is further configured to:
acquiring a first key and batch information corresponding to the object display book;
and correspondingly storing the first key and the batch information in the server.
According to an apparatus for replacing a virtual object provided by the present invention, the obtaining module includes:
the obtaining sub-module is used for obtaining the preset interaction identifier corresponding to the target object;
the processing submodule is used for carrying out XOR processing on the preset interactive identifier and the first secret key to generate the original interactive identifier;
and the generating submodule is used for processing the original interaction identifier and generating the target interaction identifier.
According to the apparatus for replacing a virtual object provided by the present invention, the generating sub-module is specifically configured to:
acquiring a second key, and performing exclusive-or processing on the original interaction identifier and the second key to generate an intermediate interaction identifier; wherein the second key is generated for physical address processing of the identification terminal;
and processing the intermediate interactive identification to generate the target interactive identification.
According to the apparatus for replacing a virtual object provided by the present invention, the generating sub-module is further configured to:
performing exclusive-or processing on the intermediate interactive identifier and a pre-stored third key to generate the target interactive identifier;
and the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
The present invention also provides a virtual object replacing apparatus, for a display terminal, comprising:
the response module is used for responding to the input of a 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 a target interaction identifier sent by the identification terminal; the target interactive identification is obtained by identifying a target object in an object display book by the identification terminal;
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 an apparatus for replacing a virtual object provided by the present invention, the obtaining module is further configured to:
acquiring batch information corresponding to the object display book;
and inquiring the server to obtain a first key corresponding to the batch information.
According to an apparatus for replacing a virtual object provided by the present invention, the obtaining module includes:
the processing submodule is used for carrying out XOR processing on the target interaction identifier and a pre-stored 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 generating submodule is used for processing the intermediate interactive identification and generating the preset interactive identification;
the acquisition submodule 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 the objects contained in the object display book.
According to the apparatus for replacing a virtual object provided by the present invention, the generating sub-module is specifically configured to:
performing XOR processing on the intermediate interactive identifier and a pre-stored second key to generate an original interactive identifier; the second key is obtained by acquiring a physical address of the identification terminal, processing the physical address and storing the physical address;
and processing the original interactive identification to generate the preset interactive identification.
According to the apparatus for replacing a virtual object provided by the present invention, the generating sub-module is further configured to:
and carrying out XOR processing on the original interactive identifier and the first secret key to generate the preset interactive identifier.
The invention also provides a computer program product comprising computer program/instructions which, when executed by a processor, implement the steps of a method of replacing a virtual object as defined in any one of the above.
The invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the method of replacing a virtual object as claimed in any one of the above.
According to the virtual object replacing method, the target interaction identification in the real physical environment is obtained by the recognition 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, and the problem that the virtual scene and the real physical environment cannot interact is solved.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for replacing a virtual object (for identifying a terminal) according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a first process 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. 3 is a schematic diagram of a second process 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 detailed flowchart of an alternative method (for identifying a terminal) for a virtual object according to an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for replacing a virtual object (for a display terminal) according to an embodiment of the present invention;
fig. 6 is a schematic flowchart of acquiring a target object corresponding to a target interaction identifier in a virtual object replacement method (for a display terminal) according to an embodiment of the present invention;
FIG. 7 is a detailed flowchart of an alternative method (for a display terminal) for a virtual object according to an embodiment of the present invention;
fig. 8 is an interaction flow diagram of an alternative method for a virtual object (a recognition terminal interacts with a display terminal) provided by an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a virtual object replacement apparatus (for identifying a terminal) according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an alternative apparatus (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
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The figures are purely diagrammatic and not drawn to scale. As used herein, the term "preferred," and similar terms, are used as table approximations and not as table degrees, and are intended to account for inherent deviations in measured or calculated values that will be recognized by those of ordinary skill in the art. It should be noted that in the present description, the expressions "first", "second", "third", etc. are used only to distinguish one feature from another, and do not represent any limitation on the features, and do not particularly represent any order of precedence.
It will be further understood that terms such as "comprising," "including," and/or "containing," when used in this specification, are open-ended and not closed-ended, and specify the presence of stated features, elements, and/or components, but do not preclude the presence or addition of one or more other features, elements, components, and/or groups thereof. Furthermore, when describing embodiments of the present application, the use of "may" mean "one or more embodiments of the present application. Also, the term "exemplary" is intended to refer to an example or illustration.
Unless otherwise defined, all terms (including engineering and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. 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 in the prior art, embodiments of the present invention provide a method for replacing a virtual object.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
The identification terminal is a hardware platform for identifying the identifier corresponding to each application object, for example, a hardware platform product such as a touch and talk pen, a code scanning gun, and the like. The identifier corresponding to each application object is a mark representing related information such as name, specification, color, category, and the like of each application object.
The display terminal is a hardware platform for three-dimensional display of the virtual object.
A virtual object is an object having a virtualized three-dimensional structure.
Fig. 1 is a flowchart illustrating a virtual object replacement method (for identifying a terminal) according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step 101, identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object.
Specifically, the object display album is a display album in which a plurality of objects are included in a real environment, for example, the object display album may be a decoration article selection album used when house decoration is performed. The target interactive identification is a processed mark representing related information such as 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 a target object corresponding to the target interaction identifier to replace the virtual object to be processed.
The virtual object to be processed is determined by the display terminal in response to the input of the user to 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 the object display book are obtained.
Specifically, the batch information refers to information related to printing batches printed on the object display album, printed in a preset area of the object display album. The first key is an encryption key that is determined when the object display book is printed and is printed on the object display book.
Step S2, the first key and the batch information are stored in the server in a corresponding manner.
Illustratively, if the first keys are 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 recognition 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 the target object replaces the object to be processed in the virtual scene, thereby solving the problem that the virtual scene and the real physical environment cannot interact with each other.
Based on the above embodiments, fig. 2 is a schematic diagram of a first process for generating a target interaction identifier in an alternative method (for identifying a terminal) for a virtual object provided according to an embodiment of the present invention. As shown in fig. 2, a first process of generating a target interaction identifier includes:
step 201, acquiring a preset interaction identifier corresponding to a target object.
Specifically, the preset interactive identifier is a preset mark which is set corresponding to each object in the object display book and represents related information such as name, specification, color, category, and the like of the related object.
For example, if the object display album is a selected decoration article album for house decoration, the selected decoration article album may include a plurality of decoration articles, such as sofas with various colors, foldable single beds, non-foldable double beds, floors, wallpaper, curtains with various specifications and colors, various lamps, and the like; and presetting interactive identification corresponding to the preset code points which are printed in the pictures of the decoration articles such as sofa pictures, single bed pictures, double bed pictures, floor pictures and the like printed in the object display volume and represent the relevant information of the decoration articles and are not easy to perceive.
Step 202, performing xor processing on the preset interaction identifier and the first key to generate an original interaction identifier.
Illustratively, if the preset interaction identification is Va and the first key is Keya, Va ^ Keya is executed to obtain the original interaction identification Vb.
And step 203, processing the original interactive mark to generate a target interactive mark.
Based on the above embodiment, before the preset interaction identifier is obtained and transmitted, the data integrity and the security of the preset interaction identifier can be improved.
Based on the above embodiments, fig. 3 is a second flowchart illustrating the generation of the target interaction identifier in the replacement method (for identifying the terminal) for the virtual object according to an embodiment of the present invention. As shown in fig. 3, the second process of generating the target interaction identifier includes:
step 301, obtaining a second key, and performing xor processing on the original interaction identifier and the second key to generate an intermediate interaction identifier.
Wherein the second key is generated for processing a physical address identifying the terminal.
Correspondingly, the second key is obtained by taking the lower 32 bits that identify the physical address of the terminal.
Illustratively, if the original interaction identifier is Vb and the second key is Keym, and Vb ^ Keym is executed, the intermediate interaction identifier Vc can be obtained.
Step 302, processing the intermediate interactive mark to generate a target interactive mark.
Specifically, step 302 includes:
and carrying out XOR processing on the intermediate interactive identifier and a prestored third key to generate a target interactive identifier.
And the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
Illustratively, if the intermediate interaction identifier is Vc and the third key is Keyb, then Vc ^ Keyb is executed to obtain the target interaction identifier Vd.
Based on the above embodiment, before the original interactive identifier is transmitted, the data integrity and security of the original interactive identifier can be improved.
Based on the above embodiments, fig. 4 is a detailed flowchart of a virtual object replacement method (for identifying a terminal) provided according to an embodiment of the present invention. As shown in fig. 4, the method includes:
step 401, identify a target object in an object display book.
Step 402, acquiring a first key and batch information corresponding to the object display book.
Step 403, storing the first key and the batch information in the server correspondingly.
And step 404, acquiring a preset interaction identifier corresponding to the target object.
Step 405, performing xor processing on the preset interaction identifier and the first key to generate an original interaction identifier. And 406, acquiring a second key, and performing exclusive or processing on the original interaction identifier and the second key to generate an intermediate interaction identifier.
Wherein the second key is generated for processing a physical address identifying the terminal.
Step 407, performing xor processing on the intermediate interactive identifier and a pre-stored third key to generate a target interactive identifier.
And the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
And step 408, sending the target interaction identifier to the display terminal, so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed.
The virtual object to be processed is determined by the display terminal in response to the input of the user to 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 recognition 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 the target object replaces the object to be processed in the virtual scene, thereby solving the problem that the virtual scene and the real physical environment cannot interact with each other.
Fig. 5 is a flowchart illustrating a virtual object replacement method (for a display terminal) according to an embodiment of the present invention. As shown in fig. 5, the method includes:
step 501, responding to the input of the user to the virtual object displayed in the display terminal, determining the virtual object to be processed.
Specifically, the virtual object to be processed refers to an object having a virtualized three-dimensional structure that needs to be replaced.
Step 502, receiving a target interaction identifier sent by the identification terminal.
The target interactive identification is obtained by identifying a target object in an object display book of the terminal.
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.
And step 504, replacing the virtual object to be processed as the target object.
In addition, before the target object corresponding to the target interactive identifier is obtained, the steps further executed include:
step S1, obtaining batch information corresponding to the object display book.
Specifically, an object display album is a display album in which a plurality of objects are included in a real environment. The batch information is related information printed in a preset area of the object display book and representing the printing batch of the object display book.
Step S2, the server is queried to obtain the first key corresponding to the batch information.
Specifically, querying the server means traversing a data storage area of the server.
The first key is an encryption key that is determined when the object display book is printed and is printed on the object display book.
Based on the above embodiment, the method for replacing the virtual object 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 and the real physical environment cannot interact with each other.
Based on the above embodiments, fig. 6 is a schematic flowchart of obtaining a target object corresponding to a target interaction identifier in a virtual object replacement method (for a display terminal) provided according to an embodiment of the present invention. As shown in fig. 6, obtaining a target object corresponding to a target interaction identifier includes:
step 601, performing xor processing on the target interaction identifier and a pre-stored third key to generate an intermediate interaction identifier.
And the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
Illustratively, if the target interaction identifier is Vd and the third key is Keyb, Vd ^ Keyb is executed, and the intermediate interaction identifier Vc can be obtained.
Step 602, processing the intermediate interactive identifier, and generating a preset interactive identifier.
Specifically, step 602 includes:
step S1, performing xor processing on the intermediate interaction identifier and the pre-stored second key to generate an original interaction identifier.
The second key is obtained by acquiring a physical address for identifying the terminal, processing the physical address and storing the physical address.
Correspondingly, the second key is obtained by taking the lower 32 bits that identify the physical address of the terminal.
Illustratively, if the intermediate interaction identifier is Vc and the second key is Keym, executing Vc ^ Keym may obtain the original interaction identifier Vb.
And step S2, processing the original interactive mark to generate a preset interactive mark.
Specifically, step S2 includes:
and carrying out XOR processing on the original interactive identifier and the first secret key to generate a preset interactive identifier.
Illustratively, if the original interaction identifier is Vb and the first key is Keya, executing Vb ^ Keya, and obtaining the preset interaction identifier Va.
Step 603, sending a preset interaction identifier to the server, and acquiring a target object corresponding to the preset interaction identifier.
The server stores preset interaction identifiers with corresponding relations and virtual models of all objects 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 interactive identification is generated by decrypting the target interactive identification, so that the data integrity and the security of the preset interactive identification in the transmission process are improved.
Based on the above embodiments, fig. 7 is a detailed flowchart of a virtual object replacement method (for a display terminal) provided according to an embodiment of the present invention. As shown in fig. 7, the method includes:
step 701, responding to the input of the user to the virtual object displayed in the display terminal, determining the virtual object to be processed.
Step 702, receiving a target interaction identifier sent by the identification terminal.
The target interactive identification is obtained by identifying a target object in an object display book of the terminal.
Step 703, obtaining batch information corresponding to the object display book.
Step 704, the server is queried to obtain the first key corresponding to the batch information.
Step 705, performing xor processing on the target interaction identifier and a pre-stored third key to generate an intermediate interaction identifier.
And the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
Step 706, performing xor processing on the intermediate interaction identifier and a pre-stored second key to generate an original interaction identifier.
The second key is obtained by acquiring a physical address for identifying the terminal, processing the physical address and storing the physical address.
Step 707, performing xor processing on the original interaction identifier and the first key to generate a preset interaction identifier.
Step 708, sending the preset interaction identifier to the server, and acquiring a target object corresponding to the preset interaction identifier.
The server stores preset interaction identifiers with corresponding relations and virtual models of all objects 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 method for replacing the virtual object 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 and the real physical environment cannot interact with each other.
Based on any of the above embodiments, fig. 8 is an interaction flow diagram of a replacement method (interaction between an identification terminal and a display terminal) for a virtual object according to an embodiment of the present invention. As shown in fig. 8, the interaction flow of the virtual object replacement method includes the following specific steps:
step 801 selects a displayed virtual object.
Step 802, in response to the user's input of the virtual object displayed in the display terminal, determining a virtual object to be processed.
Step 803, identifying the target object in the object display book, and acquiring a target interaction identifier corresponding to the target object.
And step 804, sending the target interaction identifier.
Step 805, receiving the target interaction identifier.
Step 806, obtaining a target object corresponding to the target interaction identifier.
Step 807, the virtual object to be processed is replaced as the target object.
It should be noted that, the replacement method of the virtual object described in the above embodiment may be specifically described in conjunction with a specific application example.
Illustratively, before house decoration, if people want to feel different decoration effects, a sofa in a virtual scene for displaying the preset house decoration effects is 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 volume is a decoration option volume. The step of replacing a sofa in the virtual scene displaying the preset house decoration effect correspondingly comprises the following steps:
step one, a user selects a displayed virtual object.
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 step three, in a real environment, identifying the target sofa in the decoration option book by using the touch and talk pen, and acquiring a target interaction identifier corresponding to the target sofa.
And step four, sending the target interaction identifier to the tablet computer by using the touch and talk pen.
And step five, receiving the target interaction identification sent by the touch and talk pen by the tablet computer.
And step six, acquiring the target sofa corresponding to the target interactive identification at the tablet personal computer end.
And step seven, replacing the virtual sofa to be processed as the target sofa.
Further, 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 and the like in a virtual scene for displaying the preset house decoration effect before the house is decorated.
It should be noted that the replacement method of the virtual object can also be used in the related fields of computer vision, animation display, artificial intelligence and the like.
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 recognition 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 the target object replaces the object to be processed in the virtual scene, thereby solving the problem that the virtual scene and the real physical environment cannot interact with each other.
Based on the above embodiments, fig. 9 is a schematic structural diagram of a virtual object replacement 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 correspondingly storing the first key and the batch information in the server.
Wherein, the obtaining module 910 includes: the device comprises an acquisition submodule, a processing submodule and a generation submodule.
And the obtaining submodule is used for obtaining the preset interactive identification corresponding to the target object.
And the processing submodule is used for carrying out XOR processing on the preset interactive identifier and the first secret key to generate an original interactive identifier.
And the generation submodule is used for processing the original interaction identifier and generating a target interaction identifier.
Generating a sub-module, specifically for:
acquiring a second key, and performing XOR processing on the original interaction identifier and the second key to generate an intermediate interaction identifier; wherein the second key is generated for processing the physical address of the identification terminal;
and processing the intermediate interactive identification to generate a target interactive identification.
A generation submodule, further for:
performing XOR processing on the intermediate interactive identifier and a pre-stored third key to generate a target interactive identifier; and the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
A replacing module 920, 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 to-be-processed virtual object; the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal.
Based on the above embodiment, the replacement device for the virtual object provided by the invention obtains the target interaction identifier in the real physical environment by using the recognition 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 the target object replaces the object to be processed in the virtual scene, thereby solving the problem that the virtual scene and the real physical environment cannot interact with each other.
Based on the above embodiments, fig. 10 is a schematic structural diagram of a virtual object replacement apparatus (for a display terminal) provided according to an embodiment of the present invention. As shown in fig. 10, the apparatus is for a display terminal, and includes: a response module 1010, a receiving module 1020, an obtaining module 1030, and a replacing module 1040.
A response module 1010, configured to determine a virtual object to be processed in response to an input of a virtual object displayed in the display terminal by a user.
A receiving module 1020, configured to receive a target interaction identifier sent by an identification terminal; the target interactive identification is obtained by identifying a target object in an object display book of the terminal.
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:
acquiring batch information corresponding to the 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 submodule, a generating submodule and an obtaining submodule.
The processing submodule is used for carrying out XOR processing on the target interactive identifier and a prestored third key to generate an intermediate interactive identifier; and the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
And the generation submodule is used for processing the intermediate interactive identification and generating a preset interactive identification.
The acquisition submodule is used for sending a preset interaction identifier to the server and acquiring a target object corresponding to the preset interaction identifier; the server stores preset interaction identifiers with corresponding relations and virtual models of all objects contained in the object display book.
Generating a sub-module, specifically for:
performing XOR processing on the intermediate interactive identifier and a pre-stored second key to generate an original interactive identifier; the second key is obtained by acquiring a physical address of the identification terminal, processing the physical address and storing the physical address;
and processing the original interactive identification to generate a preset interactive identification.
A generation submodule, further for:
and carrying out XOR processing on the original interactive identifier and the first secret key to generate a preset interactive identifier.
And a replacing module 1040, configured to replace the virtual object to be processed as the target object.
Based on the above embodiment, the replacing device for the virtual object 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 and the real physical environment cannot interact with each other.
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: a processor (processor)1110, a communication Interface (Communications Interface)1120, a memory (memory)1130, and a communication bus 1140, wherein the processor 1110, the communication Interface 1120, and the memory 1130 communicate with each other via the communication bus 1140. The processor 1110 may invoke logic instructions in the memory 1130 to perform a method of replacing a virtual object, 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; sending the target interaction identifier to a display terminal so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal. The above replacement method of the virtual object is used for a display terminal, and includes: 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 interactive identification is obtained by identifying a target object in an object display book by the identification terminal; acquiring the target object corresponding to the target interaction identifier; and replacing the virtual object to be processed as the target object.
In addition, the logic instructions in the memory 1130 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and 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 for 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; sending the target interaction identifier to a display terminal so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal. The above replacement method of the virtual object is used for a display terminal, and includes: 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 interactive identification is obtained by identifying a target object in an object display book by the identification terminal; acquiring the target object corresponding to the target interaction identifier; and replacing the virtual object to be processed as 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, implements a method for replacing a virtual object provided by the above methods, the method being 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; sending the target interaction identifier to a display terminal so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed; the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal. The above replacement method of the virtual object is used for a display terminal, and includes: 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 interactive identification is obtained by identifying a target object in an object display book by the identification terminal; acquiring the target object corresponding to the target interaction identifier; and replacing the virtual object to be processed as the target object.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A virtual object replacement method, for identifying a terminal, includes:
identifying a target object in an object display book, and acquiring a target interaction identifier corresponding to the target object;
sending the target interaction identifier to a display terminal so that the display terminal acquires a target object corresponding to the target interaction identifier to replace the virtual object to be processed;
the virtual object to be processed is determined by the display terminal in response to the input of the user to the virtual object displayed in the display terminal.
2. The method for replacing a virtual object according to claim 1, wherein before the obtaining of the target interaction identifier corresponding to the target object, the method further comprises:
acquiring a first key and batch information corresponding to the object display book;
and correspondingly storing the first key and the batch information in a server.
3. The method for replacing a virtual object according to claim 2, wherein the obtaining of the target interaction identifier corresponding to the target object includes:
acquiring the preset interaction identifier corresponding to the target object;
performing exclusive-or processing on the preset interaction identifier and the first secret key to generate the original interaction identifier;
and processing the original interaction identifier to generate the target interaction identifier.
4. The method for replacing a virtual object according to claim 3, wherein the processing the original interaction identifier and generating the target interaction identifier comprises:
acquiring a second key, and performing exclusive-or processing on the original interaction identifier and the second key to generate an intermediate interaction identifier; wherein the second key is generated for physical address processing of the identification terminal;
and processing the intermediate interactive identification to generate the target interactive identification.
5. The method for replacing a virtual object according to claim 4, wherein the processing the intermediate interaction identifier and generating the target interaction identifier comprises:
performing exclusive-or processing on the intermediate interactive identifier and a pre-stored third key to generate the target interactive identifier;
and the third key is generated and recorded by the display terminal and is sent to the identification terminal for storage.
6. A virtual object replacement method, for a display terminal, includes:
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 interactive identification is obtained by identifying a target object in an object display book by the identification terminal;
acquiring the target object corresponding to the target interaction identifier;
and replacing the virtual object to be processed as the target object.
7. The method for replacing a virtual object according to claim 6, wherein before the obtaining the target object corresponding to the target interaction identifier, the method further comprises:
acquiring batch information corresponding to the object display book;
and inquiring the server to obtain a first key corresponding to the batch information.
8. The method for replacing a virtual object according to claim 6, wherein the obtaining the target object corresponding to the target interaction identifier includes:
performing exclusive-or processing on the target interaction identifier and a pre-stored 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 interactive identification to generate the preset interactive identification;
sending the preset interaction identifier to a server to acquire the target object corresponding to the preset interaction identifier; the server stores the preset interaction identifiers with corresponding relations and virtual models of the objects contained in the object display book.
9. The method for replacing a virtual object according to claim 8, wherein the processing the intermediate interaction identifier and generating the preset interaction identifier includes:
performing XOR processing on the intermediate interactive identifier and a pre-stored second key to generate an original interactive identifier; the second key is obtained by acquiring a physical address of the identification terminal, processing the physical address and storing the physical address;
and processing the original interactive identification to generate the preset interactive identification.
10. A computer program product comprising computer program/instructions, characterized in that the computer program/instructions, when executed by a processor, implement the steps of the method for replacing a virtual object according to any of claims 1 to 9.
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 true CN113760209A (en) 2021-12-07
CN113760209B 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 (6)

* 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
US20100050100A1 (en) * 2008-08-21 2010-02-25 Dettinger Richard D Virtual World Object Presentation, Recommendations and Navigation
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
US20200302681A1 (en) * 2019-03-18 2020-09-24 Geomagical Labs, Inc. Virtual interaction with three-dimensional indoor room imagery
CN112561739A (en) * 2019-11-08 2021-03-26 广东卡百利新材料科技有限公司 Home decoration experience platform and use method thereof

Patent Citations (6)

* 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
US20100050100A1 (en) * 2008-08-21 2010-02-25 Dettinger Richard D Virtual World Object Presentation, Recommendations and Navigation
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
US20200302681A1 (en) * 2019-03-18 2020-09-24 Geomagical Labs, Inc. Virtual interaction with three-dimensional indoor room imagery
CN112561739A (en) * 2019-11-08 2021-03-26 广东卡百利新材料科技有限公司 Home decoration experience platform and use method thereof

Also Published As

Publication number Publication date
CN113760209B (en) 2024-04-26

Similar Documents

Publication Publication Date Title
CN109767375A (en) The method and system of image watermark insertion and retrospect
CN109076072A (en) Web service picture password
JP2006031700A (en) User certification apparatus and user certification method
WO2016192457A1 (en) Ar book and ar-book-based indexed augmented reality system and method
JPWO2016157400A1 (en) Ink file output method and output device
CN108563521A (en) Applied to the information sharing method of game client, device, processor and terminal
EP3245628A1 (en) Method for the management of virtual objects corresponding to real objects, corresponding system and computer program product
CN107517103A (en) The verification method of authority, device and system
CN106227327B (en) A kind of display converting method, device and terminal device
JPH11353462A (en) Ciphering method and deciphering method for three-dimensional shape data
CN110880139A (en) Commodity display method, commodity display device, terminal, server and storage medium
CN113961961A (en) Privacy set intersection method and device based on scalable-ot
CN105931063A (en) Jewelry product information examination method
CN103745174A (en) Safety keyboard working method
CN107808076B (en) Unlocking method of terminal equipment, terminal equipment and storage medium
CN113760209A (en) Virtual object replacing method
CN107426595A (en) Interface navigation data handling system
CN107396142A (en) Interface navigation data processing method
CN111580679A (en) Space capsule display method and device, electronic equipment and storage medium
CN112199970B (en) Method and device for writing description information of storage object and intelligent storage system
JP2010264248A (en) Maker and recording medium for game image, sharing method, server, and system
CN107608608B (en) Information interaction method, device and system of three-dimensional graphic rendering engine
WO2017064517A1 (en) Messaging security
KR20010061051A (en) Method and Apparatus for Providing and Using of 3 Dimensional Image Which Represents the User in Cyber-Space
CN102143167B (en) Electronic hole card verification method

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

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.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant