CN112039937A - A display method, position determination method and device - Google Patents
A display method, position determination method and device Download PDFInfo
- Publication number
- CN112039937A CN112039937A CN202010486797.6A CN202010486797A CN112039937A CN 112039937 A CN112039937 A CN 112039937A CN 202010486797 A CN202010486797 A CN 202010486797A CN 112039937 A CN112039937 A CN 112039937A
- Authority
- CN
- China
- Prior art keywords
- image
- terminal device
- coordinate system
- target object
- virtual coordinate
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/08—Protocols specially adapted for terminal emulation, e.g. Telnet
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating three-dimensional [3D] models or images for computer graphics
- G06T19/006—Mixed reality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/141—Systems for two-way working between two video terminals, e.g. videophone
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Engineering & Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- User Interface Of Digital Computer (AREA)
- Telephone Function (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机领域,尤其涉及一种显示方法、位置确定方法及装置。The present application relates to the field of computers, and in particular, to a display method, a position determination method, and an apparatus.
背景技术Background technique
随着科学技术的发展,远程协助功能已经变得司空见惯。基于增强现实(augmented reality,AR)技术实现的远程协助功能,由于其能够实现类似于“手把手”远程协助的用户体验,故而受到越来越多用户的青睐。With the development of science and technology, remote assistance functions have become commonplace. The remote assistance function based on augmented reality (AR) technology is favored by more and more users because it can realize a user experience similar to "hands-on" remote assistance.
可结合图1进行���解,图1为本申请实施例提供的一种远程协助的示例性场景示意图。图1所示的场景为用户A(图中未示出)与用户B(图中未示出)正在视频通话,在视频通话过程中,用户A开启远程协助功能。用户A使用的�����������110将拍摄的图像 101发送给用户B使用的终端设备120之后,终端设备120可以显示该图像101,用户B 可以在终端设备120上执行相应的操作,例如点击终端设备120的屏幕上与图像101中的目标对象上的第一位置例如图1中所示的圆柱体上的P点对应的屏幕位置。终端设备 120将P点对应的屏幕位置信息例如屏幕坐标发送给终端设备110,终端设备110在P点对应的屏幕位置信息描述的屏幕位置处渲染辅助标记,以提示用户A基于该辅助标记执行相应的操作。It can be understood with reference to FIG. 1 , which is a schematic diagram of an exemplary scenario of remote assistance provided by an embodiment of the present application. The scenario shown in FIG. 1 is that user A (not shown in the figure) and user B (not shown in the figure) are in a video call. During the video call, user A enables the remote assistance function. After the
可以理解的是,在实际应用中,终端设备110将图像101发送给终端设备120的时刻,至终端设备120将P点对应的屏幕位置发送给终端设备110的时刻之间具有一定的时间差。因为终端设备110将图像101发送给终端设备120需要一定的时间,用户B在终端设备120上执行相应的操作需要一定的时间,而且终端设备120将P点对应的屏幕位置信息发送给终端设备110也需要一定的时间。而在这段时间差内,终端设备110的位置可能发生了改变,因为用户A在视频通话的过程中可能会走动或者晃动终端设备等等,这就导致终端设备110接收到屏幕位置信息时,终端设备110所拍摄的图像102与图像101不一样。也就是说,终端设备110接收到的屏幕位置信息描述的屏幕位置与当前目标对象上的第一位置即P点在图像102中的位置不一致。从而导致终端设备110基于前述屏幕位置信息描述的屏幕位置渲染的辅助标记所处的位置(图1中Q点所在的位置)与目标对象上的P点在图像102中的位置不一致,使得远程协助功能的效果不好,不能实现真正意义上的“手把手”远程协助。It can be understood that, in practical applications, there is a certain time difference between the time when the
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种显示方法及装置,可以解决传统的基于AR技术实现的远程协助功能,不能实现真正意义上的“手把手”远程协助的问题。The embodiments of the present application provide a display method and device, which can solve the problem that the traditional remote assistance function based on AR technology cannot realize the real "hands-on" remote assistance.
第一方面,本申请实施例提供了一种显示方法,具体地,第一终端设备可以将包含目标对象的第一图像发送给第二终端设备,第二终端设备接收到该第一图像之后,可以显示该第一图像,使用第二终端设备的用户可以在第二终端设备上触发针对目标对象上的第一位置的操作,第二终端设备将对应用户在第二终端设备上针对目标对象上的第一位置的操作对应在第一图像中的位置的第一位置信息,发送给第一终端设备。考虑到即使第一终端设备在将第一图像发送给第二终端设备之后位置发生了改变,但是用户在第二终端上触发的操作对应的目标对象上的第一位置在真实三维立体空间中的实际位置是不会发生改变的。因此,在本申请实施例中,第一终端设备可以根据前述第一位置信息确定目标对象上的第一位置对应在虚拟坐标系中的第二位置,该虚拟坐标系中的第二位置,对应目标对象上的第一位置在真实三维立体空间中的实际位置。确定该目标对象上的第一位置对应在虚拟坐标系中的第二位置之后,可以在虚拟坐标系中的第二位置处添加标记,并在第一终端设备上显示的包括目标对象的第二图像上渲染该标记,使得所述标记在所述第二图像上对应的位置与所述目标对象上的第一位置在所述第二图像中的位置一致,并显示在第二图像上渲染的该标记。第一终端设备显示在第二图像上渲染的前述标记之后,使用第一终端设备的用户可以基于该标记执行进一步的操作,从而达到了“手把手”远程协助的效果。In a first aspect, an embodiment of the present application provides a display method. Specifically, a first terminal device may send a first image containing a target object to a second terminal device, and after the second terminal device receives the first image, The first image can be displayed, the user using the second terminal device can trigger an operation for the first position on the target object on the second terminal device, and the second terminal device will correspond to the user targeting on the target object on the second terminal device. The operation of the first position corresponds to the first position information of the position in the first image, and is sent to the first terminal device. Considering that even if the position of the first terminal device changes after sending the first image to the second terminal device, the first position on the target object corresponding to the operation triggered by the user on the second terminal is in the real three-dimensional space. The actual location does not change. Therefore, in this embodiment of the present application, the first terminal device may determine, according to the aforementioned first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system, and the second position in the virtual coordinate system corresponds to The actual position of the first position on the target object in the real three-dimensional space. After it is determined that the first position on the target object corresponds to the second position in the virtual coordinate system, a mark may be added at the second position in the virtual coordinate system, and the second position including the target object displayed on the first terminal device. Render the mark on the image, so that the corresponding position of the mark on the second image is consistent with the position of the first position on the target object in the second image, and display the image rendered on the second image. the mark. After the first terminal device displays the aforementioned mark rendered on the second image, the user using the first terminal device can perform further operations based on the mark, thereby achieving the effect of "hands-on" remote assistance.
在一种可能的实现方式中,第一终端设备向第二终端设备发送第一图像之后,第二终端设备可以显示该第一图像。而后,使用第二终端设备的用户可以在第二终端设备的屏幕上触发针对目标对象上的第一位置的操作,第二终端设备可以获取用户在第二终端设备的屏幕上针对前述目标对象上的第一位置的操作所对应的屏幕位置,并根据该屏幕位置确定第一位置信息。并将该第一位置信息发送给第一终端设备,以便于第一终端设备基于该第一位置信息确定目标对象上的第一位置对应在虚拟坐标轴中的第二位置,从而在虚拟坐标系中的第二位置处添加标记,并在第一终端设备上显示的包括目标对象的第二图像上渲染该标记,使得所述标记在所述第二图像上对应的位置与所述目标对象上的第一位置在所述第二图像中的位置一致,并显示在第二图像上渲染的该标记。第一终端设备显示在第二图像上渲染的前述标记之后,使用第一终端设备的用户可以基于该标记执行进一步的操作,从而达到了“手把手”远程协助的效果。In a possible implementation manner, after the first terminal device sends the first image to the second terminal device, the second terminal device may display the first image. Then, the user using the second terminal device can trigger an operation for the first position on the target object on the screen of the second terminal device, and the second terminal device can obtain the user's target on the screen of the second terminal device for the aforementioned target object. The screen position corresponding to the operation of the first position, and the first position information is determined according to the screen position. and send the first position information to the first terminal device, so that the first terminal device can determine, based on the first position information, that the first position on the target object corresponds to the second position in the virtual coordinate axis, so that in the virtual coordinate system A mark is added at the second position in the first terminal device, and the mark is rendered on the second image including the target object displayed on the first terminal device, so that the position corresponding to the mark on the second image is the same as that on the target object. The first position is consistent with the position in the second image and displays the marker rendered on the second image. After the first terminal device displays the aforementioned mark rendered on the second image, the user using the first terminal device can perform further operations based on the mark, thereby achieving the effect of "hands-on" remote assistance.
在一种可能的实现方式中,考虑到实际应用中,若要确定目标对象上的第一位置在所述第一图像中的绝对图像位置的信息,可以结合第一图像的图像分辨率以及目标对象上的第一位置在第一图像中的相对图像位置来进行确定,其中,该第一图像的图像分辨率,可以由第一终端设备发送给第二终端设备。为了减少第一终端设备给第二终端设备发送的数据量,该第一位置信息可以为前述描述目标对象上的第一位置在第一图像中的相对图像位置的信息。对于这种情况,第二终端设备可以根据前述屏幕位置以及第一图像在第二终端设备的屏幕上的显示区域的位置确定该第一位置信息。In a possible implementation manner, considering the practical application, to determine the absolute image position information of the first position on the target object in the first image, the image resolution of the first image and the target The relative image position of the first position on the object in the first image is determined, wherein the image resolution of the first image can be sent by the first terminal device to the second terminal device. In order to reduce the amount of data sent by the first terminal device to the second terminal device, the first position information may be the aforementioned information describing the relative image position of the first position on the target object in the first image. In this case, the second terminal device may determine the first position information according to the aforementioned screen position and the position of the display area of the first image on the screen of the second terminal device.
在一种可能的实现方式中,考虑到目标对象上的第一位置对应在虚拟坐标系中的第二位置,与第一图像的图像分辨率相关,故而在本申请实施例中,第一终端设备可以根据第一位置信息和第一图像的图像分辨率,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。具体地,确定目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置,并根据前述图像位置确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。In a possible implementation manner, considering that the first position on the target object corresponds to the second position in the virtual coordinate system and is related to the image resolution of the first image, in this embodiment of the present application, the first terminal The device may determine that the first position on the target object corresponds to the second position in the virtual coordinate system according to the first position information and the image resolution of the first image. Specifically, the image position of the first position on the target object in the image coordinate system corresponding to the first image is determined, and the second position in the virtual coordinate system corresponding to the first position on the target object is determined according to the aforementioned image position.
在一种可能的实现方式中,考虑到目标对象上的第一位置之对应在虚拟坐标系中的第二位置,与第一图像对应的视野信息、以及目标对象上的第一位置在第一图像中的图像位置相关,故而在本申请实施例中,第一终端设备可以根据第一图像对应的视野信息和目标对象上的第一位置在第一图像中的图像位置,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。具体地,第一终端设备可以获取第一图像对应的视野信息,并根据图像位置以及第一图像对应的视野信息,计算目标射线在虚拟坐标系中的位置;目标射线为端点为目标位置、且经过虚拟坐标系中的第二位置的射线。而后第一终端设备将目标射线与虚拟坐标系中的虚拟对象的交点位置,确定为目标对象上的第一位置对应在虚拟坐标系中的第二位置。In a possible implementation manner, considering that the first position on the target object corresponds to the second position in the virtual coordinate system, the field of view information corresponding to the first image and the first position on the target object are in the first The positions of the images in the images are related, so in this embodiment of the present application, the first terminal device The first position corresponds to the second position in the virtual coordinate system. Specifically, the first terminal device may acquire the field of view information corresponding to the first image, and calculate the position of the target ray in the virtual coordinate system according to the image position and the field of view information corresponding to the first image; the target ray is that the endpoint is the target position, and A ray passing through the second location in the virtual coordinate system. Then, the first terminal device determines the intersection position of the target ray and the virtual object in the virtual coordinate system as the first position on the target object corresponding to the second position in the virtual coordinate system.
第二方面,本申请实施例提供了一种位置确定方法,具体地,第二终端设备接收第一终端设备发送的第一图像,并在所述第二终端设备的屏幕上显示所述第一图像;所述第一图像为包括目标对象的图像;所述第二终端设备接收用户在所述第二终端设备上触发的、针对所述目标对象上的第一位置的操作指令,并确定第一位置信息;所述第一位置信息对应所述用户在所述第二终端设备上针对所述目标对象上的第一位置的操作对应在所述第一图像中的位置;所述第二终端设备根据所述第一位置信息确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置,并将所述目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给所述第一终端设备;所述虚拟坐标系中的第二位置,对应所述目标对象上的第一位置在真实三维立体空间中的实际位置。第二终端设备将目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给第一终端设备之后,第一终端设备可以在虚拟坐标系中的第二位置处添加标记,并在第一终端设备上显示的包括目标对象的第二图像上渲染该标记,使得所述标记在所述第二图像上对应的位置与所述目标对象上的第一位置在所述第二图像中的位置一致,第一终端设备还可以显示在第二图像上渲染的该标记。第一终端设备显示在第二图像上渲染的前述标记之后,使用第一终端设备的用户可以基于该标记执行进一步的操作,从而达到了“手把手”远程协助的效果。In a second aspect, an embodiment of the present application provides a method for determining a location. Specifically, a second terminal device receives a first image sent by a first terminal device, and displays the first image on a screen of the second terminal device. image; the first image is an image including a target object; the second terminal device receives an operation instruction triggered by the user on the second terminal device for the first position on the target object, and determines the first a position information; the first position information corresponds to the user's operation on the second terminal device for the first position on the target object corresponding to the position in the first image; the second terminal The device determines, according to the first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system, and corresponds the first position on the target object to the second position in the virtual coordinate system Sent to the first terminal device; the second position in the virtual coordinate system corresponds to the actual position of the first position on the target object in the real three-dimensional space. After the second terminal device sends the first position on the target object corresponding to the second position in the virtual coordinate system to the first terminal device, the first terminal device may add a mark at the second position in the virtual coordinate system, and add a mark at the second position in the virtual coordinate system. Rendering the mark on the second image including the target object displayed on the first terminal device, so that the corresponding position of the mark on the second image and the first position on the target object are in the second image The first terminal device may also display the mark rendered on the second image. After the first terminal device displays the aforementioned mark rendered on the second image, the user using the first terminal device can perform further operations based on the mark, thereby achieving the effect of "hands-on" remote assistance.
在一种可能的实现方式中,所述第一位置信息描述所述目标对象上的第一位置在所述第一图像中的相对位置;所述方法还包括:所述第二终端设备,根据所述用户在所述第二终端设备上触发的、针对所述目标对象上的第一位置的操作所对应的屏幕位置、以及所述第一图像在所述第二终端设备的屏幕上的显示区域的位置确定所述第一位置信息。In a possible implementation manner, the first position information describes the relative position of the first position on the target object in the first image; the method further includes: the second terminal device, according to The screen position corresponding to the operation on the first position on the target object triggered by the user on the second terminal device, and the display of the first image on the screen of the second terminal device The location of the area determines the first location information.
在一种可能的实现方式中,所述第二终端设备根据所述第一位置信息确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置,包括:所述第二终端设备接收第一终端设备发送的所述第一图像的图像分辨率;所述第二终端设备根据所述第一位置信息和所述第一图像的图像分辨率,确定所述目标对象上的第一位置在所述第一图像对应的图像坐标系中的图像位置;所述第二终端设备根据所述图像位置确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。In a possible implementation manner, the second terminal device determines that the first position on the target object corresponds to the second position in the virtual coordinate system according to the first position information, including: the second terminal The device receives the image resolution of the first image sent by the first terminal device; the second terminal device determines the first image resolution on the target object according to the first position information and the image resolution of the first image The image position of a position in the image coordinate system corresponding to the first image; the second terminal device determines according to the image position that the first position on the target object corresponds to the second position in the virtual coordinate system.
在一种可能的实现方式中,所述方法还包括:所述第二终端设备接收所述第一终端设备发送的与所述虚拟坐标系相关的信息,所述与所述虚拟坐标系相关的信息,包括所述目标对象对应的虚拟对象在所述虚拟坐标系中的位置;所述目标对象对应的虚拟对象在所述虚拟坐标系中的位置,对应所述目标对象在真实三维立体空间中的实际位置。In a possible implementation manner, the method further includes: receiving, by the second terminal device, information related to the virtual coordinate system sent by the first terminal device, and the information related to the virtual coordinate system information, including the position of the virtual object corresponding to the target object in the virtual coordinate system; the position of the virtual object corresponding to the target object in the virtual coordinate system, corresponding to the target object in the real three-dimensional space actual location.
在一种可能的实现方式中,所述第二终端设备根据所述图像位置确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置,包括:所述第二终端设备接收第一终端设备发送的所述第一图像对应的视野信息,所述第一图像对应的视野信息,用于描述拍摄所述第一图像时,拍摄所述第一图像的摄像头在所述虚拟坐标系中所处的目标位置以及所述拍摄所述第一图像的摄像头在所述虚拟坐标系中的目标拍摄方向;所述第二终端设备根据所述视野信息以及所述图像位置,计算目标射线在所述虚拟坐标系中的位置;所述目标射线为端点为所述目标位置、且经过所述虚拟坐标系中的所述第二位置的射线;所述第二终端设备将所述目标射线与所述虚拟坐标系中的虚拟对象的交点位置,确定为所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。In a possible implementation manner, the second terminal device determining, according to the image position, that the first position on the target object corresponds to the second position in the virtual coordinate system, including: the second terminal device receiving The field of view information corresponding to the first image sent by the first terminal device, and the field of view information corresponding to the first image is used to describe that when the first image is captured, the camera that captured the first image is at the virtual coordinates The target position in the system and the target shooting direction of the camera that shoots the first image in the virtual coordinate system; the second terminal device calculates the target ray according to the field of view information and the image position the position in the virtual coordinate system; the target ray is a ray whose endpoint is the target position and passes through the second position in the virtual coordinate system; the second terminal device converts the target ray The intersection position with the virtual object in the virtual coordinate system is determined as the first position on the target object corresponding to the second position in the virtual coordinate system.
第三方面,本申请实施例提供了一种位置确定方法,具体地,第二终端设备向第一终端设备发送截屏请求;所述第二终端设备接收第一终端设备发送的第一图像,并在所述第二终端设备的屏幕上显示所述第一图像;所述第一图像为包括目标对象的图像;所述第二终端设备接收用户在所述第二终端设备上触发的、针对所述目标对象上的第一位置的操作指令,并确定第一位置信息;所述第二终端设备将所述第一位置信息发送到所述第一终端设备。可见,在第二终端设备侧的用户触发标记期间,第二终端设备在第二终端设备的主界面上静态显示第一图像。用户触发目标对象的第一位置时,参考的是第一图像显示的目标对象。这样不仅能够确保用户准确的识别标记的位置,而且,用户触发的位置能够准确的关联到第一图像上目标对象的第一位置。相应的,第一终端设备在第一终端设备上显示的包括目标对象的第二图像上渲染标记时,该标记在第二图像上显示的位置能够准确的对应用户想要标注的对象。这样能够提升“手把手”远程协助的性能,优化“手把手”远程协助的效果。In a third aspect, an embodiment of the present application provides a method for determining a location. Specifically, a second terminal device sends a screen capture request to a first terminal device; the second terminal device receives a first image sent by the first terminal device, and The first image is displayed on the screen of the second terminal device; the first image is an image including a target object; the second terminal device receives a trigger triggered by a user on the second terminal device for the target object the operation instruction of the first position on the target object, and determine the first position information; the second terminal device sends the first position information to the first terminal device. It can be seen that during the period when the user on the second terminal device side triggers the mark, the second terminal device statically displays the first image on the main interface of the second terminal device. When the user triggers the first position of the target object, the reference is the target object displayed in the first image. In this way, not only can the user accurately identify the position of the mark, but also the position triggered by the user can be accurately associated with the first position of the target object on the first image. Correspondingly, when the first terminal device renders the mark on the second image including the target object displayed on the first terminal device, the position of the mark displayed on the second image can accurately correspond to the object that the user wants to mark. This can improve the performance of "hands-on" remote assistance and optimize the effect of "hands-on" remote assistance.
在一种可能的实现方式中,所述方法还包括:所述第二终端设备接收所述第一图像对应的视野信息,所述第二终端设备接收用户在所述第二终端设备上触发的、针对所述目标对象上的第一位置的操作指令,并确定第一位置信息包括:所述第二终端设备根据所述操作指令确定第三位置信息,所述第二终端根据所述第三位置信息、所述第一图像对应的视野信息确定所述第一位置信息。其中,第二终端设备显示的内容来自于第一终端设备,第一终端设备的姿态对第一图像展示的目标对象的位置存在影响,且第一终端设备的姿态可能经常改变,因此第一图像对应的视��信息会发生变化。而第一图像是三维空间中的对象转换到二维空间之后得到的图像。基于此,第二终端设备可以根据第一图像对应的视野信息以及用户触发得到的位置信息,获取部分信息作为第一位置信息,从而能够减少后续计算的数据量,节省资源。In a possible implementation manner, the method further includes: receiving, by the second terminal device, field-of-view information corresponding to the first image, and receiving, by the second terminal device, a trigger triggered by a user on the second terminal device . The operation instruction for the first position on the target object, and determining the first position information includes: the second terminal device determines third position information according to the operation instruction, and the second terminal determines the third position information according to the third position information. The position information and the field of view information corresponding to the first image determine the first position information. The content displayed by the second terminal device comes from the first terminal device, the posture of the first terminal device has an influence on the position of the target object displayed by the first image, and the posture of the first terminal device may change frequently, so the first image The corresponding field of view information will change. The first image is an image obtained after the object in the three-dimensional space is converted into the two-dimensional space. Based on this, the second terminal device can obtain partial information as the first position information according to the field of view information corresponding to the first image and the position information triggered by the user, thereby reducing the amount of data for subsequent calculation and saving resources.
第四方面,本申请实施例提供了一种终端设备,所述终端设备包括:第一发送单元,用于向第二终端设备发送第一图像,所述第一图像为包括目标对象的图像;第一接收单元,用于接收来自所述第二终端设备的第一位置信息;所述第一位置信息对应用户在所述第二终端设备上���对所述���标对象上的第一位置的操作对应在所述第一图像中的位置;第一确定单元,用于根据所述第一位置信息确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置;所述虚拟坐标系中的第二位置,对应所述目标对象上的第一位置在真实三维立体空间中的实际位置;添加单元,用于在所述虚拟坐标系中的第二位置处添加标记;渲染单元,用于在第二图像上渲染所述标记,使得所述标记在所述第二图像上对应的位置与所述目标对象上的第一位置在所述第二图像中的位置一致;所述第二图像为在所述终端设备上显示的包括所述目标对象的图像;显示单元,用于显示在所述第二图像上渲染的所述标记。In a fourth aspect, an embodiment of the present application provides a terminal device, the terminal device includes: a first sending unit configured to send a first image to a second terminal device, where the first image is an image including a target object; a first receiving unit, configured to receive first location information from the second terminal device; the first location information corresponds to a user's operation on the second terminal device for the first location on the target object the position in the first image; a first determining unit, configured to determine, according to the first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system; the virtual coordinate system The second position in the target object corresponds to the actual position of the first position on the target object in the real three-dimensional space; the adding unit is used to add a mark at the second position in the virtual coordinate system; the rendering unit, using rendering the mark on the second image, so that the corresponding position of the mark on the second image is consistent with the position of the first position on the target object in the second image; the second The image is an image including the target object displayed on the terminal device; a display unit is configured to display the mark rendered on the second image.
在一种可能的实现方式中,所述第一位置信息根据用户在所述第二终端设备上触发的、针对所述目标对象上的第一位置的操作所对应的屏幕位置确定;所述第二终端设备的屏幕上显示有所述第一图像。In a possible implementation manner, the first position information is determined according to a screen position corresponding to an operation triggered by the user on the second terminal device and targeting the first position on the target object; the first position information The first image is displayed on the screen of the two terminal devices.
在一种可能的实现方式中,所述第一位置信息描述所述目标对象上的第一位置在所述第一图像中的相对位置;所述第一位置信息,根据所述屏幕位置、所述第一图像在所述第二终端设备的屏幕上的显示区域的位置确定。In a possible implementation manner, the first position information describes the relative position of the first position on the target object in the first image; the first position information is based on the screen position, the The position of the display area of the first image on the screen of the second terminal device is determined.
在一种可能的实现方式中,所述第一确定单元,具体用于:根据所述第一位置信息和所述第一图像的图像分辨率,确定所述目标对象上的第一位置在所述第一图像对应的图像坐标系中的图像位置;In a possible implementation manner, the first determining unit is specifically configured to: determine, according to the first position information and the image resolution of the first image, where the first position on the target object is at the image position in the image coordinate system corresponding to the first image;
根据所述图像位置确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。It is determined according to the image position that the first position on the target object corresponds to the second position in the virtual coordinate system.
在一种可能的实现方式中,所述第一确定单元,具体用于:获取第一图像对应的视野信息,所述第一图像对应的视野信息,用于描述拍摄所述第一图像时,拍摄所述第一图像的摄像头在所述虚拟坐标系中所处的目标位置以及所述拍摄所述第一图像的摄像头在所述虚拟坐标系中的目标拍摄方向;根据所述视野信息以及所述图像位置,计算目标射线在所述虚拟坐标系中的位置;所述目标射线为端点为所述目标位置、且经过所述虚拟坐标系中的所述第二位置的射线;将所述目标射线与所述虚拟坐标系中的虚拟对象的交点位置,确定为所述目标对象上的第一位置对应在虚拟坐标系中的第二位置;所述虚拟对象在所述虚拟坐标系中的位置,对应所述目标对象在真实三维立体空间中的实际位置。In a possible implementation manner, the first determining unit is specifically configured to: acquire the field of view information corresponding to the first image, where the field of view information corresponding to the first image is used to describe when the first image is captured, the target position of the camera that captures the first image in the virtual coordinate system and the target shooting direction of the camera that captures the first image in the virtual coordinate system; according to the field of view information and the the image position, calculate the position of the target ray in the virtual coordinate system; the target ray is a ray whose endpoint is the target position and passes through the second position in the virtual coordinate system; The intersection position of the ray and the virtual object in the virtual coordinate system is determined as the first position on the target object corresponding to the second position in the virtual coordinate system; the position of the virtual object in the virtual coordinate system , corresponding to the actual position of the target object in the real three-dimensional space.
第五方面,本申请实施例提供了一种终端设备,所述终端设备包括:第二接收单元,用于接收第一终端设备发送的第一图像,并在所述终端设备的屏幕上显示所述第一图像;所述第一图像为包括目标对象的图像;第三接收单元,用于接收用户在所述终端设备上触发的、针对所述目标对象上的第一位置的操作指令;第二确定单元,用于确定第一位置信息;所述第一位置信息对应所述用户在所述终端设备上针对所述目标对象上的第一位置的操作对应在所述第一图像中的位置;第三确定单元,用于根据所述第一位置信息确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置;第二发送单元,用于将所述目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给所述第一终端设备;所述虚拟坐标系中的第二位置,对应所述目标对象上的第一位置在真实三维立体空间中的实际位置。In a fifth aspect, an embodiment of the present application provides a terminal device, where the terminal device includes: a second receiving unit configured to receive a first image sent by a first terminal device, and display the image on a screen of the terminal device the first image; the first image is an image including a target object; a third receiving unit is configured to receive an operation instruction triggered by the user on the terminal device for the first position on the target object; 2. A determining unit, configured to determine first position information; the first position information corresponds to the position in the first image corresponding to the user's operation on the terminal device for the first position on the target object ; a third determining unit for determining, according to the first position information, a first position on the target object corresponding to a second position in the virtual coordinate system; a second sending unit for sending the first position on the target object The first position corresponds to the second position in the virtual coordinate system and is sent to the first terminal device; the second position in the virtual coordinate system corresponds to the first position on the target object in the real three-dimensional space. actual location.
在一种可能的实现方式中,所述第一位置信息描述所述目标对象上的第一位置在所述第一图像中的相对位置;所述装置还包括:第四确定单元,用于根据所述用户在所述终端设备上触发的、针对所述目标对象上的第一位置的操作所对应的屏幕位置、以及所述第一图像在所述终端设备的屏幕上的显示区域的位置确定所述第一位置信息。In a possible implementation manner, the first position information describes the relative position of the first position on the target object in the first image; the apparatus further includes: a fourth determining unit, configured to Determine the screen position corresponding to the operation on the first position on the target object triggered by the user on the terminal device, and the position of the display area of the first image on the screen of the terminal device the first location information.
在一种可能的实现方式中,所述第三确定单元,具体用于:接收第一终端设备发送的所述第一图像的图像分辨率;根据所述第一位置信息和所述第一图像的图像分辨率,确定所述目标对象上的第一位置在所述第一图像对应的图像坐标系中的图像位置;根据所述图像位置确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。In a possible implementation manner, the third determining unit is specifically configured to: receive the image resolution of the first image sent by the first terminal device; according to the first position information and the first image determine the image position of the first position on the target object in the image coordinate system corresponding to the first image; according to the image position, determine that the first position on the target object corresponds to the virtual coordinates second position in the system.
在一种可能的实现方式中,所述装置还包括:第四接收单元,用于接收所述第一终端设备发送的与所述虚拟坐标系相关的信息,所述与所述虚拟坐标系相关的信息,包括所述目标对象对应的虚拟对象在所述虚拟坐标系中的位置;所述目标对象对应的虚拟对象在所述虚拟坐标系中的位置,对应所述目标对象在真实三维立体空间中的实际位置。In a possible implementation manner, the apparatus further includes: a fourth receiving unit, configured to receive information related to the virtual coordinate system sent by the first terminal device, the information related to the virtual coordinate system information, including the position of the virtual object corresponding to the target object in the virtual coordinate system; the position of the virtual object corresponding to the target object in the virtual coordinate system, corresponding to the target object in the real three-dimensional space actual location in .
在一种可能的实现方式中,所述第三确定单元,具体用于:接收第一终端设备发送的所述第一图像对应的视野信息,所述第一图像对应的视野信息,用于描述拍摄所述第一图像时,拍摄所述第一图像的摄像头在所述虚拟坐标系中所处的目标位置以及所述拍摄所述第一图像的摄像头在所述虚拟坐标系中的目标拍摄方向;根据所述视野信息以及所述图像位置,计算目标射线在所述虚拟坐标系中的位置;所述目标射线为端点为所述目标位置、且经过所述虚拟坐标系中的所述第二位置的射线;将所述目标射线与所述虚拟坐标系中的虚拟对象的交点位置,确定为所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。In a possible implementation manner, the third determining unit is specifically configured to: receive visual field information corresponding to the first image sent by the first terminal device, where the visual field information corresponding to the first image is used to describe When capturing the first image, the target position of the camera that captures the first image in the virtual coordinate system and the target capture direction of the camera that captures the first image in the virtual coordinate system ; According to the visual field information and the image position, calculate the position of the target ray in the virtual coordinate system; the target ray is that the endpoint is the target position and passes through the second in the virtual coordinate system. The ray of the position; the intersection position of the target ray and the virtual object in the virtual coordinate system is determined as the first position on the target object corresponding to the second position in the virtual coordinate system.
第六方面,本申请实施例提供了一种电子设备,所述电子设备包括:存储器和至少一个处理器;所述存储器,用于存储指令;所述至少一个处理器,用于执行所述存储器中的所述指令,执行以上第一方面任意一项所述的方法。In a sixth aspect, an embodiment of the present application provides an electronic device, the electronic device includes: a memory and at least one processor; the memory is used to store instructions; the at least one processor is used to execute the memory The instruction in , executes the method described in any one of the first aspect above.
第七方面,本申请实施例提供了一种电子设备,所述设备包括:存储器和至少一个处理器;所述存储器,用于存储指令;所述至少一个处理器,用于执行所述存储器中的所述指令,执行以上第二方面和第三方面任意一项所述的方法。In a seventh aspect, an embodiment of the present application provides an electronic device, the device includes: a memory and at least one processor; the memory is used to store instructions; the at least one processor is used to execute the memory in the memory. , and execute the method described in any one of the second aspect and the third aspect above.
第八方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的方法。In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method described in any one of the first aspects above.
第九方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上第二方面和第三方面任意一项所述的方法。In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the method described in any one of the second aspect and the third aspect.
第十方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上第一方面任意一项所述的方法。In a tenth aspect, an embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, causes the computer to execute the method described in any one of the first aspects above.
第十一方面,本申请实施例提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上第二方面和第三方面任意一项所述的方法。In an eleventh aspect, the embodiments of the present application provide a computer program product including instructions, which, when executed on a computer, causes the computer to execute the method described in any one of the second aspect and the third aspect.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments described in this application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请实施例提供的一种远程协助的示例性场景示意图;FIG. 1 is a schematic diagram of an exemplary scenario of a remote assistance provided by an embodiment of the present application;
图2为本申请实施例提供的一种显示方法的流程示意图;FIG. 2 is a schematic flowchart of a display method provided by an embodiment of the present application;
图3为本申请实施例提供的一种屏幕坐标系的示意图;3 is a schematic diagram of a screen coordinate system provided by an embodiment of the present application;
图4为本申请实施例提供的一种确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的方法的流程示意图;4 is a schematic flowchart of a method for determining that a first position on a target object corresponds to a second position in a virtual coordinate system provided by an embodiment of the present application;
图5为本申请实施例提供的一种视椎体的示意图;FIG. 5 is a schematic diagram of a vertebral body according to an embodiment of the present application;
图6为本申请实施例提供的一种确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的方法的流程示意图;6 is a schematic flowchart of a method for determining that a first position on a target object corresponds to a second position in a virtual coordinate system provided by an embodiment of the present application;
图7为本申请实施例提供的一种位置确定方法的流程示意图;7 is a schematic flowchart of a method for determining a location provided by an embodiment of the present application;
图8为本申请实施例提供的一种终端设备的��构示意图;FIG. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
图9为本申请实施例提供的一种终端设备的结构示意图;FIG. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
图10为本申请实施例提供的一种终端设备的结构示意图;FIG. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
图11A为本申请实施例提供的另一种远程协助的示例性场景示意图;FIG. 11A is a schematic diagram of an exemplary scenario of another remote assistance provided by an embodiment of the present application;
图11B为本申请实施例提供的图11A的场景中用户触发操作指令时的示例性界面示意图;11B is a schematic diagram of an exemplary interface when a user triggers an operation instruction in the scenario of FIG. 11A according to an embodiment of the present application;
图11C为本申请实施例提供的图11B的场景中用户触发的位置关联到第一图像后的示例性界面示意图;FIG. 11C is a schematic diagram of an exemplary interface after a user-triggered position in the scene of FIG. 11B is associated with a first image provided by an embodiment of the present application;
图12为本申请实施例提供的另一种显示方法的流程示意图;12 is a schematic flowchart of another display method provided by an embodiment of the present application;
图13A-1为本申请实施例提供的第一种截屏方案的示例性场景示意图;13A-1 is a schematic diagram of an exemplary scenario of a first screenshot solution provided by an embodiment of the present application;
图13A-2为本申请实施例提供的第二种截屏方案的示例性场景示意图;13A-2 is a schematic diagram of an exemplary scenario of a second screen capture solution provided by an embodiment of the present application;
图13A-3为本申请实施例提供的第三种截屏方案的示例性场景示意图;13A-3 is a schematic diagram of an exemplary scenario of a third screenshot solution provided by an embodiment of the present application;
图13A-4为本申请实施例提供的第四种截屏方案的示例性场景示意图;13A-4 are schematic diagrams of exemplary scenarios of a fourth screen capture solution provided by an embodiment of the present application;
图13B为本申请实施例提供的图13A-1至图13A-4的场景中第二终端设备的示例性用户界面示意图;13B is a schematic diagram of an exemplary user interface of a second terminal device in the scenarios of FIGS. 13A-1 to 13A-4 provided by an embodiment of the present application;
图13C为本申请实施例提供的图13A-3和图13A-4的场景中的一种示例性用户界面示意图;13C is a schematic diagram of an exemplary user interface in the scenarios of FIGS. 13A-3 and 13A-4 provided by an embodiment of the present application;
图14A为本申请实施例提供的第一终端设备拍摄视频的场景示意图;14A is a schematic diagram of a scene in which a first terminal device shoots a video according to an embodiment of the present application;
图14B为本申请实施例提供的第二终端设备显示图14A中所拍场景的示例性场景示意图。FIG. 14B is a schematic diagram of an exemplary scene in which the second terminal device according to the embodiment of the application displays the scene captured in FIG. 14A .
具体实施方式Detailed ways
本申请实施例提供了一种显示方法、位置确定方法及装置,用于解决传统的基于AR 技术实现的远程协助功能,不能实现真正意义上的“手把手”远程协助的问题。The embodiments of the present application provide a display method, a position determination method, and an apparatus, which are used to solve the problem that the traditional remote assistance function based on AR technology cannot realize the real "hands-on" remote assistance.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系��、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", "fourth", etc. (if present) in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
为方便理解,首先对本申请实施例���一个应用场景进行简单介绍。本申请实施例可以应用于远程协助的场景中,该远程协助的场景,可以为视频通话的场景。可结合图1 进行理解,不难理解的是,在实际应用中,用户A和用户B进行视频通话,则用户A使用的终端设备110上显示的是用户B使用的终端设备120拍摄的图像,而终端设备120 上显示的是终端设备110拍摄的图像。在本申请实施例中,在用户A和用户B进行视频通话的过程中,用户A或者用户B可以选择性的开启远程协助功能,以用户A开启远程协助功能为例,用户A开启远程协助功能之后,终端设备110上可以不再显示终端设备 120拍摄的图像,而是显示自身即终端设备110拍摄的图像,而终端设备120上可以依旧显示终端设备110拍摄的图像。For ease of understanding, an application scenario of the embodiments of the present application is briefly introduced first. The embodiments of the present application may be applied to a remote assistance scenario, where the remote assistance scenario may be a video call scenario. It can be understood in conjunction with FIG. 1 , it is not difficult to understand that, in an actual application, user A and user B conduct a video call, then the
进一步地,若用户A开启了远程协助功能,终端设备110将拍摄的图像101发送给终端设备120之后,终端设备120可以显示该图像例如图1所示的图像101,用户B可以在终端设备120上执行相应的操作,例如点击终端设备120的屏幕上与图像101中的目标对象例如图1中所示的P点对应的屏幕位置。终端设备120将P点对应的屏幕位置信息例如屏幕坐标发送给终端设备110,终端设备110在终端设备110的屏幕上对应前述屏幕位置信息描述的屏幕位置处渲染辅助标记,例如终端设备110在终端设备110的屏幕上对应前述接收到的屏幕坐标对应的屏幕位置处渲染辅助标记,以提示用户A基于该辅助标记执行相应的操作。由于终端设备110将图像101发送给终端设备120的时刻,至终端设备120将P点对应的屏幕位置信息发送给终端设备110的时刻之间具有一定的时间差,终端设备110接收到屏幕位置信息时,终端设备110所拍摄的图像102与图像 101不一样,故而终端设备110接收到的屏幕位置信息与当前P点在图像102中的位置不匹配。从而导致终端设备110渲染的辅助标记所处的位置与P点在图像102中的位置不一致,使得远程协助功能的效果不好,不能实现真正意义上的“手把手”远程协助。Further, if user A has enabled the remote assistance function, after the
需要说明的是,以上所述的视频通话场景仅仅是本申请实施例的一个应用场景,本申请实施例还可以应用于其它场景,例如应用于远程家居监控的场景,具体地,摄像头可以将拍摄的第一图像发送给终端设备110,若终端设备110启动了远程协助功能,则终端设备110可以将该第一图像发送给终端设备120,使用终端设备120的用户例如前述用户B可以针对接收到的第一图像执行相应的操作,例如点击第一图像上的某一位置,或者在第一图像上的某一位置处画圈等等,并将该操作对应的屏幕位置信息发送给终端设备110,终端设备110���以在终端设备110的屏幕上对应前述屏幕位置信息描述的屏幕位置处渲染辅助标记,以提示使用终端设备110的用户例如前述用户A基于该辅助标记执行相应的操作,或者提示用户A该辅助标记对应的位置出现了异常等等。但是考虑到摄像头在拍摄的过程中可能会晃动或者转换拍摄角度等等,故而也会存在前述的不能实现手把手远程协助的效果的问题。It should be noted that the above-mentioned video call scenario is only an application scenario of the embodiments of the present application, and the embodiments of the present application can also be applied to other scenarios, such as the scenario of remote home monitoring. The first image of the
当然,本申请实施例还可以应用于其它场景,此处不再一一列举说明。Of course, the embodiments of the present application may also be applied to other scenarios, which are not listed and described one by one here.
为了解决上述问题,本申请实施例提供了一种显示方法、位置确定方法及装置,可以解决上述问题。以下结合附图介绍本申请实施例提供的显示方法。In order to solve the above problems, the embodiments of the present application provide a display method, a position determination method, and an apparatus, which can solve the above problems. The display method provided by the embodiments of the present application will be described below with reference to the accompanying drawings.
需要说明的是,在本申请实施例的以下描述中,如无特别说明,均是以前述视频通话场景为例进行说明,其它场景的实现方式与视频通话场景的实现方式类似。It should be noted that, in the following description of the embodiments of the present application, unless otherwise specified, the foregoing video call scenario is used as an example for description, and the implementation of other scenarios is similar to that of the video call scenario.
参见图2,该图为本申请实施例提供的一种显示方法的流程示意图。本申请实施例提供的显示方法,可以通过如下步骤101-105实现。Referring to FIG. 2 , which is a schematic flowchart of a display method provided by an embodiment of the present application. The display method provided by the embodiment of the present application may be implemented through the following steps 101-105.
步骤101:第一终端设备向第二终端设备发送第一图像,第一图像为包括目标对象的图像。Step 101: The first terminal device sends a first image to the second terminal device, where the first image is an image including a target object.
需要说明的是,本申请实施例中提及的第一终端设备和第二终端设备,可以是智能手机以及平板电脑等移动终端设备,也可以是台式计算机等终端设备,本申请实施例不做具体限定。It should be noted that the first terminal device and the second terminal device mentioned in the embodiments of the present application may be mobile terminal devices such as smart phones and tablet computers, or terminal devices such as desktop computers, which are not described in the embodiments of the present application. Specific restrictions.
需要说明的是,本申请实施例不具体限定目标对象,目标对象可以是第一终端设备所处的真实环境中包括的物体或者物体中的的某一部位,例如,目标对象可以为一个键盘、键盘中的某一按键、桌子、桌子桌面的某一位置、柜子、柜子的门把手、杯子以及杯子的把手等等。It should be noted that the embodiment of the present application does not specifically limit the target object, and the target object may be an object included in the real environment where the first terminal device is located or a certain part of the object, for example, the target object may be a keyboard, A key on a keyboard, a table, a certain position on the table top, a cabinet, a doorknob of a cabinet, a cup and a cup handle, etc.
需要说明的是,在本申请实施例中,第一图像可以是第一终端设备拍摄的图像,例如对应于前述视频通话的场景。第一图像也可以为其它设备发送给第一终端设备的,例如对应于前述远程家居监控的场景,第一图像是摄像头拍摄之后发送给第一终端设备的。It should be noted that, in this embodiment of the present application, the first image may be an image captured by the first terminal device, for example, corresponding to the foregoing video call scene. The first image may also be sent by other devices to the first terminal device, for example, corresponding to the foregoing remote home monitoring scenario, the first image is sent to the first terminal device after being captured by the camera.
步骤102:第一终端设备接收来自第二终端设备的第一位置信息,该第一位置信息对应用户在第二终端设备上针对目标对象上的第一位置的操作对应在第一图像中的位置。Step 102: The first terminal device receives first location information from the second terminal device, where the first location information corresponds to the user's operation on the second terminal device for the first location on the target object and corresponds to the location in the first image .
第二终端设备接收到第一终端设备发送的第一图像之后,第二终端设备可以在第二终端设备的屏幕上显示该第一图像,本申请实施例不具体限定第一图像在第二终端设备的屏幕上的显示方式,第一图像可以在第二终端设备的屏幕上全屏显示,也可以在第二终端设备的特定显示区域显示。After the second terminal device receives the first image sent by the first terminal device, the second terminal device may display the first image on the screen of the second terminal device. This embodiment of the present application does not specifically limit the first image on the second terminal. With regard to the display mode on the screen of the device, the first image can be displayed in full screen on the screen of the second terminal device, or can be displayed in a specific display area of the second terminal device.
第二终端设备的屏幕上显示第一图像之后,使用第二终端设备的用户即可在第二终端上触发针对目标对象上的第一位置的操作,例如,点击第二终端设备上与目标对象上的第一位置对应的屏幕位置;又如,在目标对象上的第一位置对应的屏幕位置处画圈;再如,在目标对象上的第一位置对应的屏幕位置处标记文字,等等。可以理解的是,用户在第二终端设备上触发针对目标对象上的第一位置的操作,实际上可能是为了提示使用第一终端设备的用户注意该目标对象上的第一位置,例如提示使用第一终端设备的用户针对目标对象上的第一位置执行相应的操作。因此,在本申请实施例中,第二终端设备可以���据用户在第二终端上触发针对目标对象上的第一位置的操作对应的屏幕位置,确定可以描述目标对象上的第一位置在所述第一图像中的图像位置的第一位置信息,并将该第一位置信息发送给第一终端设备,从而使得第一终端设备可以根据该第一位置信息,进一步的执行相应的操作,以实现实际意义上的“手把手”远程协助的效果。After the first image is displayed on the screen of the second terminal device, the user using the second terminal device can trigger an operation on the second terminal for the first position on the target object, for example, click on the second terminal device and the target object The screen position corresponding to the first position on the target object; another example, draw a circle at the screen position corresponding to the first position on the target object; another example, mark the text at the screen position corresponding to the first position on the target object, etc. . It can be understood that the user triggering the operation on the first position on the target object on the second terminal device may actually be to prompt the user using the first terminal device to pay attention to the first position on the target object, for example, prompting the user to use The user of the first terminal device performs a corresponding operation with respect to the first position on the target object. Therefore, in this embodiment of the present application, the second terminal device may determine that the first position on the target object can be described as being in the the first position information of the image position in the first image, and send the first position information to the first terminal device, so that the first terminal device can further perform corresponding operations according to the first position information to achieve The effect of "hand in hand" remote assistance in a practical sense.
需要说明的是,本申请实施例不具体限定该第一位置信息,该第一位置信息例如可以为描述目标对象上的第一位置在第一图像中的绝对图像位置的信息,例如该第一位置信息可以为描述目标对象上的第一位置在第一图像中的绝对图像位置的坐标;该第一位置信息又如可以为描述目标对象上的第一位置在第一图像中的相对图像位置的信息,例如,该第一位置信息可以为描述目标对象上的第一位置在第一图像中的相对图像位置的坐标,本申请实施例不做具体限定。考虑到实际应用中,若要确定目标对象上的第一位置在所述第一图像中的绝对图像位置的信息,可以结合第一图像的图像分辨率以及目标对象上的第一位置在第一图像中的相对图像位置来进行确定,其中,该第一图像的图像分辨率,可以由第一终端设备发送给第二终端设备。在本申请实施例的一种实现方式中,为了减少第一终端设备给第二终端设备发送的数据量,该第一位置信息可以为前述描述目标对象上的第一位置在第一图像中的相对图像位置的信息。对于这种情况,第二终端设备可以根据前述屏幕位置以及第一图像在第二终端设备的屏幕上的显示区域的位置确定该第一位置信息。It should be noted that this embodiment of the present application does not specifically limit the first position information, and the first position information may be, for example, information describing the absolute image position of the first position on the target object in the first image, such as the first position information. The position information may be the coordinates describing the absolute image position of the first position on the target object in the first image; the first position information may be, for example, the relative image position describing the first position on the target object in the first image For example, the first position information may be a coordinate describing the relative image position of the first position on the target object in the first image, which is not specifically limited in this embodiment of the present application. Taking into account practical applications, to determine the absolute image position information of the first position on the target object in the first image, the image resolution of the first image and the first position on the target object in the first image can be combined. The relative image position in the image is determined, wherein the image resolution of the first image can be sent by the first terminal device to the second terminal device. In an implementation manner of the embodiment of the present application, in order to reduce the amount of data sent by the first terminal device to the second terminal device, the first position information may be the aforementioned description of the first position on the target object in the first image. Information about the relative image position. In this case, the second terminal device may determine the first position information according to the aforementioned screen position and the position of the display area of the first image on the screen of the second terminal device.
关于描述目标对象上的第一位置在第一图像中的相对位置的信息的确定方式,现举例说明,假设第二终端设备的屏幕分辨率为540*480,则可以为第二终端设备的屏幕构建屏幕坐标系,可参见图3进行理解,图3为本申请实施例提供的一种屏幕坐标系的示意图。在图3中,第二终端设备的屏幕坐标系的原点(0,0)为第二终端设备的显示屏的左下角的O点,屏幕坐标系的X坐标轴经过���点O(0,0)且与该显示屏的一条边OX平行,屏幕坐标系的Y坐标轴经过原点O(0,0)且与该显示屏的一条边OY平行。如图所示,该屏幕坐标系的坐标范围为(0,0)至(480,540);若前述第一图像在第二终端设备上的显示区域为整个屏幕,即第一图像在第二终端设备的屏幕上全屏显示,而���述屏幕���置对���的���标为(480,270),则该第一位置信息可以为坐标(480/480,270/540,),即(1,0.5)。关于第一图像在第二终端设备的屏幕上的特定显示区域显示这种情况,该第一位置信息的计算方式是类似的,此处不再详述。Regarding the method of determining the information describing the relative position of the first position on the target object in the first image, an example will be given now. Assuming that the screen resolution of the second terminal device is 540*480, the screen of the second terminal device may be The construction of the screen coordinate system can be understood by referring to FIG. 3 , which is a schematic diagram of a screen coordinate system provided by an embodiment of the present application. In FIG. 3 , the origin (0,0) of the screen coordinate system of the second terminal device is point O at the lower left corner of the display screen of the second terminal device, and the X coordinate axis of the screen coordinate system passes through the origin O(0,0) And parallel to one side OX of the display screen, the Y coordinate axis of the screen coordinate system passes through the origin O(0,0) and is parallel to one side OY of the display screen. As shown in the figure, the coordinate range of the screen coordinate system is (0,0) to (480,540); if the display area of the first image on the second terminal device is the entire screen, that is, the first image is displayed on the second terminal device , and the coordinates corresponding to the aforementioned screen positions are (480, 270), then the first position information may be coordinates (480/480, 270/540,), ie (1, 0.5). Regarding the case where the first image is displayed in a specific display area on the screen of the second terminal device, the calculation method of the first position information is similar, and will not be described in detail here.
步骤103:第一终端设备根据第一位置信息,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置,并在该虚拟坐标系中的第二位置处添加标记;虚拟坐标系中的第二位置,描述目标对象上的第一位置在真实三维立体空间中的实际位置。Step 103: The first terminal device determines, according to the first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system, and adds a mark at the second position in the virtual coordinate system; the virtual coordinate system The second position in , describes the actual position of the first position on the target object in the real three-dimensional space.
需要说明的是,该虚拟坐标系可以是第一终端设备构建的,具体地,当使用第一终端设备的用户在第一终端设备上启动远程协助功能之后,第一终端设备例如可以启动AR服务,该AR服务可以构建该虚拟坐标系,并构建与真实三维立体空间中的物体对应的虚拟对象。真实三维立体空间中的物体对应的虚拟对象在虚拟坐标系中的坐标,可以体现该物体在真实三维立体空间中的实际位置。具体地,对于视频通话场景而言,AR服务例如可以获取第一终端设备连续拍摄的多帧图像,对三维立体空间中的物体表面的部分或者全部特征点进行分析,从而确定出该物体对应的虚拟对象虚拟坐标系中的坐标。对于前述远程家居监测场景而言,AR服务例如可以获取摄像头发送给第一终端设备的多帧图像,对目标对象所处的三维立体空间中的物体表面的部分或者全部特征点进行分析,从而确定出该目标对象所处的三维立体空间中的物体对应的虚拟对象虚拟坐标系中的坐标。前述物体可以是一些特征点,例如键盘四个角对应的点,也可以是根据特征点拟合得到的虚拟平面,例如对应于真实三维立体空间中的地面的虚拟平面。AR服务又如���以根据深度摄像头以及雷达等设备获取物体的深度信息,从而根据该深度信息拟合出虚拟平面,例如,对于真实三维立体空间中的快递盒,可以根据深度信息拟合出对应快递盒的多个表面的虚拟平面,从而确定该物体对应的虚拟对象在虚拟坐标系中的坐标。It should be noted that the virtual coordinate system may be constructed by the first terminal device. Specifically, after the user using the first terminal device starts the remote assistance function on the first terminal device, the first terminal device may, for example, start the AR service. , the AR service can construct the virtual coordinate system and construct virtual objects corresponding to objects in the real three-dimensional space. The coordinates in the virtual coordinate system of the virtual object corresponding to the object in the real three-dimensional space can reflect the actual position of the object in the real three-dimensional space. Specifically, for a video call scene, the AR service can, for example, obtain multiple frames of images continuously shot by the first terminal device, and analyze some or all of the feature points on the surface of the object in the three-dimensional space, so as to determine the corresponding feature of the object. The coordinates in the virtual coordinate system of the virtual object. For the aforementioned remote home monitoring scenario, the AR service can, for example, acquire multiple frames of images sent by the camera to the first terminal device, and analyze some or all of the feature points on the surface of the object in the three-dimensional space where the target object is located, so as to determine The coordinates in the virtual coordinate system of the virtual object corresponding to the object in the three-dimensional space where the target object is located are obtained. The aforementioned objects may be some feature points, such as points corresponding to the four corners of the keyboard, or may be a virtual plane obtained by fitting according to the feature points, such as a virtual plane corresponding to the ground in a real three-dimensional space. Another example is the AR service that can obtain the depth information of the object according to the depth camera and radar and other equipment, so as to fit the virtual plane according to the depth information. For example, for the express box in the real three-dimensional space, the corresponding express can be fitted according to the depth information. virtual planes of multiple surfaces of the box, thereby determining the coordinates of the virtual object corresponding to the object in the virtual coordinate system.
在本申请实施例的一种实现方式中,对于视频通话场景而言,前述第一终端设备构建的虚拟坐标系的原点,可以由第一终端设备启动AR服务时,第一终端设备在真实三维立体空间中的位置确定,例如,虚拟坐标系的原点对应第一终端设备在真实三维立体空间中的位置,即第一终端设备在世界坐标系中的坐标,对应虚拟坐标系中原点的坐标。对于前述远程家居监控场景而言,考虑到摄像头和第一终端设备可能不是处于同一三维立体空间中,例如,摄像头处于客厅,而第一终端设备处于卧室甚至是办公场所等等,对于这种情况,虚拟坐标系的原点可以对应摄像头在真实三维立体空间中的位置,即摄像头在世界坐标系中的坐标,对应虚拟坐标系中原点的坐标。在本申请实施例的一种实现方式中,虚拟坐标系包括三个坐标轴,分别为X轴、Y轴和Z轴。其中,Y轴可以为重力的反方向,X轴例如可以为第一终端设备上的usb口在水平面上的投影方向,Z轴为与 X轴和Y轴均垂直的方向。In an implementation manner of this embodiment of the present application, for a video call scenario, the origin of the virtual coordinate system constructed by the first terminal device can be used when the first terminal device starts the AR service, and the first terminal device is in a real three-dimensional The position in the stereo space is determined, for example, the origin of the virtual coordinate system corresponds to the position of the first terminal device in the real three-dimensional stereo space, that is, the coordinates of the first terminal device in the world coordinate system correspond to the coordinates of the origin in the virtual coordinate system. For the aforementioned remote home monitoring scenario, considering that the camera and the first terminal device may not be in the same three-dimensional space, for example, the camera is in the living room, and the first terminal device is in the bedroom or even the office, etc., for this situation , the origin of the virtual coordinate system can correspond to the position of the camera in the real three-dimensional space, that is, the coordinates of the camera in the world coordinate system correspond to the coordinates of the origin in the virtual coordinate system. In an implementation manner of the embodiment of the present application, the virtual coordinate system includes three coordinate axes, which are an X-axis, a Y-axis, and a Z-axis, respectively. The Y axis may be the opposite direction of gravity, the X axis may be, for example, the projection direction of the usb port on the first terminal device on the horizontal plane, and the Z axis is the direction perpendicular to both the X axis and the Y axis.
可以理解的是,对于视频通话场景而言,若第一终端设备为移动设备例如智能手机,则第一终端设备每次启动AR服务时,AR服务设置的虚拟坐标原点以及三个坐标轴方向都是由第一终端设备启动AR服务时的状态例如第一终端设备在真实三维立体空间中的位置,又如第一终端设备本身的姿态确定的,故而,第一终端设备每次启动AR服务时所建立的虚拟坐标系的原点以及三个坐标轴可能并不是一致的。It can be understood that, for a video call scenario, if the first terminal device is a mobile device such as a smartphone, each time the first terminal device starts the AR service, the virtual coordinate origin and the three coordinate axis directions set by the AR service are all the same. It is determined by the state when the first terminal device starts the AR service, such as the position of the first terminal device in the real three-dimensional space, and the posture of the first terminal device itself. Therefore, each time the first terminal device starts the AR service The origin of the established virtual coordinate system and the three coordinate axes may not be consistent.
当然,以上只是示例性说明,虚拟坐标系的原点确定,以及三个坐标轴的方向的确定,还可以根据其它方式来确定,这和AR服务自身的设置相关,此处不再一一列举说明。需要说明的是,本申请实施例中提及的AR服务,例如可以为传统技术中的增强现实软件开发工具包(augmented reality software development kit,AR SDK),例如华为提供的AREngine、谷歌提供的ARCore、苹果提供的ARKit等等。当然,AR服务也可以是重新开发的,本申请实施例不做具体限定。Of course, the above is only an exemplary description. The origin of the virtual coordinate system and the direction of the three coordinate axes can also be determined in other ways, which are related to the settings of the AR service itself, and will not be listed here. . It should be noted that the AR service mentioned in the embodiments of this application may be, for example, an augmented reality software development kit (AR SDK) in traditional technologies, such as AREngine provided by Huawei and ARCore provided by Google. , ARKit provided by Apple, etc. Of course, the AR service may also be redeveloped, which is not specifically limited in this embodiment of the present application.
在本申请实施例中,可以利用前述AR服务在该目标对象上的第一位置对应在虚拟坐标系中的第二位置处添加标记。本申请实施例不具体限定该标记,该标记例如可以为五角星、箭头等等。考虑到一些标记自身具备方向例如箭头方向,方向不同,其显示方式也不同,故而在本申请实施例的一种实现方式中,第一终端设备添加该标记时,还可以获取该标记在虚拟坐标系中的方向,从而在虚拟坐标系中添加与该方向对应的标记,例如添加箭头方向朝下的箭头。In this embodiment of the present application, a mark may be added at a first position on the target object corresponding to a second position in the virtual coordinate system by using the aforementioned AR service. The embodiment of the present application does not specifically limit the mark, and the mark may be, for example, a five-pointed star, an arrow, or the like. Considering that some markers themselves have directions, such as arrow directions, different directions have different display modes, so in an implementation manner of the embodiment of the present application, when the first terminal device adds the marker, it can also obtain the virtual coordinates of the marker. The direction in the system, so as to add a mark corresponding to the direction in the virtual coordinate system, such as adding an arrow pointing downward.
步骤104:第一终端设备在���二������上������前述标记,使得该标记在第二图像上对应的位置,与目标对象上的第一位置在第二图像中的位置一致;第二图像为第一终端设备显示的包括目标对象的图像。Step 104: The first terminal device renders the aforementioned mark on the second image, so that the corresponding position of the mark on the second image is consistent with the position of the first position on the target object in the second image; the second image is the first An image displayed by a terminal device including the target object.
需要说明的是,在远程协助这个场景中,第二图像可以为第一终端设备拍摄第一图像之后的某一时刻拍摄并显示在第一终端设备上的图像,例如,第一图像为k时刻拍摄的图像,第二图像为k+m时刻拍摄并显示在第一终端设备上的图像。在其它场景中,例如在前述远程家居监控这个场景中,第二图像可以为摄像头拍摄第一图像之后的某一时刻拍摄、并发送给第一终端设备、并由第一终端设备显示的图像。It should be noted that, in the scenario of remote assistance, the second image may be an image captured at a certain moment after the first terminal device captures the first image and displayed on the first terminal device, for example, the first image is at time k The captured image, the second image is an image captured at time k+m and displayed on the first terminal device. In other scenarios, such as in the aforementioned remote home monitoring scenario, the second image may be an image captured at a certain moment after the camera captures the first image, sent to the first terminal device, and displayed by the first terminal device.
在本申请实施例中,对于前述视频通话场景,考虑到即使第一终端设备在将第一图像发送给第二终端设备之后位置发生了改变,但是用户在第二终端上触发的操作对应的目标对象上的第一位置在真实三维立体空间中的实际位置在上述时间差内通常是不会发生改变的。类似的,对于前述远程家居监控场景,即使摄像头拍摄第一图像之后发生了晃动,或者拍摄角度发生了改变,但是用户在第二终端上触发的操作对应的目标对象上的第一位置在真实三维立体空间中的实际位置在上述时间差内通常是不会发生改变的。在本申请实施例中,第一终端设备确定的目标对象上的第一位置对应在虚拟坐标系中的第二位置,可以体现所述目标对象上的第一位置在真实三维立体空间中的实际位置。确定出目标对象上的第一位置对应在虚拟坐标系中的第二位置之后,可以在该虚拟坐标系中的第二位置处添加标记,并在第一终端设备上显示的包括目标对象的第二图像上渲染该标记,使得该标记在第二图像上对应的位置,与目标对象上的第一位置在第二图像中的位置一致,以实现“手把手”远程协助的效果。In the embodiment of the present application, for the aforementioned video call scenario, it is considered that even if the position of the first terminal device changes after sending the first image to the second terminal device, the target corresponding to the operation triggered by the user on the second terminal The actual position of the first position on the object in the real three-dimensional space usually does not change within the above-mentioned time difference. Similarly, for the aforementioned remote home monitoring scenario, even if the camera shakes or the shooting angle changes after capturing the first image, the first position on the target object corresponding to the operation triggered by the user on the second terminal is in the real three-dimensional space. The actual position in the stereoscopic space usually does not change within the above time difference. In this embodiment of the present application, the first position on the target object determined by the first terminal device corresponds to the second position in the virtual coordinate system, which can reflect the actual position of the first position on the target object in the real three-dimensional space. Location. After it is determined that the first position on the target object corresponds to the second position in the virtual coordinate system, a mark can be added at the second position in the virtual coordinate system, and the first terminal device that includes the target object is displayed. The mark is rendered on the second image, so that the corresponding position of the mark on the second image is consistent with the position of the first position on the target object in the second image, so as to achieve the effect of "hand in hand" remote assistance.
本申请实施例不具体限定在第二图像上渲染该标记的具体实现方式,作为���种示例,可以调用AR服务提供的渲染引擎,在第二图像上渲染该标记。具体地,可以将第一终端设备的投影矩阵以及第二图像对应的视野信息提供的给渲染引擎,渲染引擎可以根据第一终端设备的投影矩阵、第二图像对应的视野信息以及该标记在虚拟坐标系中的第二位置,将该标记渲染到第一终端设备的屏幕上,从而使得该标记在第二图像上对应的位置,与目标对象上的第一位置在第二图像中的位置一致。The embodiments of the present application do not specifically limit the specific implementation manner of rendering the mark on the second image. As an example, a rendering engine provided by the AR service may be invoked to render the mark on the second image. Specifically, the projection matrix of the first terminal device and the field of view information corresponding to the second image can be provided to the rendering engine, and the rendering engine can use the projection matrix of the first terminal device, the field of view information corresponding to the second image, and the mark in the virtual The second position in the coordinate system, render the mark on the screen of the first terminal device, so that the position corresponding to the mark on the second image is consistent with the position of the first position on the target object in the second image .
本申请实施例不具体限定第二图像对应的视野信息,该视野信息可以用于描述第拍摄第二图像时,拍摄第二图像的摄像头在前述虚拟坐标系中所处的位置,以及拍摄第二图像时,拍摄第二图像的摄像头在虚拟坐标系中的拍摄方向。在本申请实施例中,第一终端设备可以利用前述AR服务获取第二图像对应的视野信息。This embodiment of the present application does not specifically limit the field of view information corresponding to the second image, and the field of view information may be used to describe the position of the camera that captures the second image in the aforementioned virtual coordinate system when the second image is captured, and the position of the camera that captures the second image. When taking an image, the shooting direction of the camera that shoots the second image in the virtual coordinate system. In this embodiment of the present application, the first terminal device may obtain the field of view information corresponding to the second image by using the aforementioned AR service.
步骤105:第一终端设备显示在第二图像上渲染的该标记。Step 105: The first terminal device displays the mark rendered on the second image.
可以理解的是,第一终端设备在第二图像上渲染该标记之后,在一定程度上可以表示生成了可以将所述标记和目标对象上的第一位置显示到第二图像上的同一位置的文件。在本申请实施例中,在第二图像上渲染该标记之后,可以将渲染后的标记通过相应的硬件设备显示出来,从而使得用户可以通过该硬件设备显示的内容,查看该标记。在本申请实施例中,第一终端设备可以显示该标记,以使得使用第一终端设备的用户可以根据该标记,确定的使用第二终端设备的用户执行前述操作对应的目标对象上的第一位置,进一步地,使得第一终端设备的用户可以基于该标记执行进一步的操作。It can be understood that, after the first terminal device renders the mark on the second image, to a certain extent, it can indicate that the mark and the first position on the target object can be displayed in the same position on the second image. document. In this embodiment of the present application, after rendering the mark on the second image, the rendered mark may be displayed through a corresponding hardware device, so that the user can view the mark through the content displayed by the hardware device. In this embodiment of the present application, the first terminal device may display the mark, so that the user using the first terminal device can determine, according to the mark, that the user using the second terminal device performs the first operation on the target object corresponding to the foregoing operation. The location, furthermore, enables the user of the first terminal device to perform further operations based on the mark.
通过以上描述可知,利用本申请实施例的方案,可以实现“手把手”远程协助的效果。It can be seen from the above description that by using the solutions of the embodiments of the present application, the effect of "hand-in-hand" remote assistance can be achieved.
可以理解的是,在视频通话的过程中,第一终端设备会将其拍摄的多帧图像均发送给第二终端设备,类似地,对于前述远程家居监控场景,第一终端设备会将来自摄像头的多帧图像均发送给第二终端设备。为了确定用户在第二终端设备上触发操作时对应的是哪一帧图像,在本申请实施例中,第一终端设备在将第一图像发送给第二终端设备时,还可以将第一图像的标识发送给第二终端设备,相应的,第二终端设备向第一终端设备发送前述第一位置信息时,也可以将第一图像的标识对应发送给第一终端设备,以使得第一终端设备确定该第一位置信息对应第一图像。It can be understood that during the video call, the first terminal device will send the multiple frames of images it shoots to the second terminal device. Similarly, for the aforementioned remote home monitoring scenario, the first terminal device will send data from the camera. The multiple frames of images are sent to the second terminal device. In order to determine which frame of image corresponds to when the user triggers an operation on the second terminal device, in this embodiment of the present application, when sending the first image to the second terminal device, the first terminal device may also send the first image to the second terminal device. The identifier of the image is sent to the second terminal device. Correspondingly, when the second terminal device sends the aforementioned first location information to the first terminal device, the identifier of the first image can also be sent to the first terminal device correspondingly, so that the first terminal The device determines that the first location information corresponds to the first image.
本申请实施例不具体限定第一图像的标识,该第一图像的标识例如可以为拍摄第一图像的时间;该第一标识又如可以为第一图像对应的视野信息,该视野信息用于体现拍摄第一图像时,拍摄第一图像的摄像头在前述虚拟坐标系中所处的目标位置,以及拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中的目标拍摄方向。在本申请实施例中,终端设备可以利用前述AR服务获取第一图像的标识,从而将该第一图像的标识发送给第二终端设备。The embodiment of the present application does not specifically limit the identification of the first image, for example, the identification of the first image may be the time when the first image was taken; the first identification may be the visual field information corresponding to the first image, and the visual field information is used for When capturing the first image, the target position of the camera that captures the first image in the virtual coordinate system, and the target shooting direction of the camera that captures the first image in the virtual coordinate system when capturing the first image. In this embodiment of the present application, the terminal device may obtain the identifier of the first image by using the aforementioned AR service, so as to send the identifier of the first image to the second terminal device.
以下结合附图对前述步骤103中第一终端设备根据第一图像位置确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的具体实现方式。The following describes a specific implementation manner of determining that the first position on the target object corresponds to the second position in the virtual coordinate system by the first terminal device according to the first image position in the foregoing
参见图4,该图为本申请实施例提供的一种确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的方法的流程示意图。该方法例如可以通过如下步骤201-202实现。Referring to FIG. 4 , which is a schematic flowchart of a method for determining that a first position on a target object corresponds to a second position in a virtual coordinate system according to an embodiment of the present application. The method can be implemented, for example, through the following steps 201-202.
步骤201:第一终端设备根据第一位置信息和第一图像的图像分辨率,确定目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置。Step 201: The first terminal device determines the image position of the first position on the target object in the image coordinate system corresponding to the first image according to the first position information and the image resolution of the first image.
在本申请实施例中,对于前述视频通话场景,第一终端设备可以通过AR服务获取第一图像的图像分辨率,在第一终端设备开������程���助功能时,AR服务可以���置第一终端设备所拍摄的图像的图像分辨率。具体地,AR服务可以获取第一终端设备的屏幕分辨率,从而根据第一终端设备屏幕分辨率,配置第一终端设备拍摄的图像例如第一图像的图像分辨率。一般而言,AR服务会将第一图像的图像分辨率配置为小于第一终端设备的屏幕分辨率。对于前述远程家居监控场景,第一图像的图像分辨率可以是拍摄第一图像的摄像头发送给第一终端设备的。In this embodiment of the present application, for the aforementioned video call scenario, the first terminal device can obtain the image resolution of the first image through the AR service, and when the first terminal device enables the remote assistance function, the AR service can configure the first terminal device to The image resolution of the captured image. Specifically, the AR service may acquire the screen resolution of the first terminal device, so as to configure an image captured by the first terminal device, for example, the image resolution of the first image, according to the screen resolution of the first terminal device. Generally speaking, the AR service will configure the image resolution of the first image to be smaller than the screen resolution of the first terminal device. For the foregoing remote home monitoring scenario, the image resolution of the first image may be sent to the first terminal device by the camera that captured the first image.
对于前述第一位置信息可以为描述目标对象上的第一位置在第一图像中的相对图像位置的信息这种情况,步骤201在实现时,例如可以将第一位置信息和第一图像的图像分辨率的乘积,确定为目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置。举例说明,第一位置信息为坐标(0.5,1.0),第一图像的图像分辨率为480*480,则确定目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置为 (480*0.5,480*1.0),即(240,480)。In the case where the aforementioned first position information may be information describing the relative image position of the first position on the target object in the first image, when
步骤202:第一终端设备根据前述图像位置确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。Step 202: The first terminal device determines, according to the aforementioned image position, that the first position on the target object corresponds to the second position in the virtual coordinate system.
在介绍步骤202的具体实现之前,首先结合图5对第一终端设备的摄像头的拍摄原理进行介绍。图5为本申请实施例提供的一种视椎体的示意图。Before introducing the specific implementation of
需要说明的是,视椎体的形状确定了如何将摄像头拍摄到的图像映射到第一终端设备的屏幕上。可参见图5,图5中O点为摄像头在虚拟坐标系中所处的位置,502为摄像头的视角;图5所示虚拟坐标系中的平面502对应第一终端设备的屏幕,平面503对应摄像头可拍摄的最远范围。前述提及的在目标对象上的第一位置对应在虚拟坐标系中的第二位置处添加的标记,例如可以为图5所示的虚拟物体504。It should be noted that the shape of the viewing frustum determines how to map the image captured by the camera to the screen of the first terminal device. Referring to FIG. 5, point O in FIG. 5 is the position of the camera in the virtual coordinate system, and 502 is the angle of view of the camera; the
步骤202在具体实现时,可以结合第一终端设备拍摄第一图像时的视椎体,首先确定目标对象上的第一位置对应��虚拟坐标系中的方向,而后根据该方向以及目标对象对应的虚拟对象,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。关于目标对象对应的虚拟对象,前文对于虚拟坐标系的构建部分已经详细说明,此处不再详述。When
以下结合图6,介绍步骤202的一种可能的实现方式,图6为本申请实施例提供的一种确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的方法的流程示意图。该方法例如可以通过以下步骤301-303实现。A possible implementation manner of
步骤301:第一终端设备获取第一图像对应的视野信息。Step 301: The first terminal device acquires field of view information corresponding to the first image.
需要说明的是,第一图像对应的视野信息,可以描述拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中所处的位置,以及第一终端设备拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中的拍摄方向。对于视频通话场景而言,第一图像对应的视野信息,可以描述第一终端设备拍摄第一图像时,第一终端设备的摄像头在虚拟坐标系中所处的位置,以及第一终端设备拍摄第一图像时,第一终端设备的摄像头在虚拟坐标系中的拍摄方向。为方便描述,将“拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中所处的位置”称为“目标位置”,将“拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中的拍摄方向”称为“目标拍摄方向”。It should be noted that the field of view information corresponding to the first image can describe the position of the camera that captures the first image in the virtual coordinate system when the first image is captured, and the position of the camera that captures the first image when the first terminal device captures the first image. The shooting direction of the camera of an image in the virtual coordinate system. For a video call scenario, the field of view information corresponding to the first image can describe the position of the camera of the first terminal device in the virtual coordinate system when the first terminal device captures the first image, and the location of the camera of the first terminal device in the virtual coordinate system when the first terminal device captures the first image The shooting direction of the camera of the first terminal device in the virtual coordinate system when an image is displayed. For the convenience of description, "when the first image is captured, the position of the camera that captures the first image in the virtual coordinate system" is referred to as the "target position", and "when the first image is captured, the camera that captures the first image is located in the virtual coordinate system". The shooting direction in the virtual coordinate system" is called the "target shooting direction".
如前文,在本申请实施例中,可以通过AR服务获取第一图像对应的视野信息。As described above, in this embodiment of the present application, the field of view information corresponding to the first image may be acquired through the AR service.
步骤302:第一终端设备根据图像位置以及第一图像对应的视野信息,计算目标射线在虚拟坐标系中的位置;目标射线为端点为目标位置、且经过虚拟坐标系中的第二位置的射线。Step 302: The first terminal device calculates the position of the target ray in the virtual coordinate system according to the image position and the field of view information corresponding to the first image; the target ray is the ray whose endpoint is the target position and passes through the second position in the virtual coordinate system. .
本申请实施例不具体限定计算目标射线在虚拟坐标系中的位置的具体实现,作为一种示例,可以通过计算目标射线在虚拟坐标系中的目标方程的形式,计算目标射线在虚拟坐标系中的位置。The embodiment of the present application does not specifically limit the specific implementation of calculating the position of the target ray in the virtual coordinate system. As an example, the calculation of the target ray in the virtual coordinate system can be performed by calculating the target equation of the target ray in the virtual coordinate system. s position.
在本申请实施例中,该目标方程,可以体现目标对象上的第一位置对应在虚拟坐标系中的方向,即可以体现前述第二位置在虚拟坐标系中的方向。在本申请实施例的一种实现方式中,可以通过如下公式(1)和公式(2)确定目标方程。In the embodiment of the present application, the target equation can reflect the direction in the virtual coordinate system corresponding to the first position on the target object, that is, can reflect the direction of the second position in the virtual coordinate system. In an implementation manner of the embodiment of the present application, the target equation may be determined by the following formula (1) and formula (2).
[End]=[View]^(-1)×[Projection]^(-1)×[p] 公式(1)[End]=[View]^(-1)×[Projection]^(-1)×[p] Formula (1)
Direction=End-Start 公式(2)Direction=End-Start Formula (2)
在公式(1)中,[End]为目标射线上的一个点的位置,[End]可以是一个4*1的列矢量,是坐标值的齐次表达,例如[End]可以为(XW,YW,ZW,1)-1;In formula (1), [End] is the position of a point on the target ray, and [End] can be a 4*1 column vector, which is a homogeneous expression of coordinate values. For example, [End] can be (XW, YW,ZW,1)-1;
[View]^(-1)表示第一图像对应的视野矩阵[View]的逆矩阵,由第一图像对应的视野范围确定,即拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中的拍摄方向、以及拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中的位置确定;[View]^(-1) represents the inverse matrix of the field of view matrix [View] corresponding to the first image, which is determined by the field of view corresponding to the first image, that is, when the first image is captured, the camera that captures the first image is in the virtual coordinate system and when the first image is captured, the position of the camera that captures the first image in the virtual coordinate system is determined;
需要说明的是,[View]^(-1)也可以称为摄像头拍摄第一图像时的位姿矩阵,该位姿矩阵例如可以为(4*4)的矩阵。摄像头拍摄第一图像时的位姿矩阵,例如可以为 [(R_C&T_C@0&1)],其中,R_C是摄像头在世界坐标系下的旋转矩阵,该旋转矩阵例如可以为(3*3)的矩阵;T_C是摄像头在世界坐标系下的平移向量,T_C例如可以为(3*1) 的列矢量。当第一终端设备启动AR服务之后,第一终端设备可以通过AR服务获取摄像头在世界坐标系下的旋转矩阵R_C和摄像头在世界坐标系下的平移向量T_C,从而获得该位姿矩阵[View]^(-1);It should be noted that [View]^(-1) may also be referred to as the pose matrix when the camera captures the first image, and the pose matrix may be, for example, a (4*4) matrix. The pose matrix when the camera captures the first image, for example, can be [(R_C&T_C@0&1)], where R_C is the rotation matrix of the camera in the world coordinate system, and the rotation matrix can be, for example, a (3*3) matrix; T_C is the translation vector of the camera in the world coordinate system, and T_C can be, for example, a (3*1) column vector. After the first terminal device starts the AR service, the first terminal device can obtain the rotation matrix R_C of the camera in the world coordinate system and the translation vector T_C of the camera in the world coordinate system through the AR service, so as to obtain the pose matrix [View] ^(-1);
[Projection]^(-1)为第一图像对应的投影矩阵的逆矩阵,第一终端设备可以利用 AR服务获取第一图像对应的投影矩阵,第一终端设备也可以根据摄像头拍摄第一图像时的参数确定第一图像对应的投影矩阵;其中,摄像头拍摄第一图像时的参数例如可以包括摄像头的横轴焦距fx、摄像头的纵轴焦距fy、摄像头对应的主点偏移值cx和cy、摄像头拍摄的第一图像的像素宽度值width和像素高度值height等等。其中,摄像头的横轴焦距fx、纵轴焦距fy和摄像头对应的主点偏移值cx和cy与摄像头的硬件配置相关,���般而言,同一型号的多个摄像头,其对应的横轴焦距fx、纵轴焦距fy、以及主点偏移值cx和cy是相同的;[Projection]^(-1) is the inverse matrix of the projection matrix corresponding to the first image. The first terminal device can use the AR service to obtain the projection matrix corresponding to the first image. The parameters determine the projection matrix corresponding to the first image; wherein, the parameters when the camera shoots the first image may include, for example, the horizontal axis focal length fx of the camera, the vertical axis focal length fy of the camera, and the corresponding principal point offset values cx and cy of the camera, The pixel width value width and the pixel height value height of the first image captured by the camera, and so on. Among them, the horizontal axis focal length fx, vertical axis focal length fy of the camera, and the corresponding principal point offset values cx and cy of the camera are related to the hardware configuration of the camera. Generally speaking, for multiple cameras of the same model, the corresponding horizontal axis focal length fx , the vertical axis focal length fy, and the principal point offset values cx and cy are the same;
[p]为目标对象在第一图像中的图像位置,与[End]类似,[p]可以是一个4*1的列矢量,是坐标值的齐次表达;[p] is the image position of the target object in the first image, similar to [End], [p] can be a 4*1 column vector, which is a homogeneous expression of coordinate values;
Direction表示目标方程;Direction represents the target equation;
End为[End]的坐标表示,表示目标射线上的一个点在虚拟坐标系中的坐标;End is the coordinate representation of [End], indicating the coordinates of a point on the target ray in the virtual coordinate system;
Start表示拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中所处的目标位置,即拍摄第一图像时,拍摄第一图像的摄像头在虚拟坐标系中的坐标。在本申请实施例的又一种实现方式中,可以通过如下公式(3)和公式(4)确定目标方程。Start represents the target position of the camera that captures the first image in the virtual coordinate system when the first image is captured, that is, the coordinates of the camera that captures the first image in the virtual coordinate system when capturing the first image. In another implementation manner of the embodiment of the present application, the target equation may be determined by the following formula (3) and formula (4).
[End]=[外参矩阵]×[内参矩阵]^(-1)×[p] 公式(3)[End]=[external parameter matrix]×[internal parameter matrix]^(-1)×[p] Formula (3)
Direction=End-Start 公式(4)Direction=End-Start Formula (4)
在公式(3)中,[End]为目标射线上的一个点位置;In formula (3), [End] is a point position on the target ray;
外参矩阵由拍摄第一图像时摄像头在虚拟坐标系下的位置与方向确定,外参矩阵可以为前文所述的位姿矩阵,为第一图像对应的视野矩阵[View]的逆矩阵,关于外参矩阵的描述,可以参考前文对于第一图像对应的视野矩阵[View]的描述部分,此处不再详述。The extrinsic parameter matrix is determined by the position and direction of the camera in the virtual coordinate system when the first image is captured. The extrinsic parameter matrix can be the pose matrix described above, which is the inverse matrix of the field of view matrix [View] corresponding to the first image. For the description of the extrinsic parameter matrix, reference may be made to the foregoing description of the field of view matrix [View] corresponding to the first image, which will not be described in detail here.
内参矩阵根据第一图像对应的摄像头内参确定,例如可以根据摄像头的横轴焦距fx、摄像头的纵轴焦距fy、摄像头对应的主点偏移值cx和cy来确定。如前文,摄像头的横轴焦距fx、纵轴焦距fy和摄像头对应的主点偏移值cx和cy与摄像头的硬件配置相关,故而可以通过获取摄像头的标识例如摄像头的型号,从而确定该内参矩阵。The internal parameter matrix is determined according to the internal parameters of the camera corresponding to the first image, for example, can be determined according to the focal length fx of the horizontal axis of the camera, the focal length of the vertical axis fy of the camera, and the principal point offset values cx and cy corresponding to the camera. As mentioned above, the focal length of the horizontal axis fx, the focal length of the vertical axis fy, and the corresponding principal point offset values cx and cy of the camera are related to the hardware configuration of the camera, so the internal parameter matrix can be determined by obtaining the identification of the camera, such as the model of the camera. .
公式(4)和公式(2)相同,此处不再赘述。The formula (4) is the same as the formula (2), and is not repeated here.
在本申请实施例中,目标方程还可以通过其它方式计算得到,例如不采用矩阵进行计算,而是直接由第一图像对应的摄像头内参、以及拍摄第一图像时摄像头在虚拟坐标系下的位置与方向计算目标方程,例如,考虑到矩阵本身是可以拆分成多个等式的,因此,在本申请实施例中,还可以直接利用与“由矩阵所表达的表达式”等价的“由等式表达的表达式”,来计算前述目标方程。但是,无论是利用矩阵进行计算,还是利用等式进行计算,其基本原理是相同的。In this embodiment of the present application, the target equation can also be calculated in other ways. For example, instead of using a matrix for calculation, it can be directly calculated from the internal parameters of the camera corresponding to the first image and the position of the camera in the virtual coordinate system when the first image is captured. and direction calculation target equation, for example, considering that the matrix itself can be divided into multiple equations, therefore, in this embodiment of the present application, it is also possible to directly use the "expression expressed by the matrix" equivalent to " The expression expressed by the equation", to calculate the aforementioned target equation. However, the basic principle is the same whether you use matrices for calculations or equations for calculations.
步骤303:第一终端设备将目标射线与虚拟坐标系中的虚拟对象的交点位置,确定为目标对象上的第一位置对应在虚拟坐标系中的第二位置。Step 303: The first terminal device determines the intersection position of the target ray and the virtual object in the virtual coordinate system as the first position on the target object corresponding to the second position in the virtual coordinate system.
可以理解的是,对于摄像头而言,其可以将真实三维立体空间中的物体,拍摄成二维图像,因此,对于一条射线例如目标射线上的所有的点,在二维图像上均体现为一个点。因此,在确定目标射线在虚拟坐标系中的方程之后,还可以结合虚拟坐标系中的虚拟对象,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。It can be understood that, for the camera, it can shoot objects in the real three-dimensional space into a two-dimensional image. Therefore, for a ray such as all points on the target ray, it is reflected as a two-dimensional image on the two-dimensional image. point. Therefore, after determining the equation of the target ray in the virtual coordinate system, it is also possible to combine the virtual object in the virtual coordinate system to determine that the first position on the target object corresponds to the second position in the virtual coordinate system.
目标射线与虚拟对象的交点,实际上对应了用户在第二终端设备上触发操作的屏幕位置对应的目标对象上的第一位置对应在虚拟坐标系中的第二位置。The intersection of the target ray and the virtual object actually corresponds to the first position on the target object corresponding to the screen position where the user triggers the operation on the second terminal device and corresponds to the second position in the virtual coordinate system.
在本申请实施例中,可以调用AR服务提供的碰撞函数,计算目标射线与虚拟坐标系中的虚拟对象的交点位置,从而确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。本申请实施例不具体限定该碰撞函数,该碰撞函数例如可以为ARCore提供的hitTest函数。In this embodiment of the present application, the collision function provided by the AR service can be called to calculate the intersection position of the target ray and the virtual object in the virtual coordinate system, so as to determine that the first position on the target object corresponds to the second position in the virtual coordinate system . The embodiment of the present application does not specifically limit the collision function, and the collision function may be, for example, the hitTest function provided by ARCore.
以上介绍了本申请实施例的应用于第一终端设备的显示方法,以下结合附图介绍一种应用于第二终端设备的位置确定方法。The display method applied to the first terminal device according to the embodiments of the present application has been described above, and a method for determining a position applied to the second terminal device is described below with reference to the accompanying drawings.
需要说明的是,应用于第二终端设备的位置确定方法,与前述应用于第一终端设备的显示方法的基本原理类似,均是考虑到对于前述视频通话场景,即使第一终端设备在将第一图像发送给第二终端设备之后位置发生了改变,但是用户在第二终端上触发的操作对应的目标对象上的第一位置在上述时间差内在真实三维立体空间中的实际位置通常是不会发生改变的。类似的,对于前述远程家居监控场景,即使摄像头拍摄第一图像之后发生了晃动,或者拍摄角度发生了改变,但是用户在第二终端上触发的操作对应的目标对象上的第一位置在真实三维立体空间中的实际位置在上述时间差内通常是不会发生改变的。因此,在本申请实施例中,可以由第二终端设备根据前述第一位置信息确定目标对象上的第一位置对应在虚拟坐标系中的第二位置,该目标对象上的第一位置对应在虚拟坐标系中的第二位置,描述目标对象上的第一位置在真实三维立体空间中的实际位置。确定该目标对象上的第一位置对应在虚拟坐标系中的第二位置之后,可以将该目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给第一终端设备,以便于第一终端设备在虚拟坐标系中的第二位置处添加标记,并在第一终端设备上显示的包括目标对象的第二图像上渲染该标记,并显示在所述第二图像上渲染的该标记。It should be noted that the position determination method applied to the second terminal device is similar to the basic principle of the aforementioned display method applied to the first terminal device. After an image is sent to the second terminal device, the position changes, but the actual position of the first position on the target object corresponding to the operation triggered by the user on the second terminal within the above-mentioned time difference usually does not occur in the real three-dimensional space. changed. Similarly, for the aforementioned remote home monitoring scenario, even if the camera shakes or the shooting angle changes after capturing the first image, the first position on the target object corresponding to the operation triggered by the user on the second terminal is in the real three-dimensional space. The actual position in the stereoscopic space usually does not change within the above time difference. Therefore, in this embodiment of the present application, the second terminal device may determine, according to the aforementioned first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system, and the first position on the target object corresponds to The second position in the virtual coordinate system describes the actual position of the first position on the target object in the real three-dimensional space. After determining that the first position on the target object corresponds to the second position in the virtual coordinate system, the first position on the target object corresponding to the second position in the virtual coordinate system may be sent to the first terminal device, so as to facilitate The first terminal device adds a marker at the second position in the virtual coordinate system, and renders the marker on the second image including the target object displayed on the first terminal device, and displays the marker rendered on the second image. mark.
参见图7,该图为本申请实施例提供的一种位置确定方法的流程示意图。该方法例如可以通过如下步骤401-403实现。Referring to FIG. 7 , which is a schematic flowchart of a method for determining a location provided by an embodiment of the present application. The method can be implemented, for example, through the following steps 401-403.
步骤401:第二终端设备接收第一终端设备发送的第一图像,并在第二终端设备的屏幕上显示第一图像;第一图像为包括目标对象的图像。Step 401: The second terminal device receives the first image sent by the first terminal device, and displays the first image on the screen of the second terminal device; the first image is an image including the target object.
步骤402:第二终端设备接收用户在第二终端设备上触发的、针对目标对象上的第一位置的操作指令,并确定第一位置信息,该第一位置信息对应用户在第二终端设备上针对目标对象上的第一位置的操作对应在第一图像中的位置。Step 402: The second terminal device receives an operation instruction triggered by the user on the second terminal device for the first position on the target object, and determines the first position information, the first position information corresponds to the user on the second terminal device The operation on the first position on the target object corresponds to the position in the first image.
在本申请实施例的一种实现方式中,该第一位置信息可以为描述目标对象上的第一位置在第一图像中的相���图像���置的������。对于这种情况,第二终端设备可以根据前述屏幕位置以及第一图像在第二终端设备的屏幕上的显示区域确定该第一位置信息。In an implementation manner of the embodiment of the present application, the first position information may be information describing a relative image position of the first position on the target object in the first image. In this case, the second terminal device may determine the first position information according to the aforementioned screen position and the display area of the first image on the screen of the second terminal device.
需要说明的是,步骤401-402与前述步骤101-102的原理类似,只是前述步骤101-102 是由第一终端设备执行的,而步骤401-402是由第二终端侧执行的,因此,关于步骤401-402的描述,可以参考上文中对于步骤101-102的描述部分,此处不再详述。It should be noted that the principles of steps 401-402 are similar to the aforementioned steps 101-102, except that the aforementioned steps 101-102 are performed by the first terminal device, while steps 401-402 are performed by the second terminal side. Therefore, For the description of steps 401-402, reference may be made to the description of steps 101-102 above, which will not be described in detail here.
步骤403:第二终端设备根据第一位置信息确定目标对象上的第一位置对应在虚拟坐标系中的第二位置,并将目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给第一终端设备;该虚拟坐标系中的第二位置,体现目标对象上的第一位置在真实三维立体空间中的实际位置。Step 403: The second terminal device determines, according to the first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system, and corresponds the first position on the target object to the second position in the virtual coordinate system Sent to the first terminal device; the second position in the virtual coordinate system reflects the actual position of the first position on the target object in the real three-dimensional space.
关于虚拟坐标系的描述,可以参考上文步骤103中的相关描述部分,此处不再详述。For the description of the virtual coordinate system, reference may be made to the relevant description part in
需要说明的是,第二终端设备根据第一位置信息确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的实现方式,与第一终端设备根据第一位置信息确定目标对象上的第一位置对应在虚拟坐标系中的第二位置类似,均是根据前述第一位置信息和第一图像的图像分辨率,确定目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置;而后根据目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置确定所述目标对象上的第一位置对应��在虚拟坐标系中的第二位置。It should be noted that the implementation manner in which the second terminal device determines that the first position on the target object corresponds to the second position in the virtual coordinate system according to the first position information is the same as the first terminal device determining the target object according to the first position information. The first position of the target object corresponds to the second position in the virtual coordinate system, both of which are based on the aforementioned first position information and the image resolution of the first image to determine the first position on the target object in the image coordinate system corresponding to the first image. Then, the second position in the virtual coordinate system corresponding to the first position on the target object is determined according to the image position of the first position on the target object in the image coordinate system corresponding to the first image.
只不过考虑到第一终端设备将第一图像发送给第二终端设备时,为了降低发送第一图像所占用的带宽,故而发送的可能是压缩后的图像;也就是说,第二终端设备根据第一图像本身,可能并不能获得第一图像的图像分辨率,因此,第一终端设备将第一图像发送给第二终端设备时,可以将第一图像的图像分辨率也发送给第二终端设备,以便于第二终端设备根据第一位置信息和第一图像的图像分辨率,确定目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置,进一步地,根据目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。It is only considered that when the first terminal device sends the first image to the second terminal device, in order to reduce the bandwidth occupied by sending the first image, the compressed image may be sent; The first image itself may not be able to obtain the image resolution of the first image. Therefore, when the first terminal device sends the first image to the second terminal device, it can also send the image resolution of the first image to the second terminal. device, so that the second terminal device can determine the image position of the first position on the target object in the image coordinate system corresponding to the first image according to the first position information and the image resolution of the first image, and further, according to the target object The first position on the target object corresponds to the image position in the image coordinate system corresponding to the first image, and it is determined that the first position on the target object corresponds to the second position in the virtual coordinate system.
需要说明的是,第二终端设备根据目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的具体实现方式,与第一终端设备根据目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置的具体实现方式相同,均是根据第一图像对应的视野信息以及目标对象上的第一位置在第一图像对应的图像坐标系中的图像位置,计算目标射线在虚拟坐标系中的位置;目标射线为端点为目标位置、且经过虚拟坐标系中的第二位置的射线;而后将目标射线与虚拟坐标系中的虚拟对象的交点位置,确定为目标对象上的第一位置对应在虚拟坐标系中的第二位置。It should be noted that, according to the image position of the first position on the target object in the image coordinate system corresponding to the first image, the second terminal device determines that the first position on the target object corresponds to the second position in the virtual coordinate system. The specific implementation method is similar to the first terminal device determining the first position on the target object corresponding to the second position in the virtual coordinate system according to the image position of the first position on the target object in the image coordinate system corresponding to the first image. The specific implementation methods are the same, both are based on the visual field information corresponding to the first image and the image position of the first position on the target object in the image coordinate system corresponding to the first image, to calculate the position of the target ray in the virtual coordinate system; is the ray whose endpoint is the target position and passes through the second position in the virtual coordinate system; then the intersection position of the target ray and the virtual object in the virtual coordinate system is determined as the first position on the target object corresponding to the virtual coordinate system the second position.
只不过考虑到第一图像是并不是第二终端设备拍摄的图像,故而第一图像对应的视野信息,第二终端设备可能无法获得,因此,第一终端设备将第一图像发送给第二终端设备时,可以将第一图像对应的视野信息也发送给第二终端设备,以便于第二终端设备根据该第一图像对应的视野信息,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置。It is just considering that the first image is not an image captured by the second terminal device, so the field of view information corresponding to the first image may not be obtained by the second terminal device. Therefore, the first terminal device sends the first image to the second terminal. device, the field of view information corresponding to the first image can also be sent to the second terminal device, so that the second terminal device can determine that the first position on the target object corresponds to the virtual coordinate system according to the field of view information corresponding to the first image the second position.
可以理解的是,第二终端设备根据该第一图像对应的视野信息,确定目标对象上的第一位置对应在虚拟坐标系中的第二位置时,要结合前述虚拟坐标系的相关信息,例如目标对象对应的虚拟对象在所述虚拟坐标系中的位置。而根据前文对于虚拟坐标系的描述可知,虚拟坐标系是第一终端设备根据目标对象所处的真实三维立体空间中的信息,例如前述真实三维立体空间中的物体的位置等信息构建的。因此,若第二终端设备和目标对象不是处于同一环境中,故而第二终端设备自身无法构建出于第一终端设备根据目标对象所处的真实三维立体空间中的信息所构建的虚拟坐标系相同的虚拟坐标系,对于这种情况,第一终端设备可以将与第一终端设备构建的虚拟坐标系相关的信息,发送给第二终端设备,例如将目标对象对应的虚拟对象在第一终端设备构建的虚拟坐标系中的位置,发送给第二终端设备。第二终端设备接收到与第一终端设备构建的虚拟坐标系相关的信息之后,即可结合与第一终端设备构建的虚拟坐标系相关的信息,确定出目标对象上的第一位置对应在虚拟坐标系中的第二位置。It can be understood that, when the second terminal device determines that the first position on the target object corresponds to the second position in the virtual coordinate system according to the field of view information corresponding to the first image, it needs to combine the relevant information of the virtual coordinate system, such as The position of the virtual object corresponding to the target object in the virtual coordinate system. According to the foregoing description of the virtual coordinate system, the virtual coordinate system is constructed by the first terminal device according to the information in the real three-dimensional space where the target object is located, such as the position of the object in the aforementioned real three-dimensional space. Therefore, if the second terminal device and the target object are not in the same environment, the second terminal device itself cannot construct the same virtual coordinate system constructed by the first terminal device according to the information in the real three-dimensional space where the target object is located. In this case, the first terminal device can send the information related to the virtual coordinate system constructed by the first terminal device to the second terminal device, for example, the virtual object corresponding to the target The position in the constructed virtual coordinate system is sent to the second terminal device. After receiving the information related to the virtual coordinate system constructed by the first terminal device, the second terminal device can determine that the first position on the target object corresponds to the virtual coordinate system constructed by the first terminal device in combination with the information related to the virtual coordinate system constructed by the first terminal device. The second position in the coordinate system.
第二终端设备将目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给所述第一终端设备之后,第一终端设备可以在虚拟坐标系中的第二位置处添加标记,并在第二图像上渲染标记,并显示在第二图像上渲染的标记;第二图像为第一终端设备显示的包括目标对象的图像;目标对象上的第一位置对应在虚拟坐标系中的第二位置,体现目标对象上的第一位置在真实三维立体空间中的实际位置。After the second terminal device sends the first position on the target object corresponding to the second position in the virtual coordinate system to the first terminal device, the first terminal device may add a mark at the second position in the virtual coordinate system, and render the mark on the second image, and display the mark rendered on the second image; the second image is the image including the target object displayed by the first terminal device; the first position on the target object corresponds to the position in the virtual coordinate system. The second position reflects the actual position of the first position on the target object in the real three-dimensional space.
关于第二终端设备将目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给第一终端设备之后,第一终端设备在虚拟坐标系中的第二位置处添加标记,并在第二图像上渲染该标记,并显示在第二图像上渲染的该标记的实现方式,可以参考上述实施例中步骤103-105的相关描述部分,此处不再详述。After the second terminal device sends the first position on the target object corresponding to the second position in the virtual coordinate system to the first terminal device, the first terminal device adds a mark at the second position in the virtual coordinate system, and adds a mark at the second position in the virtual coordinate system. For an implementation manner of rendering the mark on the second image and displaying the mark rendered on the second image, reference may be made to the relevant description parts of steps 103-105 in the foregoing embodiment, which will not be described in detail here.
需要说明的是,本申请实施例不具体限定第二终端设备发送给第一终端设备的具体信息,只要第一终端设备可以根据该信息确定出目标对象上的第一位置对应在虚拟坐标系中的第二位置即可。鉴于此,在本申请实施例的一种实现方式中,步骤403可以替换成,第二终端设备可以根据第一位置信息确定前述目标射线在虚拟坐标系中的位置,并将目标射线在虚拟坐标系中的位置发送给第一终端设备。从而由第一终端设备根据目标射线在虚拟坐标系中的位置计算目标对象上的第一位置对应在虚拟坐标系中的第二位置,进一步地,第一终端设备在目标对象上的第一位置对应在虚拟坐标系中的第二位置处添加标记,并在第二图像上渲染标记,并显示在第二图像上渲染的标记。It should be noted that this embodiment of the present application does not specifically limit the specific information sent by the second terminal device to the first terminal device, as long as the first terminal device can determine, according to the information, that the first position on the target object corresponds to the virtual coordinate system. the second position. In view of this, in an implementation manner of this embodiment of the present application,
上述实施例中,第一终端设备向第二终端设备发送的视频流,视频流包括多个视频帧,每个视频帧为一个图像。相应的,第一终端设备向第二终端设备发送第一图像之后,依然继续向第二终端设备发送图像。那么,第二终端设备开始接收第一终端设备的图像到接收到第一图像的时刻,第二终端设备已经持续接收了多个图像。第二终端设备侧的用户在看到第一图像时触发操作指令,用户实际在第二终端设备上针对目标对象上的第一位置开始输入操作指令后,所看到的可能并非第一图像,而是第一终端设备在发送第一图像之后发送其他图像(如第i图像)。用户触发的、针对目标对象上的操作指令是会关联在第一图像上,即第一位置的位置信息会关联第一图像,而第一终端设备在用户输入操作指令的该时间段内可能发生抖动,从而导致用户在第二终端设备上输入操作指令过程中看到的画面发生变化,使得第二终端设备侧的用户可能会有输入的位置不正确的错觉,从而使得远程协助功能的效果不好。In the above embodiment, the video stream sent by the first terminal device to the second terminal device includes a plurality of video frames, and each video frame is an image. Correspondingly, after the first terminal device sends the first image to the second terminal device, it still continues to send the image to the second terminal device. Then, from the moment when the second terminal device starts to receive the image of the first terminal device to the moment when the first image is received, the second terminal device has continuously received multiple images. The user on the second terminal device triggers the operation instruction when seeing the first image. After the user actually starts to input the operation instruction for the first position on the target object on the second terminal device, what he sees may not be the first image. Rather, the first terminal device sends other images (eg, the ith image) after sending the first image. The user-triggered operation instruction on the target object will be associated with the first image, that is, the location information of the first position will be associated with the first image, and the first terminal device may occur within the time period when the user inputs the operation instruction jitter, which causes the screen that the user sees to change during the process of inputting operation instructions on the second terminal device, so that the user on the second terminal device may have the illusion that the input position is incorrect, thus making the effect of the remote assistance function ineffective. it is good.
示例性的,如图11A所示,第一终端设备持续向第二终端设备发送图像,相应的,第二终端设备顺次接收到图像1101、图像1102、图像1103、图像1104和图像1105。图像1101例如是上述实施例所述的第一图像。第二终端设备接收以及显示图像1101时,第二终端设备侧用户触发第二终端设备输入操作指令。在完成接收到操作指令的时刻,第二终端设备所显示的例如是图像1105。如图11B所示,用户在第二终端设备上开始触发的位置例如是球形物的位置P,且用户完成触发时显示的是图像1105(如图11C)。然而,第二终端设备接收用户触发的操作指令,将用户触发的位置与图像1101关联。若第一终端设备在发送图像1101至图像1105期间发生抖动,那么,用户触发完成后,因画面变化,图像1101上的位置P显示为图11C示意的位置Q。如图11C所示,位置Q给用户的视觉效果并非用户想要标记的球形物,因此,用户可能会认为自己触发的位置出错了,可见,上述实施例可能使得第二终端设备侧的用户体验不好。Exemplarily, as shown in FIG. 11A , the first terminal device continues to send images to the second terminal device, and accordingly, the second terminal device receives
为了解决该问题,本申请实施例还提供了一种显示方法。如图12所示,该方法例如可以通过如下步骤501-步骤506实现。In order to solve this problem, an embodiment of the present application also provides a display method. As shown in FIG. 12 , the method can be implemented, for example, through the following
步骤501:第二终端设备获取第一图像,并在第二终端设备的屏幕上静态显示第一图像;所述第一图像为包括目标对象的图像。Step 501: The second terminal device acquires a first image, and statically displays the first image on the screen of the second terminal device; the first image is an image including a target object.
其中,“静态显示”是指第二终端设备获取第一图像之后,在第二终端设备的主界面上显示第一图像,即使第二终端设备依然从第一终端设备不断的接收图像,但是所接收的其他图像不在主界面上显示,例如可以通过主界面上的小窗显示,也可以不显示所接收的其他图像。Wherein, "static display" means that after the second terminal device acquires the first image, the first image is displayed on the main interface of the second terminal device, even if the second terminal device still continuously receives images from the first terminal device, all the Other received images are not displayed on the main interface, for example, they can be displayed through a small window on the main interface, or other received images may not be displayed.
可以理解地,当进行远程协助时,第一终端设备作为求助的一方,显示的第一终端设备采集的视频,第二终端设备作为协助的一方,显示的是第一终端设备采集并发送的视频。Understandably, when performing remote assistance, the first terminal device, as the party for assistance, displays the video collected by the first terminal device, and the second terminal device, as the party to assist, displays the video collected and sent by the first terminal device. .
截屏的触发时机可以是远程协助功能的开启时触发,远程协助功能的开启可以由第一终端设备侧的用户或第二终端设备侧的用户触发。一种实现方式中,第一终端设备侧的用户触发第一终端设备向第二终端设备发送远程协助请求时,对第一终端设备侧的视频截屏,得到第一图像。进而,第一终端设备将第一图像发送到第二终端设备。第二种实现方式中,第一终端设备侧的用户触发第一终端设备向第二终端设备发送远程协助请求,第二终端设备接收到该远程协助请求时,第二终端设备对第二终端设备上显示的视频截屏,以获取到第一图像。第三种实现方式中,第二终端设备侧的用户触发远程协助功能开启,第二终端设备向第一终端设备发送视频截屏请求,第一终端设备收到该视频截屏请求,对第一终端设备上显示的视频截屏,以获取到第一图像发送给第二终端设备。The trigger timing of the screenshot may be triggered when the remote assistance function is enabled, and the enablement of the remote assistance function may be triggered by a user on the side of the first terminal device or a user on the side of the second terminal device. In an implementation manner, when the user on the side of the first terminal device triggers the first terminal device to send a remote assistance request to the second terminal device, the user on the side of the first terminal device takes a screenshot of the video on the side of the first terminal device to obtain the first image. Further, the first terminal device sends the first image to the second terminal device. In the second implementation manner, the user on the side of the first terminal device triggers the first terminal device to send a remote assistance request to the second terminal device, and when the second terminal device receives the remote assistance request, the second terminal device sends a request to the second terminal device. Take a screenshot of the video shown above to get the first image. In a third implementation manner, the user on the side of the second terminal device triggers the remote assistance function to be enabled, the second terminal device sends a video screenshot request to the first terminal device, and the first terminal device receives the video screenshot request and sends the first terminal device to the first terminal device. Take a screenshot of the video displayed above to obtain the first image and send it to the second terminal device.
截屏的触发时机可以是在远程协助功能已经开启后,由第一终端设备侧的用户或第二终端设备侧的用户触发。一种实现方式中,在远程协助过程中,第一终端设备侧的用户触发第一终端设备界面上的“截屏”控件,第一终端设备接收到截屏指令,进而,对第一终端设备侧的视频截屏,得到第一图像。之后,第一终端设备将第一图像发送到第二终端设备。在另一种实现方式中,在远程协助过程中,第二终端设备侧的用户触发第二终端设备界面上的“截屏”控件,第二终端设备接收到截屏指令,进而,对第二终端设备侧的视频截屏,得到第一图像。另一种实现方式中,在远程协助过程中,第二终端设备侧的用户触发第二终端设备界面上的“截屏”控件,第二终端设备接收到截屏指令,进而,对第一终端设备发出的视频截屏请求,第一终端设备收到该视频截屏请求,对第一终端设备上显示的视频截屏,以获取到第一图像发送给第二终端设备。The trigger timing of the screenshot may be triggered by a user on the side of the first terminal device or a user on the side of the second terminal device after the remote assistance function has been enabled. In an implementation manner, during the remote assistance process, the user on the side of the first terminal device triggers the "screenshot" control on the interface of the first terminal device, the first terminal device receives the screenshot instruction, and further, the user on the side of the first terminal device triggers the "screenshot" control. Take a screenshot of the video to get the first image. After that, the first terminal device sends the first image to the second terminal device. In another implementation manner, during the remote assistance process, the user on the side of the second terminal device triggers the "screenshot" control on the interface of the second terminal device, the second terminal device receives the screenshot instruction, and then the second terminal device Take a screenshot of the video on the side to get the first image. In another implementation manner, during the remote assistance process, the user on the side of the second terminal device triggers the "screenshot" control on the interface of the second terminal device, the second terminal device receives the screenshot instruction, and then sends a message to the first terminal device. The first terminal device receives the video screenshot request, and takes a screenshot of the video displayed on the first terminal device, so as to obtain the first image and send it to the second terminal device.
示例性的,如图13A-1所示,第二终端设备能够从第一终端设备持续接收图像,例如,第二终端设备顺次接收到图像1301、图像1302、图像1303、图像1304和图像1305。第一终端设备向第二终端设备发送图像1301之后,例如响应第一终端设备侧用户的触发向第二终端设备发送远程协助请求。本实施例中,第一终端设备接收到用户的触发之后,截屏得到图像1302,进而,将图像1302和远程协助请求一起发送到第二终端设备。第二终端设备接收图像1302以及将图像1302显示在主界面。如图13B所示,第二终端设备依然持续接收图像1303、图像1304和图像1305,并在显示着图像1302的主界面上通过小窗口131显示图像1303、图像1304和图像1305,以及所接收的后续的图像。此外,另一种可能的实现方式是,第一终端设备接收到用户的触发之后,先向第二终端设备发送远程协助请求,然后,再向第二终端设备发送第一图像。此处不限制。Exemplarily, as shown in FIG. 13A-1, the second terminal device can continuously receive images from the first terminal device, for example, the second terminal device receives
如图13A-2所示,第一终端设备顺次向第二终端设备发送图像1301、图像1302、图像1303、图像1304和图像1305。第一终端设备向第二终端设备发送图像1301之后,例如响应第一终端设备侧用户的触发向第二终端设备发送远程协助请求。本实施例中,第二终端设备接收到远程协助请求之后,在第二终端设备端截屏得到图像1302。进而,如图13B所示,第二终端设备将图像1302显示在主界面,且依然持续接收图像1303、图像1304和图像1305,并在显示着图像1302的主界面上通过小窗口131显示图像1303、图像1304和图像1305,以及所接收的后续的图像。As shown in FIG. 13A-2, the first terminal device sends an
如图13A-3所示,第一终端设备已经向第二终端设备发起远程协助请求。第一终端设备顺次向第二终端设备发送图像1301、图像1302、图像1303、图像1304和图像1305。第一终端设备向第二终端设备发送图像1301之后,例如,接收到第一终端设备侧的用户输入的截屏请求。响应该截屏请求,第一终端设备截屏得到图像1302,进而,将图像1302 发送到第二终端设备。第二终端设备显示图像1302以及图像1303、图像1304和图像1305 的方式如图13B所示,此处不详述。As shown in FIG. 13A-3, the first terminal device has initiated a remote assistance request to the second terminal device. The first terminal device sends an
如图13A-4所示,第一终端设备已经向第二终端设备发起远程协助请求。第一终端设备顺次向第二终端设备发送图像1301、图像1302、图像1303、图像1304和图像1305。第二终端设备接收到图像1301之后,例如接收到用户输入的截屏请求。响应该截屏请求,第二终端设备端截屏得到图像1302。第二终端设备显示图像1302以及图像1303、图像 1304和图像1305的方式如图13B所示,此处不详述。As shown in Figures 13A-4, the first terminal device has initiated a remote assistance request to the second terminal device. The first terminal device sends an
需要指出的是,一些实施例中,图13A-3和图13A-4示意的实施例中,用户可以触发相应终端设备的“截屏”快捷键,使得相应终端设备执行截屏操作。另一些实施例中,在远程协助功能执行过程中,第一终端设备和第二终端设备中的至少一个设备,界面上可以显示“截屏”控件。示例性的,如图13C所示,终端设备界面上显示的“截屏”控件,可以是标记有“截屏”标识的按钮132。当然,其他实施例中,终端设备界面上显示的“截屏”控件,可以是指示“截屏”的图标。此处不限制。It should be pointed out that, in some embodiments, in the embodiments illustrated in FIGS. 13A-3 and 13A-4 , the user can trigger the “screenshot” shortcut key of the corresponding terminal device, so that the corresponding terminal device performs a screen capture operation. In other embodiments, during the execution of the remote assistance function, at least one of the first terminal device and the second terminal device may display a "screenshot" control on the interface. Exemplarily, as shown in FIG. 13C , the "screen capture" control displayed on the interface of the terminal device may be a
可以理解地,图13A-1至图13A-4仅是示意性描述,不构成对本实施例获取第一图像的方法的限制。另一些实现方式中,第一终端设备还可以响应第二终端设备的指令,截屏得到第一图像,然后,将第一图像发送到第二终端设备。此处不详述。It can be understood that FIGS. 13A-1 to 13A-4 are only schematic descriptions, and do not limit the method for acquiring the first image in this embodiment. In other implementation manners, the first terminal device may also respond to an instruction of the second terminal device, take a screenshot to obtain the first image, and then send the first image to the second terminal device. Not detailed here.
可以理解地,当远程协助功能被关闭,或者用户触发取消截屏后,第二终端设备上继续显示第一终端设备发送来的视频流。示例性的,图13B示意的界面上例如还可以包括触发远程协助功能关闭的按钮133,按钮133例如可以标记有“完成协助”。进而,第二终端设备侧的用户在图像1302的位置P触发标记之后,可以通过点���按钮133关闭远程协助功能。进而,第二终端设备接收到关闭指令之后,可以将小窗口131放大到整个屏幕,以在第二终端设备的主界面显示第一终端设备发送来的视频流。Understandably, when the remote assistance function is disabled, or the user triggers to cancel the screenshot, the second terminal device continues to display the video stream sent by the first terminal device. Exemplarily, the interface illustrated in FIG. 13B may further include, for example, a
在触发截屏之前,第二终端设备上显示的是来自第一终端设备的视频流,即会随着第一终端设备采集和发送的视频内容的变化而变化。而触发截屏后,在第二终端设备上是显示的第一图像,而不是视频流,第二终端设备上仍可以接收第一终端设备发送的视频流但不显示;或者在第二终端设备的主界面上显示的是第一图像,而不是视频流,视频流在第二终端设备的屏幕中的小窗口中显示(如图13B示意的实施例所示)。触发截屏后,第一终端设备可以继续发送视频流给第二终端设备,也可以停止发送视频流直到用户触发取消截屏再恢复发送视频流,或者停止发送视频流,直到第一终端设备侧的用户或第二终端设备侧的用户触发远程协助完成后再恢复发送视频流。Before the screenshot is triggered, the video stream from the first terminal device is displayed on the second terminal device, that is, it changes with the change of the video content collected and sent by the first terminal device. After the screenshot is triggered, the first image is displayed on the second terminal device instead of the video stream, and the second terminal device can still receive the video stream sent by the first terminal device but does not display it; What is displayed on the main interface is the first image instead of the video stream, and the video stream is displayed in a small window on the screen of the second terminal device (as shown in the embodiment illustrated in FIG. 13B ). After the screenshot is triggered, the first terminal device can continue to send the video stream to the second terminal device, or it can stop sending the video stream until the user triggers to cancel the screenshot and then resume sending the video stream, or stop sending the video stream until the user on the first terminal device side. Or the user on the second terminal device side triggers the completion of the remote assistance and then resumes sending the video stream.
步骤502:第二终端设备接收用户在第一图像上触发的、针对目标对象上的第一位置的操作指令,并确定第一位置信息。Step 502: The second terminal device receives an operation instruction triggered by the user on the first image for the first position on the target object, and determines the first position information.
其中,在截屏后,第二终端设备的主界面上显示的始终是第一图像,第二终端设备侧的用户触发标记的过程中,不会因第一终端设备发生抖动产生画面变化。用户看到以及触发的目标对象的第一位置,即为第一图像上显示的目标对象的第一位置。所述第一位置信息对应所述用户在所述第二终端设备上针对所述目标对象上的第一位置的操作对应在所述第一图像中的位置。这样能够提高第二终端设备侧用户的体验。Wherein, after the screenshot is taken, the main interface of the second terminal device always displays the first image, and during the process of triggering the mark by the user on the side of the second terminal device, the screen will not change due to the shaking of the first terminal device. The first position of the target object seen and triggered by the user is the first position of the target object displayed on the first image. The first position information corresponds to an operation performed by the user on the second terminal device with respect to the first position on the target object and corresponds to a position in the first image. In this way, the user experience on the second terminal device side can be improved.
示例性的,第二终端设备的主界面上始终显示图像1302。相应的,用户想要标记的是图像1302所显示的目标图像的第一位置,例如图11B中球形物的位置P。进而,用户触发操作指令之后,第二终端设备所确定的第一位置信息能够准确的指示球形物的位置 P,不会出现因画面抖动使得用户误认为标记错的情况。Exemplarily, the
可见,采用本实现方式,不仅能够确保第二终端设备侧的用户准确的识别标记的位置,且第一位置信息能够准确的指示用户标注的目标对象的第一位置,从而提升位置确定的准确性,进而,优化“手把手”远程协助的效果。It can be seen that with this implementation, not only can the user on the side of the second terminal device accurately identify the position of the mark, but also the first position information can accurately indicate the first position of the target object marked by the user, thereby improving the accuracy of position determination , and further, optimize the effect of "hand in hand" remote assistance.
关于步骤502的其他相关描述,可以参考上文中对于步骤102的描述部分,此处不再详述。For other related descriptions of
步骤503:第二终端设备根据第一位置信息确定目标对象上的第一位置对应在虚拟坐标系中的第二位置,并将目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给第一终端设备;所述虚拟坐标系中的第二位置,对应目标对象上的第一位置在真实三维立体空间中的实际位置。Step 503: The second terminal device determines, according to the first position information, that the first position on the target object corresponds to the second position in the virtual coordinate system, and corresponds the first position on the target object to the second position in the virtual coordinate system Sent to the first terminal device; the second position in the virtual coordinate system corresponds to the actual position of the first position on the target object in the real three-dimensional space.
步骤504:第二终端设备将所述第二位置发送到第一终端设备。Step 504: The second terminal device sends the second position to the first terminal device.
步骤503-504的实施过程可以参考图7中步骤403的实施过程,此处不再详述。For the implementation process of steps 503-504, reference may be made to the implementation process of
步骤505:第一终端设备根据所述第二位置在第二图像上渲染前述标记,使得该标记在第二图像上对应的位置,与目标对象上的第一位置在第一图像中的位置一致;第二图像为第一终端设备显示的包括目标对象的图像。Step 505: The first terminal device renders the aforementioned mark on the second image according to the second position, so that the position corresponding to the mark on the second image is consistent with the position of the first position on the target object in the first image ; the second image is an image including the target object displayed by the first terminal device.
关于步骤505的描述,可以参考上文中对于步骤104的描述部分,此处不再详述。For the description of step 505, reference may be made to the description of
步骤506:第一终端设备显示在第二图像上渲染的该标记。Step 506: The first terminal device displays the mark rendered on the second image.
关于步骤506的描述,可以参考上文中对于步骤105的描述部分,此处不再详述。For the description of
上述步骤501-步骤506示意的方法,仅是本申请的示意性描述,不构成对本申请实施例的限制。The methods illustrated in the foregoing
可以理解地,在第一终端设备侧用户或第二终端设备侧用户触发取消截屏后,或者可以是在第一终端设备侧用户或第二终端设备侧用户触发关闭远程协助功能后,第二终端设备上继续显示第一终端设备发送来的视频流,第二终端设备上不再显示第一图像。Understandably, after the user on the first terminal device side or the user on the second terminal device side triggers to cancel the screenshot, or after the user on the first terminal device side or the user on the second terminal device side triggers the closing of the remote assistance function, the second terminal The video stream sent by the first terminal device continues to be displayed on the device, and the first image is no longer displayed on the second terminal device.
可见,本实施例所述的方法,在第二终端设备侧的用户触发标记期间,第二终端设备在第二终端设备的主界面上显示第一图像是不变。用户触发目标对象的第一位置时,参考的是第一图像显示的目标对象。这样不仅能够确保用户准确的识别标记的位置,而且,用户能够准确地观察到触发的位置能够准确的关联到第一图像上目标对象的第一位置。相应的,第一终端设备在第一终端设备上显示的包括目标对象的第二图像上渲染标记时,该标记在第二图像上显示的位置能够准确的对应用户想要标注的对象。这样能够提升“手把手”远程协助的性能,优化“手把手”远程协助的效果。It can be seen that, in the method described in this embodiment, during the period when the user on the side of the second terminal device triggers the mark, the first image displayed by the second terminal device on the main interface of the second terminal device is unchanged. When the user triggers the first position of the target object, the reference is the target object displayed in the first image. In this way, not only can the user accurately identify the position of the marker, but also the user can accurately observe that the triggered position can be accurately associated with the first position of the target object on the first image. Correspondingly, when the first terminal device renders the mark on the second image including the target object displayed on the first terminal device, the position of the mark displayed on the second image can accurately correspond to the object that the user wants to mark. This can improve the performance of "hands-on" remote assistance and optimize the effect of "hands-on" remote assistance.
可选地,一些实施例中,步骤502中第二终端设备在确定第一位置信息之后,可以将第一位置信息发送到第一终端设备。之后,第一终端设备可以执��步骤103-步骤105 的操作。此处不详述。Optionally, in some embodiments, after determining the first location information in
可选地,在一些实施例中,第二终端设备获取第一图像对应的视野信息。第二终端设备显示的内容来自于第一终端设备,第一终端设备的姿态对第一图像展示的目标对象的位置存在影响,且第一终端设备的姿态可能经常改变,即第一终端设备拍摄的图像对应的视野信息会发生变化。基于此,一些实施例中,第一终端设备还可以将第一图像对应的视野信息发送到第二终端设备。示例性的,第一终端设备可以在发送第一图像时一并发送第一图像对应的视野信息给第二终端设备,或者在第二终端设备请求第一图像对应的视野信息时发送第一图像对应的视野信息给第二终端设备。Optionally, in some embodiments, the second terminal device acquires the field of view information corresponding to the first image. The content displayed by the second terminal device comes from the first terminal device, the posture of the first terminal device has an influence on the position of the target object displayed by the first image, and the posture of the first terminal device may change frequently, that is, the first terminal device shoots The field of view information corresponding to the image will change. Based on this, in some embodiments, the first terminal device may also send the field of view information corresponding to the first image to the second terminal device. Exemplarily, the first terminal device may also send the field of view information corresponding to the first image to the second terminal device when sending the first image, or send the first image when the second terminal device requests the field of view information corresponding to the first image. The corresponding visual field information is sent to the second terminal device.
第一终端设备在拍摄视频时,可以基于视频的内容获取所采集对象的特征点,例如,第一终端设备在拍摄一个立方体时,可以产生这个立方体的特征点,这些特征点是用来描述视频图像中的立方体,这些特征点一般集中在视频图像中明暗交界的地方,���以理解地,特征点可以指示立方体的角,或者指示立方体的边或面,可以理解地,若拍摄环境中还有其他物体时,也会产生其他物体的特征点。特征点的信息可以随第一图像一起发给第二终端设备,或者根据第二终端设备的请求发送。When shooting a video, the first terminal device can obtain the feature points of the collected object based on the content of the video. For example, when shooting a cube, the first terminal device can generate the feature points of the cube, and these feature points are used to describe the video. For the cube in the image, these feature points are generally concentrated at the intersection of light and dark in the video image. Understandably, the feature points can indicate the corners of the cube, or indicate the sides or faces of the cube. It is understandable that if there are other When an object is created, the feature points of other objects are also generated. The information of the feature point can be sent to the second terminal device together with the first image, or sent according to the request of the second terminal device.
在一些实施例中,第一终端设备可以不发送特征点的信息给第二终端设备,而是第二终端设备接收到第一图像后,可以根据第一图像计算获得特征点的信息。In some embodiments, the first terminal device may not send the information of the feature points to the second terminal device, but after receiving the first image, the second terminal device may obtain the information of the feature points by calculating according to the first image.
因此,在一些实施例中,步骤502中,第二终端设备接收用户在第一图像上的触发之后,确定用户触发的区域对应的位置信息。然后,第二终端设备可以根据第一图像对应的视野信息和拍摄对象的特征点,从所确定的位置信息中获取部分信息作为第一位置信息。而后,将该第一位置信息发送给第一终端设备,第一终端设备可以根据该第一位置信息在本地渲染显示前述标记,例如,第一终端设备可以执行步骤103-步骤105的操作。Therefore, in some embodiments, in
示例性的,第一图像是三维空间中的对象转换到二维空间之后得到的图像。示例性的,如图14A示意了第一终端设备1403拍摄视频的场景,第一终端设备1403通过摄像头拍摄到立方体1402和背景墙1401,第一终端设备1403可以截屏得到第一图像,将第一图像和第一图像对应的视野信息,发送给第二终端设备。第一终端1403还可以计算得到第一图像的特征点(如图14B中的1411-1416,对应图14A中立方体1402的点1411-1415 和背景墙1401的点1416,此处特征点仅是示意,可以有更多的特征点)。可以理解地,第一终端设备1403的显示屏上可以显示特征点,也可以不显示。第一终端设备1403给第二终端设备发送了第一图像、第一图像对应的视野信息,还可以发送以及拍摄对象的特征点1411-1416的信息。第二终端设备收到这些数据后,显示第一图像,如图14B所示,第二终端设备上可以显示特征点1411-1416,也可以不显示。第二终端设备侧的用户在第一图像上标记想要标记的对象,例如用户用曲线1420(即第三位置信息)标记立方体1402的上表面���为了减少发给第一终端的数据,第二终端设备可以发送与曲线1420 有交集的特征点信息给第一终端设备,因此第二终端设备可以取曲线1420与特征点 1411-1416的交集1411,1412,1413,1416。进一步,第二终端设备可结合第一图像对应的视野信息和拍摄对象的特征点信息,第二终端设备可以计算出,���户标记���是立方体1402,而不是背景墙1401,因此,交集中去除特征点1416。第二终端设备将简化后的交集 1411,1412,1413,发送给第一终端设备,从而第一终端设备可以计算出用户标记的是立方体的上表面。可以理解,如果第二终端设备不去除特征1416,第一终端设备在使用交集1411,1412,1413,1416确定标记对象时,也可以使用本地存储第一图像对应的视野信息和所述交集本身去除特征点1416。如果不去除特征点1416,第一终端设备在确定标记对象时,可能会发生,将3D空间中的1411,1412,1413和1416连线显示出来,第一终端设备侧的用户会误以为第二终端设备侧的用户除了标记了立方体1402还标记了背景墙 1401。可以理解地,第一终端设备不发送特征点信息给第二终端设备,而是有第二终端设备根据第一图像计算得到特征点信息,再结合第一图像对应的视野信息和用户标记的曲线来得到第一位置信息。Exemplarily, the first image is an image obtained after an object in a three-dimensional space is converted into a two-dimensional space. Exemplarily, as shown in FIG. 14A , a scene where the
基于以上实施例提供的应用于第一终端设备的显示方法,本申请实施例还提供了一种终端设备,以下结合附图介绍该显示装置。Based on the display method applied to the first terminal device provided by the above embodiment, an embodiment of the present application further provides a terminal device, and the display device is described below with reference to the accompanying drawings.
参见图8,该图为本申请实施例提供的一种终端设备的结构示意图。本申请实施例提供的终端设备800,可以为以上实施例提及的第一终端设备,该终端设备800例如可以包括第一发送单元801、第一接收单元802、第一确定单元803、添加单元804、渲染单元805和显示单元806。Referring to FIG. 8 , this figure is a schematic structural diagram of a terminal device provided by an embodiment of the present application. The
第一发送单元801,用于向第二终端设备发送第一图像,所述第一图像为包括目标对象的图像;a
第一接收单元802,用于接收来自所述第二终端设备的第一位置信息;所述第一位置信息对应用户在所述第二终端设备上针对所述目标对象上的第一位置的操作对应在所述第一图像中的位置;A
第一确定单元803,用于根据所述第一位置信息确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置;所述虚拟坐标系中的第二位置,对应所述目标对象上的第一位置在真实三维立体空间中的实际位置;The first determining
添加单元804,用于在所述虚拟坐标系中的第二位置处添加标记;An adding
渲染单元805,用于在第二图像上渲染所述标记,使得所述标记在所述第二图像上对应的位置与所述目标对象上的第一位置在所述第二图像中的位置一致;所述第二图像为在所述终端设备上显示的包括所述目标对象的图像;A
显示单元806,用于显示在所述第二图像上渲染的所述标记。A
在一种可能的实现方式中,所述第一位置信息根据用户在所述第二终端设备上触发的、针对所述目标对象上的第一位置的操作所对应的屏幕位置确定;所述第二终端设备的屏幕上显示有所述第一图像。In a possible implementation manner, the first position information is determined according to a screen position corresponding to an operation triggered by the user on the second terminal device and targeting the first position on the target object; the first position information The first image is displayed on the screen of the two terminal devices.
在一种可能的实现方式中,所述第一位置信息描述所述目标对象上的第一位置在所述第一图像中的相对位置;所述第一位置信息,根据所述屏幕位置、所述第一图像在所述第二终端设备的屏幕上的显示区域的位置确定。In a possible implementation manner, the first position information describes the relative position of the first position on the target object in the first image; the first position information is based on the screen position, the The position of the display area of the first image on the screen of the second terminal device is determined.
在一种可能的实现方式中,所述第一确定单元803,具体用于:In a possible implementation manner, the first determining
根据所述第一位置信息和所述第一图像的图像分辨率,确定所述目标对象上的第一位置在所述第一图像对应的图像坐标系中的图像位置;determining the image position of the first position on the target object in the image coordinate system corresponding to the first image according to the first position information and the image resolution of the first image;
根据所述图像位置确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。It is determined according to the image position that the first position on the target object corresponds to the second position in the virtual coordinate system.
在一种可能的实现方式中,所述第一确定单元803,具体用于:In a possible implementation manner, the first determining
获取第一图像对应的视野信息,所述第一图像对应的视野信息,用于描述拍摄所述第一图像时,拍摄所述第一图像的摄像头在所述虚拟坐标系中所处的目标位置以及所述拍摄所述第一图像的摄像头在所述虚拟坐标系中的目标拍摄方向;Obtain the field of view information corresponding to the first image, where the field of view information corresponding to the first image is used to describe the target position in the virtual coordinate system of the camera that captured the first image when the first image was captured and the target shooting direction of the camera that shoots the first image in the virtual coordinate system;
根据所述视野信息以及所述图像位置,计算目标射线在所述虚拟坐标系中的位置;所述目标射线为端点为所述目标位置、且经过所述虚拟坐标系中的所述第二位置的射线;According to the field of view information and the image position, the position of the target ray in the virtual coordinate system is calculated; the target ray is the end point of the target position and passes through the second position in the virtual coordinate system ray;
将所述目标射线与所述虚拟坐标系中的虚拟对象的交点位置,确定为所述目标对象上的第一位置对应在虚拟坐标系中的第二位置;所述虚拟对象在所述虚拟坐标系中的位置,对应所述目标对象在真实三维立体空间中的实际位置。Determining the intersection position of the target ray and the virtual object in the virtual coordinate system as the first position on the target object corresponding to the second position in the virtual coordinate system; the virtual object is in the virtual coordinate system The position in the system corresponds to the actual position of the target object in the real three-dimensional space.
��于所述终端设备800是与以上方法实施例提供的���终端设备执行的���示方法���应的终端设备,所述终端设备800的各个单元的具体实现,均与以上方法实施例为同一构思,因此,关于所述终端设备800的各个单元的具体实现,可以参考以上方法实施例关于由终端设备执行的显示方法的描述部分,此处不再赘述。Since the
基于以上实施例提供的应用于第二终端设备的位置确定方法,本申请实施例还提供了一种终端设备,以下结合附图介绍该终端设备。Based on the position determination method applied to the second terminal device provided by the above embodiment, the embodiment of the present application further provides a terminal device, which is described below with reference to the accompanying drawings.
参见图9,该图为本申请实施例提供的一种终端设备的结构示意图。本申请实施例提供的终端设备900,可以为以上实施例提及的第二终端设备,该终端设备900例如包括:第二接收单元901、第三接收单元902、第二确定单元903、第三确定单元904和第二发送单元905。Referring to FIG. 9 , this figure is a schematic structural diagram of a terminal device provided by an embodiment of the present application. The
第二接收单元901,用于接收第一终端设备发送的第一图像,并在所述终端设备的屏幕上显示所述第一图像;所述第一图像为包括目标对象的图像;A
第三接收单元902,用于接收用户在所述终端设备上触发的、针对所述目标对象上的第一位置的操作指令;A
第二确定单元903,用于确定第一位置信息;所述第一位置信息对应所述用户在所述终端设备上针对所述目标对象上的第一位置的操作对应在所述第一图像中的位置;The second determining
第三确定单元904,用于根据所述第一位置信息确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置;a third determining
第二发送单元905,用于将所述目标对象上的第一位置对应在虚拟坐标系中的第二位置发送给所述第一终端设备;所述虚拟坐标系中的第二位置,对应所述目标对象上的第一位置在真实三维立体空间中的实际位置。The
在一种实现方式中,所述第一位置信息描述所述目标对象上的第一位置在所述第一图像中的相对位置;所述终端设备900还包括:In an implementation manner, the first position information describes the relative position of the first position on the target object in the first image; the
第四确定单元,用于根据所述用户在所述终端设备上触发的、针对所述目标对象上的第一位置的操作所对应的屏幕位置、以及所述第一图像在所述终端设备的屏幕上的显示区域的位置确定所述第一位置信息。The fourth determining unit is configured to, according to the screen position corresponding to the operation on the first position on the target object triggered by the user on the terminal device, and the position of the first image on the terminal device The position of the display area on the screen determines the first position information.
在一种实现方式中,所述第三确定单元904,具体用于:In an implementation manner, the third determining
接收第一终端设备发送的所述第一图像的图像分辨率;receiving the image resolution of the first image sent by the first terminal device;
根据所述第一位置信息和所述第一图像的图像分辨率,确定所述目标对象上的第一位置在所述第一图像对应的图像坐标系中的图像位置;determining the image position of the first position on the target object in the image coordinate system corresponding to the first image according to the first position information and the image resolution of the first image;
根据所述图像位置确定所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。It is determined according to the image position that the first position on the target object corresponds to the second position in the virtual coordinate system.
在一种实现方式中,所述终端设备900还包括:In an implementation manner, the
第四接收单元,用于接收所述第一终端设备发送的与所述虚拟坐标系相关的信息,所述与所述虚拟坐标系相关的信息,包括所述目标对象对应的虚拟对象在所述虚拟坐标系中的位置;所述目标对象对应的虚拟对象在所述虚拟坐标系中的位置,对应所述目标对象在真实三维立体空间中的实际位置。The fourth receiving unit is configured to receive the information related to the virtual coordinate system sent by the first terminal device, the information related to the virtual coordinate system, including the virtual object corresponding to the target object in the The position in the virtual coordinate system; the position of the virtual object corresponding to the target object in the virtual coordinate system corresponds to the actual position of the target object in the real three-dimensional space.
在一种实现方式中,所述第三确定单元904,具体用于:In an implementation manner, the third determining
接收第一终端设备发送的所述第一图像对应的视野信息,所述第一图像对应的视野信息,用于描述拍摄所述第一图像时,拍摄所述第一图像的摄像头在所述虚拟坐标系中所处的目标位置以及所述拍摄所述第一图像的摄像头在所述虚拟坐标系中的目标拍摄方向;Receive the field of view information corresponding to the first image sent by the first terminal device, where the field of view information corresponding to the first image is used to describe that when the first image is captured, the camera that captured the first image is in the virtual the target position in the coordinate system and the target shooting direction of the camera that shoots the first image in the virtual coordinate system;
根据所述视野信息以及所述图像位置,计算目标射线在所述虚拟坐标系中的位置;所述目标射线为端点为所述目标位置、且经过所述虚拟坐标系中的所述第二位置的射线;According to the field of view information and the image position, the position of the target ray in the virtual coordinate system is calculated; the target ray is the end point of the target position and passes through the second position in the virtual coordinate system ray;
将所述目标射线与所述虚拟坐标系中的虚拟对象的交点位置,确定为所述目标对象上的第一位置对应在虚拟坐标系中的第二位置。The intersection position of the target ray and the virtual object in the virtual coordinate system is determined as the first position on the target object corresponding to the second position in the virtual coordinate system.
由于所述终端设备900是与以上方法实施例提供的由终端设备执行的位置确定方法对应的终端设备,所述终端设备900的各个单元的具体实现,均与以上方法实施例为同一构思,因此,关于所述终端设备900的各个单元的具体实现,可以参考以上方法实施例关于由终端设备执行的位置确定方法的描述部分,此处不再赘述。Since the
本申请实施例还提供了一种电子设备,所述电子设备包括:存储器和至少一个处理器;An embodiment of the present application further provides an electronic device, the electronic device includes: a memory and at least one processor;
所述存储器,用于存储指令;the memory for storing instructions;
所述至少一个处理器,用于执行所述存储器中的所述指令,执行以上实施例提供的由第一终端设备执行的显示方法。The at least one processor is configured to execute the instruction in the memory, and execute the display method provided by the above embodiment and executed by the first terminal device.
本申请实施例还提供了一种电子设备,所述电子设备包括:存储器和至少一个处理器;An embodiment of the present application further provides an electronic device, the electronic device includes: a memory and at least one processor;
所述存储器,用于存储指令;the memory for storing instructions;
所述至少一个处理器,用于执行所述存储器中的所述指令,执行以上实施例提供的由第二终端设备执行的位置确定方法。The at least one processor is configured to execute the instructions in the memory, and execute the method for determining the location performed by the second terminal device provided in the above embodiment.
需要说明的是,本申请实施例提供的终端设备800和终端设备900,均可以具备图10所述的结构,图10为本申请实施例提供的一种终端设备的结构示意图。It should be noted that, both the
请参阅图10所示,终端设备1000包括:处理器1010、通信接口1020和存储器1030。其中终端设备1000中的处理器1010的数量可以一个或多个,图10中以一个处理器为例。本申请实施例中,处理器1010、通信接口1020和存储器1030可通过总线系统或其它方式连接,其中,图10中以通过总线系统1040连接为例。Referring to FIG. 10 , the
处理器1010可以是中央处理器(central processing unit,CPU),网络处理器(network processor,NP)或者CPU和NP的组合。处理器1010还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit, ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic, GAL)或其任意组合。The
如本领域技术人员所知,所述处理器1010也可以是多个,例如在一个典型的手机架构中,所述处理器可能包括应用处理器(Application Processor,AP)、基带处理器(Baseband Processor,BP),还可能进一步的包括图像处理单元(Graphics ProcessingUnit,GPU),在许多最新的设计中,还可以包括神经网络处理单元(Neural-networkProcessing Unit,NPU),以及可选的包括图像信号处理器(Image Signal Processor,ISP)。上述各处理器可以是分立的器件,也可以集成在同一块芯片上,目前一个典型的手机片上系统(System on Chip,SoC)通常包括上述各种���理���中的一种或者���种。As known to those skilled in the art, the number of
存储器1030可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(random-access memory,RAM);存储器1030也可以包括非易失性存储器(英文: non-volatile memory),例如快闪存储器(英文:flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器1030还可以包括上述种类的存储器的组合。The
存储器1030可以将前述实施例提及的虚拟坐标系相关的信息。The
可选地,存储器1030存储有操作系统和程序、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,程序可包括各种操作指令,用于实现各种操作。操作系统可包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。当所述终端设备1000为前述实施例提及的终端设备800时,处理器1010可以读取存储器1030 中的程序,实现本申请实施例提供的显示方法;当所述终端设备1000为前述实施例提及的终端设备900时时,处理器1010可以读取存储器1030中的程序,实现本申请实施例提供的位置确定方法。Optionally, the
总线系统1040可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA) 总线等。总线系统1040可以分为地址总线、数据总线、控制总线等。为便于表示,图 10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上实施例提供的由第一终端设备执行的显示方法。Embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to execute the display method performed by the first terminal device provided by the above embodiments.
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上实施例提供的由第二终端设备执行的位置确定方法。Embodiments of the present application further provide a computer-readable storage medium, including instructions, which, when run on a computer, cause the computer to execute the method for determining a location performed by a second terminal device provided by the above embodiments.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上实施例提供的由第一终端设备执行的显示方法。Embodiments of the present application also provide a computer program product including instructions, which, when run on a computer, cause the computer to execute the display method executed by the first terminal device provided in the above embodiments.
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行以上实施例提供的由第二终端设备执行的位置确定方法。Embodiments of the present application also provide a computer program product containing instructions, which, when running on a computer, cause the computer to execute the method for determining a location performed by a second terminal device provided by the above embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,第一服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM, Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a first server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对���������;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand: The technical solutions described in the embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.
Claims (30)
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2019104774837 | 2019-06-03 | ||
| CN201910477483.7A CN110381111A (en) | 2019-06-03 | 2019-06-03 | A kind of display methods, location determining method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112039937A true CN112039937A (en) | 2020-12-04 |
| CN112039937B CN112039937B (en) | 2022-08-09 |
Family
ID=68249704
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910477483.7A Pending CN110381111A (en) | 2019-06-03 | 2019-06-03 | A kind of display methods, location determining method and device |
| CN202010486797.6A Active CN112039937B (en) | 2019-06-03 | 2020-06-01 | Display method, position determination method and device |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910477483.7A Pending CN110381111A (en) | 2019-06-03 | 2019-06-03 | A kind of display methods, location determining method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN110381111A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113760087A (en) * | 2021-02-08 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for determining location information of hit point |
| CN115314474A (en) * | 2022-10-12 | 2022-11-08 | 中通服建设有限公司 | Communication emergency equipment assists maintenance system based on AR |
| CN115686182A (en) * | 2021-07-22 | 2023-02-03 | 荣耀终端有限公司 | Processing method of augmented reality video and electronic equipment |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113008135B (en) * | 2019-12-20 | 2023-09-05 | 北京移目科技有限公司 | Method, device, electronic device and medium for determining the position of a target point in space |
| CN112584045B (en) * | 2020-12-07 | 2022-07-12 | Oppo广东移动通信有限公司 | Positioning display method, terminal and computer readable storage medium |
| CN114070834A (en) * | 2021-10-26 | 2022-02-18 | 深圳市商汤科技有限公司 | A remote assistance method, device and related equipment and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101453662A (en) * | 2007-12-03 | 2009-06-10 | 华为技术有限公司 | Stereo video communication terminal, system and method |
| CN107656991A (en) * | 2017-09-14 | 2018-02-02 | 触景无限科技(北京)有限公司 | A kind of remote guide method, apparatus and system |
| CN109697002A (en) * | 2017-10-23 | 2019-04-30 | 腾讯科技(深圳)有限公司 | A kind of method, relevant device and the system of the object editing in virtual reality |
-
2019
- 2019-06-03 CN CN201910477483.7A patent/CN110381111A/en active Pending
-
2020
- 2020-06-01 CN CN202010486797.6A patent/CN112039937B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101453662A (en) * | 2007-12-03 | 2009-06-10 | 华为技术有限公司 | Stereo video communication terminal, system and method |
| CN107656991A (en) * | 2017-09-14 | 2018-02-02 | 触景无限科技(北京)有限公司 | A kind of remote guide method, apparatus and system |
| CN109697002A (en) * | 2017-10-23 | 2019-04-30 | 腾讯科技(深圳)有限公司 | A kind of method, relevant device and the system of the object editing in virtual reality |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN113760087A (en) * | 2021-02-08 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Method and device for determining location information of hit point |
| CN115686182A (en) * | 2021-07-22 | 2023-02-03 | 荣耀终端有限公司 | Processing method of augmented reality video and electronic equipment |
| CN115686182B (en) * | 2021-07-22 | 2024-02-27 | 荣耀终端有限公司 | Augmented reality video processing methods and electronic devices |
| CN115314474A (en) * | 2022-10-12 | 2022-11-08 | 中通服建设有限公司 | Communication emergency equipment assists maintenance system based on AR |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110381111A (en) | 2019-10-25 |
| CN112039937B (en) | 2022-08-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112039937B (en) | Display method, position determination method and device | |
| US11089266B2 (en) | Communication processing method, terminal, and storage medium | |
| US10726625B2 (en) | Method and system for improving the transmission and processing of data regarding a multi-user virtual environment | |
| CN107820593B (en) | Virtual reality interaction method, device and system | |
| CN110866977B (en) | Augmented reality processing method and device, system, storage medium and electronic equipment | |
| CN109582122B (en) | Augmented reality information providing method and device and electronic equipment | |
| US20170186219A1 (en) | Method for 360-degree panoramic display, display module and mobile terminal | |
| CN104081317A (en) | Image processing device and computer program product | |
| CN107391060B (en) | Image display method, apparatus, system and device, and readable medium | |
| CN112882576B (en) | AR interaction method, device, electronic device and storage medium | |
| CN112995491B (en) | Video generation method and device, electronic equipment and computer storage medium | |
| CN112783700A (en) | Computer readable medium for network-based remote assistance system | |
| WO2018000619A1 (en) | Data display method, device, electronic device and virtual reality device | |
| CN113470112B (en) | Image processing method, device, storage medium and terminal | |
| CN111459432A (en) | Virtual content display method and device, electronic equipment and storage medium | |
| CN105791390A (en) | Data transmission method, device and system | |
| US10147240B2 (en) | Product image processing method, and apparatus and system thereof | |
| CN110168630A (en) | Enhance video reality | |
| CN108961424B (en) | Virtual information processing method, device and storage medium | |
| US20230326147A1 (en) | Helper data for anchors in augmented reality | |
| WO2022151687A1 (en) | Group photo image generation method and apparatus, device, storage medium, computer program, and product | |
| CN107426522B (en) | Video method and system based on virtual reality equipment | |
| CN111766947B (en) | A display method, device, wearable device and medium | |
| WO2023160072A1 (en) | Human-computer interaction method and apparatus in augmented reality (ar) scene, and electronic device | |
| CN115193032A (en) | Game live broadcast processing method and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |