Double-picture display method and device and playing equipment

By detecting and processing target operations in the panoramic close-up dual-picture shooting system, and adjusting the screen and vertex coordinates of the panoramic picture, the problem of inaccurate panoramic picture and viewfinder display is solved, and the picture flexibility and viewfinder accuracy are improved.

CN118764581AActive Publication Date: 2024-10-11杭州普联系统技术有限公司

Patent Information

Application Number
CN202410743599.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-11
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

In the existing panoramic close-up dual-picture shooting system, the panoramic picture playback client cannot meet user needs, and the viewfinder is difficult to accurately select the target area, causing the picture content displayed by the close-up picture playback client to be difficult to meet user needs.

Method used

By detecting the distance change after target operations (such as panning and zooming) on ​​the panoramic screen playback client, determining the second screen coordinates and vertex coordinates of the panoramic screen, adjusting the rendering range of the texture map, thereby changing the panoramic screen playback client displayed Frame range, improving frame flexibility and viewfinder accuracy.

Benefits of technology

The flexibility and accuracy of the picture displayed on the panoramic picture playback client are improved, making the panoramic picture better able to meet user needs. By enlarging the panoramic picture, the viewfinder is simultaneously enlarged, improving the accuracy of the viewing range.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764581A_ABST
    Figure CN118764581A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of image processing, and provides a double-picture display method and device and playing device.The double-picture display method comprises the steps that under the condition that a target operation is detected on a panoramic picture displayed by a panoramic picture playing client side, the distance variation corresponding to the target operation is determined, and the panoramic distance variation is obtained; determining a second screen coordinate of the panoramic picture according to the panoramic distance variation and the first screen coordinate of the panoramic picture; determining vertex coordinates of the panoramic picture according to the second screen coordinates of the panoramic picture and a preset screen vertex mapping relation; rendering a texture map corresponding to the vertex coordinates of the panoramic picture; and displaying the rendered picture through the panoramic picture playing client.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology, and in particular, relates to a dual-screen display method, device, playback equipment, and computer-readable storage medium. Background Art

[0002] With the development of network technology, people can use panoramic close-up dual-screen shooting systems to monitor specific scenes.

[0003] like Figure 1 As shown, the panoramic close-up dual-screen shooting system can be composed of a network camera (IP Camera, IPC) and a playback device. The playback device includes a panoramic screen playback client, a close-up screen playback client and a viewfinder. The viewfinder is included in the panoramic screen playback client and can be adjusted in position within the display range of the panoramic monitoring screen. After the adjustment, the close-up screen playback client will enlarge and display the screen corresponding to the screen captured by the viewfinder. Specifically, after decoding the single-channel video stream collected by the IPC, the obtained texture map is rendered twice (wherein one rendering is to render the entire texture map, and the other rendering is to render the partial texture map corresponding to the screen captured by the viewfinder), and then the rendering results obtained by the two renderings are projected into the viewports of the panoramic screen playback client and the close-up screen playback client for display.

[0004] In the existing panoramic and close-up dual-image shooting system, although the close-up image playback client can display the corresponding image according to the adjustment of the viewfinder position, the image content that can be displayed by the panoramic image playback client still cannot meet the needs of users. Summary of the invention

[0005] The embodiments of the present application provide a dual-screen display method, apparatus, playback device, and computer-readable storage medium, which can solve the problem that the screen content that can be displayed by the existing panoramic screen playback client cannot meet the needs of users.

[0006] In a first aspect, an embodiment of the present application provides a dual-screen display method, which is applied to a playback device including a panoramic screen playback client, and the dual-screen display method includes:

[0007] When a target operation is detected in the panoramic picture displayed by the panoramic picture playback client, a distance change amount corresponding to the target operation is determined to obtain a panoramic distance change amount, wherein the panoramic picture is obtained by rendering projection information of a texture map projected into a viewport, and the target operation includes a translation operation and / or a zoom operation;

[0008] Determining a second screen coordinate of the panoramic picture according to the panoramic distance change and the first screen coordinate of the panoramic picture, wherein the first screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture before the target operation is detected, the screen coordinate is the coordinate in a screen coordinate system established by the screen of the panoramic picture playing client, and the second screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture after the target operation is detected;

[0009] Determining the vertex coordinates of the panoramic picture according to the second screen coordinates of the panoramic picture and a preset screen vertex mapping relationship, wherein the vertex coordinates are coordinates in a vertex coordinate system established by the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the vertex coordinate system;

[0010] Rendering a texture map corresponding to vertex coordinates of the panoramic picture;

[0011] The rendered image is displayed through the panoramic image playback client.

[0012] In a second aspect, an embodiment of the present application provides a dual-screen display device, which is applied to a playback device including a panoramic screen playback client, including:

[0013] A panoramic distance variation determination module, configured to determine a distance variation corresponding to a target operation when a target operation is detected in the panoramic picture displayed by the panoramic picture playback client, so as to obtain a panoramic distance variation, wherein the panoramic picture is obtained by rendering projection information of a texture map projected into a viewport, and the target operation includes a translation operation and / or a zoom operation;

[0014] a second screen coordinate determination module for a panoramic picture, configured to determine a second screen coordinate of the panoramic picture according to the panoramic distance variation and the first screen coordinate of the panoramic picture, wherein the first screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture before the target operation is detected, the screen coordinate is the coordinate in a screen coordinate system established by the screen of the panoramic picture playback client, and the second screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture after the target operation is detected;

[0015] a panoramic picture vertex coordinate determination module, used to determine the vertex coordinates of the panoramic picture according to the second screen coordinates of the panoramic picture and a preset screen vertex mapping relationship, wherein the vertex coordinates are coordinates in a vertex coordinate system established by the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the vertex coordinate system;

[0016] A texture map rendering module, used for rendering a texture map corresponding to the vertex coordinates of the panoramic picture;

[0017] The picture display module is used to display the rendered picture through the panoramic picture playback client.

[0018] In a third aspect, an embodiment of the present application provides a playback device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the first aspect when executing the computer program.

[0019] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0020] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when executed on a playback device, enables the playback device to execute the method described in the first aspect above.

[0021] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0022] Since the target operation includes a translation operation and / or a zoom operation, and both the translation operation and the zoom operation will produce a certain distance change, therefore, if the target operation is detected in the panoramic picture displayed by the panoramic picture playback client, the distance change amount corresponding to the target operation can be determined to obtain the panoramic distance change amount. The first screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture before the target operation is detected, and the second screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture after the target operation is detected. Therefore, the second screen coordinate of the panoramic picture can be determined according to the panoramic distance change amount and the first screen coordinate of the panoramic picture. In addition, since the panoramic picture is obtained by rendering the projection information of the texture map projected into the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the above vertex coordinate system, the vertex coordinates of the panoramic picture can be determined according to the second screen coordinates of the panoramic picture and the preset screen vertex mapping relationship, that is, the coordinates of the panoramic picture in the vertex coordinate system established by the viewport can be determined, which is equivalent to determining the range of the texture map to be rendered, so that after rendering the texture map corresponding to the vertex coordinates of the panoramic picture, the rendered picture can be displayed through the panoramic picture playback client, that is, the picture matching the panoramic distance change amount can be displayed. That is, in the embodiment of the present application, due to the change in the vertex position corresponding to the texture map, the range of the picture displayed on the screen of the panoramic picture playback client is changed, thereby improving the flexibility of the picture displayed by the panoramic picture playback client, and further improving the probability that the picture displayed by the panoramic picture playback client meets the needs of the user. Furthermore, since the display range of the panoramic picture is adjustable, when the framing range corresponding to the viewfinder is small, the panoramic picture can be enlarged so that the viewfinder can be enlarged synchronously. In this way, the user can more accurately judge whether the framing range of the viewfinder is the range that the user actually wants to select based on the enlarged viewfinder, which is conducive to improving the accuracy of the framing range. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0024] Figure 1 It is a structural schematic diagram of a panoramic close-up dual-image shooting system;

[0025] Figure 2 It is a schematic diagram of the correspondence between the texture map, the viewport range and the screen display provided by an embodiment of the present application;

[0026] Figure 3 It is a schematic diagram of a picture displayed on the screen when the vertex coordinates of the texture map are beyond the range of the viewport provided by an embodiment of the present application;

[0027] Figure 4 It is a flowchart of a dual-screen display method provided by an embodiment of the present application;

[0028] Figure 5 It is a schematic diagram of a normalized screen coordinate system established with the upper left corner of the screen of the panoramic picture playback client as the origin, provided by an embodiment of the present application;

[0029] Figure 6 This is an embodiment of the present application. Figure 5 Schematic diagram of the screen coordinate system superimposed on the vertex coordinate system;

[0030] Figure 7 is a schematic diagram of another screen coordinate system superimposed with a vertex coordinate system provided by another embodiment of the present application;

[0031] Figure 8 is a schematic diagram of the relationship between the relative positions of a viewfinder and a panoramic viewport provided in an embodiment of the present application;

[0032] Fig. 9 It is a schematic diagram of how to correct the position of the viewfinder after performing a target operation on a panoramic picture, provided by an embodiment of the present application;

[0033] Fig.10 It is a schematic diagram of how to control a close-up image in linkage when a target operation is performed on a viewfinder provided by an embodiment of the present application;

[0034] Fig.11 It is a schematic diagram of how to link a viewfinder when performing a target operation on a close-up picture provided by an embodiment of the present application;

[0035] Fig.12 is a structural schematic diagram of a dual-screen display device provided in an embodiment of the present application;

[0036] Fig.13 It is a structural diagram of a playback device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0038] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0039] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0040] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0041] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the phrases "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways.

[0042] In the panoramic and close-up dual-image shooting system, the image displayed by the close-up image playback client can be adjusted by changing the position of the viewfinder of the panoramic image playback client. For example, by panning the viewfinder to change the position of the viewfinder in the panoramic image playback client, since the panoramic images captured by the viewfinder before and after the panning (the panoramic image is the image displayed by the panoramic image playback client) are different, the image displayed by the close-up image playback client also changes accordingly.

[0043] Although the close-up picture playback client can display the corresponding picture according to the adjustment of the viewfinder position, the panoramic picture is rendered after the entire texture map is projected onto the viewport. Therefore, the panoramic picture displayed by the panoramic picture playback client is fixed and cannot be adjusted. Therefore, the displayed panoramic picture is difficult to meet the needs of users. In addition, when the panoramic picture is fixed and the target viewing range is small, it is difficult to accurately select the corresponding target area through the viewfinder, which makes the picture content displayed by the close-up picture playback client difficult to meet the needs of users.

[0044] Before introducing the dual-screen display method provided in the embodiment of the present application, the principle of dual-screen display is briefly introduced below.

[0045] After the IPC acquires the video stream, it decodes the single-channel video stream acquired by the IPC, and uses the original complete picture obtained by decoding the video stream as a texture map of the graphics rendering program, that is, the texture map contains complete original graphics data.

[0046] The range of graphics displayed by the screen playback client is controlled by the viewport of the graphics rendering program. The viewport is a rectangular area in the window. Generally, the viewport overlaps with the window. During the rendering process, the texture map is projected into the viewport to generate the final displayable image, and the part of the texture map that is not projected into the viewport (i.e., the graphics outside the viewport area) will not be rendered. It should be pointed out that when there are two screen playback clients, such as a panoramic screen playback client and a close-up screen playback client, the two screen playback clients correspond to different viewports, which can be distinguished by a panoramic viewport and a close-up viewport.

[0047] When the texture map is projected to the viewport and rendered to the screen of the screen playback client, three coordinate systems are mainly involved, namely the texture coordinate system, the vertex coordinate system and the screen coordinate system.

[0048] The texture coordinate system is a coordinate system constructed based on the texture map. The origin of the texture coordinate system can be set at the lower left corner of the texture map, and the x-axis and y-axis are horizontally rightward and vertically upward, respectively. Generally, the coordinate values ​​of the texture data (i.e., texture coordinates) can all be set within the range of [0, +1].

[0049] Among them, the vertex coordinate system is a coordinate system constructed based on the viewport. The origin of the vertex coordinate system can be set at the center of the viewport. Usually, the coordinate values ​​within the viewport range (i.e., vertex coordinates) are all within the range of [-1, +1]. Points outside this range will be ignored by the graphics rendering program.

[0050] The screen coordinate system is a coordinate system constructed based on the screen of the picture playback client. The origin of the screen coordinate system can be set at the upper left corner of the screen, and the x-axis and y-axis are horizontally to the right and vertically downward, respectively.

[0051] The graphics rendering program maps texture coordinates to vertex coordinates one by one, and the vertex coordinates within the viewport range are mapped to screen coordinates one by one. The vertex position after texture mapping can be described by the horizontal and vertical coordinates, width, and height of the lower left corner vertex. By default, it is (-1, -1, 2, 2), and the corresponding four vertex coordinates are (-1, -1), (-1, 1), (1, -1), (1, 1), that is, the range corresponding to the vertex coordinates coincides with the viewport range, and the screen can display the picture corresponding to the complete texture map, such as Figure 2 shown.

[0052] But when the vertex coordinates of the texture map are not within the viewport range, such as Figure 3As shown, assuming that the vertex position is (-2, -2, 4, 4), its corresponding vertex coordinates are (-2, -2), (-2, 2), (2, -2), (2, 2), at this time, the texture map will be enlarged and exceed the viewport range, but only the local picture within the viewport range will be rendered to the screen, that is, the screen display range can be adjusted by changing the vertex position corresponding to the texture map.

[0053] The following describes how to adjust the image range displayed on the screen of the panoramic image playback client by changing the vertex positions corresponding to the texture map, so as to improve the flexibility of the image displayed by the panoramic image playback client.

[0054] Figure 4 A schematic flow chart of a dual-screen display method provided in an embodiment of the present application is shown. The dual-screen display method is applied to a playback device including a panoramic screen playback client, and is described in detail as follows:

[0055] S41, when a target operation is detected in the panoramic picture displayed by the panoramic picture playback client, determining the distance change corresponding to the above target operation, and obtaining the panoramic distance change, wherein the above panoramic picture is obtained by rendering the projection information of the texture map projected into the viewport, and the above target operation includes a translation operation and / or a zoom operation.

[0056] Specifically, when the target operation is a translation operation, the horizontal coordinate, the vertical coordinate, or both the horizontal coordinate and the vertical coordinate may change, but the overall size of the panoramic picture remains unchanged, that is, the panoramic distance change amount corresponding to the translation operation includes the change amount corresponding to the horizontal coordinate and / or the vertical coordinate. When the target operation is a zoom operation, the horizontal coordinate and / or the vertical coordinate change, and the overall size of the panoramic picture will also change. For example, when the target operation is a zoom operation, the overall size of the panoramic picture will become larger, that is, the panoramic distance change amount corresponding to the zoom operation includes the change amount of the size, and includes the change amount corresponding to the horizontal coordinate and / or the vertical coordinate.

