Image display method and device, electronic equipment and storage medium

By obtaining different focal lengths and pan/tilt angles, dividing the collection area and using row and column coding to display panoramic images and panoramic sub-images, the problem of low image display efficiency and large computational load is solved, achieving efficient display and improving user experience.

CN118828211APending Publication Date: 2024-10-22FUJIAN HUICHUAN DIGITAL TECH
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410963523.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

In image display, due to factors such as the large number of panoramic sub-images and camera imaging distortion, it is difficult for users to directly locate a designated area. Existing technical display methods are inefficient, resulting in reduced interface aesthetics and user experience, and large amounts of calculations lead to image delays and Stuck and stopped.

Method used

By obtaining different focal lengths and pan/tilt angles, the acquisition area is divided into multiple sub-areas. Each sub-area corresponds to a row and row code. The row and row codes are used to fill in and display the panoramic image and panoramic sub-image to ensure clear and efficient display of the image.

Benefits of technology

It improves the efficiency and display range of image display, reduces the amount of calculation, avoids image delays and freezes, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118828211A_ABST
    Figure CN118828211A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an image display method and device, electronic equipment and a storage medium, and the method comprises the steps: obtaining a first focal length used for collecting a panoramic sub-image; obtaining a rotation angle interval according to the first focal length; obtaining a second focal length for collecting the panoramic image according to the first focal length; dividing the acquisition area into a plurality of acquisition sub-areas according to the rotation angle spacing; obtaining a panoramic sub-image and a panoramic image according to the first focal length and the second focal length in the pan-tilt angle corresponding to each acquisition sub-region; obtaining a row and column code of the target display area; and filling the target display area with the panoramic image corresponding to the row and column codes of the target display area to obtain a target display image. By implementing the embodiment of the invention, the display efficiency of the image can be improved, the displayable range of the image is expanded, the calculation amount in the image display process is reduced, and the problems of image delay, lagging and the like are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous application of image measurement technology in construction projects, collecting and recording panoramic images of construction sites has become an important means of engineering measurement. The collected panoramic sub-images can be enlarged to view construction details, assist users in measuring and recording construction data, and discover construction hazards in advance and take corresponding measures. However, due to the large number of panoramic sub-images, it is difficult for users to directly locate the panoramic sub-images of the specified area in actual operation. To this end, the user is usually required to click on the target area on the full-scene image first, and then display the panoramic sub-image matching the target area based on the pixel coordinates clicked by the user and the pixel mapping relationship between the panoramic image and the panoramic sub-image. In actual applications, due to factors such as camera imaging distortion, there may be certain errors in the pixel mapping relationship between the full-scene image and the panoramic sub-image. In order to improve the user experience, it is generally chosen to display multiple panoramic sub-images near the target area at the same time for the user to choose again.

[0003] At present, there are two methods for displaying multiple panoramic sub-images: 1. Directly display multiple adjacent panoramic sub-images near the target area in rows and columns, and arrange them on the user interface according to the gimbal angle when shooting. Since adjacent panoramic sub-images must have a certain overlapping area when assembling a panoramic puzzle, and there is a certain angle between adjacent panoramic sub-images taken by the rotation of the gimbal, the edges of adjacent images cannot be aligned when displayed, which reduces the aesthetics of the interface and the user experience; 2. Use image stitching technology to stitch multiple panoramic sub-images near the target area into a regional image, and display the area on the user interface, but stitching regional images requires a lot of calculation, is inefficient, and easily causes image delays. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an image display method, device, electronic device and storage medium, which can improve the display efficiency of images, expand the display range of images, reduce the amount of calculation during the image display process, and avoid the occurrence of image delays, freezes and other problems.

[0005] In a first aspect, an embodiment of the present application provides an image display method, the method comprising:

[0006] Acquire a first focal length for acquiring a panoramic sub-image;

[0007] Obtaining a rotation angle interval according to the first focal length;

[0008] Obtaining a second focal length for capturing a panoramic image according to the first focal length, wherein the second focal length is different from the first focal length;

[0009] Dividing the acquisition area into a plurality of acquisition sub-areas according to the rotation angle interval, each of the acquisition sub-areas corresponds to a pan / tilt angle and a row and column code;

