Image processing method, device and electronic equipment

By obtaining and utilizing the relative position information between the first device and the second device, and loading the virtual object from the perspective of the second device in the usage scene image, the device for observing and interacting with the virtual object from a third perspective in the prior art is solved. restrictions, realizing efficient virtual object display and interactive operation without SLAM function.

CN114489342BActive Publication Date: 2024-08-23LENOVO (BEIJING) LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210111783.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2024-08-23
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

Existing VR/AR/MR technology has equipment limitations in the third-perspective observation and interactive operation of virtual objects, requiring SLAM functions and additional auxiliary equipment, which limits the richness and processing efficiency of application scenarios.

Method used

By determining the virtual object in the target application scenario output by the first device, obtaining the relative position information between the first device and the second device, using this information to load the virtual object from the perspective of the second device in the usage scene image, and outputting For the first image of the first device, third-perspective observation and interactive operation are realized.

Benefits of technology

It can realize third-perspective observation and interactive operation of virtual objects without SLAM function and additional equipment, simplifying the processing process, expanding the scope of application scenarios, and improving processing efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114489342B
    Figure CN114489342B
Patent Text Reader

Abstract

The present application proposes an image processing method, device and electronic device. After the second device determines the virtual object in the target application scenario output by the first device, it obtains the usage scene image captured by the first device, the first relative position between the second device and the first device, and the perspective configuration information of the first device for the virtual object. In this way, the second device can load the virtual object in the second device's own perspective in the usage scene image based on the second relative position between the virtual object and the first device represented by the first relative position and the perspective configuration information, and output the obtained first image for the first device. Through the first image, the usage scene of the first device and the virtual object output by the first device can be observed, and the interaction between the user of the first device and the virtual object can also be observed. The whole processing process is simple, the processing efficiency is improved, and there is no need to configure other auxiliary devices, which enriches the third-perspective observation implementation method.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application mainly relates to the application field of artificial intelligence technology, and more specifically to an image processing method, device and electronic device. Background Art

[0002] At present, artificial intelligence technologies such as Virtual Reality (VR), Augmented Reality (AR) and Mediated Reality (MR) have been widely used in various fields. Users can wear corresponding VR / AR / MR devices to watch virtual images of a certain application scene, or a combination of virtual and real images, etc., to better meet application needs. Summary of the invention

[0003] In view of this, the present application provides an image processing method, the method comprising:

[0004] Determine a virtual object in a target application scenario output by the first device;

[0005] Acquire a usage scene image captured by the first device, a first relative position between the second device and the first device, and perspective configuration information of the first device for the virtual object; the perspective configuration information can at least represent a second relative position between the virtual object and the first device;

[0006] According to the first relative position and the second relative position, the virtual object under the perspective of the second device itself is loaded into the usage scene image to obtain a first image for the first device;

[0007] The first image is output.

[0008] In some embodiments, determining the virtual object in the target application scenario output by the first device includes:

[0009] receiving an application trigger instruction sent by the first device; the application trigger instruction is generated in response to a target application scenario selection operation of a target application after the first device enters the first display mode;

[0010] In response to the application trigger instruction, determining a target application to be started by the first device and a target application scenario of the target application selected for output;

[0011] The target application in the second device is triggered to start running, and a virtual object in the target application scenario of the target application is determined, or object model data of the virtual object in the target application scenario sent by the first device is received to output the virtual object.

[0012] In some embodiments, the step of loading the virtual object from the perspective of the second device itself into the usage scene image based on the first relative position and the second relative position to obtain a first image for the first device includes:

[0013] According to the first relative position and the second relative position, adjusting the virtual object in the perspective of the first device to be a target virtual object in the perspective of the second device;

[0014] The target virtual object is integrated into the usage scene image to obtain a first image for the first device.

[0015] In some embodiments, adjusting the virtual object in the perspective of the first device to a target virtual object in the perspective of the second device according to the first relative position and the second relative position includes:

[0016] Determine an anchor point position of the first device in a world coordinate system by using the first relative position, and configure a first virtual device at the anchor point position;

[0017] Controlling the virtual camera of the first virtual device to synchronize the viewing angle configuration information of the camera of the first device, and the first virtual device to synchronously output the virtual object output by the first device;

[0018] Using the first relative position and the second relative position, adjusting the display position of the virtual object in the world coordinate system to obtain a target virtual object in the viewing angle of the second device;

[0019] The third relative position between the virtual object and the virtual camera is consistent with the second relative position.

[0020] In some embodiments, the method further comprises:

[0021] Acquire an interactive operation of a user of the first device on the virtual object;

[0022] In response to an update instruction generated based on the interaction operation, the virtual object presented by the first image is updated.

[0023] In some embodiments, in response to an update instruction generated based on the interaction operation, updating the virtual object presented by the first image includes:

[0024] If the interactive operation is an operation to adjust the position of the virtual object and / or the camera of the first device, updating the first relative position and the second relative position;

[0025] According to the updated first relative position and the updated second relative position, the object attribute information of the virtual object presented by the first image is updated; the object attribute information at least includes position information and / or rotation information.

[0026] In some embodiments, obtaining a first relative position between the second device and the first device includes:

[0027] Performing distance analysis on the first device included in the usage scene image to obtain a first relative position between the second device and the first device; or,

[0028] A first relative position between the second device and the first device is determined according to a sensing parameter of a distance sensor of the second device.

[0029] In some embodiments, after the first device enters the first presentation mode, generating an application trigger instruction in response to a target application selection operation includes:

[0030] The first device outputs a display mode selection interface, where a first display mode and a second display mode to be selected are presented on the display mode selection interface;

[0031] In response to a selection operation of the first display mode presented on the display mode selection interface, controlling the first device to enter the first display mode and outputting an application selection interface;

[0032] In response to an application scene selection operation on the application selection interface, outputting a target application scene of the selected target application, and presenting a virtual object in the target application scene;

[0033] An application trigger instruction for characterizing a target application scenario of a target application output by the first device is generated, and the application trigger instruction is sent to any second device in the environment where the first device is located.

[0034] The present application also proposes an image processing device, the device comprising:

[0035] A virtual object determination module, used to determine a virtual object in a target application scenario output by the first device;

[0036] a data acquisition module, configured to acquire an image of a usage scene captured by the first device, a first relative position between the second device and the first device, and viewing angle configuration information of the first device for the virtual object; the viewing angle configuration information can at least represent a second relative position between the virtual object and the first device;

[0037] An image processing module, configured to load the virtual object from the perspective of the second device itself into the usage scene image according to the first relative position and the second relative position, so as to obtain a first image for the first device;

[0038] An image output module is used to output the first image.

[0039] The present application also proposes an electronic device, the device comprising:

[0040] Image output module; Image acquisition module; Communication module;

[0041] A memory, used for storing a program for implementing the above-mentioned image processing method;