[0057] In the embodiment of the present application, the coordinates of the icon or object that issues the target operation when the target operation is detected for the first time (assuming the first coordinates), and the coordinates of the icon or object that issues the target operation when the target operation is detected for the last time (assuming the second coordinates), are determined, and the above-mentioned panoramic distance change is determined based on the first coordinates and the second coordinates. The panoramic distance change is the corresponding distance change in the screen coordinate system.

[0058] For example, when the target operation is a translation operation, and the object issuing the target operation is a user's finger, the above-mentioned panoramic distance change is determined by detecting the moving distance of the user's finger. For example, assuming that the coordinate A when the user's finger is first detected is (x1, y1), and the coordinate B when the user's finger is last detected is (x2, y1), then the distance change corresponding to the translation operation is (x2-x1).

[0059] S42, determining the second screen coordinates of the panoramic picture according to the panoramic distance change and the first screen coordinates of the panoramic picture, wherein the first screen coordinates of the panoramic picture are the screen coordinates corresponding to the panoramic picture before the target operation is detected, the screen coordinates are the coordinates in the screen coordinate system established with the screen of the client playing the panoramic picture, and the second screen coordinates of the panoramic picture are the screen coordinates corresponding to the panoramic picture after the target operation is detected.

[0060] Among them, the first screen coordinates of the panoramic picture and the second screen coordinates of the panoramic picture both include a horizontal coordinate and a vertical coordinate, and the first screen coordinates of the panoramic picture can indicate the range of the panoramic picture before the target operation is detected. For example, when the screen of the panoramic picture playback client is rectangular, the first screen coordinates of the panoramic picture include at least 4, that is, the screen coordinates corresponding to the 4 vertices of the rectangle. Similarly, the second screen coordinates of the panoramic picture can indicate the range of the panoramic picture after the target operation is detected, and the number of the second screen coordinates of the panoramic picture is equal to the number of the first screen coordinates of the panoramic picture.

[0061] Specifically, when the panoramic distance variation includes the variation corresponding to the horizontal coordinate, the horizontal coordinate in the second screen coordinate of the panoramic picture is calculated by adding or subtracting the variation corresponding to the horizontal coordinate and the horizontal coordinate of the first screen coordinate of the panoramic picture; similarly, when the panoramic distance variation includes the variation corresponding to the vertical coordinate, the vertical coordinate in the second screen coordinate of the panoramic picture is calculated by adding or subtracting the variation corresponding to the vertical coordinate and the vertical coordinate of the first screen coordinate of the panoramic picture. Whether addition or subtraction is required is determined by the direction corresponding to the target operation. For example, when the translation operation is to translate to the right, the horizontal coordinate needs to be added, and when the translation operation is to translate downward, the vertical coordinate needs to be added.

[0062] S43, determining the vertex coordinates of the panoramic image according to the second screen coordinates of the panoramic image and a preset screen vertex mapping relationship, wherein the vertex coordinates are coordinates in a vertex coordinate system established by the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the vertex coordinate system.

[0063] In an embodiment of the present application, when the screen and viewport of the panoramic picture playback client are determined, the mapping relationship between the screen and the viewport is equivalent to fixed, that is, the above-mentioned screen vertex mapping relationship is equivalent to fixed, and therefore, the screen vertex mapping relationship can be determined in advance.

[0064] Optionally, the above screen vertex mapping relationship may be determined in the following manner:

[0065] Use the upper left corner of the panoramic screen as the origin to create the following Figure 5 The normalized screen coordinate system shown. Figure 5 In the figure, the length and width of the screen are taken as 1 unit length of the horizontal axis and the vertical axis respectively. It is assumed that the length and width of the viewfinder are ratioW and ratioH times the length and width of the screen. When ratioW is equal to ratioH, it indicates that the ratio of the length and width of the viewfinder is equal. Otherwise, it indicates that the ratio of the length and width of the viewfinder is not equal.

[0066] Assuming the coordinates of the upper left corner of the viewfinder are (x, y), the relative position of the viewfinder and the panoramic viewport can be expressed by (x, y, ratioW, ratioH). Assuming the coordinate range of the screen is the same as the coordinate range of the texture map, (x, y, ratioW, ratioH) can also describe the relative position of the viewfinder and the texture map, and the position parameter value range is [0, 1].

[0067] exist Figure 5 After superimposing the vertex coordinate system in the viewfinder, we get Figure 6 In the vertex coordinate system, the viewfinder can be regarded as the viewport of the close-up image graphics rendering program (i.e., the close-up viewport), and the complete texture map displayed in the panoramic viewport is also the texture map of the close-up image. The image in the viewfinder viewport (i.e., the close-up viewport) will be displayed on the screen of the close-up image playback client. Among them, Figure 6 In the vertex coordinate system, the upper left corner of the viewfinder is fixed at (-1,1), the lower left corner is (-1,-1), and the side length is 2.

[0068] Will Figure 6 Process as Figure 7 The form shown, from Figure 7 It can be seen that x, y are normalized coordinates with values ​​of [0,1], L1=x, and L2+L3+L4=1, L2=y, L3=ratioH, then L4=1-y-ratioH.

[0069] Due to x vertex ,y vertex are all less than 0, and -x vertex =J1+J2,-y vertex =J3+J4, i.e. J1=-xvertex -1, J4 = -y vertex -1.

[0070] Also because Right now Similarly,

[0071] For the screen coordinate system and the vertex coordinate system, the same parameter corresponds to the same ratio of the width of the outer rectangle and the same ratio of the height (or length) of the outer rectangle, that is:

[0072] Substituting specific values, we get:

[0073] After simplification, we get:

[0074] That is, the screen vertex mapping relationship is:

[0075]

[0076] By changing the above formula (1), we get the following formula (2):

[0077]

[0078] After obtaining the above-mentioned screen vertex mapping relationship, the second screen coordinate of the panoramic image is substituted into the (x, y) in the above-mentioned formula (1) to obtain the vertex coordinate (x vertex ,y vertex ). It should be pointed out that, since the vertex coordinates of the panoramic picture are coordinates on the viewport coordinate system, and the second screen coordinates of the panoramic picture can indicate the range of the panoramic picture after the target operation is detected, the vertex coordinates of the panoramic picture calculated according to the second screen coordinates of the panoramic picture can also indicate the range of the texture map that needs to be rendered.

[0079] S44, rendering a texture map corresponding to the vertex coordinates of the panoramic picture.

[0080] After the vertex coordinates of the panoramic picture are determined, it is equivalent to determining the texture map range that needs to be rendered. Therefore, the texture map range indicated by the vertex coordinates of the panoramic picture can be rendered.

[0081] S45, displaying the rendered image through the panoramic image playback client.

[0082] Specifically, the rendered picture is displayed at the second screen coordinates of the panoramic picture.

[0083] Since the target operation includes a translation operation and / or a zoom operation, and both the translation operation and the zoom operation will produce a certain distance change, therefore, if the target operation is detected in the panoramic picture displayed by the panoramic picture playback client, the distance change amount corresponding to the target operation can be determined to obtain the panoramic distance change amount. The first screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture before the target operation is detected, and the second screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture after the target operation is detected. Therefore, the second screen coordinate of the panoramic picture can be determined according to the panoramic distance change amount and the first screen coordinate of the panoramic picture. In addition, since the panoramic picture is obtained by rendering the projection information of the texture map projected into the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the above vertex coordinate system, the vertex coordinates of the panoramic picture can be determined according to the second screen coordinates of the panoramic picture and the preset screen vertex mapping relationship, that is, the coordinates of the panoramic picture in the vertex coordinate system established by the viewport can be determined, which is equivalent to determining the range of the texture map to be rendered, so that after rendering the texture map corresponding to the vertex coordinates of the panoramic picture, the rendered picture can be displayed by the panoramic picture playback client, that is, the picture matching the panoramic distance change amount is displayed. That is, in the embodiment of the present application, due to the change in the vertex position corresponding to the texture map, the picture range displayed on the screen of the panoramic picture playback client is changed (that is, the picture range displayed on the screen of the panoramic picture playback client is no longer fixed), thereby improving the flexibility of the picture displayed by the panoramic picture playback client, and then improving the probability that the picture displayed by the panoramic picture playback client meets the needs of the user. Furthermore, since the display range of the panoramic picture is adjustable, when the framing range corresponding to the viewfinder is small, the panoramic picture can be enlarged so that the viewfinder can be enlarged synchronously. In this way, the user can more accurately judge whether the framing range of the viewfinder is the range that the user actually wants to select based on the enlarged viewfinder, which is conducive to improving the accuracy of the framing range.

[0084] The above describes how the panoramic picture displayed on the screen of the panoramic picture playback client changes according to the target operation after the target operation is detected on the panoramic picture (i.e., the target operation is detected on the picture within the range of the panoramic picture except the viewfinder). When the panoramic picture playback client includes a viewfinder, if the panoramic picture displayed on the screen changes, the screen coordinates of the viewfinder in the panoramic picture playback client may or may not change.

[0085] Optionally, considering that when the panoramic picture displayed on the screen of the panoramic picture playback client changes, if the screen coordinates of the viewfinder in the panoramic picture playback client remain unchanged, the position displayed by the viewfinder will not match the actual framing area in the texture map. Therefore, in order to make the position displayed by the viewfinder match the actual framing area in the texture map, the screen coordinates of the viewfinder on the screen need to be synchronously updated during the change of the vertex coordinates of the texture map. That is, in the above S45, the dual-picture display method provided by the embodiment of the present application also includes:

[0086] The viewfinder is corrected so that the first relative position and the second relative position remain unchanged, wherein the first relative position is: the relative position of the framing area of ​​the viewfinder on the texture map and the texture map before the target operation is detected, and the second relative position is: the relative position of the framing area of ​​the viewfinder on the texture map and the texture map after correction.

[0087] Specifically, the screen coordinates of the viewfinder relative to the panoramic viewport before the target operation is detected are determined. Since the relative position of the viewfinder and the screen of the panoramic viewport is the same as the relative position of the framing area and the texture map, the relative position of the framing area and the texture map can be determined based on the relative position of the viewfinder and the screen of the panoramic viewport. When the relative position of the viewfinder and the screen of the panoramic viewport is the relative position corresponding to before the target operation is detected, the above-mentioned first relative position can be determined based on the relative position. In this way, when the panoramic picture playback client adjusts the panoramic picture it displays according to the detected target operation, the viewfinder adjusted with the panoramic picture is corrected so that the relative position of the framing area and the texture map corresponding to the corrected viewfinder (i.e., the second relative position) remains unchanged from the first relative position.

[0088] In some embodiments, when the panoramic picture displayed on the screen of the panoramic picture playback client changes (such as translation change or zoom change), the viewfinder located in the screen will also change, such as screen coordinates change, or both screen coordinates and size change. Therefore, when correcting the viewfinder, the screen coordinates need to be considered, or the screen coordinates and size need to be considered. At this time, the correction of the viewfinder includes:

[0089] The position of the viewfinder is corrected, where the position of the viewfinder includes screen coordinates, or includes screen coordinates and size.

[0090] Among them, when correcting the screen coordinates of the viewfinder, the screen coordinates corresponding to the corrected viewfinder can be calculated first, and then the current screen coordinates of the viewfinder can be corrected to the calculated corrected screen coordinates to realize the correction of the screen coordinates. Specifically, the screen coordinates of the viewfinder are determined according to the first texture coordinates of the viewfinder, the vertex coordinates of the panoramic picture and the preset screen texture mapping relationship, wherein the first texture coordinates of the viewfinder are the texture coordinates corresponding to the viewfinder before the target operation is detected (i.e., the texture coordinates corresponding to the framing area), the texture coordinates are the coordinates in the texture coordinate system established by the texture map, and the preset screen texture mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the texture coordinate system. It should be pointed out that when the position of the viewfinder on the screen is fixed, the coordinates of the screen coordinates of the viewfinder in the screen coordinate system in the texture coordinate system (such as the first texture coordinates of the viewfinder) can be calculated according to the mapping relationship between the screen coordinate system and the texture coordinate system.

[0091] Among them, when correcting the size of the viewfinder, the size of the corrected viewfinder can be calculated in the following way: based on the proportional relationship between the size of the viewfinder and the size of the screen of the panoramic picture playback client and the proportional relationship between the size of the texture map and the size of the screen of the panoramic picture playback client, the new size of the viewfinder is calculated.

[0092] The preset screen texture mapping relationship can be determined by the following relationship:

[0093] After the size of the viewfinder on the screen is determined, it is equivalent to determining the relative position of the viewfinder corresponding to the viewfinder and the texture map, and the relative position will remain unchanged temporarily. To describe the relative relationship between the set viewfinder and the screen, refer to Figure 8 , establish a normalized screen coordinate system with the upper left corner of the texture map, assuming that the normalized coordinates of the upper left corner of the viewfinder are (areaX, areaY), and the width and height of the viewfinder are ratioW and ratioH times the width and height of the texture map, then the relative position of the viewfinder in the texture map is (areaX, areaY, ratioW, ratioH). This position includes information about coordinates (i.e., areaX, areaY) and size (i.e., ratioW, ratioH).

[0094] The vertex coordinate system is established based on the panoramic viewport. Assuming that the coordinate value range of the vertex coordinate system of the viewport is fixed to [-1, 1], the side length of the panoramic viewport is 2 units. Figure 8 In the vertex coordinate system, the vertex coordinate of the lower left corner of the texture map is (x vertex ,y vertex ), the width of the texture map is sideW, and the height is sideH, then (xvertex ,y vertex , sideW, sideH) to describe the position of the texture map in the vertex coordinate system. This position is determined each time the panoramic image in the panoramic viewport is adjusted. When the side length of the panoramic viewport is M units, the texture map is scaled relative to the width and height of the panoramic viewport by sideW / M and sideH / M times, respectively. For example, when M is 2, the above sideW / M and sideH / M are sideW / 2 and sideH / 2, respectively. Of course, if the panoramic image is scaled proportionally, the two ratios of sideW / M and sideH / M are equal.

[0095] The normalized coordinates of the upper left corner of the viewfinder are (areaX, areaY), and the normalized coordinates of the lower left corner of the texture map are (0, 1). The relative coordinates of the two are (areaX, areaY-1). A texture coordinate system with the same normalization is established at the lower left corner of the texture map. The y axes of the two coordinate systems are opposite, so the texture coordinates of the upper left corner of the viewfinder are (areaX, 1-areaY). Combined with the above-mentioned texture map's width and height scaling factors relative to the panoramic viewport, when the texture coordinates are converted to vertex coordinates, the horizontal and vertical coordinates are multiplied by the coefficients sideW / 2 and sideH / 2 respectively, and the coordinates of the upper left corner of the viewfinder in the panoramic viewport vertex coordinate system are (sideW*areaX / 2, sideH*(1-areaY) / 2).

[0096] Assume that Figure 8 The viewport and texture map in are considered as the viewfinder and screen respectively. Figure 8 The normalized coordinates (x′, y′) of the upper left corner of the viewport in corresponds to the screen coordinates (x, y) of the upper left corner of the viewfinder. Figure 8 The aspect ratio of the middle viewport to the texture map, 2 / sideW and 2 / sideH, corresponds to the aspect ratio of the viewfinder to the screen, ratioW and ratioH. Substituting into formula (2), we get:

[0097]

[0098] Combining the above-mentioned coordinate difference between the upper left corner of the viewfinder and the panoramic viewport in the normalized coordinate system, the screen coordinate of the upper left corner of the viewfinder relative to the upper left corner of the panoramic viewport can be calculated. Combining formula (1) and formula (3), we get:

[0099]

[0100] Get the pixel width and height of the screen of the panoramic screen playback client (that is, the pixel width and height of the panoramic viewport). Assuming that the pixel width and pixel height are width and height respectively, the pixel width and height of the texture map are sideH*height / 2. Combined with formula (4) as a coefficient, we get the screen coordinates of the viewfinder in the panoramic viewport:

[0101]

[0102] The pixel width and height of the viewfinder are:

[0103]

[0104] The above formula (5) is a preset screen texture mapping relationship. areaX and areaY in formula (5) are the first texture coordinates of the viewfinder. vertex ,y vertex is the vertex coordinate of the panoramic image. Since the width and height of the texture map are fixed (i.e., sideW and sideH are fixed), and the pixel width and height of the screen are also fixed (i.e., width and height are fixed), the screen coordinate of the viewfinder (x) can be calculated by substituting the first texture coordinate of the viewfinder and the vertex coordinate of the panoramic image into formula (5). ui ,y ui ).

[0105] The above formula (6) is used to correct the size of the viewfinder. In formula (6), ratioW and ratioH are the ratios of the size of the viewfinder to the size of the screen of the panoramic screen playback client. and sideH*height / 2 are the ratios between the size of the texture map and the size of the screen of the panoramic picture playback client. That is, the corrected size of the viewfinder can be determined based on the ratio between the size of the viewfinder and the size of the screen of the panoramic picture playback client and the ratio between the size of the texture map and the size of the screen of the panoramic picture playback client.

[0106] In order to more clearly describe the difference between the viewfinder before and after correction, the following Fig. 9 Give a description.

[0107] exist Fig. 9 When the panoramic picture detects a zoom operation or a translation operation, it is equivalent to the texture map being zoomed or translated. At this time, the viewfinder needs to be corrected to ensure that the viewfinder in the picture displayed on the screen of the panoramic picture playback client or the close-up picture playback client is in the viewfinder area corresponding to the texture map, and its relative position with the texture map remains unchanged before and after the target operation is performed on the panoramic picture.

[0108] In some embodiments, the playback device of the embodiment of the present application further includes a close-up picture playback client, and the close-up picture playback client is used to enlarge and display the panoramic picture captured by the viewfinder. To facilitate the distinction from the panoramic picture, the picture displayed by the close-up picture playback client is called a close-up picture. In the embodiment of the present application, the picture content displayed by the close-up picture playback client can also be adjusted by directly operating the viewfinder. At this time, the dual-picture display method provided by the embodiment of the present application further includes:

[0109] A1. When the viewfinder detects a target operation, determine a distance change corresponding to the target operation to obtain a viewfinder distance change.

[0110] Specifically, detecting the target operation in the viewfinder includes detecting the target operation on a picture captured by the viewfinder, and also includes detecting the target operation on a control of the viewfinder itself (such as a display frame corresponding to the viewfinder).

[0111] In the embodiment of the present application, when the target operation is a translation operation, the viewfinder distance change amount corresponding to the translation operation includes the change amount corresponding to the horizontal coordinate and / or the vertical coordinate. When the target operation is a zoom operation, the viewfinder distance change amount corresponding to the zoom operation includes the change amount of the size, and includes the change amount corresponding to the horizontal coordinate and / or the vertical coordinate. Since the determination process of the viewfinder distance change amount is similar to the determination process of the panoramic distance change amount, it will not be repeated here.

[0112] Optionally, the coordinate system corresponding to the above viewfinder distance change may be a screen coordinate system or a texture coordinate system.

[0113] A2. Update the viewfinder according to the viewfinder distance change and the first position of the viewfinder, wherein the first position of the viewfinder is the position corresponding to the viewfinder before the target operation is detected, and the position includes the coordinate information and / or size of the viewfinder.

[0114] Optionally, when the coordinate systems corresponding to the viewfinder distance change and the first position of the viewfinder are different, they need to be converted to the same coordinate system before performing the corresponding operation. For example, when the viewfinder distance change is a change in the screen coordinate system, and the first position of the viewfinder is the coordinate of the viewfinder in the texture coordinate system before the above-mentioned target operation is detected, the viewfinder distance change can be converted from the screen coordinate system to the texture coordinate system according to a preset screen texture mapping relationship (i.e., the mapping relationship between the screen coordinate system and the texture coordinate system) to obtain the change in the texture coordinate system, and then the coordinates of the viewfinder in the texture coordinate system after the above-mentioned target operation is detected are determined according to the change in the texture coordinate system and the first position of the viewfinder (assuming it is the second position of the viewfinder), and then the viewfinder displayed by the panoramic screen playback client is updated according to the second position of the viewfinder, such as converting the second position of the viewfinder to a position in the screen coordinate system, and the converted position is the updated position of the viewfinder. Of course, if the viewfinder distance variation is a variation in a texture coordinate system, there is no need to convert the coordinate system of the viewfinder distance variation, and direct calculation is sufficient.

[0115] Optionally, when the viewfinder distance change amount and the coordinate system corresponding to the first position of the viewfinder are the same, there is no need to convert the coordinate system. For example, when the viewfinder distance change amount is the change amount in the screen coordinate system, and the first position of the viewfinder is the coordinate of the viewfinder in the screen coordinate system before the above-mentioned target operation is detected, the position of the viewfinder in the screen coordinate system after the update can be directly calculated based on the viewfinder distance change amount and the first position of the viewfinder. Of course, the viewfinder distance change amount can also be converted from the screen coordinate system to the texture coordinate system to obtain the change amount in the texture coordinate system, and the first position of the viewfinder can be converted from the screen coordinate system to the texture coordinate system to obtain the third position of the viewfinder, and then the coordinates of the viewfinder in the texture coordinate system after the target operation is detected are calculated based on the change amount in the texture coordinate system and the third position of the viewfinder (assuming it is the second position of the viewfinder), and finally the viewfinder is updated according to the second position of the viewfinder.

[0116] In the embodiment of the present application, considering that the target operation on the viewfinder will directly affect the screen coordinates and size of the viewfinder in the panoramic picture playback client, the position of the viewfinder in the screen of the panoramic picture playback client can be updated in real time, and the coordinate difference generated by the translation and the side length ratio difference generated by the scaling during the operation are recorded, and the position of the viewfinder after the operation is calculated in combination with the position of the viewfinder before the operation. For example, assuming that the position of the viewfinder in the texture coordinate system before the operation (i.e., the first position of the viewfinder) is (areaX, areaY, ratioW, ratioH), the horizontal and vertical translation components caused by the translation during the operation are accumulated as Δx′ and Δy′ respectively, and the width and height ratio differences caused by the scaling are multiplied as ΔratioW and ΔratioH, then the viewfinder position in the texture map after the operation (i.e., the second position of the viewfinder) is (areaX+Δx′, areaY+Δy′, ratioW*ΔratioW, ratioH*ΔratioH).

[0117] A3. Update the image displayed by the close-up image playback client according to the updated position of the viewfinder.

[0118] Specifically, considering that the image displayed by the close-up image playback client is related to the vertex coordinate range of the texture map projected into the close-up viewport, the vertex coordinates of the viewfinder corresponding to the framing area of ​​the texture map after the target operation can be calculated by substituting the updated viewfinder position (assuming it is the second position of the viewfinder) into formula (1), and the texture map within the vertex coordinate range is rendered, and the rendered image is displayed by the close-up image playback client.

[0119] In the embodiment of the present application, since target operations can be performed on the close-up picture in the close-up picture playback client, and the playback device, after detecting the target operation, jointly updates the position of the viewfinder displayed by the panoramic picture playback client, and updates the picture displayed by the close-up picture playback client, the number of playback clients that can perform target operations is increased (target operations can be performed not only on the panoramic picture, but also on the close-up picture), thereby improving the user experience.

[0120] In order to more clearly describe the process of controlling the close-up image when performing target operation on the viewfinder, the following Fig.10 Give a description.

[0121] exist Fig.10 In the Texture Mapping Tool, a close-up viewport on a texture map is used to select the graphic range of the texture map that is projected onto the close-up viewport.

[0122] When the user performs a panning operation (or zooming operation) on the viewfinder on the screen of the panoramic screen playback client, the playback device will calculate the viewfinder distance change corresponding to the panning operation (or zooming operation), determine the position of the viewfinder after the user performs the panning operation (or zooming operation) based on the viewfinder distance change and the first position of the viewfinder (i.e., the position before the user performs the panning operation (or zooming operation)), and update the viewfinder based on the determined position. At the same time, the texture vertex position in the close-up viewport (i.e., the vertex coordinates corresponding to the viewfinder) is determined based on the position, and the corresponding picture is rendered based on the texture vertex position to link and update the picture displayed by the close-up playback client.

[0123] In some embodiments, the position of the viewfinder in the panoramic picture playback client can also be linked to control by performing a target operation on the picture displayed by the close-up picture playback client. In this case, the dual-picture display method provided in the embodiment of the present application further includes:

[0124] B1. When a target operation is detected in the close-up picture displayed by the close-up picture playback client, a distance change corresponding to the target operation is determined to obtain a close-up distance change.

[0125] The process of determining the close-up distance variation is similar to the process of determining the panoramic distance variation, and will not be described in detail here.

[0126] B2. Determine the second vertex position of the close-up picture according to the close-up distance change and the first vertex position of the close-up picture, wherein the first vertex position of the close-up picture is the vertex position corresponding to the close-up picture before the target operation is detected, and the second vertex position of the close-up picture is the vertex position corresponding to the close-up picture after the target operation is detected, and both the first vertex position of the close-up picture and the second vertex position of the close-up picture include vertex coordinates and sizes.

[0127] Specifically, considering that the target operation directly acts on the close-up picture, the update of the close-up picture can be achieved by updating the vertex position of the texture map. For example, assuming that before the target operation is detected, the vertex position corresponding to the texture map in the close-up viewport is (vertexX, vertexY, sideW, sideH) (i.e., the first vertex position of the close-up picture), wherein the first two parameters in the vertex position represent the vertex coordinates, and the last two parameters represent the size (i.e., width and height). Assuming that the horizontal and vertical translation components caused by the translation operation are accumulated as Δx″ and Δy″ respectively, and the width and height ratio differences caused by the scaling operation are accumulated as ΔratioW and ΔratioH, then the vertex position of the texture map after the target operation is (vertexX+Δx″,vertexY+Δy″,sideW*ΔratioW,sideH*ΔratioH) (i.e., the second vertex position of the close-up picture).

[0128] B3. Render a texture map corresponding to the second vertex position of the close-up image.

[0129] Specifically, the second vertex position of the close-up picture is applied to the graphics rendering program in the close-up picture, that is, the texture picture in the close-up viewport is updated.

[0130] B4. The client displays the rendered image through the above close-up image playback.

[0131] In the embodiment of the present application, when the close-up picture detects the target operation, the second vertex position of the close-up picture is determined according to the distance change corresponding to the target operation (i.e., the close-up distance change) and the first vertex position of the close-up picture. Since the first vertex position of the close-up picture is the vertex position corresponding to the close-up picture before the target operation is detected, and the second vertex position of the close-up picture is the vertex position corresponding to the close-up picture after the target operation is detected, and both vertex positions include vertex coordinates and sizes, and the vertex coordinates are coordinates in a coordinate system established according to the viewport, that is, the second vertex position of the close-up picture can reflect the graphic range projected to the viewport in the texture map, therefore, the part of the texture map that needs to be rendered can be determined according to the second vertex position of the close-up picture, so that the picture displayed by the close-up picture playback client can be updated according to the detected target operation.

[0132] In some embodiments, considering that the close-up picture is determined based on the picture captured by the viewfinder in the panoramic picture playback client, in order to ensure the consistency between the close-up picture and the picture captured by the viewfinder, after the close-up picture is adjusted, the position of the viewfinder in the panoramic picture playback client needs to be adjusted in conjunction. That is, after the above B2, it also includes:

[0133] The position of the viewfinder is corrected, where the position of the viewfinder includes screen coordinates, or includes screen coordinates and size.

[0134] In an embodiment of the present application, the relative position of the texture map and the close-up viewport is converted into the relative position of the panoramic viewport and the viewfinder to calculate the corrected position of the viewfinder, so that the picture selected by the corrected viewfinder is consistent with the close-up picture.

[0135] For example, assuming that the second vertex position of the close-up image is (vertexX+Δx″,vertexY+Δy″,sideW*ΔratioW,sideH*ΔratioH), substitute the vertex coordinates (vertexX+Δx″,vertexY+Δy″) representing the lower left corner of the texture map in the second vertex position of the close-up image into formula (2) to calculate the normalized coordinates (x,y) of the upper left corner of the close-up viewport relative to the upper left corner of the texture map. Figure 8 It can be seen that the width and height ratios of the close-up viewport relative to the texture map are (2 / sideW*ΔratioW, 2 / sideH*ΔratioH / 2), and the relative position of the texture map to the close-up viewport is consistent with the relative position of the panoramic viewport and the viewfinder. Therefore, (x, y, 2 / sideW*ΔratioW, 2 / sideH*ΔratioH / 2) is equivalent to the viewfinder position relative to the texture map in the panoramic viewport, and (x, y, 2 / sideW*ΔratioW, 2 / sideH*ΔratioH / 2) corresponds to (areaX, areaY, ratioW, ratioH) in formula (5) and formula (6), that is, substitute the calculated "x" into "areaX" in formula (5), substitute the calculated "y" into "areaY" in formula (5), and "(x)" in formula (5) is equal to (areaX, areaY, ratioW, ratioH). vertex ,y vertex)” is “(vertexX+Δx″,vertexY+Δy″)”. Since the other variables in formula (5) are known after the texture map, screen and viewport are determined, the screen coordinates of the viewfinder in the panoramic picture playback client at this time can be calculated according to formula (5). Similarly, by substituting “2 / sideW*ΔratioW” in (x,y,2 / sideW*ΔratioW,2 / sideH*ΔratioH / 2) into “ratioW” in formula (6), and substituting “2 / sideH*ΔratioH / 2” into “ratioH” in formula (6), the length and width of the viewfinder in the panoramic picture playback client at this time can be calculated. The position of the viewfinder in the screen can be adjusted according to the calculated screen coordinates, length and width of the viewfinder. That is, by correcting the viewfinder, real-time linkage from the screen display range of the close-up picture playback client to the viewfinder of the panoramic picture playback client is realized, ensuring the consistency between the picture captured by the viewfinder in the panoramic picture and the picture displayed in the close-up picture.