[0010] Within the pan / tilt angle corresponding to each acquisition sub-area, obtaining the panoramic sub-image and the panoramic image according to the first focal length and the second focal length respectively;

[0011] Get the row and column codes of the target display area;

[0012] The panoramic image corresponding to the row and column codes of the target display area is filled into the target display area to obtain the target display image.

[0013] In the above implementation process, the panoramic image and panoramic sub-image are filled and displayed according to row and column coding according to different focal lengths and gimbal angles, so that the panoramic image is displayed clearly, which can improve the image display efficiency, expand the image display range, reduce the amount of calculation in the image display process, and avoid the occurrence of image delays, freezes and other problems.

[0014] Furthermore, the step of obtaining the rotation angle interval according to the first focal length includes:

[0015] Acquire a horizontal field of view angle and a vertical field of view angle of the first focal length;

[0016] Obtaining the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images;

[0017] The rotation angle interval is obtained according to the horizontal field angle and the vertical field angle of the first focal length, and the horizontal overlap ratio and the vertical overlap ratio between the adjacent panoramic sub-images.

[0018] In the above implementation process, the rotation angle interval is obtained according to the horizontal field of view angle and the vertical field of view angle of the first focal length, which can improve the accuracy of the rotation angle interval and ensure that the field of view angle of the panoramic sub-image is consistent with the acquisition area without affecting the image display experience.

[0019] Furthermore, the step of obtaining a second focal length for capturing a panoramic image according to the first focal length includes:

[0020] Obtain the number of rows and columns of the target display area;

[0021] The second focal length is obtained according to the horizontal field angle and the vertical field angle of the first focal length, the horizontal overlap ratio and the vertical overlap ratio between the adjacent panoramic sub-images, and the number of rows and columns of the target display area.

[0022] In the above implementation process, the second focal length is obtained according to the horizontal field of view angle and vertical field of view angle of the first focal length, the horizontal overlap ratio and vertical overlap ratio of the panoramic sub-images, and the number of rows and columns of the target display area, ensuring that the mapping relationship between the second focal length and the first focal length is more accurate and can reduce errors.

[0023] Furthermore, the step of dividing the collection area into a plurality of collection sub-areas according to the rotation angle interval includes:

[0024] Obtaining the maximum row and column values ​​of the acquisition area according to the rotation angle interval;

[0025] Determine the row and column code according to the maximum row and column value;

[0026] The acquisition area is divided into equal intervals according to the row and column codes to obtain a plurality of acquisition sub-areas.

[0027] In the above implementation process, the row and column codes are determined according to the maximum row and column values, and then the collection area is divided according to the row and column codes, so that the display range of the obtained multiple collection sub-areas is clearer and the use range of the collection sub-areas can be improved.

[0028] Furthermore, the step of obtaining row and column codes of the target display area according to the panoramic image includes:

[0029] Get the pixel coordinates corresponding to the user command;

[0030] Acquire a first mapping relationship between the target display area and the panoramic image;

[0031] Convert the pixel coordinates according to the first mapping relationship to obtain a target row and column code;

[0032] Obtain the number of steps and columns of the target display area;

[0033] Obtaining the maximum row and column values ​​of the acquisition area according to the rotation angle interval;

[0034] Determine the row number and column number of the panoramic image corresponding to the step number and the step column number;

[0035] Compare the row number and column number of the corresponding panoramic image with the maximum row and column value to determine whether the panoramic image corresponding to the target row and column code exists;

[0036] If so, determine that the target row and column code is the row and column code of the target display area.

[0037] In the above implementation process, the pixel coordinates are converted according to the first mapping relationship to obtain the target row and column code, and then it is determined whether the panoramic image corresponding to the target row and column code exists, which can improve the accuracy of image display and reduce the storage and occupancy of the panoramic image.

[0038] Furthermore, the step of filling the target display area with the panoramic image corresponding to the row and column codes of the target display area to obtain the target display image further includes:

[0039] Dividing the target display area according to the number of rows and columns of the target display area to obtain a plurality of sub-display areas, each of the sub-display areas corresponding to a label;

[0040] Obtaining the sub-display area corresponding to the user instruction;