[0042] The processor is used to load and execute the program stored in the memory to implement the image processing method as described above.

[0043] It can be seen that the present application proposes an image processing method, device and electronic device. After the second device determines the virtual object in the target application scenario output by the first device, it obtains the usage scene image captured by the first device, the first relative position between the second device and the first device, and the perspective configuration information of the first device for the virtual object. In this way, the second device can load the virtual object under the perspective of the second device itself in the usage scene image according to the second relative position between the virtual object and the first device represented by the first relative position and the perspective configuration information, and output the obtained first image for the first device. Through the first image, the usage scenario of the first device and the virtual object output by the first device can be observed, and the interaction between the user of the first device and the virtual object can also be observed. The whole processing process is simple, the processing efficiency is improved, and there is no need to configure other auxiliary devices, which enriches the third perspective observation implementation method. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0045] Figure 1 is an optional schematic diagram of a first image obtained based on the image processing method proposed in this application;

[0046] Figure 2 A schematic diagram of an optional system architecture suitable for an application environment of the image processing method proposed in this application;

[0047] Figure 3A schematic diagram of the hardware structure of an optional example of an electronic device applicable to the image processing method proposed in the present application;

[0048] Figure 4 A flowchart of an optional example of the image processing method proposed in this application;

[0049] Figure 5 An optional principle schematic diagram of the image processing method proposed in this application;

[0050] Figure 6 A flowchart of another optional example of the image processing method proposed in this application;

[0051] Figure 7 A flowchart of another optional example of the image processing method proposed in this application;

[0052] Figure 8 A schematic diagram of the structure of an optional example of the image processing device proposed in this application;

[0053] Fig. 9 This is a schematic structural diagram of yet another optional example of the image processing device proposed in this application. DETAILED DESCRIPTION

[0054] With respect to the description in the background technology section, the present application hopes to be able to view the virtual objects in the virtual environment viewed by the user when wearing any Virtual Reality (VR) device, Augmented Reality (AR) device, or Mediated Reality (MR) device, as well as the interactive operation process between the user and any virtual object, so as to better meet the requirements of application scenarios and enable viewers to better experience the display functions of such devices.

[0055] Among them, in order to achieve the above-mentioned technical effects, in the image processing method proposed in the present application, for a virtual object in a target application scene output by any first device in an AR / VR / MR device, when the second device captures a user wearing the first device to view the target application scene, and the second device determines the model object data of the virtual object in the target application scene, the present application can directly convert the virtual object displayed in the perspective of the first device based on the first relative position between the first device and the second device, and the second relative position between the virtual object and the first device, determine the display result of the virtual object in the perspective of the second device, such as the display position, etc., and load it into the image of the real environment captured by the second device, that is, the usage scene image of the first device, and output the obtained first image.

[0056] For example, in Figure 1 In the medical application scenario shown (not limited to this application scenario, the processing process for other application scenarios is similar, and this application does not give examples and detailed descriptions), user A on the right wears an AR device (i.e., the first device mentioned above) to view the internal structure of a virtual patient's body. If other users want to see the virtual object seen by user A, they can use a shooting device (i.e., the second device mentioned above) to shoot in the direction of user A. The shooting angle can be flexibly adjusted according to actual conditions, so that the real environment in the first image output by the shooting device and the virtual object output by the first device can be fully and reasonably displayed, such as Figure 1 The first image shown allows the user who watches the first image output by the second device to not only see the real environment where user A is located, but also to see the virtual object seen by user A from his own perspective. The entire process does not require the use of additional auxiliary equipment, nor does it require the first device and the second device to support SLAM (simultaneous localization and mapping) functions, thereby expanding the scope of application of the image processing method proposed in the present application.

[0057] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0058] Reference Figure 2 , is a schematic diagram of an optional system architecture suitable for an application environment of the image processing method proposed in this application, the application environment may include but is not limited to Figure 1 The medical application scenarios shown may also include online teaching application scenarios, smart transportation, games, and any other application scenarios, which may be determined based on actual application requirements. Figure 2 As shown, the system may include but is not limited to at least one first device 210 and at least one second device 220, wherein:

[0059] The first device 210 can be a terminal based on artificial intelligence technologies such as computer vision, image recognition, and machine learning, such as an AR device / VR device / MR device, etc. It can be a helmet-type device, a glasses-type device, etc. This application does not limit the product type of the first device 210. If needed, the first device 210 can also include auxiliary devices such as handles and smart gloves. The user can use the auxiliary device to achieve interactive operations with the virtual object output by the first device 210. The implementation process is not described in detail in this application.

[0060] In the embodiment of the present application, after the user (such as the user) wears the first device 210, he can select to run the target application scene, and the first device 210 responds to the application scene selection operation and outputs the virtual objects contained in the target application scene, such as Figure 1 The virtual patient's internal body structure, game virtual scene, virtual teaching scene, etc. shown in the application do not elaborate on the implementation process of how the first device 210 outputs the virtual objects in the target application scenario, which can be determined in combination with the working principle of the type of device to which the first device 210 belongs.

[0061] Among them, the resource data corresponding to each application scenario of the target application running on the first device 210 can be downloaded from the server of the resource provider, which is convenient for users to use the first device 210 for offline operations; or the first device 210 can directly access the server of the resource provider to obtain the resource data online and realize online interaction with the virtual object. This application does not limit the implementation method of the first device 210 obtaining and outputting the virtual object of the target application scenario, which can be determined according to the circumstances.

[0062] The second device 220 can support the terminals of artificial intelligence technologies such as computer vision, image recognition, and machine learning. In practical applications, the second device 220 can be an AR device / VR device / MR device, or other electronic devices with image acquisition and virtual image output functions. This application does not limit the product type of the second device 220. It should be noted that in this application, the first device 210 and the second device 220 work in the same physical environment and the same local area network environment, and the working scene is not limited.

[0063] In combination with the above description of the technical solution of the present application, for an observer who wants to observe the virtual object viewed by the user wearing the first device 210, and the interaction process between the user and the virtual object, the observer can select the second device 220 to shoot and display the interaction process of the user wearing the first device 210. The implementation process can be combined with the description of the corresponding part of the method embodiment below, and the embodiment of the present application will not be described in detail here.

[0064] In some embodiments proposed in this application, a unity-based SDK (Software Development Kit) can be constructed, and the SDK can include a network synchronization module to achieve information synchronization between different devices; it can also include a startup module for each application scenario supported by the application, so that the user can select the application scenario to output. Therefore, this application can develop an application based on the SDK, and the first device 210 and the second device 220 can install or run the application online. After starting the application, the application scenario can be selected for output or switching, and the implementation process is not limited in this application.