[0136] In order to more clearly describe the process of controlling the viewfinder in the panoramic picture when performing target operation on the close-up picture, the following is combined with Fig.11 Give a description.

[0137] exist Fig.11 In the Texture Mapping Tool, a close-up viewport on a texture map is used to select the graphic range of the texture map that is projected onto the close-up viewport.

[0138] When a user performs a translation operation (or a zoom operation) on a close-up picture on the screen of a close-up picture playback client, the playback device will calculate the close-up distance change corresponding to the translation operation (or zoom operation), and determine the position of the close-up picture after the user performs the translation operation (or zoom operation) (i.e., the second vertex position of the close-up picture) according to the close-up distance change and the first vertex position of the close-up picture (i.e., the position before the user performs the translation operation (or zoom operation)), and render the corresponding texture map part according to the determined second vertex position of the close-up picture to update the close-up picture. At the same time, the position of the viewfinder on the screen of the panoramic picture playback client is calculated according to the second vertex position of the close-up picture (the position includes screen coordinates, or includes screen coordinates and size), and the viewfinder is corrected according to the calculated position of the viewfinder.

[0139] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0140] Corresponding to the dual-image display method described in the above embodiment, Fig.12A structural block diagram of a dual-screen display device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0141] Reference Fig.12 The dual-image display device 12 is applied to a playback device including a panoramic image playback client, and the dual-image display device 12 includes: a panoramic distance change amount determination module 121, a panoramic image second screen coordinate determination module 122, a panoramic image vertex coordinate determination module 123, a texture map rendering module 124, and an image display module 125. Among them:

[0142] The panoramic distance change determination module 121 is used to determine the distance change corresponding to the target operation when the panoramic picture displayed by the panoramic picture playback client detects a target operation, so as to obtain the panoramic distance change, wherein the panoramic picture is obtained by rendering the projection information of the texture map projected into the viewport, and the target operation includes a translation operation and / or a zoom operation.

[0143] The second screen coordinate determination module 122 of the panoramic picture is used to determine the second screen coordinates of the panoramic picture according to the above-mentioned panoramic distance change and the first screen coordinates of the panoramic picture, wherein the first screen coordinates of the panoramic picture are the screen coordinates corresponding to the panoramic picture before the above-mentioned target operation is detected, the above-mentioned screen coordinates are the coordinates in the screen coordinate system established with the screen of the client playing the panoramic picture, and the second screen coordinates of the panoramic picture are the screen coordinates corresponding to the panoramic picture after the above-mentioned target operation is detected.

[0144] The vertex coordinate determination module 123 of the panoramic picture is used to determine the vertex coordinates of the above-mentioned panoramic picture according to the second screen coordinates of the above-mentioned panoramic picture and the preset screen vertex mapping relationship, wherein the above-mentioned vertex coordinates are the coordinates in the vertex coordinate system established by the above-mentioned viewport, and the above-mentioned preset screen vertex mapping relationship is used to reflect the mapping relationship between the above-mentioned screen coordinate system and the above-mentioned vertex coordinate system.

[0145] The texture map rendering module 124 is used to render the texture map corresponding to the vertex coordinates of the panoramic picture.

[0146] The picture display module 125 is used to display the rendered picture through the panoramic picture playback client.

[0147] In the embodiment of the present application, since the vertex position corresponding to the texture map is changed, the range of the picture displayed on the screen of the panoramic picture playback client is changed, thereby improving the flexibility of the picture displayed by the panoramic picture playback client, and further improving the probability that the picture displayed by the panoramic picture playback client meets the needs of the user. Furthermore, since the display range of the panoramic picture can be adjusted, when the framing range corresponding to the viewfinder is small, the panoramic picture can be enlarged so that the viewfinder is synchronously enlarged. In this way, the user can more accurately judge whether the framing range of the viewfinder is the range that the user actually wants to select based on the enlarged viewfinder, which is conducive to improving the accuracy of the framing range.

[0148] In some embodiments, the panoramic picture playback client includes a viewfinder. When the dual-picture display device 12 provided in the embodiment of the present application displays the rendered picture through the panoramic picture playback client, it also includes:

[0149] The first viewfinder correction module is used to correct the viewfinder so that the first relative position and the second relative position remain unchanged, wherein the first relative position is: the relative position of the framing area of ​​the viewfinder on the texture map and the texture map before the target operation is detected, and the second relative position is: the relative position of the framing area of ​​the viewfinder on the texture map and the texture map after correction.

[0150] In some embodiments, the viewfinder first correction module is specifically used for:

[0151] The position of the viewfinder is corrected, where the position of the viewfinder includes screen coordinates, or includes screen coordinates and size.

[0152] In some embodiments, the playback device further includes a close-up picture playback client, and the close-up picture playback client is used to enlarge and display the panoramic picture captured by the viewfinder, and the dual-picture display device 12 further includes:

[0153] The viewfinder distance change determination module is used to determine the distance change corresponding to the target operation when the viewfinder detects the target operation, so as to obtain the viewfinder distance change.

[0154] A viewfinder update module is used to update the viewfinder according to the above-mentioned viewfinder distance change and the first position of the viewfinder, wherein the first position of the viewfinder is the position corresponding to the viewfinder before the above-mentioned target operation is detected, and the above-mentioned position includes the coordinate information and / or size of the viewfinder.

[0155] The close-up picture updating module is used to update the picture displayed by the close-up picture playing client according to the updated position of the viewfinder.

[0156] In some embodiments, the first position of the viewfinder is a position corresponding to the viewfinder in the texture coordinate system before the target operation is detected, and the viewfinder update module is specifically used for:

[0157] Determine the second position of the viewfinder according to the viewfinder distance variation and the first position of the viewfinder, the second position of the viewfinder being the position of the viewfinder corresponding to the texture coordinate system after the target operation is detected;

[0158] The viewfinder is updated according to the second position of the viewfinder.

[0159] In some embodiments, the dual-image display device 12 further includes:

[0160] The close-up distance variation determination module is used to determine the distance variation corresponding to the target operation when the close-up image displayed by the close-up image playback client detects a target operation, so as to obtain the close-up distance variation.

[0161] A second vertex position determination module for a close-up picture is used to determine the second vertex position of the close-up picture based on the above-mentioned close-up distance change and the first vertex position of the close-up picture, wherein the first vertex position of the close-up picture is the vertex position corresponding to the close-up picture before the above-mentioned target operation is detected, and the second vertex position of the close-up picture is the vertex position corresponding to the close-up picture after the above-mentioned target operation is detected, and the first vertex position of the close-up picture and the second vertex position of the close-up picture both include vertex coordinates and sizes.

[0162] The close-up picture rendering module is used to render a texture map corresponding to the second vertex position of the close-up picture.

[0163] The close-up picture display module is used to display the rendered picture through the close-up picture playback client.

[0164] In some embodiments, the dual-screen display device 12 provided in the embodiment of the present application further includes:

[0165] The second viewfinder correction module is used to correct the position of the viewfinder after determining the second vertex position of the close-up picture according to the close-up distance change and the first vertex position of the close-up picture. The position of the viewfinder includes screen coordinates, or includes screen coordinates and size.