[0041] The panoramic sub-image of the row and column encoding corresponding to the sub-display area corresponding to the user instruction is displayed.

[0042] In the above implementation process, displaying the panoramic sub-image corresponding to the row and column codes in the sub-display area can quickly respond to the user's operation and display needs, facilitate the user to adjust the display image in time, and improve the display efficiency.

[0043] In a second aspect, an embodiment of the present application further provides an image display device, the device comprising:

[0044] An acquisition module, used to acquire a first focal length for acquiring a panoramic sub-image; and to acquire row and column codes of a target display area;

[0045] a data acquisition module, configured to acquire a rotation angle interval according to the first focal length; and to acquire a second focal length for capturing a panoramic image according to the first focal length, wherein the second focal length is different from the first focal length;

[0046] A division module, used for dividing the acquisition area into a plurality of acquisition sub-areas according to the rotation angle interval, each of the acquisition sub-areas corresponding to a pan / tilt angle and a row and column code;

[0047] An image acquisition module, configured to obtain the panoramic sub-image and the panoramic image according to the first focal length and the second focal length, respectively, within a pan / tilt angle corresponding to each acquisition sub-area;

[0048] A filling module is used to fill the panoramic image corresponding to the row and column codes of the target display area into the target display area to obtain the target display image.

[0049] In the above implementation process, the panoramic image and panoramic sub-image are filled and displayed according to row and column coding according to different focal lengths and gimbal angles, so that the panoramic image is displayed clearly, which can improve the image display efficiency, expand the image display range, reduce the amount of calculation in the image display process, and avoid the occurrence of image delays, freezes and other problems.

[0050] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in any one of the first aspects when executing the computer program.

[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on a computer, the computer executes the method as described in any one of the first aspects.

[0052] In a fifth aspect, an embodiment of the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method as described in any one of the first aspects.

[0053] Other features and advantages of the present disclosure will be set forth in the following description, or some features and advantages may be inferred or unambiguously determined from the description, or may be learned by implementing the above-mentioned technology of the present disclosure.

[0054] And it can be implemented according to the contents of the specification. The following is a detailed description of the preferred embodiments of the present application with the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the range values. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying any creative work.

[0056] Figure 1 A schematic diagram of a flow chart of an image display method provided in an embodiment of the present application;

[0057] Figure 2 A schematic diagram of the structural composition of an image display device provided in an embodiment of the present application;

[0058] Figure 3 A schematic diagram of the structural composition of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0060] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0061] The specific implementation methods of the present application are further described in detail below in conjunction with the accompanying drawings and examples. The following examples are used to illustrate the present application, but are not used to limit the scope of the present application.

[0062] Embodiment 1

[0063] Figure 1 is a flow chart of the image display method provided in the embodiment of the present application, such as Figure 1 As shown, the method includes:

[0064] S1, obtaining a first focal length for capturing a panoramic sub-image;

[0065] S2, obtaining a rotation angle interval according to the first focal length;

[0066] S3, obtaining a second focal length for capturing a panoramic image according to the first focal length, where the second focal length is different from the first focal length;

[0067] S4, dividing the acquisition area into multiple acquisition sub-areas according to the rotation angle interval, each acquisition sub-area corresponds to a pan / tilt angle and row and column code;

[0068] S5, obtaining a panoramic sub-image and a panoramic image according to the first focal length and the second focal length within the pan / tilt angle corresponding to each acquisition sub-area;

[0069] S6, obtaining row and column codes of the target display area;

[0070] S7, filling the target display area with the panoramic image corresponding to the row and column codes of the target display area to obtain a target display image.

[0071] In the above implementation process, the panoramic image and panoramic sub-image are filled and displayed according to row and column coding according to different focal lengths and gimbal angles, so that the panoramic image is displayed clearly, which can improve the image display efficiency, expand the image display range, reduce the amount of calculation in the image display process, and avoid the occurrence of image delays, freezes and other problems.

[0072] In S1, a second focal length for capturing a panoramic image is determined, and the second focal length may be a maximum focal length of a zoom camera. Each panoramic image includes a plurality of panoramic sub-images, and optionally, some areas in the panoramic image do not need to be displayed or are not within the display range, and such areas may not be used as panoramic sub-images.