[0065] Based on this, when the user wears any electronic device such as the above-mentioned AR device / VR device / MR device and starts an application developed based on the SDK, he can select the display mode of the electronic device in the current scene according to the scene requirements. If he chooses to be the image sender (i.e., the first display mode), he can actively select the target application scene that the electronic device currently needs to output, and inform the shooting device used by the observer of the electronic device of this selection result, so that the shooting device can obtain the virtual resources corresponding to the target application scene, i.e., the object model data of each virtual object contained in the target application scene, so that the shooting device can execute the virtual resources and output the virtual object.

[0066] Of course, if the user wears any electronic device such as the above-mentioned AR device / VR device / MR device and chooses to act as an observer (that is, controls the electronic device to enter the second display mode and uses it as a shooting device), the image acquisition module of the electronic device can be started, and its shooting angle can be adjusted to shoot the first device in the first display mode in the current scene, and obtain the virtual object in the target application scenario output by the first device. The implementation process is not described in detail in this application.

[0067] For the first device 210 and the second device 220, data communication can be performed based on UDP (User Datagram Protocol), such as synchronization of interactive operations on virtual objects, etc. This application does not describe the communication implementation process in detail.

[0068] It should be understood that Figure 2 The system architecture of the application environment shown does not constitute a limitation of the system in the embodiments of the present application. In actual applications, the system architecture of the application environment suitable for the image processing method proposed in the present application may also include more devices or combined devices, such as a resource server that provides resource data required for the above-mentioned devices to output application scenarios, a communication server that supports data communication between different devices, etc. Optionally, the resource server and the communication server may also integrate the functions of both into a service device, etc., depending on the circumstances, and the present application does not list them one by one here.

[0069] Reference Figure 3 , is a hardware structure diagram of an optional example of an electronic device applicable to the image processing method proposed in this application. The electronic device can be the second device in the above system embodiment, can be a wearable smart terminal such as an AR device / VR device / MR device, or can be other types of terminal devices that support image acquisition and virtual image display, such as smart phones, laptops, desktop computers, robots, etc. This application does not limit the product type of the electronic device. Figure 3As shown, the electronic device may include but is not limited to: an image output module 310, an image acquisition module 320, a communication module 330, a memory 340 and a processor 350, wherein:

[0070] The image output module 310 can be used to output virtual objects in the application scenario, as well as the usage scenario images of the first device in the real environment captured by the image acquisition module 320, etc. This application does not limit the implementation method of how the image output module 310 outputs these two types of images. Optionally, the composition structure of the image output module 310 can be determined by referring to the composition structure of the display module in the AR device / VR device / MR device, which is not described in detail in this embodiment.

[0071] The image acquisition module 320 may include an image acquisition device such as a camera, and may also include a support mechanism that supports the image acquisition device to adjust shooting parameters such as shooting angle, etc., as needed. The present application does not limit the composition structure of the image acquisition module 320, which may be determined according to the circumstances. In the embodiment of the present application, when the application of the second device is started, the image acquisition module 320 may be triggered to enter the working state, and the image of the real environment within its shooting range may be acquired. The user of the second device may adjust the shooting position according to the actual shooting needs, so that the first device in the first display mode enters its shooting range, and can capture the usage scene image of the first device, such as Figure 1 The scene images shown show a user wearing an AR device to interact with the internal structure of a virtual patient's body. This application does not limit the implementation process and applicable scene types.

[0072] The communication module 330 can provide a wireless network or wired network communication function, so that the second device can communicate with other devices (such as the first device, resource server, communication server or other computer devices, etc.) through the wireless network or wired network to meet application communication requirements. This application does not limit the communication method supported by the communication module 330. It can be understood that the composition structure of the communication module 330 supporting different communication methods may be different.

[0073] Optionally, the communication module 330 may include a WIFI module, a 5G / 6G (fifth generation mobile communication network / sixth generation mobile communication network) module, a GPRS module, a near-field communication module, a Bluetooth module, etc.; it may also include a communication interface for realizing data interaction between internal components of the electronic device, such as a USB interface, a serial / parallel port, etc.; as needed, it may also include a multimedia interface for realizing a wired connection with a local multimedia device, etc., depending on the situation, and this application does not list them one by one here.

[0074] The memory 340 can be used to store a program for implementing the image processing method described in the above-mentioned method embodiments; the processor 350 can load and execute the program stored in the memory to implement the various steps of the image processing method described in the corresponding method embodiments below. The specific implementation process can refer to the description of the corresponding part of the method embodiments below, which will not be described in detail in this embodiment.

[0075] In the embodiment of the present application, the memory 340 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device. The processor 350 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, etc.

[0076] It should be understood that Figure 3 The structure of the electronic device shown does not constitute a limitation on the electronic device in the embodiments of the present application. In actual applications, the electronic device may include Figure 3 More or fewer components as shown, or a combination of certain components, according to actual needs, the electronic device may also include a touch sensing unit for sensing touch events on a touch display panel, a pickup, and at least one other input component such as a display, a speaker, a light, a vibration mechanism, and at least one other output component, a power module, an antenna, etc. This can be determined in combination with the product type of the electronic device and its functional requirements, and this application does not list them one by one here.

[0077] Reference Figure 4 , is a flowchart of an optional example of the image processing method proposed in this application. The method is applicable to the electronic device that can be used as the second device in the above embodiment. This application does not limit the type of electronic device that executes the image processing method, such as Figure 4 As shown, the method may include:

[0078] Step S41, determining a virtual object in a target application scenario output by the first device;

[0079] In combination with the above description of the technical solution of the present application, the first device may be an AR device / VR device / MR device, etc. After the user wears the first device to start the target application and enters the first display mode, the user may select the target application scene to be output from the various application scenes of the target application. Since the virtual objects contained in different application scenes and the object model data constituting the virtual objects are known or obtained at the same time, the first device may output the target application scene and present the corresponding virtual object in the target application scene in response to the selection operation of the target application scene. The present application does not elaborate on how the first device uses AR / VR / MR technology to realize the output implementation method of the virtual object in the target application scene.

[0080] In an embodiment of the present application, after the first device determines the selected target application scenario, that is, after determining the output virtual object, the selection result can be notified to the second device in an active or passive manner. The present application does not limit the notification implementation method, which can be determined according to the circumstances. The second device obtains the notification message sent by the first device, and can learn from it the virtual object in the target application scenario currently output by the first device.

[0081] Step S42, acquiring the usage scene image captured by the first device, the first relative position between the second device and the first device, and the viewing angle configuration information of the first device for the output virtual object;

[0082] In order to output the virtual object in the target application scenario currently output by the first device, the second device can start the target application run by the first device, learn all application scenarios of the target application, and then obtain the object model data of the virtual object in the target application scenario output by the first device based on the above-mentioned notification message content sent by the first device. It can also obtain the perspective configuration information sent by the first device for the output virtual object, that is, when the first device outputs the virtual object, the configuration information of the camera of the first device can at least represent the second relative position between the current virtual object and the first device, such as distance, angle and other information. The present application does not limit the content of the perspective configuration information obtained by the second device from the first device and the method of generating it.

[0083] Among them, the second device, as an observation device for the first device and its user, can also output the entire process of the user using the first device to view the virtual object output by it, and even interact with the virtual object. Therefore, the second device can start its shooting function, that is, control the image acquisition module of the second device to work, and shoot the usage scene in which the user wears the first device to operate, and obtain the usage scene image captured by the first device, that is, the image of the real environment in which the first device and its user are located.

[0084] In addition, in order to synchronize the virtual object output by the first device to the output of the second device, and output the virtual object from the perspective of the second device itself, the example of this application can also obtain the first relative position between the first device and the second device. For example, after determining the shooting position of the second device, the distance between the first device and the second device within the shooting range of the second device can be estimated. This application does not limit the method for obtaining the first relative position.

[0085] Step S43, loading the virtual object in the second device's own perspective into the usage scene image according to the first relative position and the second relative position, to obtain a first image for the first device;

[0086] Combined with the above description of the technical concept of this application, refer to Figure 5 As shown in the schematic diagram of image processing principle, after the second device determines the virtual object output by the first device, for the same virtual object, when the output result of the virtual object from the perspective of the first device itself is known, it is necessary to output the display state of the virtual object from the perspective of the second device. The embodiment of the present application proposes to utilize the relative position relationship between the virtual object and the second device and each of them with the first device, convert and calculate the relative position relationship between the virtual object and the second device, thereby determining the display state of the virtual object from the perspective of the second device, loading the virtual object according to the display state, and displaying the virtual object at the corresponding position in the usage scene image of the first device, such as Figure 1 The application scenario shown makes the display state of the virtual object output by the second device conform to the observer's observation perspective, that is, for the virtual object output from the first device's own perspective, the virtual object from the third perspective is output through the second device, and the virtual object output by the first device and the user's interaction operation with the virtual object can be intuitively seen, thereby better meeting application requirements.

[0087] It should be noted that this application is based on the virtual object output from the first device's own perspective, how to use the first relative position and the second relative position to process the object model data of the virtual object to obtain the implementation method of the virtual object from the second device's perspective, that is, when the display position of the same virtual object in the world coordinate system remains unchanged, the display result from a certain perspective is known, and there is no restriction on how to obtain the display result from another perspective. For example, based on the conversion processing method between different camera coordinate systems and the world coordinate system, the virtual object output in the camera coordinate system constructed based on the first device can be converted to the camera coordinate system constructed based on the second device for display, etc. The implementation process is not described in detail in this application.

[0088] As can be seen from the above analysis, in the image processing method proposed in the present application, for any type of virtual object in the target application scenario output by the first device such as AR device / VR device / MR device, if you want to observe the virtual object output by the first device from a third perspective, or even the interaction between the user of the first device and the virtual object, you can directly use the relative position relationship between the virtual object, the first device, and the second device for conversion processing, determine the virtual object output by the first device from the perspective of the second device, fuse it with the image of the use scene of the first device in the real environment captured by the second device, and output the obtained first image. In this way, when the user watches the first image, he can not only see the real environment where the user of the first device is located, but also know the virtual object currently output by the first device and the interaction between the user of the first device and the virtual object. The entire processing process does not require the device to have a SLAM function, which reduces the requirements for applicable devices and expands the scope of application; and there is no need for each device to send the captured image to the server for fusion processing, which simplifies the processing steps and improves the processing efficiency.

[0089] Step S44: output the first image.

[0090] In an embodiment of the present application, after the second device obtains the first image of the usage scenario of the first device from the perspective of the second device and the first image of the virtual object currently output by the first device according to the method described above, the second device can display it by its own image output module, so that the observing user can watch the usage scenario of the first device and the virtual object viewed by the user of the first device through the second device, and can even see the interaction between the user and the virtual object. The first device responds to the interaction and updates the display of the virtual object to better meet the application needs such as online teaching and training, product display, smart medical care, smart transportation, home decoration design, etc., and enhance the user experience.

[0091] The second device may communicate with at least one first device, and obtain a first image for the at least one first device according to the method described above, such as Figure 1 The second device shown outputs the usage scenarios of the multiple first devices and the virtual objects output by each of them. The interaction process between the first devices and the second devices during the implementation process is the same as the implementation process described in this embodiment, and this application will not repeat them one by one. It should be understood that in the case of multiple first devices, the second device can directly shoot the usage scenario images of the multiple first devices, that is, the second device obtains the usage scenario images for the multiple first devices, and on this basis loads the virtual objects output by each first device from the perspective of the second device, and obtains the following Figure 1 The first image is shown.

[0092] In some embodiments, after the second device obtains the first image according to the above method, it can also send the first image to other independent output devices that are communicatively connected to the second device for display, that is, to achieve display expansion of the second device, so as to better meet the observation needs of different observation users for the use scenarios of the first device and the output virtual scenes. Therefore, this application does not limit the implementation method of the second device outputting the first image, which can be determined according to actual business needs.

[0093] Reference Figure 6 , which is a flowchart of another optional example of the image processing method proposed in the present application. The method may be an optional refined implementation method of the image processing method described above, but is not limited to the refined implementation method described in this embodiment, and the method may still be executed by the second device, such as Figure 6 As shown, the method may include:

[0094] Step S61, receiving an application trigger instruction sent by the first device;

[0095] Combined with the description of the corresponding part of the above embodiment, the present application can develop applications based on SDK. The application can have multiple application scenarios, and different application scenarios can jump to each other. Therefore, when outputting any application scenario, the corresponding display interface can be configured with several application scenario jump buttons (the number of which is 1 less than the total number of application scenarios of the application). When you want to jump to other application scenarios, you can directly trigger the corresponding application scenario jump button, which is simple to operate; of course, the present application can also adopt other triggering methods to achieve jump output between different application scenarios, such as by executing preset gestures / postures, through voice recognition, etc., to determine the jump instruction for the application scenario you want to jump to, and the first device executes the jump instruction to achieve the jump of the application scenario. This application does not limit the method for implementing jumps between different application scenarios of the same application, which can be determined according to the circumstances.

[0096] When the user of the first device wears the first device and starts the target application at a certain spatial point in the current space, the user can select the display mode that the first device currently needs to enter. For example, after selecting to enter the first display mode and controlling the first device to enter the first display mode, the user can perform a selection operation on multiple application scenarios of the output target application. The first device responds to the target application scenario selection operation of the target application and obtains resource data corresponding to the target application scenario so that the first device outputs the virtual object under the target application scenario. In the process, an application trigger instruction can also be generated and sent to the second device to notify the second device of the target application scenario currently output by the first device.

