+

CN108174240A - Panoramic video playback method and system based on user location - Google Patents

Panoramic video playback method and system based on user location Download PDF

Info

Publication number
CN108174240A
CN108174240A CN201711473679.6A CN201711473679A CN108174240A CN 108174240 A CN108174240 A CN 108174240A CN 201711473679 A CN201711473679 A CN 201711473679A CN 108174240 A CN108174240 A CN 108174240A
Authority
CN
China
Prior art keywords
panoramic
camera
user terminal
video
panoramic video
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711473679.6A
Other languages
Chinese (zh)
Other versions
CN108174240B (en
Inventor
朱磊
李建英
韩琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Harbin Institute of Technology Shenzhen
Original Assignee
Harbin Yishe Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Yishe Technology Co Ltd filed Critical Harbin Yishe Technology Co Ltd
Priority to CN201711473679.6A priority Critical patent/CN108174240B/en
Publication of CN108174240A publication Critical patent/CN108174240A/en
Application granted granted Critical
Publication of CN108174240B publication Critical patent/CN108174240B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/23Processing of content or additional data; Elementary server operations; Server middleware
    • H04N21/234Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs
    • H04N21/2343Processing of video elementary streams, e.g. splicing of video streams or manipulating encoded video stream scene graphs involving reformatting operations of video signals for distribution or compliance with end-user requests or end-user device requirements
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25825Management of client data involving client display capabilities, e.g. screen resolution of a mobile phone
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/25Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
    • H04N21/258Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
    • H04N21/25808Management of client data
    • H04N21/25841Management of client data involving the geographical location of the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44213Monitoring of end-user related data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/45Management operations performed by the client for facilitating the reception of or the interaction with the content or administrating data related to the end-user or to the client device itself, e.g. learning user preferences for recommending movies, resolving scheduling conflicts
    • H04N21/4508Management of client data or end-user data
    • H04N21/4524Management of client data or end-user data involving the geographical location of the client
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/472End-user interface for requesting content, additional data or services; End-user interface for interacting with content, e.g. for content reservation or setting reminders, for requesting event notification, for manipulating displayed content

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Graphics (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Social Psychology (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

本发明提供了一种基于用户位置的全景视频播放方法和系统。该方法包括:获取用户终端位置;在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。通过使用上述方法和系统,用户在观看全景视频时不需要手动调整视角便可快速、准确地观看自己所在位置的视频显示画面,克服了现有技术的不足。

The invention provides a method and system for playing panoramic video based on user position. The method includes: acquiring the location of the user terminal; selecting one of multiple camera locations as a target camera location, wherein each of the multiple camera locations is provided with a panoramic camera, and the panoramic cameras are suitable for capturing images within their respective predetermined ranges. The panoramic video within; according to the location of the user terminal and the target camera position, determine the coordinates of the calibration points in the panoramic video shot by the panoramic camera at the target camera position; in the panoramic video shot by the panoramic camera at the target camera position, select A video picture including the calibration point and having a preset viewing area size is used as a video picture displayed by the user terminal. By using the above method and system, the user can quickly and accurately watch the video display picture at his location without manually adjusting the angle of view when watching the panoramic video, which overcomes the shortcomings of the prior art.

Description

基于用户位置的全景视频播放方法和系统Panoramic video playback method and system based on user location

技术领域technical field

本发明涉及图像处理领域,尤其涉及一种基于用户位置的全景视频播放方法和系统。The invention relates to the field of image processing, in particular to a method and system for playing panoramic video based on user positions.

背景技术Background technique

目前,多数视频播放终端都已具有全景视频播放功能。用户观看全景视频时,可以根据需要对全景视频的观看视角进行调整。然而,传统的全景视频在播放时都是统一的播放视角,即使有了自由观看角度,观众也容易迷失在全景视角中找不着北,在滑屏观看中找不到真正想要观看的目标。At present, most video playback terminals already have a panoramic video playback function. When the user watches the panoramic video, the viewing angle of the panoramic video may be adjusted as required. However, the traditional panoramic video is played from a unified viewing angle. Even with a free viewing angle, viewers are easy to get lost in the panoramic viewing angle and cannot find the north, and cannot find the target they really want to watch in the sliding screen viewing.

发明内容Contents of the invention

在下文中给出了关于本发明的简要概述,以便提供关于本发明的某些方面的基本理解。应当理解,这个概述并不是关于本发明的穷举性概述。它并不是意图确定本发明的关键或重要部分,也不是意图限定本发明的范围。其目的仅仅是以简化的形式给出某些概念,以此作为稍后论述的更详细描述的前序。A brief overview of the invention is given below in order to provide a basic understanding of some aspects of the invention. It should be understood that this summary is not an exhaustive overview of the invention. It is not intended to identify key or critical parts of the invention nor to delineate the scope of the invention. Its purpose is merely to present some concepts in a simplified form as a prelude to the more detailed description that is discussed later.

鉴于此,本发明提供了一种基于用户位置的全景视频播放方法和系统,以至少解决用户在观看全景视频时需要手动调整视角而不能快速、准确地观看自己所在位置的视频显示画面的问题。In view of this, the present invention provides a method and system for playing panoramic video based on the user's location, to at least solve the problem that the user needs to manually adjust the viewing angle when watching the panoramic video and cannot quickly and accurately watch the video display screen at his location.

根据本发明的一个方面,提供了一种基于用户位置的全景视频播放方法,该方法包括:获取用户终端位置;在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。According to one aspect of the present invention, a panoramic video playback method based on user location is provided, the method comprising: obtaining the location of the user terminal; selecting one of multiple camera locations as the target camera location, wherein the multiple camera locations Each of them is provided with a panoramic camera respectively, and the panoramic camera is suitable for collecting panoramic video within a predetermined range; according to the position of the user terminal and the target camera position, determine the target in the panoramic video captured by the panoramic camera at the target camera position. The coordinates of the fixed point; in the panoramic video taken by the panoramic camera at the target camera position, select a video picture containing the marked point and having a preset field of view size as the video picture displayed by the user terminal.

根据本发明的另一方面,还提供了一种基于用户位置的全景视频播放系统,该系统包括:位置获取模块,适于获取用户终端位置;选择模块,适于在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;确定模块,适于根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;标定模块,适于在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。According to another aspect of the present invention, there is also provided a panoramic video playback system based on the user's position, the system includes: a position acquisition module, adapted to acquire the position of the user terminal; a selection module, adapted to select one of multiple camera positions As the target shooting position, wherein, each of the plurality of shooting positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic video within a predetermined range; position, determine the coordinates of the calibration point in the panoramic video shot by the panoramic camera at the target camera position; A video picture with a preset viewing area size is used as a video picture displayed by the user terminal.

用户在使用本发明的基于用户位置的全景视频播放方法和系统时,在观看全景视频时不需要手动调整视角便可快速、准确地观看自己所在位置的视频显示画面,克服了现有技术的不足。When the user uses the panoramic video playback method and system based on the user's position of the present invention, he can quickly and accurately watch the video display screen at his location without manually adjusting the viewing angle when watching the panoramic video, which overcomes the shortcomings of the prior art .

相比于现有技术,本发明的基于用户位置的全景视频播放方法和系统,当多个多视角全景摄像机被安置在景区(或其他场景,如体育馆)各个位置,多个用户在多个用户终端在景区(或其他场景,如体育馆)内可以任意连接某一个全景摄像机进入全景视频画面,在观看全景视频的某一个时刻快速定位自己所在位置的视频画面,即观看到的视频画面为包含该用户终端位置的视频画面。应当理解的是,系统布置地点不局限于景区内。此外,全景摄像机、服务器、用户例如在同一个局域网内。Compared with the prior art, the user position-based panoramic video playback method and system of the present invention, when multiple multi-view panoramic cameras are placed in various positions of the scenic spot (or other scenes, such as stadiums), multiple users will The terminal can arbitrarily connect to a certain panoramic camera in the scenic area (or other scenes, such as a stadium) to enter the panoramic video screen, and quickly locate the video screen at its location at a certain moment when watching the panoramic video, that is, the video screen viewed contains the The video screen of the user terminal location. It should be understood that the system deployment location is not limited to the scenic area. In addition, the panoramic camera, the server, and the user are, for example, within the same local area network.

当多个多视角全景摄像机被安置在景区各个位置,多个用户终端在景区内可以任意连接某一位置的全景摄像机观看全景视频,在观看全景视频的某一个时刻将画面快速切换至包含自己所在位置的视频画面。When multiple multi-view panoramic cameras are placed in various locations in the scenic area, multiple user terminals can connect to any panoramic camera at a certain location in the scenic area to watch the panoramic video, and quickly switch the screen to the scene that contains their location at a certain moment when watching the panoramic video. The video footage of the location.

通过以下结合附图对本发明的最佳实施例的详细说明,本发明的这些以及其他优点将更加明显。These and other advantages of the present invention will be more apparent through the following detailed description of the preferred embodiments of the present invention with reference to the accompanying drawings.

附图说明Description of drawings

本发明可以通过参考下文中结合附图所给出的描述而得到更好的理解,其中在所有附图中使用了相同或相似的附图标记来表示相同或者相似的部件。所述附图连同下面的详细说明一起包含在本说明书中并且形成本说明书的一部分,而且用来进一步举例说明本发明的优选实施例和解释本发明的原理和优点。在附图中:The present invention can be better understood by referring to the following description given in conjunction with the accompanying drawings, wherein the same or similar reference numerals are used throughout to designate the same or similar parts. The accompanying drawings, together with the following detailed description, are incorporated in and form a part of this specification, and serve to further illustrate preferred embodiments of the invention and explain the principles and advantages of the invention. In the attached picture:

图1是示意性地示出本发明的基于用户位置的全景视频播放方法的一个示例性处理的流程图;FIG. 1 is a flow chart schematically showing an exemplary process of the user position-based panoramic video playback method of the present invention;

图2是示意性地示出本发明的基于用户位置的全景视频播放系统的一个示例的结构图。Fig. 2 is a structural diagram schematically showing an example of the user position-based panoramic video playback system of the present invention.

本领域技术人员应当理解,附图中的元件仅仅是为了简单和清楚起见而示出的,而且不一定是按比例绘制的。例如,附图中某些元件的尺寸可能相对于其他元件放大了,以便有助于提高对本发明实施例的理解。It will be appreciated by those skilled in the art that elements in the figures are illustrated for simplicity and clarity only and have not necessarily been drawn to scale. For example, the dimensions of some of the elements in the figures may be exaggerated relative to other elements to help to improve understanding of the embodiments of the present invention.

具体实施方式Detailed ways

在下文中将结合附图对本发明的示范性实施例进行描述。为了清楚和简明起见,在说明书中并未描述实际实施方式的所有特征。然而,应该了解,在开发任何这种实际实施例的过程中必须做出很多特定于实施方式的决定,以便实现开发人员的具体目标,例如,符合与系统及业务相关的那些限制条件,并且这些限制条件可能会随着实施方式的不同而有所改变。此外,还应该了解,虽然开发工作有可能是非常复杂和费时的,但对得益于本公开内容的本领域技术人员来说,这种开发工作仅仅是例行的任务。Exemplary embodiments of the present invention will be described below with reference to the accompanying drawings. In the interest of clarity and conciseness, not all features of an actual implementation are described in this specification. It should be understood, however, that in developing any such practical embodiment, many implementation-specific decisions must be made in order to achieve the developer's specific goals, such as meeting those constraints related to the system and business, and those Restrictions may vary from implementation to implementation. Moreover, it should also be understood that development work, while potentially complex and time-consuming, would at least be a routine undertaking for those skilled in the art having the benefit of this disclosure.

在此,还需要说明的一点是,为了避免因不必要的细节而模糊了本发明,在附图中仅仅示出了与根据本发明的方案密切相关的装置结构和/或处理步骤,而省略了与本发明关系不大的其他细节。Here, it should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only the device structure and/or processing steps closely related to the solution according to the present invention are shown in the drawings, and the Other details not relevant to the present invention are described.

本发明的实施例提供了一种基于用户位置的全景视频播放方法,该方法包括:获取用户终端位置;在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。An embodiment of the present invention provides a method for playing a panoramic video based on a user location, the method comprising: obtaining a location of a user terminal; selecting one of multiple camera locations as a target camera location, wherein one of the multiple camera locations Each is provided with panoramic camera respectively, and described panoramic camera is suitable for collecting the panoramic video in respective predetermined scope; According to user terminal position and target camera position, determine the mark point in the panoramic video shot by the panoramic camera at the target camera position Coordinates; in the panoramic video shot by the panoramic camera at the target camera position, select a video frame that includes the calibration point and has a preset field of view size as the video frame displayed by the user terminal.

图1给出了本发明的基于用户位置的全景视频播放方法的一个示例的处理流程。FIG. 1 shows an exemplary processing flow of the user location-based panoramic video playback method of the present invention.

下面,以图1所示流程为例,来描述本发明的一个实施例。该基于用户位置的全景视频播放方法例如可以在服务器端执行。In the following, an embodiment of the present invention will be described by taking the process shown in FIG. 1 as an example. The method for playing a panoramic video based on the user's location may be executed, for example, on a server side.

如图1所示,在步骤S110中,获取用户终端位置。As shown in FIG. 1, in step S110, the location of the user terminal is obtained.

根据本发明的实施例,可以响应于用户终端接入全景视频来获取该用户终端位置。这样,在用户接入全景视频的初始时刻,便开始对全景视频观看角度进行调整。According to an embodiment of the present invention, the location of the user terminal may be acquired in response to the user terminal accessing the panoramic video. In this way, at the initial moment when the user accesses the panoramic video, the viewing angle of the panoramic video starts to be adjusted.

其中,“用户终端接入全景视频”的时刻例如是服务器与用户终端建立连接之时。Wherein, the moment when "the user terminal accesses the panoramic video" is, for example, when the server establishes a connection with the user terminal.

根据本发明的实施例,也可以响应于用户终端所发送的找到自己指令来获取该用户终端位置。这样,可以是在其它任意时刻用户发送调整指令时,再定位用户终端所在位置以对全景视频观看角度进行调整。According to an embodiment of the present invention, the location of the user terminal may also be acquired in response to the find-yourself instruction sent by the user terminal. In this way, when the user sends an adjustment instruction at any other time, the position of the user terminal may be relocated to adjust the viewing angle of the panoramic video.

其中,用户终端位置例如通过用户终端上的定位模块(如GPS模块)获取,如在用户终端接入全景视频之时、或在用户终端发送找到自己指令时,请求用户终端通过定位来获取其当前位置。Wherein, the location of the user terminal is obtained, for example, through a positioning module (such as a GPS module) on the user terminal, such as when the user terminal accesses the panoramic video, or when the user terminal sends an instruction to find itself, the user terminal is requested to obtain its current position through positioning. Location.

根据本发明的实施例,在步骤S110中,还可以获取视频帧信息。According to an embodiment of the present invention, in step S110, video frame information may also be acquired.

根据一个实现方式,视频帧信息可以包括用户终端接入全景视频时对应的时间戳和/或帧序列号(即用户终端接入全景视频所显示视频帧的序列号)。According to an implementation manner, the video frame information may include a corresponding time stamp and/or frame sequence number when the user terminal accesses the panoramic video (that is, the sequence number of the displayed video frame when the user terminal accesses the panoramic video).

根据另一个实现方式,视频帧信息也包括在接收到来自用户终端的找到自己指令时所对应的时间戳和/或帧序列号(即在接收到来自用户终端的找到自己指令时,用户终端上所显示的视频帧的序列号)。According to another implementation, the video frame information also includes the corresponding time stamp and/or frame sequence number when receiving the find-yourself instruction from the user terminal (that is, when receiving the find-yourself instruction from the user terminal, the The sequence number of the displayed video frame).

其中,视频帧信息例如可以从用户终端获取。例如,用户终端可以在发送位置的同时,也一起发送视频帧信息。Wherein, the video frame information may be acquired from a user terminal, for example. For example, the user terminal may also send video frame information while sending the location.

在步骤S120中,在多个摄像位置中选取一个作为目标摄像位置,其中,多个摄像位置中的每一个分别设有全景摄像机,全景摄像机适于采集各自预定范围内的全景视频。In step S120, one of the multiple shooting positions is selected as the target shooting position, wherein each of the multiple shooting positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within a respective predetermined range.

根据本发明的实施例,可以按照如下处理来在多个摄像位置中选取一个作为目标摄像位置:将所有的全景摄像机编号发送给用户终端,以供用户终端在其中选择一个全景摄像机编号;根据用户终端所选择的全景摄像机编号,将该全景摄像机编号对应的摄像位置作为目标摄像位置。这样,不需在用户终端显示全景摄像机分布图,只显示全景摄像机编号,用户终端可自主选择全景摄像机接入,进行全景视频观看角度的调整。According to an embodiment of the present invention, one of multiple camera locations can be selected as the target camera location according to the following process: all panoramic camera numbers are sent to the user terminal for the user terminal to select a panoramic camera number; The panoramic camera number selected by the terminal uses the shooting position corresponding to the panoramic camera number as the target shooting position. In this way, instead of displaying the panoramic camera distribution map on the user terminal, only the panoramic camera number is displayed, and the user terminal can independently select the panoramic camera to access and adjust the viewing angle of the panoramic video.

根据本发明的实施例,也可以按照如下处理来在多个摄像位置中选取一个作为目标摄像位置:将部分或全部摄像位置发送给用户终端,以在用户终端上显示部分或全部全景摄像机的分布状态;根据用户终端所选择的摄像位置,将该摄像位置作为目标摄像位置。其中,将部分或全部摄像位置发送给用户终端中的“部分或全部摄像位置”例如是全部摄像位置,或者可以是距离用户终端位置较近的部分(如预定数目个,或者距离在预定范围内的多个)摄像位置,等等。这样,用户终端通过显示全景摄像机分布图,可以自主选择全景摄像机接入,进行全景视频观看角度的调整。According to an embodiment of the present invention, it is also possible to select one of a plurality of camera positions as the target camera position according to the following process: send part or all of the camera positions to the user terminal to display the distribution of part or all of the panoramic cameras on the user terminal State: according to the camera location selected by the user terminal, the camera location is used as the target camera location. Wherein, the "part or all of the camera positions" in sending part or all of the camera positions to the user terminal is, for example, all of the camera positions, or it may be a part (such as a predetermined number, or a distance within a predetermined range) that is closer to the user terminal position. multiple) camera positions, etc. In this way, by displaying the distribution map of the panoramic cameras, the user terminal can independently select the panoramic cameras to access and adjust the viewing angle of the panoramic video.

此外,根据本发明的实施例,也可以基于用户终端位置,将多个摄像位置中距离用户终端位置最近的摄像位置作为初始的默认目标摄像位置。这样,能够根据用户位置自动连接距离用户位置最近的全景摄像机进入全景视频,进行全景视频观看角度的调整。In addition, according to an embodiment of the present invention, based on the location of the user terminal, the imaging location closest to the location of the user terminal among the plurality of imaging locations may be used as an initial default target imaging location. In this way, according to the user's position, the panoramic camera closest to the user's position can be automatically connected to enter the panoramic video, and the viewing angle of the panoramic video can be adjusted.

在步骤S130中,根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标。In step S130, according to the location of the user terminal and the target shooting position, the coordinates of the marked points in the panoramic video shot by the panoramic camera at the target shooting position are determined.

其中,多个摄像位置中的每一个分别设有全景摄像机,全景摄像机适于采集各自预定范围内的全景视频。Wherein, each of the plurality of camera positions is respectively provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within respective predetermined ranges.

在步骤S140中,在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。In step S140 , from the panoramic video shot by the panoramic camera at the target shooting position, a video frame including a calibration point and having a preset viewing area size is selected as a video frame displayed by the user terminal.

根据本发明的实施例,在目标摄像位置处的全景摄像机所拍摄的全景视频中所选取的包含标定点的、具有预设视域尺寸的视频画面是从与时间戳和/或帧序列号对应的视频帧开始的。也就是说,当用户终端接入全景视频时,或者当用户终端发送找到自己指令时,通过本发明的上述处理为其进行全景视频角度调整,而调整后向其终端上发送的视频画面,与其调整前的最后显示的一帧画面可以是同一幅画面(或者可以是该帧的下一帧),以保证其观影的连续性。应当理解的是,在其他例子中,调整后向用户终端发送的视频画面与调整前用户终端最后显示的一帧画面也可以是非连续的,例如,调整后显示的是实时的画面。According to an embodiment of the present invention, the selected video frame containing the calibration point and having the preset field of view size in the panoramic video taken by the panoramic camera at the target camera position is from the corresponding time stamp and/or frame sequence number. The video frame starts. That is to say, when the user terminal accesses the panoramic video, or when the user terminal sends an instruction to find itself, the angle of the panoramic video is adjusted through the above-mentioned processing of the present invention, and the video picture sent to the terminal after adjustment is different from the The last displayed frame before adjustment may be the same frame (or may be the next frame of this frame), so as to ensure the continuity of its viewing. It should be understood that, in other examples, the video picture sent to the user terminal after adjustment may also be discontinuous with the last frame of picture displayed by the user terminal before adjustment, for example, a real-time picture is displayed after adjustment.

根据本发明的实施例,在步骤S130中,例如可以用(Xw,Yw,Zw)表示用户终端位置的坐标,这样,可以根据如下公式一计算目标摄像位置处的全景摄像机所拍摄的全景视频中对应的全景图像帧中的标定点的坐标(X1,Y1):According to an embodiment of the present invention, in step S130, for example, (X w , Y w , Z w ) can be used to represent the coordinates of the user terminal position, so that the panoramic camera at the target shooting position can be calculated according to the following formula 1 The coordinates (X 1 , Y 1 ) of the calibration point in the corresponding panoramic image frame in the panoramic video:

公式一: Formula one:

其中,Zc为比例参数,f为目标摄像位置处的全景摄像机的焦距。Among them, Zc is a scale parameter, and f is the focal length of the panoramic camera at the target shooting position.

此外,上述“选取包含标定点的、具有预设视域尺寸的视频画面”例如是以标定点为中心并具有预设视域尺寸的视频画面。In addition, the above-mentioned "selecting a video frame including a marking point and having a preset viewing area size" is, for example, a video frame centered on the marking point and having a preset viewing area size.

根据本发明的实施例,在步骤S140中,例如可以以标定点(X1,Y1)为图像中心,以固定尺寸W和H为矩形区域的长和宽,其中,该矩形区域尺寸为预设视域尺寸,将该矩形区域进行正投影变换,获得球面或柱面显示区域。将获得的球面或柱面显示区域经过反投影变换,获得该球面或柱面显示区域对应的平面矩形视图,作为用户终端所显示的视频画面。According to an embodiment of the present invention, in step S140, for example, the calibration point (X 1 , Y 1 ) can be used as the center of the image, and the fixed dimensions W and H can be used as the length and width of the rectangular area, wherein the size of the rectangular area is preset Set the size of the field of view, and perform orthographic transformation on the rectangular area to obtain a spherical or cylindrical display area. The obtained spherical or cylindrical display area is subjected to back projection transformation to obtain a planar rectangular view corresponding to the spherical or cylindrical display area as a video image displayed by the user terminal.

根据一个实现方式,当通过对矩形区域的正投影变换而获得球面显示区域时,平面图像坐标和球面坐标的投影变换公式例如可以参考如下公式二:According to an implementation manner, when the spherical display area is obtained through the orthographic transformation of the rectangular area, the projection transformation formula of the plane image coordinates and the spherical coordinates can refer to the following formula 2, for example:

公式二:Formula two:

其中,X'、Y'为平面坐标(X1,Y1)对应的球面坐标。Wherein, X' and Y' are spherical coordinates corresponding to plane coordinates (X 1 , Y 1 ).

其中,预设视域尺寸对应矩形的长宽比例如可以与用户终端播放的视频画面的宽高比保持一致。Wherein, the aspect ratio of the rectangle corresponding to the preset viewing area size may, for example, be consistent with the aspect ratio of the video picture played by the user terminal.

根据本发明的实施例,该方法还可以包括:获取用户终端的屏幕长度和宽度的比例,作为参考比值;通过缩放和/或剪裁对预设视域尺寸进行调整,以使得调整后的预设视域尺寸对应的矩形尺寸的长宽比与参考比值一致。例如,假设用户终端的屏幕长度和宽度的比例为16:9,而初始默认的预设视域尺寸中长宽比例如是4:3,可以在预设视域尺寸中剪裁出一个16:9的、最大区域,作为调整后的预设视域尺寸,这样,调整后的预设视域尺寸便也是16:9的比例,能够使得用户终端在“全屏播放”全景视频模式下,不会在用户终端显示屏幕上存在上下黑边或左右黑边,实现真正的全屏显示。或者,也可以对预设视域尺寸进行缩放(如通过拉伸或缩小长边或宽边等)而使得调整后的预设视域尺寸长宽比等于上述参考比值,来使得用户终端在“全屏播放”全景视频模式下,不会在用户终端显示屏幕上存在上下黑边或左右黑边。According to an embodiment of the present invention, the method may further include: obtaining the ratio of the screen length and width of the user terminal as a reference ratio; The aspect ratio of the rectangular size corresponding to the viewing area size is consistent with the reference ratio. For example, assuming that the ratio of the length to width of the screen of the user terminal is 16:9, and the aspect ratio in the default default viewing area size is, for example, 4:3, a 16:9 screen can be cropped in the default viewing area size , the largest area, as the adjusted preset viewing area size. In this way, the adjusted preset viewing area size is also in the ratio of 16:9, which can make the user terminal in the "full-screen playback" panoramic video mode, without the user There are upper and lower black borders or left and right black borders on the terminal display screen to achieve true full-screen display. Alternatively, the preset viewing area size may also be scaled (such as by stretching or shrinking the long side or wide side, etc.) so that the aspect ratio of the adjusted preset viewing area size is equal to the above-mentioned reference ratio, so that the user terminal is in " In the panoramic video mode of "full-screen playback", there will be no black borders up and down or black borders left and right on the display screen of the user terminal.

根据本发明的实施例,该方法还可以包括:响应于用户终端的拍照请求,在该拍照请求对应的视频帧图像中截取用户终端所实时显示的图像部分,作为拍照结果发送给该用户终端。这样,当用户终端发出拍照请求时,可以将其设备上所显示图像实时截取给用户以保存,由此可以实现取景拍照,或者可以实现自拍等目的。According to an embodiment of the present invention, the method may further include: responding to the photographing request of the user terminal, intercepting the image part displayed by the user terminal in real time in the video frame image corresponding to the photographing request, and sending it to the user terminal as a photographing result. In this way, when the user terminal sends a photo-taking request, the image displayed on the device can be intercepted in real time for the user to save, so that framing and taking photos can be realized, or self-portraits can be realized.

此外,根据本发明的实施例,多个摄像位置可以是固定的或可移动的。这样,多个摄像位置处的全景摄像机可能全部都是固定位置不变的,或者全部都是可移动的,又或者可能部分位置是固定不变的、而另一部分位置是可移动的,等等。Furthermore, according to an embodiment of the present invention, the plurality of camera positions may be fixed or movable. In this way, the panoramic cameras at multiple camera positions may all be fixed, or all may be movable, or some positions may be fixed, while others may be movable, etc. .

其中,位置固定的全景摄像机对应的摄像位置和/或姿态例如是预先存储在服务器端的。位置可移动的全景摄像机对应的摄像位置和/或姿态例如可以通过设置在对应全景摄像机上的位置传感器和/或姿态传感器实时获取的。位置传感器例如可以是GPS和/或气压测高计等。姿态传感器例如可以是加速度计和/或陀螺仪等。Wherein, the shooting position and/or posture corresponding to the fixed panoramic camera is, for example, pre-stored on the server side. The shooting position and/or posture corresponding to the panoramic camera with a movable position can be acquired in real time, for example, by a position sensor and/or posture sensor provided on the corresponding panoramic camera. The position sensor can be, for example, GPS and/or a barometric altimeter or the like. The attitude sensor may be, for example, an accelerometer and/or a gyroscope or the like.

此外,本发明的实施例还提供了一种基于用户位置的全景视频播放系统,该系统包括:位置获取模块,适于获取用户终端位置;选择模块,适于在多个摄像位置中选取一个作为目标摄像位置,其中,多个摄像位置中的每一个分别设有全景摄像机,全景摄像机适于采集各自预定范围内的全景视频;确定模块,适于根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;标定模块,适于在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。In addition, the embodiment of the present invention also provides a panoramic video playback system based on the user's position, the system includes: a position acquisition module, adapted to acquire the position of the user terminal; a selection module, adapted to select one of multiple camera positions as the The target camera position, wherein each of the plurality of camera positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within a predetermined range; the determining module is adapted to determine the target camera position according to the user terminal position and the target camera position The coordinates of the marked points in the panoramic video shot by the panoramic camera at the position; the marking module is suitable for selecting the frame that contains the marked points and has a preset field of view size in the panoramic video shot by the panoramic camera at the target camera position The video picture is used as a video picture displayed by the user terminal.

图2给出了基于用户位置的全景视频播放系统的一个示例的结构示意图,如图2所示,该系统包括位置获取模块210、选择模块220、确定模块230和标定模块240。FIG. 2 shows a schematic structural diagram of an example of a panoramic video playback system based on user positions. As shown in FIG. 2 , the system includes a position acquisition module 210 , a selection module 220 , a determination module 230 and a calibration module 240 .

位置获取模块210用于获取用户终端位置。The location obtaining module 210 is used to obtain the location of the user terminal.

选择模块220用于在多个摄像位置中选取一个作为目标摄像位置,其中,多个摄像位置中的每一个分别设有全景摄像机,全景摄像机适于采集各自预定范围内的全景视频。The selection module 220 is used to select one of multiple camera locations as a target camera location, wherein each of the multiple camera locations is provided with a panoramic camera, and the panoramic cameras are suitable for collecting panoramic videos within respective predetermined ranges.

确定模块230用于根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标。The determining module 230 is configured to determine the coordinates of the marked points in the panoramic video shot by the panoramic camera at the target shooting position according to the position of the user terminal and the target shooting position.

标定模块240用于在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。The marking module 240 is used to select, from the panoramic video shot by the panoramic camera at the target shooting position, a video frame including a calibration point and having a preset field of view size as a video frame displayed by the user terminal.

根据本发明的实施例,上述基于用户位置的全景视频播放系统所包括的位置获取模块210、选择模块220、确定模块230和标定模块240例如可以设置在服务器端。根据其他实施例,上述基于用户位置的全景视频播放系统除了包括服务器端的上述模块之外,也可以包括设置在多个摄像位置处的多个全景摄像机和/或一个或多个用户终端。According to an embodiment of the present invention, the position acquisition module 210 , the selection module 220 , the determination module 230 and the calibration module 240 included in the user position-based panoramic video playback system may be set on the server side, for example. According to other embodiments, the above-mentioned user position-based panoramic video playback system may also include multiple panoramic cameras and/or one or more user terminals arranged at multiple camera positions, in addition to the above-mentioned modules on the server side.

根据本发明的实施例,确定模块230例如可以用(Xw,Yw,Zw)表示用户终端位置的坐标,根据公式一计算目标摄像位置处的全景摄像机所拍摄的全景视频中对应的全景图像帧中的标定点的坐标(X1,Y1)。According to an embodiment of the present invention, the determination module 230 may, for example, use (X w , Y w , Z w ) to represent the coordinates of the user terminal location, and calculate the corresponding panoramic video in the panoramic video captured by the panoramic camera at the target shooting position according to Formula 1. The coordinates (X 1 , Y 1 ) of the calibration point in the image frame.

根据本发明的实施例,上文所述的包含标定点的、具有预设视域尺寸的视频画面例如是以标定点为中心并具有预设视域尺寸的视频画面。According to an embodiment of the present invention, the above-mentioned video frame including the marking point and having a preset viewing area size is, for example, a video frame centered on the marking point and having a preset viewing area size.

根据本发明的实施例,标定模块240例如可以以标定点(X1,Y1)为图像中心,以固定尺寸W和H为矩形区域的长和宽,其中,该矩形区域尺寸为预设视域尺寸,将该矩形区域进行正投影变换,获得球面或柱面显示区域;将获得的球面或柱面显示区域经过反投影变换,获得该球面或柱面显示区域对应的平面矩形视图,作为用户终端所显示的视频画面。According to an embodiment of the present invention, the calibration module 240 may, for example, take the calibration point (X 1 , Y 1 ) as the center of the image, and use the fixed dimensions W and H as the length and width of the rectangular area, wherein the size of the rectangular area is the preset viewing angle. Domain size, transform the rectangular area by orthographic projection to obtain a spherical or cylindrical display area; transform the obtained spherical or cylindrical display area through back-projection transformation to obtain a planar rectangular view corresponding to the spherical or cylindrical display area, as the user The video screen displayed by the terminal.

其中,平面图像坐标和球面坐标的投影变换公式例如可以采用公式二。Wherein, the projection transformation formula of the plane image coordinates and the spherical coordinates, for example, can adopt formula two.

根据本发明的实施例,预设视域尺寸对应矩形的长宽比例如可以与用户终端播放的视频画面的宽高比保持一致。According to an embodiment of the present invention, the aspect ratio of the rectangle corresponding to the preset viewing area size may, for example, be consistent with the aspect ratio of the video picture played by the user terminal.

根据本发明的实施例,标定模块240例如可以获取用户终端的屏幕长度和宽度的比例,作为参考比值;通过缩放和/或剪裁对预设视域尺寸进行调整,以使得调整后的预设视域尺寸对应的矩形尺寸的长宽比与参考比值一致。According to an embodiment of the present invention, the calibration module 240 may obtain the ratio of the screen length and width of the user terminal as a reference ratio; adjust the size of the preset viewing area by zooming and/or cropping, so that the adjusted preset viewing area The aspect ratio of the rectangle size corresponding to the field size is consistent with the reference ratio.

根据本发明的实施例,位置获取模块210例如可以响应于用户终端接入全景视频,获取该用户终端位置。According to an embodiment of the present invention, the position obtaining module 210 may obtain the position of the user terminal, for example, in response to the user terminal accessing the panoramic video.

根据本发明的实施例,位置获取模块210例如可以响应于用户终端所发送的找到自己指令,获取该用户终端位置。According to an embodiment of the present invention, the location obtaining module 210 may, for example, obtain the location of the user terminal in response to a find-yourself instruction sent by the user terminal.

根据本发明的实施例,选择模块220例如可以将所有的全景摄像机编号发送给用户终端,以供用户终端在其中选择一个全景摄像机编号;根据用户终端所选择的全景摄像机编号,将该全景摄像机编号对应的摄像位置作为目标摄像位置。According to an embodiment of the present invention, the selection module 220 may, for example, send all the panoramic camera numbers to the user terminal for the user terminal to select a panoramic camera number; according to the panoramic camera number selected by the user terminal, the panoramic camera number The corresponding shooting position is taken as the target shooting position.

根据本发明的实施例,选择模块220例如可以将部分或全部摄像位置发送给用户终端,以在用户终端上显示部分或全部全景摄像机的分布状态;根据用户终端所选择的摄像位置,将该摄像位置作为目标摄像位置。According to an embodiment of the present invention, the selection module 220 may, for example, send part or all of the camera locations to the user terminal to display the distribution status of some or all of the panoramic cameras on the user terminal; position as the target camera position.

根据本发明的实施例,选择模块220例如可以基于用户终端位置,将多个摄像位置中距离用户终端位置最近的摄像位置作为初始的默认目标摄像位置。According to an embodiment of the present invention, the selection module 220 may, for example, based on the location of the user terminal, use the imaging location closest to the location of the user terminal among the plurality of imaging locations as an initial default target imaging location.

根据本发明的实施例,该系统例如还可以包括拍照模块(图中未示出),拍照模块例如可以响应于用户终端的拍照请求,在该拍照请求对应的视频帧图像中截取用户终端所实时显示的图像部分,作为拍照结果发送给该用户终端。According to an embodiment of the present invention, for example, the system may further include a photographing module (not shown in the figure), and the photographing module may, for example, respond to a photographing request of a user terminal, and capture real-time images of the user terminal in the video frame image corresponding to the photographing request. The displayed image part is sent to the user terminal as a photographing result.

根据本发明的实施例,多个摄像位置可以是固定的或可移动的。According to an embodiment of the present invention, the plurality of camera positions may be fixed or movable.

根据本发明的实施例,位置固定的全景摄像机对应的摄像位置和/或姿态例如可以是预先存储在服务器端的。According to an embodiment of the present invention, the shooting position and/or posture corresponding to the fixed panoramic camera may be pre-stored on the server side, for example.

根据本发明的实施例,位置可移动的全景摄像机上例如可以设有位置传感器和/或姿态传感器,位置可移动的全景摄像机对应的摄像位置和/或姿态例如可以通过设置在其上的位置传感器和/或姿态传感器实时获取。According to an embodiment of the present invention, for example, a position sensor and/or an attitude sensor may be provided on the panoramic camera with a movable position, and the corresponding shooting position and/or attitude of the panoramic camera with a movable position may, for example, be determined by the position sensor disposed thereon. And/or attitude sensors are acquired in real time.

根据本发明的实施例,位置传感器例如可以包括GPS模块和/或气压测高计。According to an embodiment of the present invention, the position sensor may include, for example, a GPS module and/or a barometric altimeter.

根据本发明的实施例,姿态传感器例如可以包括加速度计和/或陀螺仪。According to an embodiment of the present invention, the attitude sensor may include, for example, an accelerometer and/or a gyroscope.

根据本发明的实施例,该系统例如还可以包括信息获取模块(图中未示出),信息获取模块例如可以(如从用户终端)获取视频帧信息,视频帧信息例如包括用户终端接入全景视频时对应的时间戳和/或帧序列号,或包括在接收到来自用户终端的找到自己指令时所对应的时间戳和/或帧序列号。According to an embodiment of the present invention, the system may also include an information acquisition module (not shown in the figure), for example, the information acquisition module may acquire video frame information (such as from the user terminal), and the video frame information includes, for example, the user terminal access panorama The time stamp and/or frame sequence number corresponding to the video, or including the time stamp and/or frame sequence number corresponding to when receiving an instruction to find yourself from the user terminal.

根据本发明的实施例,在目标摄像位置处的全景摄像机所拍摄的全景视频中所选取的包含标定点的、具有预设视域尺寸的视频画面例如是从与时间戳和/或帧序列号对应的视频帧开始的。According to an embodiment of the present invention, in the panoramic video taken by the panoramic camera at the target camera position, the selected video frame containing the calibration point and having a preset field of view size is, for example, from a video with a time stamp and/or a frame sequence number The corresponding video frame starts.

应当理解的是,本发明的基于用户位置的全景视频播放系统能够执行上文所描述的基于用户位置的全景视频播放方法的处理,并能够实现对应的功能和效果,这里不再赘述。It should be understood that the user location-based panoramic video playback system of the present invention can perform the processing of the user location-based panoramic video playback method described above, and can realize corresponding functions and effects, which will not be repeated here.

优选实施例preferred embodiment

下面描述本发明的上述方法和系统中进行全景视频视角调整的一个优选实施例。A preferred embodiment of adjusting the viewing angle of panoramic video in the above method and system of the present invention is described below.

在该实施例中,例如可以根据用户终端接入全景视频的时间戳确定当前视频帧,在当前视频帧即当前时刻下确定视角调整区域。In this embodiment, for example, the current video frame may be determined according to the timestamp when the user terminal accesses the panoramic video, and the viewing angle adjustment area may be determined at the current video frame, that is, at the current moment.

已知目标摄像位置处的全景摄像机位置信息,在已标定模式下,全景摄像机的外参数和内参数均为已知,即在标定状态下图像主点、焦距f已知。The position information of the panoramic camera at the target shooting position is known. In the calibrated mode, the external parameters and internal parameters of the panoramic camera are known, that is, the principal point of the image and the focal length f are known in the calibrated state.

获取用户终端位置信息(Xw,Yw,Zw)(例如根据用户设备中的GPS获得),根据已标定的外参数和内参数获得三维空间任意点(Xw,Yw,Zw)对应的图像坐标(X1,Y1),(X1,Y1)即为图像标定点(不考虑畸变),见公式一。其中,Zc是比例参数,Zc为用户终端与全景摄像机连线形成的方向矢量,朝向为全景摄像机到用户终端,可以根据用户终端位置和目标摄像位置处的全景摄像机位置计算获得。Obtain the position information (X w , Y w , Z w ) of the user terminal (for example, according to the GPS in the user equipment), and obtain any point in the three-dimensional space (X w , Y w , Z w ) according to the calibrated external parameters and internal parameters The corresponding image coordinates (X 1 , Y 1 ), (X 1 , Y 1 ) are the image calibration points (distortion not considered), see Formula 1. Among them, Zc is a scale parameter, Zc is a direction vector formed by the connection between the user terminal and the panoramic camera, and the direction is from the panoramic camera to the user terminal, which can be calculated according to the location of the user terminal and the location of the panoramic camera at the target shooting position.

以(X1,Y1)为图像中心,以固定尺寸W*H为矩形区域长宽,矩形区域长宽设定为与全景视频播放设备的视频画面的宽高比保持一致;将该矩形区域进行正投影变换,获得球面或柱面显示区域;再经过反投影变换,获得平面矩形视图。公式二为图像坐标和球面坐标的投影变换。Take (X 1 , Y 1 ) as the center of the image, take the fixed size W*H as the length and width of the rectangular area, and set the length and width of the rectangular area to be consistent with the aspect ratio of the video screen of the panoramic video playback device; the rectangular area Orthographic transformation is performed to obtain a spherical or cylindrical display area; and then a back-projection transformation is performed to obtain a flat rectangular view. Formula 2 is the projection transformation of image coordinates and spherical coordinates.

然后,根据该平面矩形视图调整用户终端视频显示画面。Then, the video display screen of the user terminal is adjusted according to the planar rectangular view.

综上,本申请提供了如下方案:In summary, this application provides the following solutions:

方案1.基于用户位置的全景视频播放方法,其特征在于,该方法包括:Option 1. The panoramic video playback method based on user position, it is characterized in that, the method comprises:

获取用户终端位置;Obtain the location of the user terminal;

在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;Selecting one of the plurality of camera positions as the target camera position, wherein each of the plurality of camera positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within a respective predetermined range;

根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;According to the position of the user terminal and the target camera position, determine the coordinates of the calibration points in the panoramic video shot by the panoramic camera at the target camera position;

在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。From the panoramic video shot by the panoramic camera at the target shooting position, a video frame including the calibration point and having a preset field of view size is selected as the video frame displayed by the user terminal.

方案2.根据方案1所述的全景视频播放方法,其特征在于,所述根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标的步骤包括:Scheme 2. according to the panoramic video playing method described in scheme 1, it is characterized in that, according to the user terminal position and the target photographing position, the step of determining the coordinates of the calibration point in the panoramic video taken by the panoramic camera at the target photographing position include:

用(Xw,Yw,Zw)表示用户终端位置的坐标,根据如下公式计算目标摄像位置处的全景摄像机所拍摄的全景视频中对应的全景图像帧中的标定点的坐标(X1,Y1):Use (X w , Y w , Z w ) to represent the coordinates of the user terminal position, and calculate the coordinates (X 1 , Y1 ):

其中,Zc为比例参数,f为目标摄像位置处的全景摄像机的焦距。Among them, Zc is a scale parameter, and f is the focal length of the panoramic camera at the target shooting position.

方案3.根据方案2所述的全景视频播放方法,其特征在于,所述的包含所述标定点的、具有预设视域尺寸的视频画面是以所述标定点为中心并具有预设视域尺寸的视频画面。Scheme 3. According to the panoramic video playback method described in scheme 2, it is characterized in that the video picture containing the calibration point and having a preset viewing area size is centered on the calibration point and has a preset viewing area. domain-sized video frames.

方案4.根据方案2或3所述的全景视频播放方法,其特征在于,所述在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面的步骤包括:Scheme 4. according to the panoramic video playing method described in scheme 2 or 3, it is characterized in that, in the panoramic video shot by the panoramic camera at the target camera position, select the one that includes the calibration point and has a preset field of view size of the video picture, as the video picture displayed by the user terminal, the steps include:

以标定点(X1,Y1)为图像中心,以固定尺寸W和H为矩形区域的长和宽,其中,该矩形区域尺寸为所述预设视域尺寸,将该矩形区域进行正投影变换,获得球面或柱面显示区域;Taking the calibration point (X 1 , Y 1 ) as the center of the image, and taking the fixed dimensions W and H as the length and width of the rectangular area, wherein the size of the rectangular area is the size of the preset viewing area, the rectangular area is orthographically projected Transform to obtain a spherical or cylindrical display area;

将获得的球面或柱面显示区域经过反投影变换,获得该球面或柱面显示区域对应的平面矩形视图,作为用户终端所显示的视频画面。The obtained spherical or cylindrical display area is subjected to back projection transformation to obtain a planar rectangular view corresponding to the spherical or cylindrical display area as a video image displayed by the user terminal.

方案5.根据方案4所述的全景视频播放方法,其特征在于,平面图像坐标和球面坐标的投影变换公式如下:Scheme 5. according to the panoramic video playing method described in scheme 4, it is characterized in that, the projection transformation formula of plane image coordinates and spherical coordinates is as follows:

其中,X'、Y'为平面坐标(X1,Y1)对应的球面坐标。Wherein, X' and Y' are spherical coordinates corresponding to plane coordinates (X 1 , Y 1 ).

方案6.根据方案5所述的全景视频播放方法,其特征在于,所述预设视域尺寸对应矩形的长宽比与用户终端播放的视频画面的宽高比一致。Solution 6. The panoramic video playback method according to solution 5, wherein the aspect ratio of the rectangle corresponding to the preset viewing area size is consistent with the aspect ratio of the video screen played by the user terminal.

方案7.根据方案5或6所述的全景视频播放方法,其特征在于,该方法还包括:Scheme 7. according to the panoramic video playing method described in scheme 5 or 6, it is characterized in that, the method also includes:

获取用户终端的屏幕长度和宽度的比例,作为参考比值;Obtain the ratio of the screen length and width of the user terminal as a reference ratio;

通过缩放和/或剪裁对预设视域尺寸进行调整,以使得调整后的预设视域尺寸对应的矩形尺寸的长宽比与所述参考比值一致。The preset viewing area size is adjusted by scaling and/or clipping, so that the aspect ratio of the rectangular size corresponding to the adjusted preset viewing area size is consistent with the reference ratio.

方案8.根据方案1-7中任一项所述的全景视频播放方法,其特征在于,所述获取用户终端位置的步骤包括:Scheme 8. According to the panoramic video playback method described in any one of schemes 1-7, the step of obtaining the position of the user terminal comprises:

响应于用户终端接入全景视频,获取该用户终端位置。In response to the user terminal accessing the panoramic video, the location of the user terminal is acquired.

方案9.根据方案1-7中任一项所述的全景视频播放方法,其特征在于,所述获取用户终端位置的步骤包括:Scheme 9. According to the panoramic video playback method described in any one of schemes 1-7, the step of obtaining the position of the user terminal comprises:

响应于用户终端所发送的找到自己指令,获取该用户终端位置。In response to the find-yourself instruction sent by the user terminal, the location of the user terminal is acquired.

方案10.根据方案1-9中任一项所述的全景视频播放方法,其特征在于,所述在多个摄像位置中选取一个作为目标摄像位置的步骤包括:Scheme 10. according to the panoramic video playing method described in any one of schemes 1-9, it is characterized in that, the step of selecting one as the target photographing position in a plurality of photographing positions comprises:

将所有的全景摄像机编号发送给用户终端,以供用户终端在其中选择一个全景摄像机编号;Send all the panoramic camera numbers to the user terminal, so that the user terminal can select a panoramic camera number among them;

根据用户终端所选择的全景摄像机编号,将该全景摄像机编号对应的摄像位置作为目标摄像位置。According to the panoramic camera number selected by the user terminal, the shooting position corresponding to the panoramic camera number is used as the target shooting position.

方案11.根据方案1-9中任一项所述的全景视频播放方法,其特征在于,所述在多个摄像位置中选取一个作为目标摄像位置的步骤包括:Scheme 11. according to the panoramic video playing method described in any one of schemes 1-9, it is characterized in that, the step of selecting one as the target photographing position in a plurality of photographing positions comprises:

将部分或全部摄像位置发送给用户终端,以在用户终端上显示部分或全部全景摄像机的分布状态;Send part or all of the camera positions to the user terminal to display the distribution status of part or all of the panoramic cameras on the user terminal;

根据用户终端所选择的摄像位置,将该摄像位置作为目标摄像位置。According to the shooting position selected by the user terminal, the shooting position is used as the target shooting position.

方案12.根据方案1-11中任一项所述的全景视频播放方法,其特征在于,所述在多个摄像位置中选取一个作为目标摄像位置的步骤包括:Scheme 12. according to the panoramic video playing method described in any one of schemes 1-11, it is characterized in that, the step of selecting one of the plurality of photographing positions as the target photographing position comprises:

基于用户终端位置,将所述多个摄像位置中距离用户终端位置最近的摄像位置作为初始的默认目标摄像位置。Based on the location of the user terminal, the imaging location closest to the location of the user terminal among the plurality of imaging locations is used as an initial default target imaging location.

方案13.根据方案1-12中任一项所述的全景视频播放方法,其特征在于,该方法还包括:Scheme 13. According to the panoramic video playback method described in any one of schemes 1-12, it is characterized in that the method also includes:

响应于用户终端的拍照请求,在该拍照请求对应的视频帧图像中截取用户终端所实时显示的图像部分,作为拍照结果发送给该用户终端。In response to the photographing request of the user terminal, the image part displayed by the user terminal in real time is intercepted from the video frame image corresponding to the photographing request, and sent to the user terminal as a photographing result.

方案14.根据方案1-13中任一项所述的全景视频播放方法,其特征在于,多个摄像位置是固定的或可移动的。Solution 14. The panoramic video playback method according to any one of solutions 1-13, characterized in that the multiple camera positions are fixed or movable.

方案15.根据方案14所述的全景视频播放方法,其特征在于,位置固定的全景摄像机对应的摄像位置和/或姿态是预先存储在服务器端的;位置可移动的全景摄像机对应的摄像位置和/或姿态是通过设置在该全景摄像机上的位置传感器和/或姿态传感器实时获取的。Scheme 15. The panoramic video playback method according to scheme 14, wherein the camera position and/or attitude corresponding to the fixed panoramic camera are pre-stored on the server side; the camera position and/or posture corresponding to the movable panoramic camera Or the attitude is acquired in real time by a position sensor and/or an attitude sensor arranged on the panoramic camera.

方案16.根据方案1-15中任一项所述的全景视频播放方法,其特征在于,该方法还包括获取视频帧信息,所述视频帧信息包括用户终端接入全景视频时对应的时间戳和/或帧序列号,或者包括在接收到来自用户终端的找到自己指令时所对应的时间戳和/或帧序列号。Solution 16. The panoramic video playback method according to any one of solutions 1-15, characterized in that the method also includes acquiring video frame information, the video frame information including the corresponding time stamp when the user terminal accesses the panoramic video and/or a frame sequence number, or include a time stamp and/or a frame sequence number corresponding to when an instruction to find oneself is received from a user terminal.

方案17.根据方案16所述的全景视频播放方法,其特征在于,在目标摄像位置处的全景摄像机所拍摄的全景视频中所选取的包含所述标定点的、具有预设视域尺寸的视频画面是从与所述时间戳和/或帧序列号对应的视频帧开始的。Scheme 17. The method for playing panoramic video according to scheme 16, wherein, in the panoramic video taken by the panoramic camera at the target camera position, the selected video that includes the calibration point and has a preset field of view size The picture starts from the video frame corresponding to the timestamp and/or frame sequence number.

方案18.基于用户位置的全景视频播放系统,其特征在于,该系统包括:Scheme 18. A panoramic video playback system based on user position, characterized in that the system includes:

位置获取模块,适于获取用户终端位置;A location acquisition module, adapted to acquire the location of the user terminal;

选择模块,适于在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;The selection module is adapted to select one of the multiple camera positions as the target camera position, wherein each of the multiple camera positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within a respective predetermined range ;

确定模块,适于根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;The determining module is adapted to determine the coordinates of the calibration points in the panoramic video shot by the panoramic camera at the target shooting position according to the position of the user terminal and the target shooting position;

标定模块,适于在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。The marking module is adapted to select, from the panoramic video captured by the panoramic camera at the target camera position, a video picture containing the calibration point and having a preset field of view size as the video picture displayed by the user terminal.

方案19.根据方案18所述的全景视频播放系统,其特征在于,所述确定模块适于:用(Xw,Yw,Zw)表示用户终端位置的坐标,根据如下公式计算目标摄像位置处的全景摄像机所拍摄的全景视频中对应的全景图像帧中的标定点的坐标(X1,Y1):Scheme 19. The panoramic video playback system according to scheme 18, wherein the determination module is adapted to: use ( Xw , Yw , Zw ) to represent the coordinates of the user terminal position, and calculate the target camera position according to the following formula The coordinates (X 1 , Y 1 ) of the calibration point in the corresponding panoramic image frame in the panoramic video captured by the panoramic camera at :

其中,Zc为比例参数,f为目标摄像位置处的全景摄像机的焦距。Among them, Zc is a scale parameter, and f is the focal length of the panoramic camera at the target shooting position.

方案20.根据方案19所述的全景视频播放系统,其特征在于,所述的包含所述标定点的、具有预设视域尺寸的视频画面是以所述标定点为中心并具有预设视域尺寸的视频画面。Solution 20. The panoramic video playback system according to solution 19, characterized in that, the video frame containing the marking point and having a preset viewing area size is centered on the marking point and has a preset viewing area. domain-sized video frames.

方案21.根据方案19或20所述的全景视频播放系统,其特征在于,所述标定模块适于:以标定点(X1,Y1)为图像中心,以固定尺寸W和H为矩形区域的长和宽,其中,该矩形区域尺寸为所述预设视域尺寸,将该矩形区域进行正投影变换,获得球面或柱面显示区域;将获得的球面或柱面显示区域经过反投影变换,获得该球面或柱面显示区域对应的平面矩形视图,作为用户终端所显示的视频画面。Solution 21. The panoramic video playback system according to solution 19 or 20, wherein the calibration module is suitable for: taking the calibration point (X 1 , Y 1 ) as the center of the image, and taking the fixed dimensions W and H as the rectangular area The length and width of the rectangular area, wherein, the size of the rectangular area is the size of the preset viewing area, and the rectangular area is subjected to forward projection transformation to obtain a spherical or cylindrical display area; the obtained spherical or cylindrical display area is subjected to back projection transformation , to obtain a planar rectangular view corresponding to the spherical or cylindrical display area as a video picture displayed by the user terminal.

方案22.根据方案21所述的全景视频播放系统,其特征在于,平面图像坐标和球面坐标的投影变换公式如下:Scheme 22. According to the panoramic video playback system described in scheme 21, it is characterized in that the projection transformation formula of plane image coordinates and spherical coordinates is as follows:

其中,X'、Y'为平面坐标(X1,Y1)对应的球面坐标。Wherein, X' and Y' are spherical coordinates corresponding to plane coordinates (X 1 , Y 1 ).

方案23.根据方案22所述的全景视频播放系统,其特征在于,所述预设视域尺寸对应矩形的长宽比与用户终端播放的视频画面的宽高比一致。Solution 23. The panoramic video playback system according to solution 22, wherein the aspect ratio of the rectangle corresponding to the preset viewing area size is consistent with the aspect ratio of the video screen played by the user terminal.

方案24.根据方案22或23所述的全景视频播放系统,其特征在于,所述标定模块还适于:获取用户终端的屏幕长度和宽度的比例,作为参考比值;通过缩放和/或剪裁对预设视域尺寸进行调整,以使得调整后的预设视域尺寸对应的矩形尺寸的长宽比与所述参考比值一致。Solution 24. The panoramic video playback system according to solution 22 or 23, wherein the calibration module is further adapted to: acquire the ratio of the screen length and width of the user terminal as a reference ratio; The preset viewing area size is adjusted so that the aspect ratio of the rectangular size corresponding to the adjusted preset viewing area size is consistent with the reference ratio.

方案25.根据方案18-24中任一项所述的全景视频播放系统,其特征在于,所述位置获取模块适于:响应于用户终端接入全景视频,获取该用户终端位置。Solution 25. The panoramic video playback system according to any one of solutions 18-24, characterized in that, the position acquiring module is adapted to: acquire the position of the user terminal in response to the user terminal accessing the panoramic video.

方案26.根据方案18-24中任一项所述的全景视频播放系统,其特征在于,所述位置获取模块适于:响应于用户终端所发送的找到自己指令,获取该用户终端位置。Solution 26. The panoramic video playback system according to any one of solutions 18-24, characterized in that, the position acquisition module is adapted to: acquire the position of the user terminal in response to a find-yourself instruction sent by the user terminal.

方案27.根据方案18-26中任一项所述的全景视频播放系统,其特征在于,所述选择模块适于:将所有的全景摄像机编号发送给用户终端,以供用户终端在其中选择一个全景摄像机编号;根据用户终端所选择的全景摄像机编号,将该全景摄像机编号对应的摄像位置作为目标摄像位置。Scheme 27. The panoramic video playback system according to any one of schemes 18-26, wherein the selection module is adapted to: send all panoramic camera numbers to the user terminal for the user terminal to select one of them Panoramic camera number: according to the panoramic camera number selected by the user terminal, the shooting position corresponding to the panoramic camera number is used as the target shooting position.

方案28.根据方案18-26中任一项所述的全景视频播放系统,其特征在于,所述选择模块适于:将部分或全部摄像位置发送给用户终端,以在用户终端上显示部分或全部全景摄像机的分布状态;根据用户终端所选择的摄像位置,将该摄像位置作为目标摄像位置。Scheme 28. The panoramic video playback system according to any one of schemes 18-26, wherein the selection module is adapted to: send part or all of the camera positions to the user terminal to display part or all of the camera positions on the user terminal The distribution state of all panoramic cameras; according to the shooting position selected by the user terminal, the shooting position is used as the target shooting position.

方案29.根据方案18-28中任一项所述的全景视频播放系统,其特征在于,所述选择模块适于:基于用户终端位置,将所述多个摄像位置中距离用户终端位置最近的摄像位置作为初始的默认目标摄像位置。Scheme 29. The panoramic video playback system according to any one of schemes 18-28, wherein the selection module is adapted to: based on the position of the user terminal, select the nearest position of the plurality of camera positions from the position of the user terminal The camera position is used as the initial default target camera position.

方案30.根据方案18-29中任一项所述的全景视频播放系统,其特征在于,该系统还包括:拍照模块,适于响应于用户终端的拍照请求,在该拍照请求对应的视频帧图像中截取用户终端所实时显示的图像部分,作为拍照结果发送给该用户终端。Scheme 30. The panoramic video playback system according to any one of schemes 18-29, characterized in that the system also includes: a photographing module adapted to respond to the photographing request of the user terminal, and the video frame corresponding to the photographing request The part of the image displayed by the user terminal in real time is intercepted from the image, and sent to the user terminal as a photographing result.

方案31.根据方案18-30中任一项所述的全景视频播放系统,其特征在于,多个摄像位置是固定的或可移动的。Solution 31. The panoramic video playback system according to any one of solutions 18-30, characterized in that the multiple camera positions are fixed or movable.

方案32.根据方案31所述的全景视频播放系统,其特征在于,位置固定的全景摄像机对应的摄像位置和/或姿态是预先存储在服务器端的。Solution 32. The panoramic video playback system according to solution 31, characterized in that the shooting position and/or posture corresponding to the fixed panoramic camera is pre-stored on the server side.

方案33.根据方案31所述的全景视频播放系统,其特征在于,位置可移动的全景摄像机上设有位置传感器和/或姿态传感器,位置可移动的全景摄像机对应的摄像位置和/或姿态是通过设置在其上的位置传感器和/或姿态传感器实时获取的。Scheme 33. The panoramic video playback system according to scheme 31, wherein the panoramic camera with a movable position is provided with a position sensor and/or an attitude sensor, and the corresponding shooting position and/or attitude of the panoramic camera with a movable position is It is acquired in real time by a position sensor and/or an attitude sensor disposed thereon.

方案34.根据方案33所述的全景视频播放系统,其特征在于,所述位置传感器包括GPS模块和/或气压测高计。Solution 34. The panoramic video playback system according to solution 33, wherein the position sensor includes a GPS module and/or a barometric altimeter.

方案35.根据方案33或34所述的全景视频播放系统,其特征在于,所述姿态传感器包括加速度计和/或陀螺仪。Solution 35. The panoramic video playback system according to solution 33 or 34, wherein the attitude sensor includes an accelerometer and/or a gyroscope.

方案36.根据方案18-35中任一项所述的全景视频播放系统,其特征在于,该系统还包括:信息获取模块,适于获取视频帧信息,所述视频帧信息包括用户终端接入全景视频时对应的时间戳和/或帧序列号,或者包括在接收到来自用户终端的找到自己指令时所对应的时间戳和/或帧序列号。Solution 36. The panoramic video playback system according to any one of solutions 18-35, characterized in that the system further includes: an information acquisition module, adapted to acquire video frame information, and the video frame information includes user terminal access The time stamp and/or frame sequence number corresponding to the panoramic video, or including the time stamp and/or frame sequence number corresponding to when receiving an instruction to find yourself from the user terminal.

方案37.根据方案36所述的全景视频播放系统,其特征在于,在目标摄像位置处的全景摄像机所拍摄的全景视频中所选取的包含所述标定点的、具有预设视域尺寸的视频画面是从与所述时间戳和/或帧序列号对应的视频帧开始的。Scheme 37. According to the panoramic video playback system described in scheme 36, it is characterized in that the video with the preset viewing area size that includes the calibration point is selected in the panoramic video captured by the panoramic camera at the target camera position. The picture starts from the video frame corresponding to the timestamp and/or frame sequence number.

方案38.根据方案18-37中任一项所述的全景视频播放系统,其特征在于,该系统还包括设置在所述多个摄像位置处的多个全景摄像机。Solution 38. The panoramic video playback system according to any one of solutions 18-37, characterized in that the system further includes a plurality of panoramic cameras arranged at the plurality of camera positions.

方案39.根据方案18-38中任一项所述的全景视频播放系统,其特征在于,该系统还包括一个或多个用户终端。Solution 39. The panoramic video playback system according to any one of solutions 18-38, characterized in that the system further includes one or more user terminals.

尽管根据有限数量的实施例描述了本发明,但是受益于上面的描述,本技术领域内的技术人员明白,在由此描述的本发明的范围内,可以设想其它实施例。此外,应当注意,本说明书中使用的语言主要是为了可读性和教导的目的而选择的,而不是为了解释或者限定本发明的主题而选择的。因此,在不偏离所附权利要求书的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。对于本发明的范围,对本发明所做的公开是说明性的,而非限制性的,本发明的范围由所附权利要求书限定。While the invention has been described in terms of a limited number of embodiments, it will be apparent to a person skilled in the art having the benefit of the above description that other embodiments are conceivable within the scope of the invention thus described. In addition, it should be noted that the language used in the specification has been chosen primarily for the purpose of readability and instruction rather than to explain or define the inventive subject matter. Accordingly, many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the appended claims. With respect to the scope of the present invention, the disclosure of the present invention is intended to be illustrative rather than restrictive, and the scope of the present invention is defined by the appended claims.

Claims (10)

1.基于用户位置的全景视频播放方法,其特征在于,该方法包括:1. The panoramic video playback method based on user position, is characterized in that, the method comprises: 获取用户终端位置;Obtain the location of the user terminal; 在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;Selecting one of the plurality of camera positions as the target camera position, wherein each of the plurality of camera positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within a respective predetermined range; 根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;According to the position of the user terminal and the target camera position, determine the coordinates of the calibration points in the panoramic video shot by the panoramic camera at the target camera position; 在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。From the panoramic video shot by the panoramic camera at the target shooting position, a video frame including the calibration point and having a preset field of view size is selected as the video frame displayed by the user terminal. 2.根据权利要求1所述的全景视频播放方法,其特征在于,所述根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标的步骤包括:2. The panoramic video playback method according to claim 1, wherein, according to the user terminal position and the target camera position, the step of determining the coordinates of the marked points in the panoramic video taken by the panoramic camera at the target camera position include: 用(Xw,Yw,Zw)表示用户终端位置的坐标,根据如下公式计算目标摄像位置处的全景摄像机所拍摄的全景视频中对应的全景图像帧中的标定点的坐标(X1,Y1):Use (X w , Y w , Z w ) to represent the coordinates of the user terminal position, and calculate the coordinates (X 1 , Y1 ): 其中,Zc为比例参数,f为目标摄像位置处的全景摄像机的焦距。Among them, Zc is a scale parameter, and f is the focal length of the panoramic camera at the target shooting position. 3.根据权利要求2所述的全景视频播放方法,其特征在于,所述在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面的步骤包括:3. The panoramic video playing method according to claim 2, characterized in that, in the panoramic video shot by the panoramic camera at the target camera position, select the one that includes the calibration point and has a preset field of view size The video picture, the steps as the video picture displayed by the user terminal include: 以标定点(X1,Y1)为图像中心,以固定尺寸W和H为矩形区域的长和宽,其中,该矩形区域尺寸为所述预设视域尺寸,将该矩形区域进行正投影变换,获得球面或柱面显示区域;Taking the calibration point (X 1 , Y 1 ) as the center of the image, and taking the fixed dimensions W and H as the length and width of the rectangular area, wherein the size of the rectangular area is the size of the preset viewing area, the rectangular area is orthographically projected Transform to obtain a spherical or cylindrical display area; 将获得的球面或柱面显示区域经过反投影变换,获得该球面或柱面显示区域对应的平面矩形视图,作为用户终端所显示的视频画面。The obtained spherical or cylindrical display area is subjected to back projection transformation to obtain a planar rectangular view corresponding to the spherical or cylindrical display area as a video image displayed by the user terminal. 4.根据权利要求3所述的全景视频播放方法,其特征在于,平面图像坐标和球面坐标的投影变换公式如下:4. panoramic video playing method according to claim 3, is characterized in that, the projection transformation formula of plane image coordinates and spherical coordinates is as follows: 其中,X'、Y'为平面坐标(X1,Y1)对应的球面坐标。Wherein, X' and Y' are spherical coordinates corresponding to plane coordinates (X 1 , Y 1 ). 5.根据权利要求4所述的全景视频播放方法,其特征在于,所述预设视域尺寸对应矩形的长宽比与用户终端播放的视频画面的宽高比一致。5. The panoramic video playback method according to claim 4, characterized in that, the aspect ratio of the rectangle corresponding to the preset viewing area size is consistent with the aspect ratio of the video picture played by the user terminal. 6.根据权利要求4或5所述的全景视频播放方法,其特征在于,该方法还包括:6. according to claim 4 or 5 described panoramic video playing methods, it is characterized in that, this method also comprises: 获取用户终端的屏幕长度和宽度的比例,作为参考比值;Obtain the ratio of the screen length and width of the user terminal as a reference ratio; 通过缩放和/或剪裁对预设视域尺寸进行调整,以使得调整后的预设视域尺寸对应的矩形尺寸的长宽比与所述参考比值一致。The preset viewing area size is adjusted by scaling and/or clipping, so that the aspect ratio of the rectangular size corresponding to the adjusted preset viewing area size is consistent with the reference ratio. 7.根据权利要求1-6中任一项所述的全景视频播放方法,其特征在于,所述在多个摄像位置中选取一个作为目标摄像位置的步骤包括:7. according to the panoramic video playing method described in any one in claim 1-6, it is characterized in that, the described step of selecting one as target camera position in a plurality of camera positions comprises: 将部分或全部摄像位置发送给用户终端,以在用户终端上显示部分或全部全景摄像机的分布状态;Send part or all of the camera positions to the user terminal to display the distribution status of part or all of the panoramic cameras on the user terminal; 根据用户终端所选择的摄像位置,将该摄像位置作为目标摄像位置。According to the shooting position selected by the user terminal, the shooting position is used as the target shooting position. 8.根据权利要求1-7中任一项所述的全景视频播放方法,其特征在于,所述在多个摄像位置中选取一个作为目标摄像位置的步骤包括:8. according to the panoramic video playback method described in any one in claim 1-7, it is characterized in that, the described step of selecting one as target camera position in a plurality of camera positions comprises: 基于用户终端位置,将所述多个摄像位置中距离用户终端位置最近的摄像位置作为初始的默认目标摄像位置。Based on the location of the user terminal, the imaging location closest to the location of the user terminal among the plurality of imaging locations is used as an initial default target imaging location. 9.根据权利要求1-8中任一项所述的全景视频播放方法,其特征在于,多个摄像位置是固定的或可移动的。9. The panoramic video playing method according to any one of claims 1-8, characterized in that, a plurality of camera positions are fixed or movable. 10.基于用户位置的全景视频播放系统,其特征在于,该系统包括:10. The panoramic video playback system based on the user's position is characterized in that the system comprises: 位置获取模块,适于获取用户终端位置;A location acquisition module, adapted to acquire the location of the user terminal; 选择模块,适于在多个摄像位置中选取一个作为目标摄像位置,其中,所述多个摄像位置中的每一个分别设有全景摄像机,所述全景摄像机适于采集各自预定范围内的全景视频;The selection module is adapted to select one of the multiple camera positions as the target camera position, wherein each of the multiple camera positions is provided with a panoramic camera, and the panoramic camera is suitable for collecting panoramic videos within a respective predetermined range ; 确定模块,适于根据用户终端位置和目标摄像位置,确定目标摄像位置处的全景摄像机所拍摄的全景视频中的标定点的坐标;The determining module is adapted to determine the coordinates of the calibration points in the panoramic video shot by the panoramic camera at the target shooting position according to the position of the user terminal and the target shooting position; 标定模块,适于在目标摄像位置处的全景摄像机所拍摄的全景视频中,选取包含所述标定点的、具有预设视域尺寸的视频画面,作为用户终端所显示的视频画面。The marking module is adapted to select, from the panoramic video shot by the panoramic camera at the target shooting position, a video picture containing the calibration point and having a preset field of view size as the video picture displayed by the user terminal.
CN201711473679.6A 2017-12-29 2017-12-29 Panoramic video playback method and system based on user location Active CN108174240B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711473679.6A CN108174240B (en) 2017-12-29 2017-12-29 Panoramic video playback method and system based on user location

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711473679.6A CN108174240B (en) 2017-12-29 2017-12-29 Panoramic video playback method and system based on user location

Publications (2)

Publication Number Publication Date
CN108174240A true CN108174240A (en) 2018-06-15
CN108174240B CN108174240B (en) 2020-07-10

Family

ID=62519726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711473679.6A Active CN108174240B (en) 2017-12-29 2017-12-29 Panoramic video playback method and system based on user location

Country Status (1)

Country Link
CN (1) CN108174240B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040846A (en) * 2018-07-13 2018-12-18 北京幻鲸数字科技有限公司 Panoramic video playback method and device
CN109379455A (en) * 2018-09-27 2019-02-22 维沃移动通信有限公司 A kind of image recognition method and device based on mobile terminal
CN110267026A (en) * 2019-07-05 2019-09-20 浙江开奇科技有限公司 Data processing method, mobile terminal and system based on 5G network
CN110365900A (en) * 2019-07-16 2019-10-22 中国三峡建设管理有限公司 A panoramic camera system
CN111669604A (en) * 2019-03-07 2020-09-15 阿里巴巴集团控股有限公司 Acquisition equipment setting method and device, terminal, acquisition system and equipment
CN113055587A (en) * 2019-12-27 2021-06-29 财团法人工业技术研究院 Panoramic video processing method, panoramic video processing device and panoramic video system
CN113596544A (en) * 2021-07-26 2021-11-02 王博 Video generation method and device, electronic equipment and storage medium
CN114500846A (en) * 2022-02-12 2022-05-13 北京蜂巢世纪科技有限公司 Method, device and equipment for switching viewing angles of live action and readable storage medium
CN114830676A (en) * 2019-12-24 2022-07-29 皇家Kpn公司 Video processing device and manifest file for video streaming
CN115278193A (en) * 2021-04-30 2022-11-01 中国移动通信集团河北有限公司 Panoramic video distribution method, device, device and computer storage medium
US11521347B2 (en) 2019-03-07 2022-12-06 Alibaba Group Holding Limited Method, apparatus, medium, and device for generating multi-angle free-respective image data
CN117278733A (en) * 2023-11-22 2023-12-22 潍坊威龙电子商务科技有限公司 Display method and system of panoramic camera in VR head display

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014008185A1 (en) * 2012-07-02 2014-01-09 Sony Computer Entertainment Inc. Methods and systems for interaction with an expanded information space
JP2015231114A (en) * 2014-06-04 2015-12-21 日本電信電話株式会社 Video display device
US20160323559A1 (en) * 2015-04-29 2016-11-03 Panasonic Intellectual Property Management Co., Ltd. Method for selecting cameras and image distribution system capable of appropriately selecting cameras
CN106447788A (en) * 2016-09-26 2017-02-22 北京疯景科技有限公司 Watching angle indication method and device
US20170061696A1 (en) * 2015-08-31 2017-03-02 Samsung Electronics Co., Ltd. Virtual reality display apparatus and display method thereof
CN106657923A (en) * 2017-01-10 2017-05-10 哈尔滨市舍科技有限公司 Scene changing shared viewing system based on position
CN107135207A (en) * 2017-04-19 2017-09-05 中国电子科技集团公司电子科学研究院 Method and system for live streaming of panoramic conference
CN107155065A (en) * 2017-06-28 2017-09-12 哈尔滨市舍科技有限公司 A kind of virtual photograph device and method
CN107318008A (en) * 2016-04-27 2017-11-03 深圳看到科技有限公司 Panoramic video player method and playing device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014008185A1 (en) * 2012-07-02 2014-01-09 Sony Computer Entertainment Inc. Methods and systems for interaction with an expanded information space
JP2015231114A (en) * 2014-06-04 2015-12-21 日本電信電話株式会社 Video display device
US20160323559A1 (en) * 2015-04-29 2016-11-03 Panasonic Intellectual Property Management Co., Ltd. Method for selecting cameras and image distribution system capable of appropriately selecting cameras
US20170061696A1 (en) * 2015-08-31 2017-03-02 Samsung Electronics Co., Ltd. Virtual reality display apparatus and display method thereof
CN107318008A (en) * 2016-04-27 2017-11-03 深圳看到科技有限公司 Panoramic video player method and playing device
CN106447788A (en) * 2016-09-26 2017-02-22 北京疯景科技有限公司 Watching angle indication method and device
CN106657923A (en) * 2017-01-10 2017-05-10 哈尔滨市舍科技有限公司 Scene changing shared viewing system based on position
CN107135207A (en) * 2017-04-19 2017-09-05 中国电子科技集团公司电子科学研究院 Method and system for live streaming of panoramic conference
CN107155065A (en) * 2017-06-28 2017-09-12 哈尔滨市舍科技有限公司 A kind of virtual photograph device and method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109040846B (en) * 2018-07-13 2021-06-18 北京幻鲸数字科技有限公司 Panoramic video playing method and device
CN109040846A (en) * 2018-07-13 2018-12-18 北京幻鲸数字科技有限公司 Panoramic video playback method and device
CN109379455A (en) * 2018-09-27 2019-02-22 维沃移动通信有限公司 A kind of image recognition method and device based on mobile terminal
CN109379455B (en) * 2018-09-27 2021-07-30 维沃移动通信有限公司 A kind of image recognition method and device based on mobile terminal
US11521347B2 (en) 2019-03-07 2022-12-06 Alibaba Group Holding Limited Method, apparatus, medium, and device for generating multi-angle free-respective image data
CN111669604A (en) * 2019-03-07 2020-09-15 阿里巴巴集团控股有限公司 Acquisition equipment setting method and device, terminal, acquisition system and equipment
CN110267026A (en) * 2019-07-05 2019-09-20 浙江开奇科技有限公司 Data processing method, mobile terminal and system based on 5G network
CN110365900A (en) * 2019-07-16 2019-10-22 中国三峡建设管理有限公司 A panoramic camera system
CN114830676A (en) * 2019-12-24 2022-07-29 皇家Kpn公司 Video processing device and manifest file for video streaming
CN113055587A (en) * 2019-12-27 2021-06-29 财团法人工业技术研究院 Panoramic video processing method, panoramic video processing device and panoramic video system
CN115278193A (en) * 2021-04-30 2022-11-01 中国移动通信集团河北有限公司 Panoramic video distribution method, device, device and computer storage medium
CN113596544A (en) * 2021-07-26 2021-11-02 王博 Video generation method and device, electronic equipment and storage medium
CN113596544B (en) * 2021-07-26 2025-04-08 王博 Video generation method, device, electronic equipment and storage medium
CN114500846A (en) * 2022-02-12 2022-05-13 北京蜂巢世纪科技有限公司 Method, device and equipment for switching viewing angles of live action and readable storage medium
CN114500846B (en) * 2022-02-12 2024-04-02 北京蜂巢世纪科技有限公司 Live action viewing angle switching method, device, equipment and readable storage medium
CN117278733A (en) * 2023-11-22 2023-12-22 潍坊威龙电子商务科技有限公司 Display method and system of panoramic camera in VR head display
CN117278733B (en) * 2023-11-22 2024-03-19 潍坊威龙电子商务科技有限公司 Display method and system of panoramic camera in VR head display

Also Published As

Publication number Publication date
CN108174240B (en) 2020-07-10

Similar Documents

Publication Publication Date Title
CN108174240B (en) Panoramic video playback method and system based on user location
JP5659305B2 (en) Image generating apparatus and image generating method
CN103907341B (en) Image generating device and image generating method
JP5769813B2 (en) Image generating apparatus and image generating method
JP5865388B2 (en) Image generating apparatus and image generating method
EP3149624B1 (en) Photo-video-camera with dynamic orientation lock and aspect ratio.
CN106296589B (en) Panoramic image processing method and device
CN108259717A (en) Linkage, camera chain, method for imaging
US20100265313A1 (en) In-camera generation of high quality composite panoramic images
CN101764925A (en) Shallow depth of field simulation method for digital image
CN101212575A (en) Method for shooting panoramic images
JP2016096487A (en) Imaging system
CN107197137A (en) Image processing apparatus, image processing method and recording medium
TW201725899A (en) Electronic device and photo shooting method
CN106506932A (en) The acquisition methods and device of image
JP2019110434A (en) Image processing apparatus, image processing system, and program
TW201122711A (en) System and method for generating an image appended with landscape information
CN108391048A (en) Data creation method with functions and panoramic shooting system
CN110796690B (en) Image matching method and image matching device
CN102238320A (en) Camera device and camera method thereof
KR100579135B1 (en) Converged 3D Multiview Image Acquisition Method
JP2019168999A (en) Imaging device, imaging method and program
KR20190061165A (en) System and method for generating 360 degree video including advertisement
CN105472232B (en) Image acquisition method and electronic device
TW202009595A (en) Omnidirectional camera apparatus and image mapping/combining method thereof

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
CB02 Change of applicant information

Address after: 266100 Block C 200-43, Chuangke Street, Qingdao, 306 Ningxia Road, Laoshan District, Qingdao City, Shandong Province

Applicant after: QINGDAO YISPACE TECHNOLOGY Co.,Ltd.

Address before: 150016 Heilongjiang Province, Harbin Economic Development Zone haping Road District Dalian road and Xingkai road junction

Applicant before: HARBIN YISHE TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240726

Address after: 150001 No. 92 West straight street, Nangang District, Heilongjiang, Harbin

Patentee after: HARBIN INSTITUTE OF TECHNOLOGY

Country or region after: China

Address before: Room 200-43, block C, Qingdao maker street, 306 Ningxia road, Laoshan District, Qingdao City, Shandong Province 266100

Patentee before: QINGDAO YISPACE TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载