Method and system for setting a renderable virtual object for a target
By using cameras and optical communication devices to track the target position and posture in real scenes, and setting up following virtual objects, it solves the problems in the existing technology that virtual objects cannot move with the real scene targets and the accuracy of multi-person AR interaction is insufficient, and realizes augmented reality. Technical flexibility and high accuracy.
Patent Information
- Application Number
- CN201910917441.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-26
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2039-09-26
AI Technical Summary
Existing augmented reality technology lacks flexibility when superimposing virtual objects, cannot move with targets in real scenes, and lacks accuracy in AR interactions between multiple people.
By installing cameras and optical communication devices in the real scene, the target position and posture are tracked, and based on this, virtual objects associated with the target are set and accurately presented on the display medium through the optical communication device to ensure that the virtual objects follow the movement of the target.
It achieves the precise following of virtual objects in real scenes and the high accuracy of multi-person AR interaction, improving the flexibility and application breadth of augmented reality technology.
Smart Images

Figure CN112561952B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of augmented reality, and in particular relates to a method and system for setting a presentable virtual object for a target in a real scene. Background Art
[0002] The statements in this section are merely intended to provide background information related to the present invention to help understanding the present invention. Such background information does not necessarily constitute prior art.
[0003] In recent years, augmented reality (AR) technology has made great progress. Augmented reality technology is also known as mixed reality technology. It uses computer technology to superimpose virtual objects on real scenes, so that real scenes and virtual objects can be presented in the same screen or space in real time, thereby enhancing the user's perception of the real world. Because augmented reality technology can enhance the display output of the real environment, it has been increasingly widely used in technical fields such as medical research and anatomical training, precision instrument manufacturing and maintenance, military aircraft navigation, engineering design, and remote robot control.
[0004] In one augmented reality application, some data information can be superimposed at a fixed position in the field of vision. For example, when a pilot is flying an airplane, he can view the flight data superimposed on the real scene by wearing a display helmet. These data are usually displayed at a fixed position in the field of vision (for example, always in the upper right corner of the field of vision), so they lack sufficient flexibility. In particular, the superimposed virtual objects cannot move with the movement of the real targets in the real scene. In another augmented reality application, some virtual objects can be superimposed near the characters photographed by the user's mobile phone, but this method is not accurate enough and is not suitable for AR interaction between multiple people. Summary of the invention
[0005] The scheme of the present invention provides a method and system for setting a presentable virtual object for a target in a real scene, which, by using an optical communication device and a camera, enables setting an associated virtual object for the target in the real scene based on the position information of the target, and the virtual object can be accurately presented on the display medium of the device, and the presented virtual object can follow the target in the real scene.
[0006] One aspect of the present invention relates to a method for setting a presentable virtual object for a target in a real scene, wherein a camera and an optical communication device are installed in the real scene, and the camera and the optical communication device have a relative posture. The method comprises: using the camera to track the target in the real scene; obtaining the position information of the target according to the tracking result of the camera; setting a virtual object with spatial position information associated with the target, wherein the spatial position information of the virtual object is determined based on the position information of the target; and sending relevant information of the virtual object to a first device, the information including the spatial position information of the virtual object, wherein the relevant information of the virtual object can be used by the first device to present the virtual object on its display medium based on its position information and posture information determined by the optical communication device.
[0007] Optionally, obtaining the position information of the target according to the tracking result of the camera includes: obtaining the position information of the target relative to the camera according to the tracking result of the camera, and determining the position information of the target relative to the optical communication device according to the position information of the target relative to the camera and the relative posture between the camera and the optical communication device.
[0008] Optionally, the spatial position information of the virtual object is spatial position information relative to the optical communication device.
[0009] Optionally, obtaining the position information of the target according to the tracking result of the camera includes: obtaining the position information of the target relative to the camera according to the tracking result of the camera, and determining the position information of the target in the real scene according to the position information of the target relative to the camera and the posture information of the camera in the real scene.
[0010] Optionally, the relevant information of the virtual object is configured according to information related to the target.
[0011] Optionally, the method further includes: obtaining information related to the target according to the tracking result of the camera.
[0012] Optionally, configuring the relevant information of the virtual object based on the information related to the target includes: receiving information related to the target from a facility; establishing a connection between the information and the target tracked by the camera and located at a predetermined position relative to the facility; and configuring the relevant information of the virtual object of the target based on the information.
[0013] Optionally, configuring the relevant information of the virtual object based on the information related to the target includes: receiving information from a second device, the information including location information of the second device; comparing the location information of the second device with location information of one or more targets determined based on the tracking results of the camera to determine a target that matches the second device; and configuring the relevant information of the virtual object of the target that matches the second device based on the information from the second device.
[0014] Optionally, the second device determines its position information at least in part by capturing an image including the optical communication device and analyzing the image.
[0015] Optionally, the method further includes: obtaining posture information of the target according to the tracking result of the camera; and wherein, setting a virtual object with spatial position information associated with the target includes setting the posture information of the virtual object according to the posture information of the target.
[0016] Optionally, the posture of the virtual object can be adjusted according to a position and / or posture change of the first device relative to the virtual object.
[0017] Optionally, the first device determines its position information and posture information relative to the optical communication device at least in part by collecting an image including the optical communication device and analyzing the image.
[0018] Optionally, the relevant information of the virtual object to be sent to the first device is determined according to information related to the first device.
[0019] Another aspect of the present invention relates to a system for setting a presentable virtual object for a target in a real scene, comprising: a camera installed in the real scene, which is used to track the target in the real scene; an optical communication device installed in the real scene, wherein the optical communication device and the camera have a relative posture; and a server, which is used to execute the above method.
[0020] Optionally, the system further comprises means for obtaining information related to the target.
[0021] Optionally, the system also includes the first device, which is used to: receive relevant information of the virtual object from the server; determine position information and posture information of the first device at least partially through the optical communication device; and present the virtual object on the display medium of the first device based on the position information and posture information and the relevant information of the virtual object.
[0022] Another aspect of the present invention relates to a storage medium, in which a computer program is stored. When the computer program is executed by a processor, it can be used to implement the above method.
[0023] Another aspect of the present invention relates to an electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it can be used to implement the above method. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The embodiments of the present invention are further described below with reference to the accompanying drawings, in which:
[0025] Figure 1 An exemplary light tag is shown;
[0026] Figure 2 A realistic scene including a system for setting a renderable virtual object for a target according to one embodiment is shown;
[0027] Figure 3 A method for setting a presentable virtual object for a target according to one embodiment is shown; and
[0028] Figure 4 According to one embodiment, Figure 2 A schematic image observed by the first user through a mobile phone screen or AR glasses. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail by specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0030] Optical communication devices are also called optical tags, and the two terms are used interchangeably in this article. Optical tags can transmit information through different light-emitting methods. They have the advantages of long recognition distance and loose visible light conditions. In addition, the information transmitted by optical tags can change over time, thus providing large information capacity and flexible configuration capabilities. Compared with traditional QR codes, optical tags have a longer recognition distance and stronger information interaction capabilities, thus providing great convenience for users.
[0031] An optical tag generally includes a controller and at least one light source. The controller can drive the light source through different driving modes to transmit different information to the outside. Figure 1 An exemplary optical tag 100 is shown, which includes three light sources (a first light source 101, a second light source 102, and a third light source 103). The optical tag 100 also includes a controller (in Figure 1The controller may be used to select a corresponding driving mode for each light source according to the information to be transmitted. For example, in different driving modes, the controller may use different driving signals to control the light emission mode of the light source, so that when the light tag 100 is photographed using a device with an imaging function, the imaging of the light source therein may present a different appearance (e.g., different colors, patterns, brightness, etc.). By analyzing the imaging of the light sources in the light tag 100, the driving mode of each light source at the moment can be parsed, thereby parsing the information transmitted by the light tag 100 at the moment.
[0032] In order to provide users with corresponding services based on light tags, each light tag can be assigned an identification information (ID), which is used to uniquely identify or identify the light tag by the manufacturer, manager or user of the light tag. Generally, the light source can be driven by the controller in the light tag to transmit the identification information to the outside, and the user can use the device to capture the image of the light tag to obtain the identification information transmitted by the light tag, so that the corresponding service can be accessed based on the identification information, for example, accessing the web page associated with the identification information, obtaining other information associated with the identification information (for example, the location information of the light tag corresponding to the identification information), etc. The device mentioned in this article can be, for example, a device carried or controlled by the user (for example, a mobile phone, a tablet computer, smart glasses, AR glasses, a smart helmet, a smart watch, etc.), or a machine that can move autonomously (for example, a drone, an unmanned car, a robot, etc.). The device can capture the image of the light tag through the camera on it to obtain an image containing the light tag, and identify the information transmitted by the light tag by analyzing the imaging of the light tag (or each light source in the light tag) in the image.
[0033] The identification information (ID) or other information of each light tag can be saved on the server, such as service information related to the light tag, descriptive information or attributes related to the light tag, such as the location information, model information, physical size information, physical shape information, posture or orientation information of the light tag, etc. The light tag can also have unified or default physical size information and physical shape information, etc. The device can use the identification information of the identified light tag to query and obtain other information related to the light tag from the server. The location information of the light tag can refer to the actual location of the light tag in the physical world, which can be indicated by geographic coordinate information. The server can be a software program running on a computing device, a computing device, or a cluster composed of multiple computing devices. The light tag can be offline, that is, the light tag does not need to communicate with the server. Of course, it can be understood that online light tags that can communicate with the server are also feasible.
[0034] Figure 2A real scene including a system for setting a presentable virtual object for a target according to an embodiment is shown. The real scene may be, for example, a bank branch, in which there are three users, namely, a first user, a second user, and a third user. The first user may be a bank branch staff, and the second user and the third user may be bank customers. The first user carries a device capable of recognizing an optical tag, such as a mobile phone or AR glasses.
[0035] The system includes a camera, an optical tag and a server ( Figure 2 (not shown), wherein the camera and the light tag are each installed in a real scene with a specific position and posture (hereinafter collectively referred to as "posture"). In one embodiment, the server can obtain the posture information of the camera and the light tag, and can obtain the relative posture information between the camera and the light tag based on the posture information of the camera and the light tag. In one embodiment, the server can also directly obtain the relative posture information between the camera and the light tag. In this way, the server can obtain the transformation matrix between the camera coordinate system and the light tag coordinate system, and the transformation matrix may include, for example, the rotation matrix R and the displacement vector t between the two coordinate systems. Through the transformation matrix between the camera coordinate system and the light tag coordinate system, the coordinates in one coordinate system can be converted to the coordinates in another coordinate system. In one embodiment, when the camera and the light tag are installed, the posture information of both can be manually calibrated, and the posture information can be stored in the server. The camera can be a camera installed in a fixed position and with a fixed orientation, but it can be understood that the camera can also be a movable camera (for example, it can change position or adjust direction), as long as its current posture information can be determined. The server may set the current position information of the camera and control the movement of the camera based on the position information, or the camera itself or other devices may control the movement of the camera and send the current position information of the camera to the server. In some embodiments, the system may include more than one camera and more than one light tag.
[0036] In one embodiment, a scene coordinate system (which may also be referred to as a real-world coordinate system) may be established for a real scene, and the transformation matrix between the camera coordinate system and the scene coordinate system may be determined based on the pose information of the camera in the real scene, and the transformation matrix between the light tag coordinate system and the scene coordinate system may be determined based on the pose information of the light tag in the real scene. In this case, the coordinates in the camera coordinate system or the light tag coordinate system may be converted to coordinates in the scene coordinate system without transforming between the camera coordinate system and the light tag coordinate system, but it is understood that the relative pose information or transformation matrix between the camera and the light tag can still be known by the server. Therefore, in this application, having a relative pose between the camera and the light tag means that there is an objective relative pose between the two, and the system is not required to pre-store the relative pose information between the two or use the relative pose information. For example, in one embodiment, only the pose information of the camera and the light tag in the scene coordinate system may be stored in the system, and the relative pose of the two may not be calculated or used.
[0037] The camera is used to track a target in a real scene, which can be stationary or moving, and can be, for example, a person, a stationary object, a movable object, etc. Figure 2 In the scenario shown, the system can track the positions of the first user, the second user, and the third user through a camera. The camera can be, for example, a monocular camera, a binocular camera, or other forms of cameras. The camera can be used to track the positions of people or objects in a real scene by various methods in the prior art. For example, in the case of using a single monocular camera, the position information of the target in the scene can be determined in combination with scene information (for example, information about the plane on which the person or object in the scene is located). In the case of using a binocular camera, the position information of the target can be determined based on the position of the target in the camera's field of view and the depth information of the target. In the case of using multiple cameras, the position information of the target can be determined based on the position of the target in the field of view of each camera.
[0038] In one embodiment, the process of determining the position information of the target in the scene can be performed by a camera, and the corresponding result can be sent to the server. In another embodiment, the position information of the target in the scene can be determined by the server based on the image captured by the camera. The server can convert the determined position information of the target into position information in the light tag coordinate system or the scene coordinate system. After obtaining the position information of the target, the server can set a virtual object with spatial position information associated with the target, and the spatial position information of the virtual object can be determined based on the position information of the target. For example, the spatial position of the virtual object can be set to be directly above the corresponding target, or to be located at other positions near the target.
[0039] After setting up the virtual object, the server can send the relevant information of the virtual object to a device that can recognize the light tag. Figure 2 In the scenario shown, the server can send the virtual object associated with the second user and the virtual object associated with the third user to the light tag recognition device carried by the first user. The light tag recognition device has a camera and a display medium. The recognition device can determine its position and posture information relative to the light tag by scanning the light tag, and the position and posture information can also be further converted into position and posture information in the scene coordinate system. Afterwards, the recognition device can use the relevant information of the virtual object to present the corresponding virtual object at an appropriate position on its display medium based on its position information and posture information.
[0040] It is understood that the second user or the third user may also carry an optical tag recognition device and may observe virtual objects associated with other users through the display medium of the optical tag recognition device in a similar manner as the first user. The solution of the present invention is particularly suitable for multi-person AR interaction in a scene.
[0041] Figure 3 A method for setting a presentable virtual object for a target according to an embodiment is shown, which can be implemented using the above system and can include the following steps:
[0042] Step 301: Use a camera to track a target in a real scene.
[0043] By using a camera to continuously collect images of a real scene, it is possible to visually track the target in the real scene. Camera-based visual tracking technology involves detecting, extracting, identifying or tracking the target in the image sequence to obtain the position, posture, speed, acceleration or motion trajectory of the target. Visual tracking technology belongs to the prior art in this field and will not be described in detail here.
[0044] In one embodiment, when tracking a target, the camera may only perform continuous image acquisition and provide the acquired images as tracking results to the server, after which the server may analyze the images and determine the location information of each target. In another embodiment, the camera may further perform processing on the acquired images, such as image processing, target detection, target extraction, target recognition, determining the target position or posture, etc., and the corresponding processing results may be provided to the server as tracking results.
[0045] Step 302: Obtain the location information of the target according to the tracking result of the camera.
[0046] The server can receive the tracking result from the camera, and obtain the position information of the target in the real scene according to the tracking result. In one embodiment, the target position information finally obtained by the server can be the position information of the target in the camera coordinate system, the position information of the target in the light tag coordinate system, or the position information of the target in the scene coordinate system. The server can realize the conversion of the target position between different coordinate systems according to the transformation matrix between different coordinate systems. For example, the server can first obtain the position information of the target relative to the camera according to the tracking result of the camera (that is, the position information in the camera coordinate system), and then determine the position information of the target relative to the light tag according to the position information of the target relative to the camera and the relative posture information between the camera and the light tag (that is, the position information in the light tag coordinate system), or determine the position information of the target in the real scene according to the position information of the target relative to the camera and the posture information of the camera in the real scene (that is, the position information in the scene coordinate system).
[0047] In one embodiment, in addition to obtaining the location information of the target, the server may also obtain the posture information of the target, such as the orientation of a person or an object, according to the tracking result of the camera.
[0048] Step 303: Setting a virtual object with spatial position information associated with the target.
[0049] After determining the position information of the target, the server can set an associated virtual object for the target, and the virtual object has spatial position information, which can be determined based on the position information of the target. For example, the spatial position of the virtual object can be configured to be located at a predetermined distance above the target position. The spatial position information of the virtual object can be, for example, its spatial position information relative to the light tag, or its position information in the scene coordinate system.
[0050] In one embodiment, in addition to configuring the spatial position information of the virtual object, the server may also configure any other information related to the virtual object. The information related to the virtual object is used to describe the relevant information of the virtual object, and may include, for example, pictures, text, numbers, icons, etc. contained in the virtual object, and may also include shape information, color information, size information, posture information, etc. of the virtual object. Based on this information, the device may present the corresponding virtual object. The server may configure the relevant information of the virtual object corresponding to the target according to the information related to the target, so that the corresponding virtual object can be customized for each target.
[0051] In one embodiment, the server can obtain information related to the target based on the tracking result of the camera. For example, the server can determine whether the target is a person or an object, whether the target is a man or a woman, what kind of object the target is, whether the target is moving or stationary, the moving speed of the target, the moving direction of the target, etc., based on the tracking result of the camera. Such information related to the target can be used to configure relevant information of the virtual object corresponding to the target.
[0052] In one embodiment, information related to the target can also be obtained through other facilities. For example, the identity information of a person can be obtained through facilities such as fingerprint or vein collection equipment, face recognition equipment, and ID card reading equipment, and the gender information, occupational information, identity information, membership card information, etc. of the person can be obtained through facilities such as card readers. After these facilities obtain the information of the person, the server can receive the information from the facility and establish a connection between the information and the person currently tracked by the camera at a predetermined position (for example, in front of, behind, on the left, on the right, above, below, near, etc. of these facilities), so that the information of the person (for example, gender information, occupational information, identity information, membership card information, etc.) can be used to configure the relevant information of the virtual object corresponding to the person. Similarly, the relevant information of the object can also be obtained through the facilities in the scene, and the relevant information of the virtual object corresponding to the object can be configured with the information.
[0053] In one embodiment, the server may also set the posture information of the virtual object. The posture information of the virtual object may be set based on the posture information of the target, but may also be set in other ways.
[0054] Step 304: Send relevant information of the virtual object to a device capable of identifying light tags, the information including the spatial position information of the virtual object.
[0055] After setting a virtual object for a target, the server can send relevant information of the virtual object to a device that can recognize the light tag, such as a mobile phone, AR glasses, etc., which has a camera and a display medium. The relevant information of the virtual object includes the spatial position information of the virtual object, and in one embodiment, may also include the posture information of the virtual object.
[0056] In one embodiment, the relevant information of the virtual object to be sent to the device can be determined based on the information related to the device. The information related to the device can include relevant information of the device itself, relevant information of the user of the device, etc. For example, part or all of the relevant information of the virtual object can be selected and sent to the device based on different permissions or different levels of the device user.
[0057] In one embodiment, the optical tag recognition device can identify the information (e.g., identification information) transmitted by the optical tag by scanning the optical tags arranged in the scene, and use the information to access the server (e.g., access via wireless signals) to obtain the relevant information of the virtual object from the server. In one embodiment, the server can use the optical tag to send the relevant information of the virtual object to the optical tag recognition device in an optical communication manner. The relevant information of the virtual object can be used by the optical tag recognition device to present the virtual object on its display medium based on the position information and posture information determined by the optical tag.
[0058] The position and posture information of the device can be determined by the light tag, which can be the position and posture information of the device relative to the light tag (that is, the position and posture information in the light tag coordinate system), but can also be the position and posture information converted to other coordinate systems (such as the scene coordinate system).
[0059] In one embodiment, the device can determine its position information relative to the light tag by collecting an image including the light tag and analyzing the image. For example, the device can determine the relative distance between the light tag and the device by the image size of the light tag in the image and other optional information (for example, the actual physical size information of the light tag, the focal length of the camera of the device) (the larger the image, the closer the distance; the smaller the image, the farther the distance). The device can obtain the actual physical size information of the light tag from the server using the identification information of the light tag, or the light tag can have a uniform physical size and store the physical size on the device. The device can determine the direction information of the device relative to the light tag by the perspective deformation of the light tag imaging in the image including the light tag and other optional information (for example, the imaging position of the light tag). The device can obtain the physical shape information of the light tag from the server using the identification information of the light tag, or the light tag can have a uniform physical shape and store the physical shape on the device. In one embodiment, the device can also directly obtain the relative distance between the light tag and the device through a depth camera or a binocular camera installed thereon. The device can also use any other existing positioning method to determine its position information relative to the light tag.
[0060] In one embodiment, the device can scan the light tag and can determine its posture information relative to the light tag based on the imaging of the light tag. When the imaging position or imaging area of the light tag is located at the center of the imaging field of view of the second device, it can be considered that the second device is currently facing the light tag. The imaging direction of the light tag can be further considered when determining the posture of the device. As the posture of the device changes, the imaging position and / or imaging direction of the light tag on the device will change accordingly. Therefore, the posture information of the device relative to the light tag can be obtained based on the imaging of the light tag on the device.
[0061] In one embodiment, the position and posture information of the device relative to the light tag can also be determined in the following manner. Specifically, a coordinate system can be established based on the light tag, which can be called the light tag coordinate system. Some points on the light tag can be determined as some spatial points in the light tag coordinate system, and the coordinates of these spatial points in the light tag coordinate system can be determined based on the physical size information and / or physical shape information of the light tag. Some points on the light tag can be, for example, the corners of the outer shell of the light tag, the ends of the light source in the light tag, some identification points in the light tag, and so on. According to the object structure features or geometric structure features of the light tag, image points corresponding to these spatial points can be found in the image taken by the device camera, and the positions of each image point in the image can be determined. According to the coordinates of each spatial point in the light tag coordinate system and the corresponding positions of each image point in the image, combined with the internal reference information of the device camera, the pose information (R, t) of the device camera in the light tag coordinate system when the image is taken can be calculated, where R is a rotation matrix, which can be used to represent the posture information of the device camera in the light tag coordinate system, and t is a displacement vector, which can be used to represent the position information of the device camera in the light tag coordinate system. The method of calculating R and t is known in the prior art. For example, the 3D-2D PnP (Perspective-n-Point) method can be used to calculate R and t. In order not to obscure the present invention, it will not be described in detail here.
[0062] After the device obtains the position and attitude information through the light tag, the device's built-in accelerometer, gyroscope, camera, etc. can be used to measure or track the device's position and attitude changes through methods known in the art (for example, inertial navigation, visual odometer, SLAM, VSLAM, SFM, etc.), thereby obtaining the device's new position and attitude information.
[0063] After obtaining the spatial position information of the virtual object and the position and posture information of the device, the virtual object can be superimposed at a suitable position in the real scene presented by the display medium of the device. In the case where the virtual object has posture information, the posture of the superimposed virtual object can be further determined. The posture of the virtual object can be adjusted with the position and / or posture of the device relative to the virtual object, for example, so that a certain direction of the virtual object (such as the front direction of the virtual object) is always facing the device. In one embodiment, a direction from the virtual object to the device can be determined in space based on the position of the device and the virtual object, and the posture of the virtual object can be determined based on the direction. Through the above method, the same virtual object can actually have respective postures for devices in different positions.
[0064] In one embodiment, after the virtual object is superimposed, the device user can perform various interactive operations on the virtual object. For example, the device user can click on the virtual object to view its details, change the posture of the virtual object, change the size or color of the virtual object, add a label to the virtual object, etc. In one embodiment, after the device user changes the attributes of the virtual object, the modified attribute information of the virtual object can be uploaded to the server. The server can update the relevant information of the virtual object stored therein based on the modified attribute information.
[0065] Figure 3 The method shown can be performed continuously or repeatedly at regular intervals so that the virtual object can always track the target in the scene.
[0066] In one embodiment, the tracking target located in the real scene can be a device or a person holding the device, and the information related to the corresponding virtual object can be set according to the relevant information of the device. Specifically, the device can determine its position information through the light tag in the manner mentioned above, and send the position information to the server, and the position information can be the position information of the device relative to the light tag. The position information sent by the device can be the position information obtained by the device when scanning the light tag, or it can be the new position information obtained by the device after scanning the light tag by using the built-in acceleration sensor, gyroscope, camera, etc. through methods known in the art (for example, inertial navigation, visual odometer, SLAM, VSLAM, SFM, etc.) to measure or track. In addition, the device can also send some other information to the server, such as the device identification number, the device user name, the occupation information of the device owner, the identity information of the device owner, the gender information of the device owner, the age information of the device owner, the account information of a certain application on the device, and information related to a certain operation performed by the device, etc. The server can compare the position information of the device with the position information of one or more targets determined according to the tracking results of the camera to determine the target that matches the device. For example, the server can select one of the location information of one or more targets that is closest to the location information of the device, and consider the corresponding target to match the device. After determining the target that matches the device, the server can configure the relevant information of the virtual object corresponding to the target based on the information from the device. In the above manner, the devices in the scene (for example, robots, unmanned vehicles, etc.) or the persons holding the devices (for example, mobile phones, AR glasses, etc.) can autonomously upload relevant information to the server, so that there is no need to use special facilities (for example, card readers, fingerprint collection devices, etc.) to obtain information related to the devices or personnel.
[0067] Figure 4 According to one embodiment, Figure 2The schematic image observed by the first user through the mobile phone screen or AR glasses includes the second user and the third user. As mentioned above, the first user can be a bank branch staff, and the second user and the third user can be bank customers. Figure 4 As shown, the first user can observe not only the second user and the third user through the mobile phone screen or AR glasses, but also the virtual objects (e.g., "VIP", "ordinary", etc.) superimposed on the heads of the respective users. These objects can be used to indicate the customer level of the user, for example, whether it is a VIP customer or an ordinary customer. The customer level of the user can be obtained, for example, by reading the user's identity information, bank card information, etc., or by receiving the user's phone number information, bank account information, etc. from the user's mobile phone.
[0068] In one embodiment of the present invention, the present invention may be implemented in the form of a computer program. The computer program may be stored in various storage media (e.g., a hard disk, an optical disk, a flash memory, etc.), and when the computer program is executed by a processor, it can be used to implement the method of the present invention.
[0069] In another embodiment of the present invention, the present invention may be implemented in the form of an electronic device. The electronic device includes a processor and a memory, in which a computer program is stored. When the computer program is executed by the processor, the method of the present invention can be implemented.
[0070] References herein to "various embodiments", "some embodiments", "one embodiment", or "an embodiment" refer to specific features, structures, or properties described in conjunction with the embodiments being included in at least one embodiment. Therefore, the phrases "in various embodiments", "in some embodiments", "in one embodiment", or "in an embodiment" appearing throughout the present invention do not necessarily refer to the same embodiment. In addition, specific features, structures, or properties may be combined in any suitable manner in one or more embodiments. Therefore, specific features, structures, or properties shown or described in conjunction with one embodiment may be combined in whole or in part with features, structures, or properties of one or more other embodiments without restriction, as long as the combination is not illogical or inoperable. Expressions similar to "according to A", "based on A", "through A", or "using A" appearing herein are intended to be non-exclusive, that is, "according to A" may include "according to A only" or "according to A and B", unless it is specifically stated that its meaning is "according to A only". In this application, for the sake of clarity, some exemplary operating steps are described in a certain order, but those skilled in the art will understand that each of these operating steps is not essential, and some of the steps may be omitted or replaced by other steps. These operation steps do not have to be executed sequentially in the manner shown; on the contrary, some of these operation steps can be executed in different orders or in parallel according to actual needs, as long as the new execution manner is not illogical or inoperable.
[0071] Having thus described several aspects of at least one embodiment of the present invention, it will be appreciated that various changes, modifications and improvements will readily occur to those skilled in the art. Such changes, modifications and improvements are intended to be within the spirit and scope of the present invention. Although the present invention has been described by preferred embodiments, the present invention is not limited to the embodiments described herein, and also includes various changes and variations made without departing from the scope of the present invention.
Claims
1. A method for setting a presentable virtual object for a target in a real scene, wherein: A camera, an optical communication device and a server are installed in the real scene, and the camera and the optical communication device have a relative posture. The method includes: Tracking a target in the real scene using the camera; The server obtains the location information of the target according to the tracking result of the camera; Setting, by the server, a virtual object with spatial position information associated with the target, wherein the spatial position information of the virtual object is determined based on the position information of the target; and The server sends the relevant information of the virtual object to the first device via the optical communication device, wherein the relevant information includes the spatial position information of the virtual object, wherein the relevant information of the virtual object can be used by the first device to present the virtual object on the display medium of the first device based on the position information and posture information determined by the first device through the optical communication device; Wherein, the first device determines its position information and posture information relative to the optical communication device at least in part by capturing an image including the optical communication device and analyzing the image, and wherein the posture of the virtual object can be adjusted according to changes in the position and / or posture of the first device relative to the virtual object.
2. The method according to claim 1, wherein: The obtaining the location information of the target according to the tracking result of the camera includes: Obtaining the position information of the target relative to the camera according to the tracking result of the camera, and The position information of the target relative to the optical communication device is determined according to the position information of the target relative to the camera and the relative posture between the camera and the optical communication device.
3. The method according to claim 2, wherein: The spatial position information of the virtual object is spatial position information relative to the optical communication device.
4. The method according to claim 1, wherein: The obtaining the location information of the target according to the tracking result of the camera includes: Obtaining the position information of the target relative to the camera according to the tracking result of the camera, and The position information of the target in the real scene is determined according to the position information of the target relative to the camera and the posture information of the camera in the real scene.
5. The method according to any one of claims 1 to 4, wherein: The relevant information of the virtual object is configured according to the information related to the target.
6. The method according to claim 5, further comprising: The information related to the target is obtained according to the tracking result of the camera.
7. The method according to claim 5, wherein: The configuring the relevant information of the virtual object according to the information related to the target includes: receiving information related to the target from a facility; associating the information related to the target with a target tracked by the camera at a predetermined position relative to the facility; and The relevant information of the virtual object of the target is configured according to the information related to the target.
8. The method according to claim 5, wherein: The configuring the relevant information of the virtual object according to the information related to the target includes: receiving information from a second device, the information including location information of the second device; comparing the location information of the second device with the location information of one or more targets determined according to the tracking result of the camera to determine a target that matches the second device; and The relevant information of the virtual object of the target matched with the second device is configured according to the information from the second device.
9. The method according to claim 8, wherein: The second device determines the position information of the optical communication device at least in part by acquiring an image including the optical communication device and analyzing the image.
10. The method according to any one of claims 1 to 4, further comprising: Obtaining posture information of the target according to the tracking result of the camera; And wherein, setting a virtual object with spatial position information associated with the target includes setting posture information of the virtual object according to posture information of the target.
11. The method according to any one of claims 1 to 4, wherein: Determine, according to the information related to the first device, the relevant information of the virtual object to be sent to the first device.
12. A system for setting a presentable virtual object for a target in a real scene, comprising: A camera installed in the real scene, which is used to track the target in the real scene; An optical communication device installed in the real scene, wherein the optical communication device and the camera have a relative posture; and Servers that are used to: Obtaining the location information of the target according to the tracking result of the camera; Setting a virtual object with spatial position information associated with the target, wherein the spatial position information of the virtual object is determined based on the position information of the target; Sending relevant information of the virtual object to a first device, the relevant information including spatial position information of the virtual object, wherein the relevant information of the virtual object can be used by the first device to present the virtual object on a display medium of the first device based on the position information and posture information determined by the first device through the optical communication device; Wherein, the first device determines its position information and posture information relative to the optical communication device at least in part by capturing an image including the optical communication device and analyzing the image, and wherein the posture of the virtual object can be adjusted according to changes in the position and / or posture of the first device relative to the virtual object.
13. The system according to claim 12, wherein: The obtaining the location information of the target according to the tracking result of the camera includes: Obtaining the position information of the target relative to the camera according to the tracking result of the camera, and The position information of the target relative to the optical communication device is determined according to the position information of the target relative to the camera and the relative posture between the camera and the optical communication device.
14. The system according to claim 12, wherein: The obtaining the location information of the target according to the tracking result of the camera includes: Obtaining the position information of the target relative to the camera according to the tracking result of the camera, and The position information of the target in the real scene is determined according to the position information of the target relative to the camera and the posture information of the camera in the real scene.
15. The system according to any one of claims 12 to 14, wherein: The server is also used to: The relevant information of the virtual object is configured according to the information related to the target.
16. The system of claim 15, wherein: The server is also used to: The information related to the target is obtained according to the tracking result of the camera.
17. The system of claim 15, wherein: The system further comprises a facility capable of obtaining information related to the target, and wherein configuring the relevant information of the virtual object according to the information related to the target comprises: receiving, from the facility, the information related to the target; associating the information related to the target with a target tracked by the camera at a predetermined position relative to the facility; and The relevant information of the virtual object of the target is configured according to the information related to the target.
18. The system of claim 15, wherein: The configuring the relevant information of the virtual object according to the information related to the target includes: receiving information from a second device, the information including location information of the second device; comparing the location information of the second device with the location information of one or more targets determined according to the tracking result of the camera to determine a target that matches the second device; and The relevant information of the virtual object of the target matched with the second device is configured according to the information from the second device.
19. The system according to any one of claims 12 to 14, wherein the first device is configured to: receiving relevant information of the virtual object from the server; determining, at least in part, via the optical communication device, position information and attitude information of the first device; as well as The virtual object is presented on a display medium of the first device based on the position information and the posture information and the relevant information of the virtual object.
20. A storage medium storing a computer program, wherein when the computer program is executed by a processor, the computer program can be used to implement the method according to any one of claims 1 to 11.
21. An electronic device, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, it can be used to implement the method according to any one of claims 1 to 11.