[0097] It can be seen that the above application trigger instruction may include the application identifier of the target application started by the first device, and the application scenario identifier of the target application scenario output by the first device, and may even be the object identifier of the virtual object in the target application scenario currently output by the first device, etc. This application does not limit the content of each identifier and its configuration implementation method, as well as the content contained in the application trigger instruction and its generation method, etc., which may be determined according to the circumstances. It should be noted that when the user wears the first device to complete the selection of the target application scenario and enters the target application scenario, the position of the first device may remain unchanged temporarily, waiting for the second device to obtain the virtual object currently output by the first device.

[0098] Based on the above analysis, in some embodiments, in order to generate the above application trigger instruction, the first device can output a display mode selection interface, in which the first display mode and the second display mode to be selected are presented, wherein the first device in the first display mode can synchronously send its own perspective configuration information, object model data of the output virtual object and other information to the second device; the second device in the second display mode can receive the information sent by the first device to synchronously display the virtual object output from the perspective of the first device from its own perspective. It can be seen that if the user of the first device selects the second display mode, it usually no longer selects the target application scene output, but waits as the second device to send the application trigger instruction to the first device entering the first display mode. Therefore, the second device in the embodiment of the present application starts the target application, and can also select the display mode it enters in the above manner, that is, enter the second display mode, and complete the subsequent processing steps. It should be noted that the present application does not limit the content and layout of the display mode selection interface, which can be determined according to the circumstances.

[0099] After the first device detects the above selection operation, it can respond to the selection operation of the first display mode presented on the display mode selection interface, control the first device to enter the first display mode, and output the application selection interface. On the application selection interface, at least one application scenario of the target application can be displayed, such as application scenario A, application scenario B, and application scenario C, etc. The user of the first device can flexibly select an application scenario as the target application scenario according to needs, and the selection implementation method is not limited in this application. Afterwards, the first device responds to the application scenario selection operation on the application selection interface, outputs the target application scenario of the selected target application, and presents a virtual object in the target application scenario. Based on this, the first device can generate an application trigger instruction for characterizing the target application scenario of the target application output by the first device, and send the application trigger instruction to any second device in the environment where the first device is located, that is, a second device in the same local area network as the first device. The selection of the second device and the implementation method of sending the application trigger instruction are not limited in this application.

[0100] In some other embodiments, the above-mentioned display mode selection interface may also include a third display mode. When the electronic device (referred to as the third device) chooses to enter the third display mode, it can be compatible with the respective functions of the electronic device entering the first display mode and the electronic device entering the second display mode, so that the third device can synchronously display the usage scenario of the first device and its output virtual object, as well as the interaction between the user of the first device and the virtual object, and can also output the third device itself to load other virtual objects. At this time, the virtual object can be synchronized to other devices for display (such as third-view or main-view display, etc.), or it can be displayed only by the third device. This application does not limit this and can be determined according to the scene requirements. Regarding the implementation method of the synchronous display of virtual objects between different electronic devices, it is similar to the implementation method described in the embodiment of this application, and this application will not be described in detail.

[0101] Step S62, responding to the application triggering instruction, determining a target application started by the first device and a target application scenario of the target application selected for output;

[0102] Step S63, triggering the target application in the second device to start running, and determining the virtual objects in the target application scenario of the target application;

[0103] According to the above description of the application trigger instruction, the virtual object in the target application scenario currently output by the first device can be learned by parsing the application trigger instruction. Since the second device can run the target application, and the application resources of the target application include the various application scenarios it has, the second device can obtain the resource data corresponding to the various application scenarios of the target application, and can directly select the target resource data corresponding to the target application scenario currently output by the first device, which includes the object model data corresponding to the virtual object in the target application scenario. The method for obtaining the resource data of the target application is not described in detail in this application.

[0104] In some other embodiments proposed in the present application, for the virtual objects in the target application scenario output by the first device, the first device may also determine the output target application scenario and then send the object model data of the virtual objects in the target application scenario to the second device, so that the second device can subsequently output the virtual objects from its own perspective based on the object model data. Alternatively, the first device may also notify the resource server that provides the target application scenario to send the object model data of each virtual object in the target application scenario, or even the resource data of each application scenario of the target application, to the second device, so that the second device can call it during subsequent output, etc. The present application does not limit the implementation method of how the second device obtains the resource data of the target application scenario.

[0105] Among them, the data communication between the first device and the second device, and / or the communication between the resource servers that provide the resource data of the target application, can be implemented through the corresponding application programming interface API (Application Programming Interface). Optionally, when developing the target application launched by the electronic device, the API corresponding to the synchronization of various information can be configured, such as the respective APIs for synchronizing the object model data of the virtual object of the first device, the perspective configuration information and other data, etc. The second device can synchronize the information by calling the API corresponding to the information to be synchronized, and the implementation process will not be described in detail.

[0106] Step S64, obtaining the usage scene image captured by the first device, the first relative position between the second device and the first device, and the viewing angle configuration information of the first device for the output virtual object;

[0107] Regarding the implementation process of step S64, reference may be made to the description of the corresponding part of the above embodiment, which will not be elaborated in this embodiment.

[0108] From the above analysis, it can be seen that after the second device starts the target application, its camera enters the shooting working state, and can capture images of the real environment within its shooting range to obtain the usage scene image of the first device; the first device can also configure the viewing angle configuration information of its own camera for the currently output virtual object, such as the distance between the camera and the virtual object, the display angle of the virtual object, etc. This application does not restrict the content of the viewing angle configuration information, and can be flexibly adjusted according to application requirements.

[0109] It can be understood that when there are multiple first devices, the second device can receive the perspective configuration information of each first device for the currently output virtual object, as well as the second relative position between each first device and the virtual object output by itself, etc. The implementation method is not described in detail in this application.

[0110] In some embodiments proposed in the present application, the second device can predict the distance between the corresponding first device and the second device, as well as the main axis direction of the first device relative to the second device based on the received first relative position, and accordingly place the current position of the first device at an anchor point based on the world coordinate system, after which the observing user can adjust the shooting position, shooting angle and other information of the second device according to actual conditions until it moves to a suitable position. The second device can then receive the second relative position and viewing angle configuration information sent by the first device. At this point, the second relative position between the first device and the virtual object, that is, the third relative position between the anchor point position and the virtual object, that is, the second relative position and the third relative position are consistent.

[0111] Of course, in some other embodiments, the shooting position of the second device can be determined first, and then the first relative position and the second relative position and viewing angle configuration information sent by at least one first device can be obtained according to the method described above. The present application does not limit the implementation method of step S64, which can be flexibly determined according to the scene requirements, including but not limited to the implementation method described in the context.

[0112] Step S65, adjusting the virtual object in the perspective of the first device to be the target virtual object in the perspective of the second device according to the first relative position and the second relative position between the virtual object and the first device represented by the perspective configuration information;