[0073] Furthermore, S2 includes:

[0074] Obtain the horizontal field of view angle and the vertical field of view angle of the first focal length;

[0075] Obtaining the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images;

[0076] The rotation angle interval is obtained according to the horizontal field angle and the vertical field angle of the first focal length, and the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images.

[0077] In the above implementation process, the rotation angle interval is obtained according to the horizontal field of view angle and the vertical field of view angle of the first focal length, which can improve the accuracy of the rotation angle interval and ensure that the field of view angle of the panoramic sub-image is consistent with the acquisition area without affecting the image display experience.

[0078] The rotation angle interval is calculated according to the horizontal field angle and the vertical field angle of the first focal length, and the calculation formula is: ih=hfov1*(1-rh), iv=vfov1*(1-rv).

[0079] Furthermore, the step of obtaining a second focal length for capturing a panoramic image according to the first focal length includes:

[0080] Get the number of rows and columns of the target display area;

[0081] The second focal length is obtained according to the horizontal field angle and the vertical field angle of the first focal length, the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images, and the number of rows and columns of the target display area.

[0082] In the above implementation process, the second focal length is obtained according to the horizontal field of view angle and vertical field of view angle of the first focal length, the horizontal overlap ratio and vertical overlap ratio of the panoramic sub-images, and the number of rows and columns of the target display area, ensuring that the mapping relationship between the second focal length and the first focal length is more accurate and can reduce errors.

[0083] The horizontal field of view angle hfov1 and the vertical field of view angle vfov1 of the first focal length are determined, and the ratio of the overlapping area of ​​two adjacent panoramic sub-images to the panoramic image when the panoramic sub-images are used for panoramic mosaic is determined, which are the horizontal overlap ratio rh and the vertical overlap ratio rv respectively.

[0084] Determine the number of rows, rows, and columns, cols, of the target display area, where both the number of rows and the number of columns are positive odd numbers greater than or equal to 3.

[0085] According to the horizontal field of view angle and vertical field of view angle of the first focal length, the field of view angles hfov2 and vfov2 of the second focal length are determined, and the calculation formula is:

[0086] hfov2=hfov1*(cols-(cols-1)*rh), vfov2=vfov1*(rows-(rows-1)*rv)

[0087] Furthermore, S3 includes:

[0088] Obtain the maximum row and column values ​​of the acquisition area according to the rotation angle interval;

[0089] Determine row and column codes according to the maximum row and column values;

[0090] The acquisition area is divided into equal intervals according to row and column codes to obtain multiple acquisition sub-areas.

[0091] In the above implementation process, the row and column codes are determined according to the maximum row and column values, and then the collection area is divided according to the row and column codes, so that the display range of the obtained multiple collection sub-areas is clearer and the use range of the collection sub-areas can be improved.

[0092] Determine the horizontal rotation angle range hr and vertical rotation angle range vr of the target display area, and confirm the maximum values ​​M and N of the rows and columns of the collection area according to the rotation angle spacing. The calculation formula is:

[0093] N=(hr / ih)+1,M=(vr / iv)+1

[0094] The acquisition area is equally divided into multiple acquisition sub-areas according to the rotation angle interval, where each acquisition sub-area is a pan / tilt angle, and each pan / tilt angle corresponds to a row and column code (m, n) (m∈[1,M], n∈[1,N]).

[0095] In S4, each time the pan / tilt camera rotates to each angle, the second focal length is used to obtain a first image (panoramic image), and the first focal length is used to obtain a second image (panoramic sub-image).

[0096] Furthermore, S5 includes:

[0097] Get the pixel coordinates corresponding to the user command;

[0098] Acquire a first mapping relationship between the target display area and the panoramic image;

[0099] Convert the pixel coordinates according to the first mapping relationship to obtain the target row and column code;

[0100] Get the number of steps and columns of the target display area;

[0101] Obtain the maximum row and column values ​​of the acquisition area according to the rotation angle interval;

[0102] Determine the row number and column number of the panoramic image corresponding to the number of step rows and the number of step columns;

[0103] Compare the row and column numbers of the corresponding panoramic image with the maximum row and column values ​​to determine whether the panoramic image corresponding to the target row and column code exists;

