Virtual scene adjusting method and device and related equipment
By sending real-scene status data on the data exchange platform and adjusting virtual scenes simultaneously, the problem of visual differences between virtual scenes and real-scenes is solved, achieving better integration and user experience.
Patent Information
- Application Number
- CN202311344341.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-08-02
- Filing Date
- 2023-10-17
- Publication Date
- 2025-02-14
AI Technical Summary
The visual difference between virtual scenes and real scenes leads to poor user experience, making it difficult to achieve a good integration of virtual scenes and real scenes.
Through the data exchange platform, the state data of the environmental objects or objects in the real scene is sent to the device processing the virtual scene to the device that processes the virtual scene, and the environmental objects or objects in the virtual scene are synchronized to reduce visual differences.
Effectively reduce the visual differences between virtual scenes and real scenes, better integrate virtual scenes and real scenes, and improve the interactive experience between users and virtual scenes.
Smart Images

Figure CN119425072A_ABST
Abstract
Description
[0001] This application claims the priority of the Chinese patent application filed with the State Intellectual Property Office on August 2, 2023, with application number 202310966763.0 and application name “A method and device for interaction between a virtual scene and an IOT device”, the entire contents of which are incorporated by reference in this application. Technical Field
[0002] The present application relates to the field of data processing, and in particular to a method and device for adjusting a virtual scene and related equipment. Background Art
[0003] A virtual scene is a scene generated by a computer to simulate a real scene. Users can view and interact with the virtual scene through a display device such as a monitor, a projector, or a virtual reality (VR) device.
[0004] At present, when users use display devices to view virtual scenes in real scenes, they can clearly feel the visual difference between the virtual scenes displayed by the display devices and the real scenes. The visual difference between the virtual scenes and the real scenes is caused by the fact that the virtual scenes are difficult to integrate well with the real scenes, and there is a problem of incoordination between the virtual scenes and the real scenes. The visual difference between the virtual scenes and the real scenes affects the interaction between users and the virtual scenes, resulting in a poor user experience. Summary of the invention
[0005] The embodiments of the present application provide a method, device and related devices for adjusting a virtual scene, which sends status data of environmental objects or objects in a real scene to a device for processing the virtual scene through a data exchange platform, so that the device for processing the virtual scene can synchronously adjust the environmental objects or objects in the virtual scene based on the status data, thereby reducing the visual difference between the virtual scene and the real scene, and better integrating the virtual scene with the real scene.
[0006] In the first aspect, the present application provides a method for adjusting a virtual scene, which is applied to a data exchange platform. The data exchange platform is connected to a first device and a second device respectively. The first device is used to process the status data of a first object included in a real scene. The first object is an environmental object or an object of the real scene. The second device is used to process the virtual scene displayed in the real scene. The data exchange platform obtains the status data of the first object sent by the first device, and sends the status data of the first object to the second device. The second device uses the status data of the first object to adjust the second object corresponding to the first object included in the virtual scene. In this way, it is possible to synchronously adjust the second object in the virtual scene based on the status data of the first object, so that the displayed second object is better integrated with the real scene, and the difference between the displayed virtual scene and the real scene is reduced.
[0007] In a possible implementation, the first device is a collection device. The state data of the first object is the original state data collected by the collection device for the first object. In this way, the original state data of the first object can be used to adjust the second object, reducing the processing of the state data of the first object and improving the efficiency of the adjustment.
[0008] In a possible implementation, the first device is a computing device, and the computing device is connected to a collection device. The state data of the first object is an attribute parameter obtained by the computing device for processing the original state data. The original state data is collected by the collection device for the first object. By processing the original state data, the amount of data to be transmitted can be reduced, which facilitates data transmission by the data exchange platform.
[0009] In one possible implementation, the attribute parameter is an object attribute parameter of the first object. The object attribute parameter is used to describe the attribute of the first object itself. In another possible implementation, the attribute parameter is a device attribute parameter of a virtual device. The device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene. The device attribute parameter is used to adjust the virtual device that controls the second object, enrich the way of adjusting the second object, and facilitate the adjustment of the second object.
[0010] In a possible implementation, the first device is a first control device. The first control device is used to control a first object. The state data of the first object is control data generated by the control device for the first object. In this way, the second object can be adjusted using the control data for controlling the first object, thereby improving the efficiency of adjusting the second object.
[0011] In a possible implementation, the data exchange platform also obtains the status data of the second object sent by the second device. The data exchange platform sends the status data of the second object to the first device. The status data of the second object is used to instruct the first control device to adjust the first object. In this way, when the second object in the virtual scene is adjusted, the first object in the real scene is adjusted accordingly, reducing the visual difference between the virtual scene and the real scene, and improving the degree of integration of the virtual scene and the real scene.
[0012] In a possible implementation, the first device is a second control device. The second control device is used to control the second object, and the data exchange platform further obtains the status data of the second object sent by the first device, and sends the status data of the second object to the second device. The status data of the second object is used to adjust the second object included in the virtual scene. The second control device can be used to directly use the device in the real scene to adjust the second object in the virtual scene, which is convenient for adjusting the second object.
[0013] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0014] In the second aspect, the present application provides a method for adjusting a virtual scene. The method is applied to a second device. The second device is connected to a data exchange platform. The second device obtains status data of a first object sent by the data exchange platform. Among them, the first object is an environmental object of a real scene or an object included in the real scene. The second device uses the status data of the first object to adjust the second object included in the virtual scene. The second object corresponds to the first object, and the adjusted virtual scene is displayed in the real scene. The second device can adjust the second object in the virtual scene based on the status data of the first object in the real scene obtained. In this way, it is possible to adjust the virtual scene based on the real scene, so that the virtual scene is better integrated with the real scene, and the visual difference between the virtual scene and the real scene displayed in the real scene is reduced.
[0015] In a possible implementation, the second device uses the state data of the first object to adjust the second object, and renders the virtual scene based on the adjusted second object. The second object can be directly adjusted using the state data of the first object. Furthermore, the state data of the first object is the original state data collected for the first object, or is the object attribute parameter of the first object.
[0016] In a possible implementation, the second device uses the state data of the first object to adjust a virtual device used to control the second object. The virtual device belongs to a virtual scene. The second device uses the adjusted virtual device to render the virtual scene. In this way, by adjusting the virtual device that controls the second object, the second object can be adjusted, and the method of adjusting the second object can be enriched. Furthermore, the state data of the first object is one of the device attribute parameters of the virtual device, the original state data collected for the first object, and the control data for the first object.
[0017] In a possible implementation, the data exchange platform is also connected to a first control device included in the real scene. The first control device is used to control the first object. The second device obtains the status data of the second object and sends the status data of the second object to the data exchange platform. The status data of the second object is used to instruct the first control device to adjust the first object. In this way, the first object in the real scene can be adjusted based on the status data of the second object, so that the virtual scene is better integrated with the real scene, and the visual difference between the virtual scene and the real scene displayed in the real scene is reduced.
[0018] In a possible implementation, the data exchange platform is further connected to a second control device included in the real scene. The second control device is used to control the second object. The second device obtains the state data of the second object generated by the second control device and sent by the data exchange platform, and uses the state data of the second object to adjust the second object included in the virtual scene. In this way, the second control device can be used to directly use the device in the real scene to adjust the second object in the virtual scene, which is convenient for adjusting the second object.
[0019] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0020] In the third aspect, the present application provides a device for adjusting a virtual scene, which is applied to a data exchange platform, and the data exchange platform is connected to a first device and a second device respectively, the first device is used to process status data of a first object included in a real scene, the first object is an environmental object or object of the real scene, the second device is used to process a virtual scene, and the virtual scene is displayed in the real scene, the device includes: an acquisition module, used to acquire the status data of the first object sent by the first device; a sending module, used to send the status data of the first object to the second device, the status data of the first object is used to adjust the second object included in the virtual scene, and the second object corresponds to the first object.
[0021] In a possible implementation manner, the first device is a collection device, and the state data of the first object is original state data collected by the collection device for the first object.
[0022] In a possible implementation, the first device is a computing device connected to a collection device, the state data of the first object is an attribute parameter obtained by the computing device from processing original state data, and the original state data is collected by the collection device for the first object.
[0023] In a possible implementation manner, the attribute parameter is an object attribute parameter of the first object.
[0024] In a possible implementation manner, the attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene.
[0025] In a possible implementation manner, the first device is a first control device, which is used to control the first object, and the state data of the first object is control data generated by the control device for the first object.
[0026] In a possible implementation, the acquisition module is further used to acquire status data of the second object sent by the second device; the sending module is further used to send the status data of the second object to the first device, and the status data of the second object is used to instruct the first control device to adjust the first object.
[0027] In a possible implementation, the first device is a second control device, and the second control device is used to control the second object. The acquisition module is also used to acquire status data of the second object sent by the first device; the sending module is also used to send the status data of the second object to the second device, and the status data of the second object is used to adjust the second object included in the virtual scene.
[0028] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0029] In a fourth aspect, the present application provides a device for adjusting a virtual scene, which is applied to a second device, and the second device is connected to a data exchange platform. The device includes: an acquisition module, which is used to acquire status data of a first object sent by the data exchange platform, wherein the first object is an environmental object of a real scene or an object included in the real scene; an adjustment module, which is used to adjust a second object included in the virtual scene using the status data of the first object, wherein the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
[0030] In a possible implementation, the adjustment module is specifically configured to adjust the second object by using the state data of the first object; and render the virtual scene based on the adjusted second object.
[0031] In a possible implementation manner, the state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object.
[0032] In a possible implementation, the adjustment module is specifically used to adjust a virtual device using the state data of the first object, the virtual device belonging to the virtual scene, and the virtual device used to control the second object; and render the virtual scene using the adjusted virtual device.
[0033] In a possible implementation manner, the state data of the first object is one of a device attribute parameter of a virtual device, original state data collected for the first object, and control data for the first object.
[0034] In a possible implementation, the data exchange platform is also connected to a first control device included in the real scene, the first control device is used to control the first object, and the acquisition module is also used to obtain status data of the second object; the device also includes a sending module; the sending module is also used to send the status data of the second object to the data exchange platform, and the status data of the second object is used to instruct the first control device to adjust the first object.
[0035] In one possible implementation, the data exchange platform is also connected to a second control device included in the real scene, and the second control device is used to control the second object. The acquisition module is also used to obtain status data of the second object sent by the data exchange platform, and the status data of the second object is generated by the second control device; the adjustment module is also used to use the status data of the second object to adjust the second object included in the virtual scene.
[0036] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0037] In a fifth aspect, the present application provides a computing device cluster, the computing device cluster includes at least one computing device, each computing device includes a processor and a memory; the memory is used to store instructions, and when the computing device cluster is running, the processor in each computing device executes the instructions stored in the memory, so that the computing device cluster executes the virtual scene adjustment method in the above-mentioned first aspect or any possible implementation of the first aspect, or the virtual scene adjustment method in the above-mentioned second aspect or any possible implementation of the second aspect. It should be noted that the memory can be integrated into the processor or can be independent of the processor. Each computing device may also include a bus. The processor is connected to the memory via a bus. The memory may include a readable memory and a random access memory.
[0038] In a sixth aspect, the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, which, when executed on a computing device cluster (the computing device cluster includes at least one computing device), enables the computing device cluster to execute the method for adjusting the virtual scene described in the first aspect or any one of the implementations of the first aspect, or the method for adjusting the virtual scene described in the second aspect or any one of the implementations of the second aspect.
[0039] In the seventh aspect, the present application provides a computer program product comprising instructions, which, when running on a computing device cluster (the computing device cluster includes at least one computing device), enables the computing device cluster to execute the virtual scene adjustment method described in the first aspect or any one of the implementations of the first aspect, or the virtual scene adjustment method described in the second aspect or any one of the implementations of the second aspect.
[0040] Based on the implementations provided in the above aspects, the present application can also be further combined to provide more implementations. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application;
[0042] Figure 2 A schematic diagram of another application scenario provided for an embodiment of the present application;
[0043] Figure 3 A schematic diagram of another application scenario provided for an embodiment of the present application;
[0044] Figure 4 A schematic diagram of another application scenario provided for an embodiment of the present application;
[0045] Figure 5 A flowchart of a method for adjusting a virtual scene provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of a flow chart of another method for adjusting a virtual scene provided in an embodiment of the present application;
[0047] Figure 7 A flowchart of another method for adjusting a virtual scene provided in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of the structure of a virtual scene adjustment device provided in an embodiment of the present application;
[0049] Fig. 9 A schematic diagram of the structure of another virtual scene adjustment device provided in an embodiment of the present application;
[0050] Fig.10 A schematic diagram of the structure of a computing device provided in an embodiment of the present application;
[0051] Fig.11 A schematic diagram of the structure of a computing device cluster provided in an embodiment of the present application;
[0052] Fig.12 A schematic diagram of the structure of another computing device cluster provided in an embodiment of the present application. DETAILED DESCRIPTION
[0053] The scheme in the embodiments provided in this application will be described below in conjunction with the drawings in this application.
[0054] The terms "first", "second", etc. in the specification, claims and drawings of this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances. This is just a way of distinguishing objects with the same attributes when describing the embodiments of this application.
[0055] Users use display devices in real scenes to interact with virtual scenes. For example, users use display devices such as display screens, projectors, or VR devices to view virtual scenes in real scenes. However, there are large visual differences between virtual scenes and real scenes, resulting in poor user experience in interacting with virtual scenes. The visual difference between virtual scenes and real scenes is caused by the styles of different scenes on the one hand, and the different contents displayed in virtual scenes and real scenes on the other hand. For example, the lighting conditions in virtual scenes are different from those in real scenes. This will make it difficult to integrate virtual scenes with real scenes, and the virtual scenes are not coordinated with the real scenes, affecting the user experience.
[0056] Based on this, an embodiment of the present application provides a method for adjusting a virtual scene. In this method, a data exchange platform obtains state data of a first object sent by a first device. Among them, the first device is used to process the state data of the first object included in the real scene. The first object is an environmental object of the real scene or an object included in the real scene. The data exchange platform sends the state data of the first object to the second device. The second device obtains the state data of the first object sent by the data exchange platform, and uses the state data of the first object to adjust the second object corresponding to the first object included in the virtual scene. The adjusted virtual scene can be displayed in the real scene. Based on the adjustment of the environmental object or object in the real scene, the virtual scene is adjusted synchronously and correspondingly, so that some capabilities of the virtual scene are consistent with some capabilities in the real scene, so as to facilitate better integration of the virtual scene and the real scene. In this way, the visual difference between the virtual scene and the real scene felt by the user when watching the virtual scene in the real scene can be reduced, so that the user's experience in the virtual scene is similar to that in the real scene, and the user's interactive experience with the virtual scene is improved.
[0057] The embodiments of the present application do not limit the application scenarios of the virtual scene adjustment method. As some examples, Figure 1 A schematic diagram of an application scenario provided for an embodiment of the present application.
[0058] See also Figure 1As shown, the virtual scene adjustment method provided in the embodiment of the present application can be applied to the data exchange platform 101. The data exchange platform 101 is connected to the first device 102 and the second device 103 respectively. The data exchange platform 101 is used to implement data interaction between the first device 102 and the second device 103. As an example, the data exchange platform 101 is an Internet of Things (IOT) platform.
[0059] The first device 102 belongs to the real scene and is used to process the state data of the first object included in the real scene. As an example, the first object is an environmental object of the real scene. For example, the first object is light, or temperature, or wind force. As another example, the first object is an object included in the real scene. For example, the first object is a curtain or a TV. The first device 102 generates the state data of the first object.
[0060] The embodiment of the present application does not limit the device type of the first device 102 .
[0061] As an example, see Figure 2 As shown, the first device 102 is a collection device 1021. The collection device can collect raw state data for the first object as the state data of the first object. For example, the first object is light, and the collection device is, for example, a camera, a light intensity sensor, or an artificial intelligence (AI) light source detection device. For another example, the first object is wind force, and the collection device is a wind force detection device. For another example, the first object is a curtain. The collection device is a curtain detection device.
[0062] As another example, see Figure 3 As shown, the first device 102 is a computing device 1022. The computing device 1022 is also connected to the acquisition device 104. The acquisition device 104 acquires state data of the real scene and sends the state data to the computing device 1022. The computing device 1022 determines the state data of the first object based on the acquired state data.
[0063] As another example, see Figure 4As shown, the first device 102 is a first control device 1023. The first control device 1023 is used to control the first object. In one implementation, the first control device 1023 directly controls the first object. Taking the first object as lighting as an example, the first control device 1023 is a lamp with a lighting adjustment function. Taking the first object as a curtain as an example, the first device is a curtain control device. In another implementation, the first control device 1023 controls the first object through the third device 105. The third device 105 is, for example, a device for controlling the first object. Taking the first object as lighting as an example, the third device 105 is, for example, a lamp, and the first control device 1023 is, for example, a light adjustment device, or, for example, a light source adjustment device. The first control device 1023 generates control data for the first object, which is the status data of the first object.
[0064] The data exchange platform 101 acquires the state data of the first object sent by the first device 102. The data exchange platform 101 sends the state data of the first object to the second device 103.
[0065] The second device 103 is used to process the virtual scene. The second device 103 adjusts the second object corresponding to the first object included in the virtual scene based on the acquired state data of the first object. The embodiment of the present application does not limit the device type of the second device 103. As an example, the second device 103 is a rendering device. The rendering device can render two-dimensional or three-dimensional images and run virtual scenes. The rendering device is also connected to the display device 106. The rendering device is connected to the display device 106 through a high-definition multimedia interface (HDMI) or a wireless network. The display device 106 is a device capable of displaying a virtual scene, such as a display, a projector, and an AR device. After adjusting the virtual scene, the rendering device generates display data of the virtual scene. The rendering device sends display data to the display device 106. The display device 106 displays the virtual scene based on the display data. As another example, the second device 103 is a rendering device with a display function. For example, the second device is a computer. After adjusting the virtual scene, the second device 103 displays the virtual scene.
[0066] It should be noted that the above Figure 1-Figure 4 The application scenarios shown are only examples, and the application scenarios of the virtual scene adjustment method provided in this application are not limited to Figure 1-Figure 4 Limitations of the application scenarios shown.
[0067] Next, various non-limiting specific implementations of the virtual scene adjustment method provided in the present application are described in detail.
[0068] See also Figure 5As shown, the figure is a schematic flow chart of a method for adjusting a virtual scene provided in an embodiment of the present application, including S501-S506.
[0069] S501: A first device generates status data of a first object.
[0070] The first object is an environmental object of a real scene or an object whose state can be adjusted. The first object is, for example, an environmental object such as light, wind, temperature, etc. The first object is, for example, an object whose state can be adjusted, such as a curtain or a television.
[0071] The first device belongs to a real scene, and the first device can process state data of the first object.
[0072] The state data of the first object is used to describe the state of the first object. The embodiment of the present application does not limit the specific type of the state data of the first object. The specific type of the state data of the first object is related to the type of the first object and the type of the first device.
[0073] Examples of status data of the first object of three different types of first devices are provided below.
[0074] The first one: Figure 2 Taking the application scenario shown as an example, the first device is a collection device.
[0075] The acquisition device acquires the original state data of the real scene for the first object in real time or at a fixed time. The original state data acquired by the acquisition device is the state data of the first object. Taking the first object as illumination as an example, the acquisition device is, for example, a camera, a light intensity sensor, or an AI light source detection device. Taking the acquisition device as a camera as an example, the camera acquires the illumination image of the real scene, that is, the state data of the first object. The illumination image can be in the red, green, blue (RGB) data format, or in the YUV (a color encoding method) data format. Taking the acquisition device as a light intensity sensor as an example, the light intensity sensor acquires the illumination intensity of the real scene in real time or at a fixed time, and generates a numerical value of the illumination intensity, that is, the state data of the first object. Taking the first object as a curtain as an example, the acquisition device is, for example, a curtain detection device. The curtain detection device is used to detect whether the curtain is in an open state or a closed state, and obtain the state data of the first object.
[0076] It should be noted that, when the first object is an environmental object, the acquisition device is configured near a display device that displays a virtual scene, so that the acquisition device collects environmental data near the display device, thereby achieving better integration of the virtual scene with the nearby real scene.
[0077] The second type: Figure 3 Taking the application scenario shown as an example, the first device is a computing device.
[0078] The computing device is connected to the acquisition device. The acquisition device acquires the original state data of the first object in real time or at a fixed time, and sends the acquired original state data to the computing device. The computing device processes the original state data sent by the acquisition device to obtain attribute parameters. The attribute parameters are data used to describe the attributes of the first object in the environment of the real scene.
[0079] In some cases, the data volume of the attribute parameter is smaller than the data volume of the original state data, so that it is convenient for the data exchange platform to transmit the state data of the first object, especially for the data exchange platform with a limited amount of data to be transmitted, and the data transmission cost required for the data exchange platform to transmit the state data of the first object can be saved.
[0080] In a possible implementation, a second object of a virtual scene corresponding to a first object can be configured without the aid of other virtual devices. The attribute parameter is an object attribute parameter of the first object. Taking the first object as illumination as an example, the attribute parameter is, for example, illumination intensity data of the illumination. The second device directly adjusts the illumination intensity of the ambient light of the virtual scene based on the illumination intensity data of the illumination.
[0081] For example, taking the first object as illumination and the acquisition device as a camera, the acquisition device acquires an illumination image and sends the illumination image to the computing device. The computing device determines the illumination intensity data, that is, the object attribute parameters of the first object, based on the illumination image. As an example, the illumination image is in RGB data format. The computing device converts the illumination image into YUV data format, and determines the illumination intensity data based on the illumination intensity represented by Y. As another example, the illumination image is in YUV data format. The computing device determines the illumination intensity data based on the illumination intensity represented by Y. The above implementation method for determining the object attribute parameters of the first object is only an example, and the embodiments of the present application are not limited to this.
[0082] In another possible implementation, the virtual device controls a second object of a virtual scene corresponding to the first object. The attribute parameter is a device attribute parameter of the virtual device. Taking the first object as lighting as an example, the device attribute parameters of the virtual device include, for example, the lighting intensity, light source position, and light source direction of the virtual light source. The second device can adjust the virtual light source included in the virtual scene based on the device attribute parameters of the virtual device, thereby adjusting the lighting in the virtual scene. By adjusting the second object of the virtual scene using the device attribute parameters of the virtual device, a more natural display effect of the virtual scene can be obtained, thereby improving the user experience of the user interacting with the virtual scene.
[0083] The embodiments of the present application do not limit the implementation method of the computing device determining the device attribute parameters of the virtual device based on the original state data, and can be pre-set based on the needs of data processing. As an example, taking the first object as lighting and the acquisition device as a camera as an example, a light source prediction model is pre-established. The light source prediction model is an artificial intelligence model. The light source prediction model is pre-trained using training data. The training data includes a lighting image and a label corresponding to the lighting image, and the label is the device attribute data of the light source. The computing device uses the light source prediction model to process the lighting image acquired from the camera to obtain the device attribute data of the light source output by the light source prediction model.
[0084] The third type: Figure 4 Taking the application scenario shown as an example, the first device is a first control device.
[0085] The first control device is capable of controlling the first object, and the control data for the first object generated by the first control device is the status data of the first object. The embodiment of the present application does not limit the triggering method for the first control device to generate the control data for the first object. In one possible implementation, the first control device generates the control data for the first object based on the trigger of the user using the control device. In another possible implementation, the first control device automatically triggers the generation of the control data for the first object.
[0086] The above are specific types of the state data of the first object in three different scenarios provided in the embodiments of the present application. The above three scenarios are only examples and are not limited in the embodiments of the present application.
[0087] In addition, the embodiments of the present application do not limit the triggering method for the first device to generate the status data of the first object. In one implementation, the first device generates the status data of the first object when it detects that the status of the first object has changed. In another implementation, the first device generates the status data of the first object at a fixed time. In yet another implementation, the first device triggers the generation of the status data of the first object based on the user's operation to adjust the status of the first object.
[0088] S502: The first device sends status data of the first object to the data exchange platform.
[0089] The interaction mode between the first device and the data exchange platform can be pre-agreed. As an example, the first device sends an adjustment message to the data exchange platform. The adjustment message includes the state data of the first object.
[0090] S503: The data exchange platform obtains status data of the first object.
[0091] S504: The data exchange platform sends the status data of the first object to the second device.
[0092] The data exchange platform determines a second device that needs to process the state data of the first object based on the acquired state data of the first object. The second device is used to process the virtual scene.
[0093] In a possible implementation, the data exchange platform pre-establishes a correspondence between the first device and the second device. For example, the data exchange platform stores a correspondence between a device identifier of the first device and a device identifier of the second device. The data exchange platform determines the second device based on the device identifier of the first device included in the adjustment message sent by the first device, and the correspondence between the device identifier of the first device and the device identifier of the second device.
[0094] In another possible implementation, a subscription relationship is pre-established between the data exchange platform and a virtual device included in a virtual scene processed by the second device. The virtual device is used to control a second object in the virtual scene. The second object corresponds to the first object. The second object is an environmental object or an object in the virtual scene. A specific example of the subscription relationship is that the virtual device subscribes to topic data. The topic data is, for example, data related to the first object. The data exchange platform publishes the acquired status data of the first object. The data exchange platform determines the second device based on the pre-established subscription relationship.
[0095] The interaction mode between the data exchange platform and the second device can be agreed in advance. As an example, the data exchange platform sends an adjustment message to the second device. The adjustment message includes the state data of the first object.
[0096] S505: The second device obtains status data of the first object.
[0097] S506: The second device uses the state data of the first object to adjust the second object included in the virtual scene.
[0098] The first object corresponds to the second object. The second device adjusts the second object accordingly based on the status data of the first object.
[0099] The manner in which the second device adjusts the second object is determined based on the type of the status data of the first object.
[0100] In a possible implementation, the state data of the first object is state data for the first object itself. For example, the state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object. The second device uses the state data of the first object to adjust the second object. For example, if the first object is illumination and the state data of the first object is the intensity of illumination, the second device uses the intensity of illumination to adjust the intensity of ambient light in the virtual scene, and adjusts the intensity of ambient light to be the same as the intensity of illumination.
[0101] It should be noted that, when the state data of the first object is the original state data collected for the first object, the second device first processes the original state data to obtain the object attribute parameters of the first object. The embodiment of the present application does not limit the implementation method of determining the object attribute parameters of the first object based on the original state data. Taking the first object as illumination and the original state data of the first object as an illumination image as an example, the computing device determines the intensity data of the illumination, that is, the object attribute parameters of the first object, based on the illumination image. As an example, the illumination image is in RGB data format. The second device converts the illumination image into YUV data format, and determines the intensity data of the illumination based on the illumination intensity represented by Y. As another example, the illumination image is in YUV data format. The second device determines the intensity data of the illumination based on the illumination intensity represented by Y.
[0102] The second device re-renders the virtual scene based on the adjusted second object to achieve corresponding update of the virtual scene.
[0103] In another possible implementation, the state data of the first object is state data for a virtual device that controls the second object. For example, the state data of the first object is a device attribute parameter of the virtual device, or is original state data for the first object, or is control data for the first object. The second device can process the original state data for the first object to obtain the device attribute parameter of the virtual device, for example, by using a trained artificial intelligence model to obtain the device attribute parameter of the virtual device. The second device uses the state data of the first object to adjust the virtual device, thereby adjusting the second object.
[0104] In some cases, the virtual scene has established a virtual device for controlling the second object. The second device adjusts the configuration parameters of the virtual device based on the status data of the first object. In other cases, the virtual scene has not pre-established a virtual device for controlling the second object. The second device establishes a virtual device in the virtual scene based on the adjustment parameters of the first object. It should be noted that the virtual device established in the virtual scene can be a device corresponding to an object included in the real scene, or it can be a virtual device that only belongs to the virtual scene.
[0105] The second device re-renders the virtual scene based on the adjusted virtual device to achieve corresponding updates of the virtual scene.
[0106] The adjusted virtual scene is used to display on a display device. As an example, the second device has a display function. For example, the second device has a display screen. After re-rendering the virtual scene, the second device displays the virtual scene. As another example, the second device does not have a display function, and the second device is connected to other display devices. The display device belongs to the real scene. The second device generates display data based on the re-rendered virtual scene. The second device sends the display data to the display device so that the display device displays the virtual scene in the real scene based on the display data.
[0107] In this way, it is possible to adjust the environmental objects or objects based on the real scene, and adjust the virtual scene synchronously and correspondingly. Based on the virtual scene adjustment method provided in the embodiment of the present application, some capabilities of the virtual scene are consistent with some capabilities in the real scene, so that the virtual scene is better integrated with the real scene, thereby reducing the visual difference between the virtual scene and the real scene for the user, making the user's experience in the virtual scene similar to that in the real scene, and improving the user's interactive experience with the virtual scene.
[0108] In addition, in some possible implementation scenarios, the second control device in the real scene can control the second object in the virtual scene. The embodiment of the present application provides another method for adjusting a virtual scene, which includes the following steps in addition to the above steps.
[0109] See also Figure 6 As shown, the figure is a flow chart of another virtual scene adjustment method provided in an embodiment of the present application. In addition to the above S501-S506, the method also includes S601-S606.
[0110] S601: The first device generates status data of the second object.
[0111] The first device is a second control device. The second control device is a control device included in the real scene. The second control device is a control device pre-set for adjusting the second object of the virtual scene. As an example, the second control device is a control device for controlling the lighting of the virtual scene. As another example, the second control device is a control device for controlling the curtains of the virtual scene.
[0112] The state data of the second object generated by the first device is used to describe the state of the second object. The state data of the second object is, for example, control data for the second object.
[0113] The embodiment of the present application does not limit the triggering method for the second control device to generate the status data for the second object. In one possible implementation, the second control device generates the status data for the second object based on the triggering of the user using the control device. In another possible implementation, the second control device automatically triggers the generation of the status data for the second object.
[0114] S602: The first device sends status data of the second object to the data exchange platform.
[0115] The interaction mode between the first device and the data exchange platform can be pre-agreed. As an example, the first device sends an adjustment message to the data exchange platform. The adjustment message includes the state data of the second object.
[0116] S603: The data exchange platform obtains the status data of the second object sent by the first device.
[0117] S604: The data exchange platform sends the status data of the second object to the second device.
[0118] In a possible implementation, the data exchange platform pre-establishes a correspondence between the first device and the second device. For example, the data exchange platform stores a correspondence between a device identifier of the first device and a device identifier of the second device. The data exchange platform determines the second device based on the device identifier of the first device included in the adjustment message sent by the first device, and the correspondence between the device identifier of the first device and the device identifier of the second device.
[0119] In another possible implementation, a subscription relationship is pre-established between the data exchange platform and a virtual device included in a virtual scene processed by the second device. The virtual device is used to control a second object in the virtual scene. The second object is an environmental object or an object in the virtual scene. A specific example of the subscription relationship is that the virtual device subscribes to topic data. The topic data is, for example, data related to the second object. The data exchange platform publishes the acquired status data of the second object. The data exchange platform determines the second device based on the pre-established subscription relationship.
[0120] The interaction mode between the data exchange platform and the second device can be agreed in advance. As an example, the data exchange platform sends an adjustment message to the second device. The adjustment message includes the state data of the second object.
[0121] S605: The second device obtains the status data of the second object sent by the data exchange platform.
[0122] S606: The second device adjusts the second object included in the virtual scene by using the state data of the second object.
[0123] In a possible implementation, the state data of the second object is state data for the second object itself. The second device uses the state data of the second object to adjust the second object. For example, if the second object is illumination and the state data of the second object is the intensity of illumination, the second device uses the intensity of illumination to adjust the intensity of ambient light in the virtual scene, and adjusts the intensity of ambient light to be the same as the intensity of illumination.
[0124] The second device re-renders the virtual scene based on the adjusted second object to achieve corresponding update of the virtual scene.
[0125] In another possible implementation, the state data of the second object is state data for a virtual device that controls the second object. For example, the state data of the second object is a device attribute parameter of the virtual device, or is control data for the second object. The second device uses the state data of the second object to adjust the virtual device, thereby adjusting the second object.
[0126] The second device re-renders the virtual scene based on the adjusted virtual device to achieve corresponding updates of the virtual scene.
[0127] The adjusted virtual scene is used to be displayed on a display device.
[0128] Based on the above S601-S606, it can be known that the user can use the control device included in the real scene to adjust the virtual scene. In this way, the user can flexibly adjust the virtual scene based on the need to view the virtual scene using the control device included in the real scene, thereby achieving a better interaction effect between the user and the virtual scene.
[0129] The above methods all describe methods for adjusting a virtual scene based on a real scene. The present application also provides a method for adjusting a virtual scene. In addition to the above methods, a real scene can also be adjusted through a virtual scene.
[0130] See also Figure 7 As shown, this figure is a flow chart of another virtual scene adjustment method provided in an embodiment of the present application. In addition to the above steps, the method also includes S701-S705.
[0131] It should be noted that this method is applied in a scenario where the first device is a first control device.
[0132] S701: The second device generates status data of a second object.
[0133] The state data of the second object is used to describe the state of the second object.
[0134] The embodiment of the present application does not limit the method of triggering the second device to generate the status data of the second object.
[0135] In a possible implementation, the status data of the second object can be triggered and generated by the user during the process of interacting with the virtual scene. The embodiment of the present application does not limit the way in which the user triggers the second device to generate the status data of the second object. As an example, the interaction interface between the user and the virtual scene includes a control interface for the virtual scene. The control interface includes, for example, adjustment controls for the second object, such as adjustment buttons, selection panels, and other adjustment controls. The user can trigger the adjustment control to trigger the second device to generate the status data of the second object.
[0136] In another possible implementation manner, the second device automatically triggers generation of status data of the second object based on a preset adjustment rule of the virtual scene.
[0137] S702: The second device sends status data of the second object to the data exchange platform.
[0138] The interaction mode between the second device and the data exchange platform can be pre-agreed. As an example, the second device sends an adjustment message to the data exchange platform. The adjustment message includes the state data of the second object.
[0139] S703: The data exchange platform obtains status data of the second object sent by the second device.
[0140] S704: The data exchange platform sends the status data of the second object to the first device.
[0141] The data exchange platform determines a first device that needs to process the status data of the second object based on the acquired status data of the second object.
[0142] In a possible implementation, the data exchange platform pre-establishes a correspondence between the first device and the second device. For example, the data exchange platform stores the correspondence between the device identifier of the first device and the device identifier of the second device. The data exchange platform determines the first device based on the device identifier of the second device included in the adjustment message sent by the second device, and the correspondence between the device identifier of the first device and the device identifier of the second device.
[0143] In another possible implementation, a subscription relationship is pre-established between the data exchange platform and the first device, that is, the first control device. A specific example of the subscription relationship is that the first device subscribes to topic data. The topic data is, for example, data related to the first object. The data exchange platform publishes the acquired control data of the second object. The first object corresponds to the second object. The control data of the second object is related to the first object. The data exchange platform determines the first device based on the pre-established subscription relationship.
[0144] The interaction mode between the data exchange platform and the first device can be agreed upon in advance. As an example, the data exchange platform sends an adjustment message to the first device. The adjustment message includes the state data of the second object.
[0145] S705: The first device obtains status data of the second object, and adjusts the first object using the status data of the second object.
[0146] The first device adjusts the first object accordingly based on the status data of the second object. In one possible implementation, the first device generates control data for the first object based on the status data of the second object. As an example, the first device directly controls the first object, and the first device executes the control data for the first object. As another example, the first device controls the first object through other devices, such as a third device. The first device sends the control data for the first object to the third device, so that the third device executes the control data of the first object to adjust the first object in the real scene.
[0147] In this way, a connection can be established between the virtual scene and the real scene, making it easier for users to control the real scene through the virtual scene, thereby improving the user experience of interacting with the virtual scene.
[0148] The present application also provides a virtual scene adjustment device, which is applied to a data exchange platform, the data exchange platform is connected to a first device and a second device respectively, the first device is used to process the state data of a first object included in the real scene, the first object is an environmental object or an object of the real scene, and the second device is used to process the virtual scene, and the virtual scene is displayed in the real scene. Figure 8 As shown, including:
[0149] An acquisition module 801 is used to acquire the state data of the first object sent by the first device;
[0150] The sending module 802 is used to send the state data of the first object to the second device, where the state data of the first object is used to adjust the second object included in the virtual scene, where the second object corresponds to the first object.
[0151] In a possible implementation manner, the first device is a collection device, and the state data of the first object is original state data collected by the collection device for the first object.
[0152] In a possible implementation, the first device is a computing device connected to a collection device, the state data of the first object is an attribute parameter obtained by the computing device from processing original state data, and the original state data is collected by the collection device for the first object.
[0153] In a possible implementation manner, the attribute parameter is an object attribute parameter of the first object.
[0154] In a possible implementation manner, the attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene.
[0155] In a possible implementation manner, the first device is a first control device, which is used to control the first object, and the state data of the first object is control data generated by the control device for the first object.
[0156] In a possible implementation, the acquisition module 801 is further configured to acquire status data of the second object sent by the second device;
[0157] The sending module 802 is further configured to send status data of the second object to the first device, where the status data of the second object is used to instruct the first control device to adjust the first object.
[0158] In a possible implementation, the first device is a second control device, the second control device is used to control the second object, and the acquisition module 801 is further used to acquire the status data of the second object sent by the first device;
[0159] The sending module 802 is further used to send the status data of the second object to the second device, where the status data of the second object is used to adjust the second object included in the virtual scene.
[0160] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0161] Wherein, both the acquisition module 801 and the sending module 802 can be implemented by software or by hardware. Exemplarily, the implementation of the acquisition module 801 is described below by taking the acquisition module 801 as an example. Similarly, the implementation of the sending module 802 can refer to the implementation of the acquisition module 801.
[0162] As an example of a software functional unit, the acquisition module 801 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the acquisition module 801 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0163] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0164] As an example of a hardware functional unit, the acquisition module 801 may include at least one computing device, such as a server, etc. Alternatively, the acquisition module 801 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0165] The multiple computing devices included in the acquisition module 801 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 801 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 801 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0166] It should be noted that, in other embodiments, the acquisition module 801 can be used to execute any step in the above-mentioned method for adjusting the virtual scene applied to the data exchange platform, and the sending module 802 can be used to execute any step in the method for adjusting the virtual scene applied to the data exchange platform. The steps that the acquisition module 801 and the sending module 802 are responsible for implementing can be specified as needed. The acquisition module 801 and the sending module 802 respectively implement different steps in the method for adjusting the virtual scene applied to the data exchange platform to realize all the functions of the virtual scene adjustment device.
[0167] The present application also provides another virtual scene adjustment device, which is applied to a second device, and the second device is connected to a data exchange platform. Fig. 9 As shown, including:
[0168] An acquisition module 901 is used to acquire state data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene;
[0169] The adjustment module 902 is used to adjust a second object included in the virtual scene using the state data of the first object, where the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
[0170] In a possible implementation, the adjustment module 902 is specifically configured to adjust the second object by using the state data of the first object; and render the virtual scene based on the adjusted second object.
[0171] In a possible implementation manner, the state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object.
[0172] In a possible implementation, the adjustment module 902 is specifically used to adjust a virtual device using the state data of the first object, the virtual device belonging to the virtual scene, and the virtual device used to control the second object; and render the virtual scene using the adjusted virtual device.
[0173] In a possible implementation manner, the state data of the first object is one of a device attribute parameter of a virtual device, original state data collected for the first object, and control data for the first object.
[0174] In a possible implementation, the data exchange platform is further connected to a first control device included in the real scene, the first control device is used to control the first object, and the acquisition module 901 is further used to acquire status data of the second object;
[0175] The device also includes a sending module 903;
[0176] The sending module 903 is further used to send the status data of the second object to the data exchange platform, where the status data of the second object is used to instruct the first control device to adjust the first object.
[0177] In a possible implementation, the data exchange platform is further connected to a second control device included in the real scene, the second control device is used to control the second object, and the acquisition module 901 is further used to acquire the state data of the second object sent by the data exchange platform, and the state data of the second object is generated by the second control device;
[0178] The adjustment module 902 is further configured to adjust the second object included in the virtual scene by using the state data of the second object.
[0179] In a possible implementation, the data exchange platform is an Internet of Things (IoT) platform.
[0180] Among them, the acquisition module 901, the adjustment module 902 and the sending module 903 can all be implemented by software, or can be implemented by hardware. Exemplarily, the following takes the acquisition module 901 as an example to introduce the implementation of the acquisition module 901. Similarly, the implementation of the adjustment module 902 and the sending module 903 can refer to the implementation of the acquisition module 901.
[0181] As an example of a software functional unit, the acquisition module 901 may include code running on a computing instance. Among them, the computing instance may include at least one of a physical host (computing device), a virtual machine, and a container. Further, the above-mentioned computing instance may be one or more. For example, the acquisition module 901 may include code running on multiple hosts / virtual machines / containers. It should be noted that the multiple hosts / virtual machines / containers used to run the code may be distributed in the same region (region) or in different regions. Furthermore, the multiple hosts / virtual machines / containers used to run the code may be distributed in the same availability zone (AZ) or in different AZs, each AZ including a data center or multiple data centers with close geographical locations. Among them, usually a region may include multiple AZs.
[0182] Similarly, multiple hosts / virtual machines / containers used to run the code can be distributed in the same virtual private cloud (VPC) or in multiple VPCs. Usually, a VPC is set up in a region. For cross-region communication between two VPCs in the same region and between VPCs in different regions, a communication gateway needs to be set up in each VPC to achieve interconnection between VPCs through the communication gateway.
[0183] As an example of a hardware functional unit, the acquisition module 901 may include at least one computing device, such as a server, etc. Alternatively, the acquisition module 901 may also be a device implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD). The PLD may be a complex programmable logical device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.
[0184] The multiple computing devices included in the acquisition module 901 can be distributed in the same region or in different regions. The multiple computing devices included in the acquisition module 901 can be distributed in the same AZ or in different AZs. Similarly, the multiple computing devices included in the acquisition module 901 can be distributed in the same VPC or in multiple VPCs. The multiple computing devices can be any combination of computing devices such as servers, ASICs, PLDs, CPLDs, FPGAs, and GALs.
[0185] It should be noted that, in other embodiments, the acquisition module 901 can be used to execute any step in the above-mentioned adjustment method of the virtual scene applied to the second device, the adjustment module 902 can be used to execute any step in the adjustment method of the virtual scene applied to the second device, and the sending module 903 can be used to execute any step in the adjustment method of the virtual scene applied to the second device. The steps that the acquisition module 901, the adjustment module 902, and the sending module 903 are responsible for implementing can be specified as needed. The full functions of the virtual scene adjustment device are realized by respectively implementing different steps in the adjustment method of the virtual scene applied to the second device through the acquisition module 901, the adjustment module 902, and the sending module 903.
[0186] The present application also provides a computing device 1000. Fig.10 As shown, computing device 1000 includes: bus 1002, processor 1004, memory 1006 and communication interface 1008. Processor 1004, memory 1006 and communication interface 1008 communicate through bus 1002. Computing device 1000 can be a server or a terminal device. It should be understood that the present application does not limit the number of processors and memories in computing device 1000.
[0187] The bus 1002 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 The bus 1002 may include a path for transmitting information between various components of the computing device 1000 (eg, the memory 1006, the processor 1004, and the communication interface 1008).
[0188] The processor 1004 may include any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP).
[0189] The memory 1006 may include a volatile memory, such as a random access memory (RAM). The processor 1004 may also include a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).
[0190] The memory 1006 stores executable program codes, see Fig.10 As shown, the processor 1004 executes the executable program code to respectively implement the functions of the aforementioned acquisition module 801 and the sending module 802, thereby implementing the adjustment method of the virtual scene applied to the data exchange platform. The memory 1006 stores instructions for executing the adjustment method of the virtual scene applied to the data exchange platform.
[0191] Alternatively, the processor 1004 executes the executable program code to respectively implement the functions of the aforementioned acquisition module 901, adjustment module 902 and sending module 903, thereby implementing the adjustment method of the virtual scene applied to the second device. That is, the memory 1006 stores instructions for executing the adjustment method of the virtual scene applied to the second device.
[0192] The communication interface 1008 uses a transceiver module such as, but not limited to, a network interface card or a transceiver to implement communication between the computing device 1000 and other devices or a communication network.
[0193] The embodiment of the present application also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device can be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device can also be a terminal device such as a desktop computer, a laptop computer, or a smart phone.
[0194] like Fig.11As shown, the computing device cluster includes at least one computing device 1000. The memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the adjustment method of the virtual scene applied to the data exchange platform.
[0195] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also store partial instructions for executing the adjustment method for the virtual scene applied to the data exchange platform. In other words, the combination of one or more computing devices 1000 may jointly execute instructions for executing the adjustment method for the virtual scene applied to the data exchange platform.
[0196] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster can store different instructions, which are respectively used to execute part of the functions of the adjustment device of the virtual scene applied to the data exchange platform. That is, the instructions stored in the memory 1006 in different computing devices 1000 can implement the functions of one or more modules in the acquisition module 801 and the sending module 802.
[0197] In some possible implementations, one or more computing devices in the computing device cluster may be connected via a network, which may be a wide area network or a local area network. Fig.12 A possible implementation is shown. Fig.12 As shown, two computing devices 1000A and 1000B are connected via a network. Specifically, the network is connected via a communication interface in each computing device. In this type of possible implementation, the memory 1006 in the computing device 1000A stores instructions for executing the functions of the acquisition module 801. At the same time, the memory 1006 in the computing device 1000B stores instructions for executing the functions of the sending module 802.
[0198] Fig.12 The connection method between the computing device clusters shown may be based on the needs of the adjustment method of the virtual scene applied to the data exchange platform provided in this application (for example, storing a large amount of data), so it is considered to hand over the functions implemented by the sending module 802 to the computing device 1000B for execution.
[0199] It should be understood that Fig.12 The functions of the computing device 1000A shown in FIG. 1000A may also be completed by multiple computing devices 1000. Similarly, the functions of the computing device 1000B may also be completed by multiple computing devices 1000.
[0200] The present application embodiment also provides another computing device cluster. The connection relationship between the computing devices in the computing device cluster can be similar to that of Fig.11 and Fig.12 The connection mode of the computing device cluster is different in that the memory 1006 in one or more computing devices 1000 in the computing device cluster may store the same instructions for executing the adjustment method of the virtual scene applied to the second device.
[0201] In some possible implementations, the memory 1006 of one or more computing devices 1000 in the computing device cluster may also respectively store partial instructions for executing the method for adjusting the virtual scene applied to the second device. In other words, the combination of one or more computing devices 1000 may jointly execute the instructions for the method for adjusting the virtual scene applied to the second device.
[0202] It should be noted that the memory 1006 in different computing devices 1000 in the computing device cluster may store different instructions for executing part of the functions of the adjustment device for the virtual scene applied to the second device. That is, the instructions stored in the memory 1006 in different computing devices 1000 may implement the functions of one or more of the acquisition module 901, the adjustment module 902, and the sending module 903.
[0203] The embodiment of the present application also provides a computer program product including instructions. The computer program product may be a software or program product including instructions that can be run on a computing device or stored in any available medium. When the computer program product is run on at least one computing device, the at least one computing device executes the adjustment method of the virtual scene applied to the data exchange platform, or the adjustment method of the virtual scene applied to the second device.
[0204] The embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium can be any available medium that can be stored by the computing device or a data storage device such as a data center containing one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct the computing device to execute an adjustment method for a virtual scene applied to a data exchange platform, or instruct the computing device to execute an adjustment method for a virtual scene applied to a second device.
[0205] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adjusting a virtual scene, characterized in that: The method is applied to a data exchange platform, the data exchange platform is connected to a first device and a second device respectively, the first device is used to process state data of a first object included in a real scene, the first object is an environmental object or an object of the real scene, the second device is used to process a virtual scene, and the virtual scene is displayed in the real scene, the method includes: Acquire status data of the first object sent by the first device; The state data of the first object is sent to the second device, where the state data of the first object is used to adjust a second object included in the virtual scene, where the second object corresponds to the first object.
2. The method according to claim 1, characterized in that: The first device is a collection device, and the state data of the first object is original state data collected by the collection device for the first object.
3. The method according to claim 1, characterized in that: The first device is a computing device, which is connected to a collection device. The state data of the first object is an attribute parameter obtained by the computing device based on original state data. The original state data is collected by the collection device for the first object.
4. The method according to claim 3, characterized in that The attribute parameter is an object attribute parameter of the first object.
5. The method according to claim 3, characterized in that: The attribute parameter is a device attribute parameter of a virtual device, and the device attribute parameter of the virtual device is used to adjust the virtual device used to control the second object in the virtual scene.
6. The method according to claim 1, characterized in that The first device is a first control device, which is used to control the first object, and the state data of the first object is control data generated by the control device for the first object.
7. The method according to claim 6, characterized in that The method further comprises: Acquire status data of the second object sent by the second device; The state data of the second object is sent to the first device, where the state data of the second object is used to instruct the first control device to adjust the first object.
8. The method according to claim 1, characterized in that The first device is a second control device, and the second control device is used to control the second object. The method further includes: Acquire status data of the second object sent by the first device; The state data of the second object is sent to the second device, where the state data of the second object is used to adjust the second object included in the virtual scene.
9. The method according to any one of claims 1 to 8, characterized in that: The data exchange platform is an Internet of Things (IoT) platform.
10. A method for adjusting a virtual scene, characterized in that: The method is applied to a second device, the second device is connected to a data exchange platform, and the method includes: Acquire state data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene; The state data of the first object is used to adjust a second object included in the virtual scene, where the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
11. The method according to claim 10, characterized in that The step of adjusting the second object included in the virtual scene by using the state data of the first object comprises: Using the state data of the first object, adjusting the second object; The virtual scene is rendered based on the adjusted second object.
12. The method according to claim 11, characterized in that The state data of the first object is original state data collected for the first object, or is an object attribute parameter of the first object.
13. The method according to claim 10, characterized in that The step of adjusting the second object included in the virtual scene by using the state data of the first object comprises: Using the state data of the first object, adjusting a virtual device, the virtual device belonging to the virtual scene, the virtual device being used to control the second object; The virtual scene is rendered using the adjusted virtual device.
14. The method according to claim 13, characterized in that The state data of the first object is one of a device attribute parameter of a virtual device, original state data collected for the first object, and control data for the first object.
15. The method according to claim 10, characterized in that The data exchange platform is also connected to a first control device included in the real scene, and the first control device is used to control the first object. The method further includes: Obtaining status data of a second object; The state data of the second object is sent to the data exchange platform, where the state data of the second object is used to instruct the first control device to adjust the first object.
16. The method according to claim 10, characterized in that The data exchange platform is also connected to a second control device included in the real scene, and the second control device is used to control the second object. The method further includes: Acquire status data of a second object sent by the data exchange platform, where the status data of the second object is generated by the second control device; The second object included in the virtual scene is adjusted using the state data of the second object.
17. The method according to any one of claims 10 to 16, characterized in that: The data exchange platform is an Internet of Things (IoT) platform.
18. A virtual scene adjustment device, characterized in that: The device is applied to a data exchange platform, the data exchange platform is connected to a first device and a second device respectively, the first device is used to process state data of a first object included in a real scene, the first object is an environmental object or an object of the real scene, the second device is used to process a virtual scene, and the virtual scene is displayed in the real scene, the device includes: an acquisition module, configured to acquire the status data of the first object sent by the first device; The sending module is used to send the state data of the first object to the second device, where the state data of the first object is used to adjust the second object included in the virtual scene, where the second object corresponds to the first object.
19. A virtual scene adjustment device, characterized in that: The apparatus is applied to a second device, the second device is connected to a data exchange platform, and the apparatus includes: An acquisition module, used to acquire state data of a first object sent by the data exchange platform, where the first object is an environmental object of a real scene or an object included in the real scene; The adjustment module is used to adjust a second object included in the virtual scene using the state data of the first object, wherein the second object corresponds to the first object, and the adjusted virtual scene is used to be displayed in the real scene.
20. A computing device cluster, characterized in that: The computing device cluster includes at least one computing device, each computing device including a processor and a memory: The memory is used to store instructions; The processor is configured to cause the computing device cluster to execute the method of any one of claims 1 to 9 or the method of any one of claims 10 to 17 according to the instructions.
21. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, which, when executed on a computing device, enable the computing device to execute the method according to any one of claims 1 to 9, or the method according to any one of claims 10 to 17.
22. A computer program product comprising instructions, characterized in that When it is executed on a computing device, the computing device is enabled to execute the method according to any one of claims 1 to 9, or the method according to any one of claims 10 to 17.
Citation Information
Cited By
Virtual scene adjustment method and apparatus, and related device
EP4741028A1
Virtual scene adjustment method and apparatus, and related device
WO2025025527A1