[0113] Step S66, fusing the target virtual object into the usage scene image to obtain a first image for the first device;

[0114] Step S67: output the first image.

[0115] Since this application needs to watch the virtual object output by the first device from the perspective of the second device, and the perspective configuration information for the virtual object sent by the first device is determined based on the configuration of the first device's own perspective, the virtual object output by the first device is also displayed from the perspective of the first device itself. Therefore, after knowing the relative positional relationship between the first device, the second device, and the virtual object currently output by the first device, the second device can directly perform perspective conversion processing on the display state of the virtual object output from the perspective of the first device based on the above information that can be obtained, to obtain the display state of the virtual object from the perspective of the second device. For the convenience of description, the virtual object with this display state from the perspective of the second device can be recorded as the target virtual object.

[0116] Since the object model data of the virtual object exists in the second device, after knowing the display status of the virtual object in the perspective of the second device, the object model data can be loaded and processed accordingly, and the target virtual object with the display status is displayed in the captured usage scene image. The output of the obtained first image is equivalent to the first device outputting the virtual object in the target application scenario. It can be viewed not only by the user of the first device, but also by the observing user who is not wearing the first device through the second device, and both of them are viewing the same virtual object from their own perspective, which enriches the image output method of the device. Compared with the processing method of projecting the virtual object output by the first device, it makes full use of artificial intelligence technologies such as computer vision supported by the device, retains the sense of technology of device use, and improves the user experience.

[0117] Reference Figure 7, which is a flowchart of another optional example of the image processing method proposed in the present application. This method can be another optional refined implementation method of the image processing method described above, and can provide a detailed description of how to load the virtual object in the second device's own perspective in the scene image based on the first relative position and the second relative position in the above embodiment to obtain the first image, but is not limited to the refined implementation method described in this embodiment. The image processing method proposed in this embodiment can still be executed by the second device, and for other steps of the image processing method besides obtaining the first image, refer to the description of the corresponding part of the context embodiment, which will not be repeated in this embodiment. Figure 7 As shown, the image processing method proposed in this embodiment may include:

[0118] Step S71, determining a virtual object in a target application scenario output by the first device;

[0119] Regarding the implementation process of step S71, reference may be made to the description of the corresponding part of the above embodiment, and this embodiment will not be elaborated here.

[0120] Step S72, obtaining the usage scene image captured by the first device and the sensing parameters of the distance sensor of the second device;

[0121] Step S73, determining a first relative position between the second device and the first device according to the sensing parameter;

[0122] After the second device determines the target application scenario of the target application launched by the first device, it can start the target application of the second device itself, obtain the resource data of the target application, and at the same time trigger the image acquisition module of the second device to enter the working state, and shoot the usage scenario of the user wearing the first device to view the virtual object in the target application scenario output by it, and obtain the corresponding usage scenario image. The implementation process is not described in detail in this application.

[0123] In the process of the second device outputting the virtual object output by the first device under its own perspective, the output of the second device is not required to achieve very high accuracy. Usually, the virtual object output from the perspective of the first device can be seen from the perspective of the second device, as well as the interactive operations of the first device user on the virtual object, which can meet the third-perspective observation requirements. Therefore, the present application can roughly estimate the first relative position between the first device and the second device. As described in this embodiment, it can be achieved by using sensors such as laser, infrared, TOF (Time of Flight) configured by the second device, or monocular / binocular ranging methods. The present application does not limit the type of the above-mentioned distance sensor.

[0124] It can be understood that for different types of distance sensors, their sensing parameters are often different, and the implementation method of determining the first relative position between the first device and the second device may also be different. It can be determined in combination with the ranging working principle of the corresponding type of distance sensor, and the embodiments of the present application will not be described in detail here.

[0125] In some other embodiments, since the usage scene image for the first device obtained by the second device includes the first device, the second device can perform a distance analysis on the first device included in the usage scene image in combination with the configuration information of the image acquisition module such as a camera when shooting the usage scene image, and obtain a first relative position between the second device and the first device. The implementation process can be determined in combination with the principle of monocular ranging or binocular ranging, which is not described in detail in this embodiment.

[0126] Step S74, obtaining perspective configuration information of the first device for the output virtual object, where the perspective configuration information can at least represent a second relative position between the virtual object and the first device;

[0127] Combined with the above analysis, it can be known that after the second device starts shooting the target application, the target application can be used to realize real-time image acquisition of the current usage scene of the first device and obtain the usage scene image for the first device; it can also be used to obtain all application scenes of the target application currently started by the first device; it can also be used to receive the perspective configuration information sent by the first device under the same local area network, as well as the object model data of the virtual object currently output by the first device, or the application trigger instruction indicating the virtual object output by the first device and other information. Of course, according to the functional requirements of the target application, it can also be configured with other functional modules, which are not listed one by one in this application.

[0128] Step S75, using the first relative position, determining an anchor point position of the first device in the world coordinate system, and configuring a first virtual device at the anchor point position;

[0129] Step S76, controlling the virtual camera of the first virtual device to synchronize the viewing angle configuration information of the camera of the first device, and the first virtual device to synchronously output the virtual object output by the first device;

[0130] After the second device predicts the current position of the first device, it can place an anchor point based on the world coordinate system at the current position, and configure the first virtual device (the virtual device relative to the first device) as an anchor point at the anchor point. After receiving the perspective configuration information sent by the actual first device, the virtual camera of the first virtual device synchronizes the perspective configuration information of the camera of the first device, thereby enabling the first virtual device to synchronously output the virtual object output by the first device. In this case, in the usage scenario of the first device, the relative position relationship between the virtual object and the camera (i.e., the second relative position) is the relative position relationship between the virtual object in the shooting scene and the determined anchor point, and the virtual object can be loaded based on the second relative position.

[0131] It can be seen that the virtual object in the second device is actually placed based on the virtual anchor point. For the second device, the virtual object output by the first device is viewed from the third perspective. The first device perspective viewing the virtual object can be considered as viewing the virtual object from the main perspective. Since the application resource data of the first device and the second device are the same, the application of the second device contains the object model data of each virtual object in all application scenarios. Therefore, after the second device completes the above-mentioned virtual anchor point construction (i.e., the construction of the first virtual device or the virtual camera contained therein), it can be combined with the existing resource data to realize the information synchronization between the virtual camera and the real camera of the first device, such as the near plane and far plane distance, and synchronize all other information except position and steering, and then synchronize the virtual object information, such as the object model data of the virtual object, bind the relative position relationship between the virtual object currently output by the first device and the configured first virtual device or its virtual camera, that is, control the third relative position between the virtual object and the virtual camera to be consistent with the above-mentioned second relative position. The synchronization implementation process is not described in detail in this application.