[0104] If so, determine the target row and column code as the row and column code of the target display area.

[0105] In the above implementation process, the pixel coordinates are converted according to the first mapping relationship to obtain the target row and column code, and then it is determined whether the panoramic image corresponding to the target row and column code exists, which can improve the accuracy of image display and reduce the storage and occupancy of the panoramic image.

[0106] In an embodiment of the present application, the displayed image (i.e., the image type contained in the display area) may be an architectural design drawing, a full-scene image, an orthophoto of a full-scene splicing, or other images taken using a smaller focal length of an acquisition device.

[0107] Optionally, in order to reduce storage, it may be chosen not to capture some panoramic sub-images, and the number of steps row_stride and the number of columns col_stride for turning pages in the target display area are determined, wherein 1≤row_stride≤rows, 1≤col_stride≤cols.

[0108] The row number and column number of the panoramic image to be collected are determined according to the number of steps and the number of columns, where the row number m to be collected meets the condition:

[0109] (rows-1) / 2+1≤m≤M-(rows-1) / 2

[0110] mod(m-(rows-1) / 2-1,row_stride)=0 or m=M-(rows-1) / 2

[0111] The column number n to be collected meets the following conditions:

[0112] (cols-1) / 2+1≤n≤N-(cols-1) / 2

[0113] mod(n-(cols-1) / 2-1,col_stride)=0 or n=N-(cols-1) / 2

[0114] The row and column numbers of the obtained panoramic image are compared with the target row and column codes. If the target row and column codes do not contain the row and column numbers of the panoramic image, it means that the panoramic image corresponding to the row and column codes does not exist, and this part of the panoramic image does not need to be displayed. Therefore, there is no need to collect and store this part of the panoramic image, which can save space.

[0115] Furthermore, S7 also includes:

[0116] Divide the target display area according to the number of rows and columns of the target display area to obtain multiple sub-display areas, each sub-display area corresponds to a label;

[0117] Get the sub-display area corresponding to the user command;

[0118] The panoramic sub-image of the row and column encoding corresponding to the sub-display area corresponding to the user instruction is displayed.

[0119] In the above implementation process, displaying the panoramic sub-image corresponding to the row and column codes in the sub-display area can quickly respond to the user's operation and display needs, facilitate the user to adjust the display image in time, and improve the display efficiency.

[0120] The target display area in the user interface is divided into rows and cols sub-display areas, and the row and column codes corresponding to each sub-display area are determined, and a label area is reserved at the bottom of each sub-display area.

[0121] Method for determining the row and column codes corresponding to the sub-display area:

[0122] mij=m+i-rows / 2 -1

[0123] nij=n+j-cols / 2-1

[0124] Where (mij,nij) is the row and column code of the sub-display area in the i-th row and j-th column, i∈[1,rows],j∈[1,cols].

[0125] The label area can display information such as shooting time, shooting row and column, gimbal angle, etc. Optionally, hover the mouse over / click the label area, and a sub-window will pop up to display specific information such as shooting time, row and column number, gimbal angle, laser distance, etc. The label area has a translucent background.

[0126] The corresponding panoramic sub-image is obtained according to the row and column codes corresponding to the sub-display area, and is displayed as the background image of the target display area. The panoramic sub-image needs to be stretched to the same pixel size as the target display area.

[0127] The user can flexibly select the display image, that is, the sub-display areas can interact with each other. When the user clicks on a sub-display area, the row and column codes corresponding to the sub-display area are determined. For example, when the sub-display area at the i-th row and j-th column is clicked, the corresponding row and column codes are (mij, nij). According to the row and column codes, the corresponding panoramic image is obtained and displayed in the user interface. Other information related to the panoramic image is displayed in the user interface, such as shooting time, row and column numbers, gimbal angle, laser distance, etc.

[0128] Optionally, the functions of up, down, left, and right indicator labels are provided for users to interact with. The indicator function can turn the target display area to display the page, determine the row and column code (m, n) corresponding to the currently displayed panoramic sub-image, confirm the corresponding function of the indicator label clicked by the user, and calculate the target row and column code (m1, n1). If the user clicks on the indicator label, the calculation formula is:

[0129] m1=m-row_stride,n1=n