[0166] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0167] Fig.13 This is a schematic diagram of the structure of a playback device provided in one embodiment of the present application. Fig.13 As shown, the playback device 13 of this embodiment includes: at least one processor 130 ( Fig.13 Only one processor is shown), a memory 131, a computer program 132 stored in the memory 131 and executable on the at least one processor 130, and a panoramic picture playback client 133 and a close-up picture playback client 134 for displaying the picture processed by the processor 130. When the processor 130 executes the computer program 132, it combines with the panoramic picture playback client 133 and the close-up picture playback client 134 to implement the steps in any of the above-mentioned method embodiments.

[0168] The playback device 13 may include, but is not limited to, a processor 130 and a memory 131. Those skilled in the art will appreciate that Fig.13 It is only an example of the playback device 13 and does not constitute a limitation on the playback device 13. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, for example, it may also include input and output devices, network access devices, etc.

[0169] The processor 130 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0170] In some embodiments, the memory 131 may be an internal storage unit of the playback device 13, such as a hard disk or memory of the playback device 13. In other embodiments, the memory 131 may also be an external storage device of the playback device 13, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the playback device 13. Further, the memory 131 may also include both an internal storage unit of the playback device 13 and an external storage device. The memory 131 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 131 may also be used to temporarily store data that has been output or is to be output.

[0171] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0172] An embodiment of the present application also provides a network device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0173] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0174] An embodiment of the present application provides a computer program product. When the computer program product is run on a playback device, the playback device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0175] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / playback device, a recording medium, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, RandomAccess Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0176] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0177] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0178] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0179] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0180] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A dual-picture display method, characterized in that: Applied to a playback device including a panoramic picture playback client, the dual-picture display method includes: When a target operation is detected in the panoramic picture displayed by the panoramic picture playback client, a distance change amount corresponding to the target operation is determined to obtain a panoramic distance change amount, wherein the panoramic picture is obtained by rendering projection information of a texture map projected into a viewport, and the target operation includes a translation operation and / or a zoom operation; Determining a second screen coordinate of the panoramic picture according to the panoramic distance change and the first screen coordinate of the panoramic picture, wherein the first screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture before the target operation is detected, the screen coordinate is the coordinate in a screen coordinate system established by the screen of the panoramic picture playing client, and the second screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture after the target operation is detected; Determining the vertex coordinates of the panoramic picture according to the second screen coordinates of the panoramic picture and a preset screen vertex mapping relationship, wherein the vertex coordinates are coordinates in a vertex coordinate system established by the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the vertex coordinate system; Rendering a texture map corresponding to vertex coordinates of the panoramic picture; The rendered image is displayed through the panoramic image playback client.

2. The dual-image display method according to claim 1, wherein: The panoramic picture playback client includes a viewfinder, and when the panoramic picture playback client displays the rendered picture, it also includes: The viewfinder is corrected so that a first relative position and a second relative position remain unchanged, wherein the first relative position is: the relative position of a framing area of ​​the viewfinder on the texture map and the texture map before the target operation is detected, and the second relative position is: the relative position of the framing area of ​​the viewfinder on the texture map and the texture map after correction.

3. The dual-image display method according to claim 2, wherein: The correcting the viewfinder includes: The position of the viewfinder is corrected, wherein the position of the viewfinder includes screen coordinates, or includes the screen coordinates and size.

4. The dual-picture display method according to claim 2 or 3, characterized in that: The playback device further includes a close-up picture playback client, and the close-up picture playback client is used to enlarge and display the panoramic picture captured by the viewfinder. The dual-picture display method further includes: In the case where the viewfinder detects a target operation, determining a distance change amount corresponding to the target operation to obtain a viewfinder distance change amount; updating the viewfinder according to the change in the viewfinder distance and the first position of the viewfinder, wherein the first position of the viewfinder is a position corresponding to the viewfinder before the target operation is detected, and the position includes coordinate information and / or size of the viewfinder; The picture displayed by the close-up picture playback client is updated according to the updated position of the viewfinder.

5. The dual-picture display method according to claim 4, wherein: The first position of the viewfinder is a position corresponding to the viewfinder in the texture coordinate system before the target operation is detected, and the updating of the viewfinder according to the viewfinder distance change and the first position of the viewfinder includes: Determine a second position of the viewfinder according to the viewfinder distance variation and the first position of the viewfinder, wherein the second position of the viewfinder is a position corresponding to the viewfinder in the texture coordinate system after the target operation is detected; The viewfinder is updated according to the second position of the viewfinder.

6. The dual-image display method according to claim 4, wherein: The dual-picture display method further includes: When a target operation is detected in the close-up picture displayed by the close-up picture playback client, determining a distance change amount corresponding to the target operation to obtain a close-up distance change amount; Determining a second vertex position of the close-up picture according to the close-up distance variation and the first vertex position of the close-up picture, wherein the first vertex position of the close-up picture is a vertex position corresponding to the close-up picture before the target operation is detected, and the second vertex position of the close-up picture is a vertex position corresponding to the close-up picture after the target operation is detected, and both the first vertex position of the close-up picture and the second vertex position of the close-up picture include vertex coordinates and sizes; Rendering a texture map corresponding to a second vertex position of the close-up picture; The rendered image is displayed by the close-up image playback client.

7. The dual-picture display method according to claim 6, wherein: After determining the second vertex position of the close-up picture according to the close-up distance variation and the first vertex position of the close-up picture, the method further includes: The position of the viewfinder is corrected, wherein the position of the viewfinder includes screen coordinates, or includes the screen coordinates and size.

8. A dual-screen display device, characterized in that: Applicable to playback devices including panoramic screen playback clients, including: A panoramic distance variation determination module, configured to determine a distance variation corresponding to a target operation when a target operation is detected in the panoramic picture displayed by the panoramic picture playback client, so as to obtain a panoramic distance variation, wherein the panoramic picture is obtained by rendering projection information of a texture map projected into a viewport, and the target operation includes a translation operation and / or a zoom operation; a second screen coordinate determination module for a panoramic picture, configured to determine a second screen coordinate of the panoramic picture according to the panoramic distance variation and the first screen coordinate of the panoramic picture, wherein the first screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture before the target operation is detected, the screen coordinate is the coordinate in a screen coordinate system established by the screen of the panoramic picture playback client, and the second screen coordinate of the panoramic picture is the screen coordinate corresponding to the panoramic picture after the target operation is detected; a panoramic picture vertex coordinate determination module, used to determine the vertex coordinates of the panoramic picture according to the second screen coordinates of the panoramic picture and a preset screen vertex mapping relationship, wherein the vertex coordinates are coordinates in a vertex coordinate system established by the viewport, and the preset screen vertex mapping relationship is used to reflect the mapping relationship between the screen coordinate system and the vertex coordinate system; A texture map rendering module, used for rendering a texture map corresponding to the vertex coordinates of the panoramic picture; The picture display module is used to display the rendered picture through the panoramic picture playback client.

9. A playback device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Image parameter configuration method and device

    CN106506988A

  • Panoramic video view field control method and device, equipment and storage medium

    CN111198610A

  • Model element deformation processing and picture rendering method and device, equipment and medium

    CN112132934A

  • Panoramic image generation method and device, terminal and storage medium

    CN115222590A

  • Method for obtaining light-field data using a non-light-field imaging device, corresponding device, computer program product and non-transitory computer-readable carrier medium

    US20160323557A1

Cited By

  • Video frame rendering method and device, electronic equipment, readable storage medium and program product

    CN119520899A

  • Video frame rendering method and device, electronic equipment, readable storage medium and program product

    CN119520899B