[0132] In practical applications, after determining the anchor point position of the first device in the shooting scene of the second device (i.e., the usage scene of the first device), the shooting position of the second device can be adjusted as needed, and the overall layout of the first device and its user, as well as the virtual object output by the first device, in the captured usage scene image of the first device is updated, so that the user can better watch the use process of the first device and the virtual object output by the first device, as well as the interaction process between the user and the virtual object, etc. through the image. After determining the shooting position of the second device, keep the shooting position unchanged, and obtain the object model data and perspective configuration information of the virtual object of the first device, the second relative position and other related information according to the method described above.

[0133] Step S77, using the first relative position and the second relative position, adjusting the display position of the virtual object in the world coordinate system to obtain the target virtual object in the perspective of the second device;

[0134] For the same virtual object, its display status is often different under different viewing angles. After the second device obtains the above-mentioned first relative position and the second relative position, it can perform coordinate transformation calculation on the virtual object under the viewing angle of the first device through coordinate transformation, adjust the display position of the virtual object in the world coordinate system, and obtain its display status under the viewing angle of the second device, which is recorded as the target virtual object.

[0135] Step S78, fusing the target virtual object into the usage scene image, and outputting the obtained first image for the first device;

[0136] Since the second device is shooting the usage scene of the first device in real time, the image within the shooting field of the second device is the required third-perspective image for the first device. The usage scene image directly captured by the image acquisition module of the second device can be fused with the obtained target virtual object to obtain the required first image. This application does not limit the method for implementing the fusion of the usage scene image and the target virtual object, such as superimposing the target virtual object on the usage scene image, and this application does not describe the superimposition processing process in detail.

[0137] Step S79, obtaining the interactive operation of the user of the first device on the virtual object;

[0138] Step S710: responding to an update instruction generated based on the interactive operation, updating a target virtual object presented by the first image.

[0139] In an embodiment of the present application, during the process of the second device outputting the usage scenario of the first device and the virtual object output by it, if it is detected that the position of the first device and / or the position of the virtual object output by the first device has changed, this change can be synchronized to the second device through UDP communication, and the second device synchronously updates the virtual anchor point and virtual object position information, rotation information, etc. in the usage scenario. In other words, the second device can synchronize the user's interactive operations on the virtual object in the first device in real time, so that the output content of the second device is consistent with that of the first device. This application does not limit the process of how the second device achieves information synchronization with the first device.

[0140] Based on the above analysis, it can be known that if the above-mentioned interactive operation is an operation to adjust the position of the virtual object and / or the camera of the first device, such as zooming in or out or adjusting the position of the virtual object, adjusting the viewing angle of the first device to the virtual object, etc., the first relative position and the second relative position can be updated, thereby updating the object attribute information of the virtual object presented in the first image based on the updated first relative position and the updated second relative position. The object attribute information may include at least position information and / or rotation information, etc. The present application does not limit the content contained in the object attribute information, which can be determined according to the update requirements.

[0141] It should be understood that the user's interactive operation content on the virtual object output by the first device includes but is not limited to the several interactive operation methods listed above. Depending on the scenario requirements, it may also include deleting one or more virtual objects in the target application scenario currently output by the first device, adding new virtual objects to the target application scenario, etc. The second device can synchronize the interactive operation according to the synchronous update method described above so that the second device simulates the image output by the first device, which is consistent with the image actually output by the first device.

[0142] Reference Figure 8 , is a schematic diagram of an optional example of the structure of the image processing device proposed in this application, and the device may include:

[0143] A virtual object determination module 810, configured to determine a virtual object in a target application scenario output by the first device;

[0144] The data acquisition module 820 is used to acquire the usage scene image captured by the first device, the first relative position between the second device and the first device, and the perspective configuration information of the first device for the virtual object; the perspective configuration information can at least represent the second relative position between the virtual object and the first device;

[0145] An image processing module 830 is used to load the virtual object under the perspective of the second device itself into the usage scene image according to the first relative position and the second relative position, so as to obtain a first image for the first device;

[0146] The image output module 840 is configured to output the first image.

[0147] In some embodiments, Fig. 9 As shown, the virtual object determination module 810 may include:

[0148] The application trigger instruction receiving unit 811 is used to receive the application trigger instruction sent by the first device;

[0149] The application trigger instruction is generated after the first device enters the first display mode in response to a target application scenario selection operation of the target application. In order to generate the application trigger instruction, the first device may include the following modules:

[0150] A display mode selection interface output module, used for outputting a display mode selection interface, on which a first display mode and a second display mode to be selected are presented;

[0151] a display mode control module, configured to control the first device to enter the first display mode and output an application selection interface in response to a selection operation of the first display mode presented on the display mode selection interface;

[0152] An application scene output module, configured to respond to an application scene selection operation on the application selection interface, output a target application scene of the selected target application, and present a virtual object in the target application scene;

[0153] An application trigger instruction generation module, used to generate an application trigger instruction for representing a target application scenario of a target application output by the first device;

[0154] The application trigger instruction sending module is used to send the application trigger instruction to any second device in the environment where the first device is located.

[0155] A target application scenario determining unit 812 is configured to determine, in response to the application triggering instruction, a target application to be started by the first device and a target application scenario of the target application selected for output;

[0156] A virtual object determining unit 813 is used to trigger the target application in the second device to start running and determine the virtual object of the target application in the target application scenario;

[0157] Optionally, the virtual object determination module 810 may also include:

[0158] A data receiving unit is used to receive object model data of the virtual object in the target application scenario sent by the first device, so as to output the virtual object.

[0159] In some further embodiments, the image processing module 830 may include:

[0160] A virtual object adjustment unit, configured to adjust the virtual object in the perspective of the first device to a target virtual object in the perspective of the second device according to the first relative position and the second relative position;

[0161] An image fusion unit is used to fuse the target virtual object into the usage scene image to obtain a first image for the first device.

[0162] Optionally, the virtual object adjustment unit may include:

[0163] an anchor point determination unit, configured to determine an anchor point position of the first device in a world coordinate system by using the first relative position, and configure a first virtual device at the anchor point position;

[0164] an information synchronization unit, configured to control the virtual camera of the first virtual device to synchronize the viewing angle configuration information of the camera of the first device, and the first virtual device to synchronously output the virtual object output by the first device;

[0165] A display position adjustment unit, configured to adjust a display position of the virtual object in the world coordinate system by using the first relative position and the second relative position, so as to obtain a target virtual object in the viewing angle of the second device;

[0166] The third relative position between the virtual object and the virtual camera is consistent with the second relative position.

[0167] Optionally, the data acquisition module 820 may include:

[0168] a distance analysis unit, configured to perform distance analysis on the first device included in the usage scene image to obtain a first relative position between the second device and the first device; or

[0169] The distance sensing unit is used to determine a first relative position between the second device and the first device according to a sensing parameter of a distance sensor of the second device.

[0170] In some further embodiments, based on the description of the above embodiments, the image processing device may further include:

[0171] An interactive operation acquisition module, used to acquire an interactive operation of a user of the first device on the virtual object;

[0172] An updating module is used to update the virtual object presented by the first image in response to an updating instruction generated based on the interactive operation.

[0173] Optionally, the update module may include:

[0174] A relative position updating unit, configured to update the first relative position and the second relative position when the interactive operation is an operation of adjusting the position of the virtual object and / or the camera of the first device;

[0175] The object attribute information updating unit is used to update the object attribute information of the virtual object presented by the first image according to the updated first relative position and the updated second relative position; the object attribute information at least includes position information and / or rotation information.

[0176] It should be noted that the various modules, units, etc. in the above-mentioned device embodiments can be stored in the memory as program modules, and the processor executes the above-mentioned program modules stored in the memory to implement the corresponding functions. For the functions implemented by each program module and its combination, as well as the technical effects achieved, please refer to the description of the corresponding parts of the above-mentioned method embodiments, which will not be repeated in this embodiment.

[0177] The present application also provides a storage medium on which a computer program can be stored. The computer program can be called and loaded by a processor to implement the various steps of the image processing method described in the above embodiment. The implementation process can refer to the description of the above method embodiment and will not be repeated in this embodiment.

[0178] Finally, it should be noted that, with respect to the above embodiments, unless the context clearly indicates an exception, the words "a", "an", "a kind" and / or "the" do not specifically refer to the singular, but may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of clearly identified steps and elements, and these steps and elements do not constitute an exclusive list, and the method or device may also include other steps or elements. The elements defined by the sentence "includes a..." do not exclude the existence of other identical elements in the process, method, commodity or device that includes the elements.

[0179] In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0180] The terms such as "first", "second", etc. used in this application are only used for descriptive purposes to distinguish one operation, unit or module from another operation, unit or module, and do not necessarily require or imply any actual relationship or order between these units, operations or modules. They cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0181] In addition, the various embodiments in this specification are described in a progressive or parallel manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the devices, electronic devices, and systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method part description.

[0182] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An image processing method, the method comprising: Determine a virtual object in a target application scenario output by the first device; Acquire a usage scene image captured by the first device, a first relative position between the second device and the first device, and viewing angle configuration information of the first device for the virtual object; The viewing angle configuration information can at least represent a second relative position between the virtual object and the first device; According to the first relative position and the second relative position, the virtual object under the perspective of the second device itself is loaded into the usage scene image to obtain a first image for the first device; outputting the first image; The step of determining the virtual object in the target application scenario output by the first device includes: receiving an application trigger instruction sent by the first device; the application trigger instruction is generated in response to a target application scenario selection operation of a target application after the first device enters the first display mode; In response to the application trigger instruction, determining a target application to be started by the first device and a target application scenario of the target application selected for output; The target application in the second device is triggered to start running, and a virtual object in the target application scenario of the target application is determined, or object model data of the virtual object in the target application scenario sent by the first device is received to output the virtual object.

2. The method according to claim 1, wherein the step of loading the virtual object from the perspective of the second device into the usage scene image based on the first relative position and the second relative position to obtain a first image for the first device comprises: According to the first relative position and the second relative position, adjusting the virtual object in the perspective of the first device to be a target virtual object in the perspective of the second device; The target virtual object is integrated into the usage scene image to obtain a first image for the first device.

3. The method according to claim 2, wherein adjusting the virtual object in the perspective of the first device to be a target virtual object in the perspective of the second device according to the first relative position and the second relative position comprises: Determine an anchor point position of the first device in a world coordinate system by using the first relative position, and configure a first virtual device at the anchor point position; Controlling the virtual camera of the first virtual device to synchronize the viewing angle configuration information of the camera of the first device, and the first virtual device to synchronously output the virtual object output by the first device; Using the first relative position and the second relative position, adjusting the display position of the virtual object in the world coordinate system to obtain a target virtual object in the viewing angle of the second device; The third relative position between the virtual object and the virtual camera is consistent with the second relative position.

4. The method according to any one of claims 1 to 3, further comprising: Acquire an interactive operation of a user of the first device on the virtual object; In response to an update instruction generated based on the interaction operation, the virtual object presented by the first image is updated.

5. The method according to claim 4, wherein the updating of the virtual object presented by the first image in response to the update instruction generated based on the interaction operation comprises: If the interactive operation is an operation to adjust the position of the virtual object and / or the camera of the first device, updating the first relative position and the second relative position; According to the updated first relative position and the updated second relative position, the object attribute information of the virtual object presented by the first image is updated; the object attribute information at least includes position information and / or rotation information.

6. According to the method according to any one of claims 1 to 3, the acquiring the first relative position between the second device and the first device comprises: Performing distance analysis on the first device included in the usage scene image to obtain a first relative position between the second device and the first device; or, A first relative position between the second device and the first device is determined according to a sensing parameter of a distance sensor of the second device.

7. The method according to claim 1, wherein after the first device enters the first display mode, generating an application trigger instruction in response to a target application selection operation comprises: The first device outputs a display mode selection interface, where a first display mode and a second display mode to be selected are presented on the display mode selection interface; In response to a selection operation of the first display mode presented on the display mode selection interface, controlling the first device to enter the first display mode and outputting an application selection interface; In response to an application scene selection operation on the application selection interface, outputting a target application scene of the selected target application, and presenting a virtual object in the target application scene; An application trigger instruction for characterizing a target application scenario of a target application output by the first device is generated, and the application trigger instruction is sent to any second device in the environment where the first device is located.

8. An image processing device, comprising: A virtual object determination module, used to determine a virtual object in a target application scenario output by the first device; A data acquisition module, used to acquire the usage scene image captured by the first device, the first relative position between the second device and the first device, and the viewing angle configuration information of the first device for the virtual object; The viewing angle configuration information can at least represent a second relative position between the virtual object and the first device; An image processing module, configured to load the virtual object from the perspective of the second device itself into the usage scene image according to the first relative position and the second relative position, so as to obtain a first image for the first device; An image output module, used for outputting the first image; The virtual object determination module determines the virtual object in the target application scenario output by the first device, specifically for: receiving an application trigger instruction sent by a first device; the application trigger instruction is generated after the first device enters a first display mode in response to a target application scenario selection operation of a target application; in response to the application trigger instruction, determining a target application to be started by the first device and a target application scenario of the target application selected for output; The target application in the second device is triggered to start running, and a virtual object in the target application scenario of the target application is determined, or object model data of the virtual object in the target application scenario sent by the first device is received to output the virtual object.

9. An electronic device, comprising: Image output module; Image acquisition module; Communication module; A memory, used for storing a program for implementing the image processing method according to any one of claims 1 to 7; A processor is used to load and execute the program stored in the memory to implement the image processing method according to any one of claims 1 to 7.