[0130] If the user clicks the indicator, the calculation formula is:

[0131] m1=m+row_stride,n1=n

[0132] If the user clicks the left indicator, the calculation formula is:

[0133] m1=m,n1=n-col_stride

[0134] If the user clicks the right indicator, the calculation formula is:

[0135] m1=m,n1=n+col_stride

[0136] The row and column codes (m1, n1) of the target display area are used as the row and column code parameters required by the target display area process, and the display is performed according to the steps of the target display area process. Optionally, the application can start the display process by passing parameters through a URL link.

[0137] Embodiment 2

[0138] In order to execute the method corresponding to the above embodiment 1 to achieve the corresponding functions and technical effects, an image display device is provided below, such as Figure 2 As shown, the device comprises:

[0139] An acquisition module 1 is used to acquire a first focal length for acquiring a panoramic sub-image; and to acquire row and column codes of a target display area;

[0140] A data acquisition module 2 is used to obtain a rotation angle interval according to a first focal length; and to obtain a second focal length for capturing a panoramic image according to the first focal length, wherein the second focal length is different from the first focal length;

[0141] A division module 3 is used to divide the acquisition area into multiple acquisition sub-areas according to the rotation angle interval, each acquisition sub-area corresponds to a pan / tilt angle and row and column code;

[0142] An image acquisition module 4 is used to obtain a panoramic sub-image and a panoramic image according to a first focal length and a second focal length within a pan / tilt angle corresponding to each acquisition sub-area;

[0143] The filling module 5 is used to fill the panoramic image corresponding to the row and column codes of the target display area into the target display area to obtain the target display image.

[0144] In the above implementation process, the panoramic image and panoramic sub-image are filled and displayed according to row and column coding according to different focal lengths and gimbal angles, so that the panoramic image is displayed clearly, which can improve the image display efficiency, expand the image display range, reduce the amount of calculation in the image display process, and avoid the occurrence of image delays, freezes and other problems.

[0145] Furthermore, the data acquisition module 2 is also used for:

[0146] Obtain the horizontal field of view angle and the vertical field of view angle of the first focal length;

[0147] Obtaining the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images;

[0148] The rotation angle interval is obtained according to the horizontal field angle and the vertical field angle of the first focal length, and the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images.

[0149] In the above implementation process, the rotation angle interval is obtained according to the horizontal field of view angle and the vertical field of view angle of the first focal length, which can improve the accuracy of the rotation angle interval and ensure that the field of view angle of the panoramic sub-image is consistent with the acquisition area without affecting the image display experience.

[0150] Furthermore, the data acquisition module 2 is also used for:

[0151] Get the number of rows and columns of the target display area;

[0152] The second focal length is obtained according to the horizontal field angle and the vertical field angle of the first focal length, the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images, and the number of rows and columns of the target display area.

[0153] In the above implementation process, the second focal length is obtained according to the horizontal field of view angle and vertical field of view angle of the first focal length, the horizontal overlap ratio and vertical overlap ratio of the panoramic sub-images, and the number of rows and columns of the target display area, ensuring that the mapping relationship between the second focal length and the first focal length is more accurate and can reduce errors.

[0154] Furthermore, the division module 3 is also used for:

[0155] Obtain the maximum row and column values ​​of the acquisition area according to the rotation angle interval;

[0156] Determine row and column codes according to the maximum row and column values;

[0157] The acquisition area is divided into equal intervals according to row and column codes to obtain multiple acquisition sub-areas.

[0158] In the above implementation process, the row and column codes are determined according to the maximum row and column values, and then the collection area is divided according to the row and column codes, so that the display range of the obtained multiple collection sub-areas is clearer and the use range of the collection sub-areas can be improved.

[0159] Furthermore, the data acquisition module 2 is also used for:

[0160] Get the pixel coordinates corresponding to the user command;

[0161] Acquire a first mapping relationship between the target display area and the panoramic image;

[0162] Convert the pixel coordinates according to the first mapping relationship to obtain the target row and column code;

[0163] Get the number of steps and columns of the target display area;

[0164] Obtain the maximum row and column values ​​of the acquisition area according to the rotation angle interval;

[0165] Determine the row number and column number of the panoramic image corresponding to the number of step rows and the number of step columns;

[0166] Compare the row and column numbers of the corresponding panoramic image with the maximum row and column values ​​to determine whether the panoramic image corresponding to the target row and column code exists;

[0167] If so, determine the target row and column code as the row and column code of the target display area.

[0168] In the above implementation process, the pixel coordinates are converted according to the first mapping relationship to obtain the target row and column code, and then it is determined whether the panoramic image corresponding to the target row and column code exists, which can improve the accuracy of image display and reduce the storage and occupancy of the panoramic image.

[0169] Furthermore, the device also includes a display module, which is used to:

[0170] Divide the target display area according to the number of rows and columns of the target display area to obtain multiple sub-display areas, each sub-display area corresponds to a label;

[0171] Get the sub-display area corresponding to the user command;

[0172] The panoramic sub-image of the row and column encoding corresponding to the sub-display area corresponding to the user instruction is displayed.

[0173] In the above implementation process, displaying the panoramic sub-image corresponding to the row and column codes in the sub-display area can quickly respond to the user's operation and display needs, facilitate the user to adjust the display image in time, and improve the display efficiency.

[0174] The above-mentioned image display device can implement the method of the above-mentioned embodiment 1. The options in the above-mentioned embodiment 1 are also applicable to this embodiment and will not be described in detail here.

[0175] The rest of the contents of the embodiments of the present application can refer to the contents of the above-mentioned embodiment 1, and will not be repeated in this embodiment.

[0176] Embodiment 3

[0177] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the image display method of embodiment 1.

[0178] Optionally, the above-mentioned electronic device may be a server.

[0179] See also Figure 3 , Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include a processor 31, a communication interface 32, a memory 33 and at least one communication bus 34. The communication bus 34 is used to realize direct connection and communication between these components. The communication interface 32 of the device in the embodiment of the present application is used to communicate signaling or data with other node devices. The processor 31 may be an integrated circuit chip with signal processing capabilities.

[0180] The processor 31 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor 31 can also be any conventional processor, etc.

[0181] The memory 33 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory 33 stores computer-readable instructions. When the computer-readable instructions are executed by the processor 31, the device can execute the above-mentioned Figure 1 The method embodiment involves various steps.

[0182] Optionally, the electronic device may further include a storage controller and an input / output unit. The memory 33, the storage controller, the processor 31, the peripheral interface, and the input / output unit are electrically connected to each other directly or indirectly to achieve data transmission or interaction. For example, these components may be electrically connected to each other via a communication bus 34. The processor 31 is used to execute executable modules stored in the memory 33, such as software function modules or computer programs included in the device.

[0183] The input and output unit is used to provide users with the task creation and to create an optional time period or preset execution time for the task to enable interaction between the user and the server. The input and output unit can be, but is not limited to, a mouse and a keyboard.

[0184] Understandably, Figure 3 The structure shown is for illustration only. The electronic device may also include Figure 3 More or fewer components as shown, or with Figure 3 Different configurations are shown. Figure 3 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0185] In addition, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which implements the image display method of embodiment 1 when executed by a processor.

[0186] The embodiment of the present application also provides a computer program product, which, when running on a computer, enables the computer to execute the method described in the method embodiment.

[0187] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of boxes in the block diagram and / or the flowchart, can be implemented with a dedicated hardware-based device that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0188] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0189] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.

[0190] The above description is only an embodiment of the present application and is not intended to limit the protection scope of the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0191] The above is only a specific implementation of the present application, but the protection range of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical range disclosed in the present application, which should be included in the protection range of the present application. Therefore, the protection range of the present application should be based on the protection range of the claims.

[0192] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

Claims

1. An image display method, characterized in that: The method comprises: Acquire a first focal length for acquiring a panoramic sub-image; Obtaining a rotation angle interval according to the first focal length; Obtaining a second focal length for capturing a panoramic image according to the first focal length, wherein the second focal length is different from the first focal length; Dividing the acquisition area into a plurality of acquisition sub-areas according to the rotation angle interval, each of the acquisition sub-areas corresponds to a pan / tilt angle and a row and column code; Within the pan / tilt angle corresponding to each acquisition sub-area, obtaining the panoramic sub-image and the panoramic image according to the first focal length and the second focal length respectively; Get the row and column codes of the target display area; The panoramic image corresponding to the row and column codes of the target display area is filled into the target display area to obtain the target display image.

2. The image display method according to claim 1, characterized in that: The step of obtaining the rotation angle interval according to the first focal length comprises: Acquire a horizontal field of view angle and a vertical field of view angle of the first focal length; Obtaining the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images; The rotation angle interval is obtained according to the horizontal field angle and the vertical field angle of the first focal length, and the horizontal overlap ratio and the vertical overlap ratio between the adjacent panoramic sub-images.

3. The image display method according to claim 2, characterized in that: The step of obtaining a second focal length for capturing a panoramic image according to the first focal length comprises: Obtain the number of rows and columns of the target display area; The second focal length is obtained according to the horizontal field angle and the vertical field angle of the first focal length, the horizontal overlap ratio and the vertical overlap ratio between the adjacent panoramic sub-images, and the number of rows and columns of the target display area.

4. The image display method according to claim 3, characterized in that: The step of dividing the collection area into a plurality of collection sub-areas according to the rotation angle interval comprises: Obtaining the maximum row and column values ​​of the acquisition area according to the rotation angle interval; Determine the row and column code according to the maximum row and column value; The acquisition area is divided into equal intervals according to the row and column codes to obtain a plurality of acquisition sub-areas.

5. The image display method according to claim 1, characterized in that: The step of obtaining row and column codes of the target display area according to the panoramic image comprises: Get the pixel coordinates corresponding to the user command; Acquire a first mapping relationship between the target display area and the panoramic image; Convert the pixel coordinates according to the first mapping relationship to obtain a target row and column code; Obtain the number of steps and columns of the target display area; Obtaining the maximum row and column values ​​of the acquisition area according to the rotation angle interval; Determine the row number and column number of the panoramic image corresponding to the step number and the step column number; Compare the row number and column number of the corresponding panoramic image with the maximum row and column value to determine whether the panoramic image corresponding to the target row and column code exists; If so, determine that the target row and column code is the row and column code of the target display area.

6. The image display method according to claim 1, characterized in that: The step of filling the target display area with the panoramic image corresponding to the row and column codes of the target display area to obtain the target display image also includes: Dividing the target display area according to the number of rows and columns of the target display area to obtain a plurality of sub-display areas, each of the sub-display areas corresponding to a label; Obtaining the sub-display area corresponding to the user instruction; The panoramic sub-image of the row and column encoding corresponding to the sub-display area corresponding to the user instruction is displayed.

7. An image display device, characterized in that:The device comprises: An acquisition module, used to acquire a first focal length for acquiring a panoramic sub-image; and to acquire row and column codes of a target display area; a data acquisition module, configured to acquire a rotation angle interval according to the first focal length; and to acquire a second focal length for capturing a panoramic image according to the first focal length, wherein the second focal length is different from the first focal length; A division module, used for dividing the acquisition area into a plurality of acquisition sub-areas according to the rotation angle interval, each of the acquisition sub-areas corresponding to a pan / tilt angle and a row and column code; An image acquisition module, configured to obtain the panoramic sub-image and the panoramic image according to the first focal length and the second focal length, respectively, within a pan / tilt angle corresponding to each acquisition sub-area; A filling module is used to fill the panoramic image corresponding to the row and column codes of the target display area into the target display area to obtain the target display image.

8. The image display device according to claim 7, characterized in that: The data acquisition module is also used for: Acquire a horizontal field of view angle and a vertical field of view angle of the first focal length; Obtaining the horizontal overlap ratio and the vertical overlap ratio between adjacent panoramic sub-images; The rotation angle interval is obtained according to the horizontal field angle and the vertical field angle of the first focal length, and the horizontal overlap ratio and the vertical overlap ratio between the adjacent panoramic sub-images.

9. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory is used to store a computer program, and the processor runs the computer program to enable the electronic device to execute the image display method according to any one of claims 1 to 6.

10. A storage medium, characterized in that: It stores a computer program, which, when executed by a processor, implements the image display method as described in any one of claims 1 to 6.

Citation Information

Cited By

  • Ancient tree area monitoring method

    CN121482701A