Encoding method and apparatus applicable to spatial picture, and decoding method and apparatus applicable to spatial picture

By generating a spatial picture matrix based on the longitude and latitude of sampling points at different spatial angles and identifying key frames and predicted frames for encoding, the problem of the inability of existing technology to effectively process spatial pictures is solved, and the efficiency and accuracy of encoding and decoding are improved.

WO2024222935A1PCT designated stage expired Publication Date: 2024-10-31BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/090275
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-04-28
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

Existing video encoding and decoding technology is mainly suitable for time-series pictures, but cannot effectively process spatial pictures, and cannot use the information between spatial pictures for encoding, resulting in low coding efficiency.

Method used

By generating a spatial picture matrix based on the longitude and latitude of sampling points at different spatial angles, dividing it into sub-matrices of preset sizes, identifying key frames and predicted frames, encoding and decoding the spatial pictures, generating encoded files, and decoding them according to the user's operation information. Target space picture.

Benefits of technology

It achieves efficient encoding and decoding of spatial pictures, reorganizes the spatial picture matrix to manage picture groups, improves the efficiency and accuracy of encoding and decoding, and realizes the temporal decoupling of spatial pictures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024090275_31102024_PF_FP_ABST
    Figure CN2024090275_31102024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present disclosure are an encoding method and apparatus applicable to a spatial picture, and a decoding method and apparatus applicable to a spatial picture. A particular implementation manner of the encoding method comprises: according to longitudes and latitudes corresponding to a plurality of sampling points at different spatial angles, generating a spatial picture matrix, which comprises a plurality of spatial pictures that are collected at the plurality of sampling points; dividing the spatial picture matrix by a sub-matrix of a preset size, so as to obtain a plurality of picture groups; and encoding spatial pictures in the spatial picture matrix according to key frames and predicted frames, which are comprised in each of the plurality of picture groups, and generating an encoded file.
Need to check novelty before this filing date? Find Prior Art

Description

Coding method, decoding method and device applicable to spatial images

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This patent application claims priority to the Chinese patent application filed on April 28, 2023, with application number 202310484498.2 and invention name “Encoding method, decoding method and device for spatial images”, the full text of which is incorporated by reference into this disclosure. Technical Field

[0003] The embodiments of the present disclosure relate to the field of computer technology, specifically to image coding and decoding technology, and more particularly to an encoding method, encoding device, decoding method, decoding device, computer-readable medium, and electronic device applicable to spatial images. Background Art

[0004] Current mainstream video encoding and decoding technologies are all based on time sequence, meaning that the data of the previous and next frames in the bitstream are temporally continuous. This is a very strong a priori condition, meaning that the encoding process can safely utilize this information. Existing video encoding technologies can be applied to time-sequential images, but not to spatial images.

[0005] Summary of the Invention

[0006] The embodiments of the present disclosure provide an encoding method, an encoding device, a decoding method, a decoding device, a computer-readable medium, and an electronic device applicable to spatial images.

[0007] In one or more embodiments, a coding method suitable for spatial pictures is provided, including: generating a spatial picture matrix including multiple spatial pictures collected by multiple sampling points according to the longitude and latitude corresponding to multiple sampling points at different spatial angles; dividing the spatial picture matrix into sub-matrices of preset sizes to obtain multiple picture groups; encoding the spatial pictures in the spatial picture matrix according to the key frames and predicted frames included in each of the multiple picture groups to generate a coded file.

[0008] In one or more embodiments, a decoding method for spatial pictures is provided, including: determining the target longitude and latitude corresponding to the target spatial picture desired by the user based on the acquired operation information; determining the position information of the target spatial picture and the key frames in the target picture group to which the target spatial picture belongs in the encoded file based on the target longitude and latitude; decoding the data at the position represented by the position information in the encoded file to obtain the target spatial picture.

[0009] In one or more embodiments, a coding device suitable for spatial pictures is provided, including: a first generation unit, configured to generate a spatial picture matrix including multiple spatial pictures collected by multiple sampling points according to the longitude and latitude corresponding to the multiple sampling points at different spatial angles; a division unit, configured to divide the spatial picture matrix into sub-matrices of preset sizes to obtain multiple picture groups; a second generation unit, configured to encode the spatial pictures in the spatial picture matrix according to the key frames and prediction frames included in each of the multiple picture groups to generate a coded file.

[0010] In one or more embodiments, a decoding device suitable for spatial pictures is provided, including: a first determination unit, configured to determine the target longitude and latitude corresponding to the target spatial picture desired by the user based on the acquired operation information; a second determination unit, configured to determine the position information of the target spatial picture and the key frames in the target picture group to which the target spatial picture belongs in the encoded file based on the target longitude and latitude; and a decoding unit, configured to decode the data at the position represented by the position information in the encoded file to obtain the target spatial picture.

[0011] In one or more embodiments, a computer-readable medium is provided, on which a computer program is stored, wherein when the program is executed by a processor, the method described in any of the above implementations is implemented.

[0012] In one or more embodiments, an electronic device is provided, comprising: one or more processors; a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any of the above implementations.

[0013] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Other features, objects and advantages of the present disclosure will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following drawings:

[0015] FIG1 is a diagram of an exemplary system architecture in which an embodiment of the present disclosure may be applied;

[0016] FIG2 is a flowchart of an embodiment of a coding method applicable to a spatial picture according to the present disclosure;

[0017] FIG3 is a schematic diagram of the spatial layout of sampling points according to the latitude and longitude sampling method of this embodiment;

[0018] FIG4 is a schematic diagram of a spatial picture matrix according to this embodiment;

[0019] FIG5 is a schematic diagram of a reference method between a predicted frame and a key frame in a picture group according to this embodiment;

[0020] FIG6 is a schematic diagram of an application scenario of the coding method applicable to a spatial picture according to this embodiment;

[0021] FIG7 is a flowchart of another embodiment of a coding method applicable to a spatial picture according to the present disclosure;

[0022] FIG8 is a flowchart of an embodiment of a decoding method applicable to a spatial picture according to the present disclosure;

[0023] FIG9 is a schematic diagram of a decoding trajectory according to this embodiment;

[0024] FIG10 is a schematic diagram of a screen sliding trajectory according to this embodiment;

[0025] FIG11 is a flowchart of another embodiment of a decoding method applicable to a spatial picture according to the present disclosure;

[0026] FIG12 is a structural diagram of an embodiment of a coding apparatus applicable to a spatial picture according to the present disclosure;

[0027] FIG13 is a structural diagram of an embodiment of a decoding apparatus applicable to spatial pictures according to the present disclosure;

[0028] FIG14 is a schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION

[0029] The present disclosure will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the relevant invention are shown in the accompanying drawings.

[0030] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0031] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, and storage of user personal information involved in the technical solutions disclosed herein all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken with respect to user personal information to prevent unauthorized access to user personal information data and to safeguard the security of user personal information, network security, and national security.

[0032] FIG1 shows an exemplary architecture 100 to which the present disclosure may be applied for a method and apparatus for encoding a spatial picture, and a method and apparatus for decoding a spatial picture.

[0033] As shown in Figure 1, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. The communication connections between terminal devices 101, 102, and 103 constitute a topological network, and network 104 is used to provide a medium for communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.

[0034] Users can use terminal devices 101, 102, 103 to interact with server 105 via network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be hardware devices or software that support network connection for data interaction and data processing. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices that support network connection, information acquisition, interaction, display, processing and other functions, including but not limited to smart phones, image acquisition devices, tablet computers, e-book readers, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules for providing distributed services, for example, or they can be implemented as a single software or software module. No specific limitation is made here.

[0035] Server 105 can be a server that provides various services, such as a backend processing server that receives spatial images provided by terminal devices 101, 102, and 103 and encodes them to generate encoded files. Another example is a backend processing server that receives operation information from terminal devices 101, 102, and 103 and decodes them to generate the user's desired target spatial image. As an example, server 105 can be a cloud server.

[0036] It should be noted that the server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. No specific limitations are given here.

[0037] It should also be noted that the encoding method and decoding method for spatial images provided in the embodiments of the present disclosure can be executed by a server, a terminal device, or a server and a terminal device in cooperation with each other. Accordingly, the various parts (e.g., various units) included in the encoding device and decoding device for spatial images can be entirely provided in the server, entirely provided in the terminal device, or separately provided in the server and the terminal device.

[0038] It should be understood that the number of terminal devices, networks, and servers in Figure 1 is merely illustrative. Depending on implementation requirements, any number of terminal devices, networks, and servers may be provided. When the electronic device on which the encoding method for spatial images and the decoding method for spatial images are running does not need to transmit data with other electronic devices, the system architecture may only include the electronic device (e.g., a server or terminal device) on which the encoding method for spatial images and the decoding method for spatial images are running.

[0039] 2 , a process 200 of an embodiment of a method for encoding a spatial picture is shown, including the following steps:

[0040] Step 201 : generating a spatial picture matrix including a plurality of spatial pictures collected by a plurality of sampling points according to the longitudes and latitudes corresponding to the plurality of sampling points at different spatial angles.

[0041] In this embodiment, an entity executing the spatial image encoding method (e.g., the terminal device or server in Figure 1 ) generates a spatial image matrix comprising multiple spatial images captured at multiple sampling points based on the longitudes and latitudes corresponding to the multiple sampling points at different spatial angles. The spatial images represent images of target objects obtained at different spatial angles. The target objects can be various objects, such as people and objects.

[0042] As an example, multiple sampling points may be uniformly set at different spatial angles to capture spatial images of the target object at different spatial angles, that is, a uniform sampling method.

[0043] As another example, multiple sampling points can be non-uniformly set at different spatial angles around the target object with preset intervals of longitude and latitude to capture spatial images of the target object at different spatial angles, that is, longitude and latitude sampling.

[0044] Figure 3 shows a schematic diagram 300 of the spatial layout of sampling points for a longitude-latitude sampling method. For the upper hemisphere of the target object, sampling is performed at 10° intervals. Thus, there are 36 sampling points in the longitude direction and 9 sampling points in the latitude direction, resulting in 324 (36×9) sampling points in the upper hemisphere of the target object. The left sub-image in Figure 3 is a top view of the spatial layout of the sampling points, while the right sub-image is a front view of the spatial layout of the sampling points.

[0045] The sampling points at different spatial angles correspond to different longitudes and latitudes, thereby sampling and obtaining spatial images at different spatial angles. By arranging the spatial images at different spatial angles in a certain order, a spatial image matrix can be obtained. As an example, for each spatial image, the spatial image is named according to the longitude and latitude of the sampling point corresponding to the spatial image; then, according to the naming information of each spatial image, multiple spatial images are arranged to generate a spatial image matrix. For example, if the longitude and latitude of the sampling point corresponding to the spatial image is (10°, 20°), the spatial image can be named "10-20.jpg".

[0046] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned step 201 in the following manner: arrange multiple spatial images with the longitude of the sampling point corresponding to the spatial image as the horizontal axis and the latitude of the sampling point corresponding to the spatial image as the vertical axis to generate a spatial image matrix.

[0047] Specifically, with the longitude of the sampling point corresponding to the spatial image as the horizontal axis and the latitude of the sampling point corresponding to the spatial image as the vertical axis, multiple spatial images are arranged in the order of longitude from small to large and latitude from small to large to obtain a spatial image matrix.

[0048] Continuing with the sampling points shown in FIG3 as an example, the generated spatial picture matrix is ​​shown in FIG4. The latitude in the spatial picture matrix ranges from 0° to 80°, and the longitude ranges from 0° to 350°.

[0049] In this implementation, based on the latitude and longitude of the sampling points, an arrangement method that is more consistent with the spatial correlation between multiple spatial pictures is provided, so that the generated spatial picture matrix is ​​more conducive to spatial coding, thereby improving spatial coding efficiency.

[0050] Step 202 : Divide the spatial picture matrix into sub-matrices of a preset size to obtain a plurality of picture groups.

[0051] In this embodiment, the execution entity may divide the spatial picture matrix into sub-matrices of a preset size to obtain a plurality of picture groups.

[0052] As an example, the preset size may be a pre-set fixed size, wherein the length and width of the sub-matrices may be the same or different, for example, the preset size is 3×3.

[0053] As another example, the preset size can be flexibly determined based on the density of the sampling points. When the sampling points are dense, a larger preset size can be set; when the sampling points are sparse, a smaller preset size can be set. In other words, the size of the preset size is positively correlated with the density of the sampling points.

[0054] The spatial picture matrix is ​​divided into sub-matrices of a preset size, and the number of spatial pictures included in each resulting group of pictures is the same as the number of elements included in the sub-matrix. Continuing with Figure 4, the spatial picture matrix is ​​divided into sub-matrices of a preset size of 3×3, resulting in 36 groups of pictures, GOP1-GOP36, each of which includes 9 spatial pictures.

[0055] Step 203 : Encode the spatial pictures in the spatial picture matrix according to the key frames and predicted frames included in each of the plurality of picture groups to generate an encoded file.

[0056] In this embodiment, the execution entity may encode the spatial pictures in the spatial picture matrix according to the key frames and predicted frames respectively included in the plurality of picture groups to generate an encoded file.

[0057] During the compression encoding process, each spatial image frame represents a still image. During actual compression, various compression algorithms are employed to reduce data size, with IPB frames being the most common. The I-frame within an IPB frame is also known as a key frame or intra-frame coded frame. A key frame is typically the first frame in each picture group. After appropriate compression, it serves as a reference point for random access, generating a static image. A key frame can be considered the product of image compression, which removes redundant information from the video. A P-frame, also known as a predicted frame or forward predictive coded frame, removes redundant information from the compressed data corresponding to the key frame in the same picture group, resulting in the encoded data corresponding to the predicted frame. A predicted frame represents the difference between the predicted frame and the corresponding key frame. During decoding, the spatial image corresponding to the predicted frame is generated by referencing the decoded data corresponding to the key frame and the predicted frame.

[0058] In this embodiment, a determination method can be preset to determine the key frames and prediction frames in the picture group; then, based on the key frames and prediction frames included in each of the multiple picture groups, the spatial pictures in the spatial picture matrix are encoded to generate an encoded file.

[0059] For example, for each picture group in multiple picture groups, the spatial picture corresponding to the sampling point with the smallest longitude and latitude in the picture group is used as the key frame, and the remaining spatial pictures in the picture group are used as prediction frames. The spatial pictures in the spatial picture matrix are encoded to generate an encoded file.

[0060] In some optional implementations of this embodiment, the execution entity may perform step 203 as follows:

[0061] First, the picture groups corresponding to the sampling points at the same latitude in the multiple picture groups are arranged in ascending order of the longitudes of the sampling points corresponding to the picture groups to generate multiple picture group subsequences.

[0062] 4 , the multiple GOP subsequences include a first GOP subsequence, a second GOP subsequence, and a third GOP subsequence. The first GOP subsequence is "GOP1->GOP2->...->GOP12," the second GOP subsequence is "GOP13->GOP14->...->GOP24," and the third GOP subsequence is "GOP25->GOP26->...->GOP36."

[0063] Second, multiple picture group subsequences are arranged in ascending order of the latitudes of the sampling points corresponding to the picture groups, and picture group identifiers corresponding to the multiple picture groups are determined to generate a picture group sequence.

[0064] Continuing to refer to FIG4 , the sequence of group of pictures is “GOP1—>GOP2—>GOP3…—>GOP35—>GOP36”

[0065] Third, the spatial pictures in each picture group in the picture group sequence are arranged in the order of key frames first and predicted frames later, and the picture identifiers of the spatial pictures in each picture group in the plurality of picture groups are determined to generate a spatial picture sequence.

[0066] Specifically, based on the determined picture group sequence, for the spatial pictures in each picture group, the picture sequence within the picture group is determined in the order of key frames first and then predicted frames, and thus the picture identifier of the spatial picture in each picture group is determined according to the picture sequence corresponding to the picture group, and finally the spatial picture sequence is obtained.

[0067] For the multiple prediction frames in each picture group, the arrangement order of the multiple prediction frames can be determined according to a preset determination method. For example, the multiple prediction frames are arranged in the order of latitude and longitude of the sampling points corresponding to the spatial pictures from small to large.

[0068] Continuing with Figure 4 , the spatial picture sequence is "0->1->2->3...->322->323." This spatial picture sequence includes multiple picture sequences, such as "0->1->2->3...->8," "9->10->11...->17," and so on. Taking the picture sequence "0->1->2->3...->8" as an example, "0" is the picture identifier of the key frame in this picture sequence, and "1-8" are the picture identifiers of the predicted frames in this picture sequence.

[0069] Fourth, the spatial picture sequence is encoded according to the key frames and predicted frames included in each of the plurality of picture groups to generate an encoded file.

[0070] In this implementation, the spatial picture matrix is ​​first arranged to obtain a spatial picture sequence, and then encoding is performed according to the arrangement order of the spatial pictures in the spatial picture sequence, as well as the key frames and predicted frames in each picture group, further improving the efficiency and accuracy of the encoding process.

[0071] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned third step in the following manner: taking the spatial picture at the center position of the submatrix corresponding to the picture group as the key frame, and taking the spatial picture adjacent to the key frame as the prediction frame, arrange the spatial pictures in each picture group in the picture group sequence in the order of key frame first and prediction frame later, determine the picture identifier of the spatial picture in each picture group in multiple picture groups, and generate a spatial picture sequence.

[0072] Continuing with the example of the 3×3 submatrix shown in FIG4 , for the 9 spatial pictures in the divided picture group, the 8 spatial pictures around the center position all have a high correlation with the spatial picture at the center position, because the 8 surrounding spatial pictures can all be regarded as being obtained by changing the spatial picture at the center position by 10° in the longitude and / or latitude directions.

[0073] The spatial picture at the center position of the submatrix corresponding to the picture group is used as the key frame, and the spatial picture adjacent to the key frame is used as the prediction frame, so that there is a direct and strong correlation between the prediction frame and the key frame, which helps the prediction frame to directly refer to the key frame during the encoding process of the spatial picture, improves the encoding efficiency, and reduces the data volume of the encoded file.

[0074] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned fourth step in the following manner: for each picture group in multiple picture groups, the spatial picture sequence is encoded using a reference method in which the predicted frame in the picture group uniquely refers to the key frame in the picture group to generate an encoded file.

[0075] 5, a schematic diagram 500 is shown of a reference method between a predicted frame and a key frame in a group of pictures. For each predicted frame in a group of pictures, a key frame in the group of pictures is uniquely referenced to obtain an encoded file.

[0076] In this implementation, the spatial picture sequence is encoded by adopting a reference method in which the predicted frame in the picture group uniquely references the key frame in the picture group, which reduces the complexity of the relationship between the predicted frame and the key frame in the encoded file and helps to improve the data determination speed and decoding efficiency during the decoding process.

[0077] Continuing with FIG6 , FIG6 is a schematic diagram 600 of an application scenario of the spatial image encoding method according to this embodiment. In the application scenario of FIG6 , first, an image acquisition device is used to obtain multiple spatial images of a target object from multiple sampling points at different spatial angles. The spatial layout of the multiple sampling points is shown in 601 . Then, based on the longitude and latitude corresponding to the multiple sampling points at different spatial angles, a spatial image matrix is ​​generated, including multiple spatial images collected by the multiple sampling points. The spatial image matrix is ​​shown in 602 . Then, the spatial image matrix 602 is divided into sub-matrices 6021 of a preset size to obtain multiple image groups. Finally, based on the key frames and predicted frames included in each of the multiple image groups, the spatial images in the spatial image matrix are encoded to generate an encoded file.

[0078] The method provided by the above-mentioned embodiments of the present disclosure generates a spatial picture matrix including multiple spatial pictures collected by multiple sampling points according to the longitude and latitude corresponding to multiple sampling points at different spatial angles; divides the spatial picture matrix into sub-matrices of preset sizes to obtain multiple picture groups; encodes the spatial pictures in the spatial picture matrix according to the key frames and prediction frames included in each of the multiple picture groups to generate a coding file, thereby providing a coding method suitable for spatial pictures. During the coding process, the spatial pictures are reorganized to obtain a spatial picture matrix, and picture groups in the spatial picture matrix are specified to manage the spatial pictures in the picture groups, thereby realizing temporal decoupling of the spatial pictures and improving the efficiency and accuracy of the coding process for the spatial pictures.

[0079] 7 , a schematic process 700 of another embodiment of a method for encoding a spatial picture according to the present disclosure is shown, including the following steps:

[0080] Step 701 , arranging multiple spatial images with the longitude of the sampling point corresponding to the spatial image as the horizontal axis and the latitude of the sampling point corresponding to the spatial image as the vertical axis to generate a spatial image matrix.

[0081] Step 702 : Divide the spatial picture matrix into sub-matrices of a preset size to obtain a plurality of picture groups.

[0082] Step 703 , arranging the picture groups corresponding to the sampling points at the same latitude in the plurality of picture groups in ascending order of the longitudes of the sampling points corresponding to the picture groups, to generate a plurality of picture group subsequences.

[0083] Step 704 , arrange the multiple picture group subsequences in ascending order of the latitudes of the sampling points corresponding to the picture groups, determine the picture group identifiers corresponding to the multiple picture groups, and generate a picture group sequence.

[0084] Step 705: Take the spatial picture at the center position of the submatrix corresponding to the picture group as the key frame, and the spatial picture adjacent to the key frame as the prediction frame. Arrange the spatial pictures in each picture group in the picture group sequence in the order of key frame first and prediction frame later, determine the picture identifier of the spatial picture in each picture group in the multiple picture groups, and generate a spatial picture sequence.

[0085] Step 706 : For each picture group in the plurality of picture groups, a spatial picture sequence is encoded using a reference method in which a predicted frame in the picture group uniquely references a key frame in the picture group to generate an encoded file.

[0086] It can be seen from this embodiment that compared with the embodiment corresponding to Figure 2, the process 700 of the encoding method applicable to spatial pictures in this embodiment specifically illustrates the generation process of the spatial picture matrix, the determination process of the spatial picture sequence, and the generation process of the encoding file, further improving the efficiency and accuracy of the encoding process for spatial pictures.

[0087] 8 , a schematic process 800 of an embodiment of a decoding method applicable to a spatial picture according to the present disclosure is shown, including the following steps:

[0088] Step 801: Determine the target longitude and latitude corresponding to the target space image desired by the user based on the acquired operation information.

[0089] In this embodiment, the execution entity of the decoding method applicable to spatial images (for example, the terminal device or server in FIG1 ) can determine the target longitude and latitude corresponding to the target spatial image desired by the user based on the acquired operation information.

[0090] The operation information can be an action instruction corresponding to a user's sliding operation or a voice instruction corresponding to voice information. Continuing with Figure 9, it shows the user's operation trajectory within the spatial image matrix. Following the operation trajectory, the execution entity decodes the spatial image data at the corresponding location and obtains and displays the user's desired target spatial image.

[0091] As an example, the execution entity can pre-establish a correspondence between the user's operation position on the screen and the target longitude and latitude corresponding to the user's desired target space image, thereby determining the target longitude and latitude corresponding to the user's desired target space image in real time during the user's operation. The target longitude and latitude corresponding to the target space image are the longitude and latitude corresponding to the sampling point corresponding to the target space image.

[0092] Step 802: Determine the position information of the target spatial picture and the key frames in the target picture group to which the target spatial picture belongs in the encoded file according to the target longitude and latitude.

[0093] In this embodiment, the execution subject can determine the position information of the target space picture and the key frames in the target picture group to which the target space picture belongs in the encoded file according to the target latitude and longitude. The encoded file is the encoded file obtained in the above embodiments 200 and 700.

[0094] The position information includes position information of the target spatial picture in the encoded file and position information of key frames in the target picture group to which the target spatial picture belongs in the encoded file.

[0095] As an example, the execution entity can pre-establish a correspondence between the longitude and latitude corresponding to each spatial image in the encoded file and the spatial image's position information within the encoded file. Thus, the position information of the target spatial image within the encoded file is determined based on the target longitude and latitude. Based on the target longitude and latitude, the key frame longitude and latitude of the key frame within the target image group to which the target spatial image belongs are determined, thereby further determining the key frame's position information within the encoded file.

[0096] In some optional implementations of this embodiment, the execution entity may perform step 802 as follows:

[0097] First, according to the target longitude and latitude and the key frame longitude and latitude of each key frame in each picture group in the encoded file, the target picture group identifier and the target picture identifier of the target spatial picture are determined.

[0098] As an example, the above-mentioned execution entity can determine the key frame longitude and latitude of the key frames in each picture group in the encoded file to generate a key frame longitude and longitude set; then, compare the target longitude and latitude with the key frame longitude and longitude in the key frame longitude and longitude set, and determine the target picture group to which the target spatial picture belongs based on the comparison result between the target longitude and longitude and the longitude and longitude of each key frame in the key frame longitude and longitude set; then, determine the target picture group identifier of the target picture group and the target picture identifier of the target spatial picture.

[0099] Continuing to refer to Figure 4, the corresponding key frame latitude and longitude set is

[0100] Second, the location information is determined according to the target picture group identifier and the target picture identifier.

[0101] During the encoding process to obtain an encoded file, the spatial picture identifier and the picture group identifier of the picture group to which the spatial picture belongs are generally encoded. After determining the target picture group identifier and the target picture identifier, the position information of the target spatial picture in the encoded file and the position information of the key frames in the target picture group to which the target spatial picture belongs can be determined in the encoded file.

[0102] In this implementation, a specific implementation method is provided for determining the position information of the target spatial picture in the encoded file and the position information of the key frames in the target picture group to which the target spatial picture belongs in the encoded file, which improves the determination efficiency and accuracy of the position information determination process.

[0103] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned first step in the following manner: first, the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame of each picture group in the encoded file belongs is taken as the target picture group, and the target picture group identifier is determined; then, the target picture identifier is determined based on the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.

[0104] As an example, the target longitude and latitude is (60, 20), which is the closest to the key frame longitude and latitude (70, 10) in the key frame longitude and longitude set. Then the picture group GOP3 to which the key frame corresponding to the key frame longitude and longitude (70, 10) belongs is taken as the target picture group, and the target picture group identifier is determined to be 3.

[0105] Then, the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group is determined to be (-10, 10), and the target picture identifier is determined to be 8.

[0106] Continuing with the 3×3 submatrix shown in FIG4 as an example, the offset between the longitude and latitude corresponding to the spatial picture in each picture group and the longitude and latitude corresponding to the key frame is:

[0107] According to the arrangement order of the spatial pictures in the picture sequence corresponding to the picture group during the encoding process, the above offset set is reordered to obtain the sorted offset sequence: OFFSETs = {(0,0),(-10,0),(-10,-10),(0,-10),(10,-10),(10,0),(10,10),(0,10),(-10,10)}

[0108] According to the offset sequence, the target image identifier corresponding to the target space image can be determined.

[0109] In this implementation method, the target picture group identifier of the target picture group is determined based on the comparison results of the key frame longitude and latitude of each key frame involved in the encoded file and the target longitude and latitude of the target spatial picture expected by the user, and then the target picture identifier is determined, thereby improving the versatility and accuracy of the identification information determination process.

[0110] Step 803: Decode the data at the location represented by the location information in the encoded file to obtain the target space image.

[0111] In this example, the execution entity may decode the data at the location represented by the location information in the encoded file to obtain the target space image.

[0112] After determining the location information of the target data to be decoded, the corresponding location coded data in the coded file can be decoded, and the target space image can be decoded and displayed.

[0113] In some optional implementations of this embodiment, the execution entity may perform step 803 as follows:

[0114] First, according to the target picture identifier, it is determined whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group.

[0115] As an example, when it is determined that the target picture identifier is the same as the key frame identifier of the key frame in the target picture group, it is determined that the target spatial picture is the key frame in the target picture group; when it is determined that the target picture identifier is the same as the predicted frame identifier of the predicted frame in the target picture group, it is determined that the target spatial picture is the predicted frame in the target picture group.

[0116] Second, in response to determining that the target spatial picture is a predicted frame in the target picture group, a key frame in the target picture group at the position represented by the position information and a predicted frame corresponding to the target picture identifier are decoded to obtain the target spatial picture.

[0117] When the target spatial picture is a predicted frame in the target picture group, since the predicted frame refers to the key frame in the picture group, it is necessary to simultaneously decode the key frame in the target picture group at the position represented by the position information and the predicted frame corresponding to the target picture identifier to obtain the target spatial picture.

[0118] In some optional implementations of this embodiment, the above-mentioned execution entity can also perform the above-mentioned step 803 in the following manner: in response to determining that the target spatial picture is a key frame in the target picture group, decode the key frame in the target picture group at the position represented by the position information to obtain the target spatial picture.

[0119] When the target spatial picture is a key frame in the target picture group, the key frame in the target picture group at the position represented by the position information can be directly decoded to obtain the target spatial picture without referring to other spatial pictures.

[0120] Continuing with reference to FIG10 , a schematic diagram of a decoding trajectory 1000 is shown. In this embodiment, the target longitude and latitude corresponding to the target spatial image desired by the user are determined based on the acquired operation information; the position information of the target spatial image and the key frames in the target image group to which the target spatial image belongs in the encoded file is determined based on the target longitude and latitude; and the data at the position represented by the position information in the encoded file is decoded to obtain the target spatial image, thereby providing a decoding method suitable for spatial images. Because the spatial images in the encoded file are decoupled in time, the target longitude and latitude are mapped to the position of the corresponding data in the encoded file, thereby achieving decoding at any position and improving decoding flexibility.

[0121] Continuing with FIG11 , a schematic process 1100 of an embodiment of a decoding method applicable to a spatial picture according to the present disclosure is shown, including the following steps:

[0122] Step 1101: Determine the target longitude and latitude corresponding to the target space image desired by the user based on the acquired operation information.

[0123] Step 1102 : The picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in each picture group in the encoded file belongs is taken as the target picture group, and the target picture group identifier is determined.

[0124] Step 1103 : Determine the target picture identifier according to the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.

[0125] Step 1104 : Determine the target spatial picture and the position information of the key frames in the target picture group to which the target spatial picture belongs in the encoded file according to the target picture group identifier and the target picture identifier.

[0126] Step 1105 : Determine, based on the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group.

[0127] Step 1106 : In response to determining that the target spatial picture is a predicted frame in the target picture group, decode the key frame in the target picture group at the position represented by the position information and the predicted frame corresponding to the target picture identifier to obtain the target spatial picture.

[0128] Step 1107 : In response to determining that the target spatial picture is a key frame in the target picture group, decode the key frame in the target picture group at the position represented by the position information to obtain the target spatial picture.

[0129] It can be seen from this embodiment that compared with the embodiment corresponding to Figure 8, the process 1100 of the decoding method applicable to spatial pictures in this embodiment specifically illustrates the process of determining the position information and the decoding process of the target spatial picture, further improving the efficiency and flexibility of the decoding process of the spatial picture.

[0130] Continuing to refer to FIG12 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of an encoding device suitable for spatial images. The device embodiment corresponds to the method embodiment shown in FIG2 , and the device can be specifically applied to various electronic devices.

[0131] As shown in Figure 12, the encoding device suitable for spatial pictures includes: a first generation unit 1201, configured to generate a spatial picture matrix including multiple spatial pictures collected by multiple sampling points according to the longitude and latitude corresponding to the multiple sampling points at different spatial angles; a division unit 1202, configured to divide the spatial picture matrix into sub-matrices of preset sizes to obtain multiple picture groups; a second generation unit 1203, configured to encode the spatial pictures in the spatial picture matrix according to the key frames and prediction frames included in each of the multiple picture groups to generate an encoded file.

[0132] In some optional implementations of this embodiment, the above-mentioned first generation unit 1201 is further configured to: arrange multiple spatial pictures with the longitude of the sampling point corresponding to the spatial picture as the horizontal axis and the latitude of the sampling point corresponding to the spatial picture as the vertical axis to generate a spatial picture matrix.

[0133] In some optional implementations of this embodiment, the above-mentioned second generation unit 1203 is further configured to: arrange the picture groups corresponding to the sampling points at the same latitude in multiple picture groups in order of the longitudes of the sampling points corresponding to the picture groups from small to large, and generate multiple picture group subsequences; arrange the multiple picture group subsequences in order of the latitudes of the sampling points corresponding to the picture groups from small to large, determine the picture group identifiers corresponding to each of the multiple picture groups, and generate a picture group sequence; arrange the spatial pictures in each picture group in the picture group sequence in the order of key frames first and predicted frames later, determine the picture identifiers of the spatial pictures in each picture group in the multiple picture groups, and generate a spatial picture sequence; encode the spatial picture sequence according to the key frames and predicted frames included in each of the multiple picture groups to generate an encoded file.

[0134] In some optional implementations of this embodiment, the above-mentioned second generation unit 1203 is further configured to: take the spatial picture at the center position of the submatrix corresponding to the picture group as the key frame, take the spatial picture adjacent to the key frame as the prediction frame, arrange the spatial pictures in each picture group in the picture group sequence in the order of key frame first and then prediction frame, determine the picture identifier of the spatial picture in each picture group in multiple picture groups, and generate a spatial picture sequence.

[0135] In some optional implementations of this embodiment, the above-mentioned second generation unit 1203 is further configured to: for each picture group in multiple picture groups, use a reference method in which the predicted frame in the picture group uniquely refers to the key frame in the picture group to encode the spatial picture sequence and generate an encoded file.

[0136] In this embodiment, a first generation unit in an encoding device suitable for spatial pictures generates a spatial picture matrix including multiple spatial pictures collected by multiple sampling points according to the longitude and latitude corresponding to multiple sampling points at different spatial angles; a division unit divides the spatial picture matrix into sub-matrices of preset sizes to obtain multiple picture groups; a second generation unit encodes the spatial pictures in the spatial picture matrix according to the key frames and prediction frames included in each of the multiple picture groups to generate an encoding file, thereby providing an encoding device suitable for spatial pictures. During the encoding process, the spatial pictures are reorganized to obtain the spatial picture matrix, and the picture groups in the spatial picture matrix are specified to manage the spatial pictures in the picture groups, thereby realizing the temporal decoupling of the spatial pictures and improving the efficiency and accuracy of the encoding process for the spatial pictures.

[0137] Continuing to refer to FIG13 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a decoding device suitable for spatial pictures. The device embodiment corresponds to the method embodiment shown in FIG8 , and the device can be specifically applied to various electronic devices.

[0138] As shown in Figure 13, the decoding device suitable for spatial pictures includes: a first determination unit 1301, configured to determine the target longitude and latitude corresponding to the target spatial picture desired by the user based on the obtained operation information; a second determination unit 1302, configured to determine the target spatial picture and the key frames in the target picture group to which the target spatial picture belongs, based on the target longitude and latitude, in the encoded file; a decoding unit 1303, configured to decode the data at the position represented by the position information in the encoded file to obtain the target spatial picture.

[0139] In some optional implementations of this embodiment, the above-mentioned second determination unit 1302 is further configured to: determine the target picture group identifier of the target picture group to which the target spatial picture belongs and the target picture identifier of the target spatial picture based on the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file; and determine the location information based on the target picture group identifier and the target picture identifier.

[0140] In some optional implementations of this embodiment, the above-mentioned second determination unit 1302 is further configured to: take the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame of each picture group in the encoded file belongs as the target picture group, and determine the target picture group identifier; determine the target picture identifier based on the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.

[0141] In some optional implementations of this embodiment, the above-mentioned decoding unit 1303 is further configured to: determine, based on the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group; in response to determining that the target spatial picture is a predicted frame in the target picture group, decode the key frame in the target picture group at the position represented by the position information and the predicted frame corresponding to the target picture identifier to obtain the target spatial picture.

[0142] In some optional implementations of this embodiment, the above-mentioned decoding unit 1303 is further configured to: in response to determining that the target spatial picture is a key frame in the target picture group, decode the key frame in the target picture group at the position represented by the position information to obtain the target spatial picture.

[0143] In this embodiment, the first determination unit determines the target longitude and latitude corresponding to the target spatial picture expected by the user based on the obtained operation information; the second determination unit determines the position information of the target spatial picture and the key frames in the target picture group to which the target spatial picture belongs in the encoded file based on the target longitude and latitude; the decoding unit decodes the data at the position represented by the position information in the encoded file to obtain the target spatial picture, thereby providing a decoding device suitable for spatial pictures. During the decoding process, the target longitude and latitude corresponding to the target spatial picture expected by the user are mapped to the corresponding position in the encoded file to realize data decoding at any position, thereby improving the efficiency and flexibility of the decoding process of the spatial picture.

[0144] Referring now to FIG14 , a schematic diagram illustrating the structure of a computer system 1400 suitable for implementing devices (e.g., devices 101, 102, 103, and 105 shown in FIG1 ) according to an embodiment of the present disclosure is shown. The device shown in FIG14 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.

[0145] As shown in FIG14 , a computer system 1400 includes a processor (e.g., a CPU, a central processing unit) 1401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1402 or a program loaded from a storage unit 1408 into a random access memory (RAM) 1403. Various programs and data required for the operation of the system 1400 are also stored in the RAM 1403. The processor 1401, the ROM 1402, and the RAM 1403 are connected to each other via a bus 1404. An input / output (I / O) interface 1405 is also connected to the bus 1404.

[0146] The following components are connected to the I / O interface 1405: an input section 1406 including a keyboard, a mouse, and the like; an output section 1407 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 1408 including a hard disk; and a communication section 1409 including a network interface card such as a LAN card or a modem. The communication section 1409 performs communication processing via a network such as the Internet. A drive 1410 is also connected to the I / O interface 1405 as needed. Removable media 1411, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1410 as needed, so that computer programs read therefrom can be installed into the storage section 1408 as needed.

[0147] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1409 and / or installed from a removable medium 1411. When the computer program is executed by the processor 1401, the above-mentioned functions defined in the method of the present disclosure are performed.

[0148] It should be noted that the computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.

[0149] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the client computer, partially on the client computer, as a stand-alone software package, partially on the client computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the client computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0150] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of 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 than that marked in the accompanying drawings. For example, two boxes represented in succession 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 flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0151] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor. For example, they may be described as: a processor comprising a first generating unit, a dividing unit, and a second generating unit; for another example, they may be described as: a processor comprising a first determining unit, a second determining unit, and a decoding unit. The names of these units do not, in certain cases, constitute a limitation on the units themselves. For example, the second determining unit may also be described as a "unit for determining the position information of the target spatial picture and the key frames in the target picture group to which the target spatial picture belongs in the encoded file according to the target longitude and latitude."

[0152] As another aspect, the present disclosure further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by the device, the computer device: generates a spatial picture matrix including multiple spatial pictures collected by multiple sampling points based on the longitude and latitude corresponding to the multiple sampling points at different spatial angles; divides the spatial picture matrix into sub-matrices of preset sizes to obtain multiple picture groups; and encodes the spatial pictures in the spatial picture matrix based on the key frames and predicted frames included in each of the multiple picture groups to generate an encoded file.

[0153] When the above-mentioned one or more programs are executed by the device, the computer device also enables: determining the target longitude and latitude corresponding to the target space picture desired by the user based on the obtained operation information; determining the position information of the target space picture and the key frames in the target picture group to which the target space picture belongs in the encoded file based on the target longitude and latitude; decoding the data at the position represented by the position information in the encoded file to obtain the target space picture.

[0154] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

Claims

1. A coding method applicable to a spatial picture, comprising: Generate a spatial picture matrix including a plurality of spatial pictures collected by the plurality of sampling points according to the longitudes and latitudes corresponding to the plurality of sampling points at different spatial angles; Dividing the spatial picture matrix into sub-matrices of a preset size to obtain a plurality of picture groups; According to the key frames and the predicted frames respectively included in the multiple picture groups, the spatial pictures in the spatial picture matrix are encoded to generate an encoded file.

2. The method according to claim 1, wherein: The step of generating a spatial picture matrix including a plurality of spatial pictures collected by the plurality of sampling points according to the longitudes and latitudes corresponding to the plurality of sampling points at different spatial angles comprises: The plurality of spatial pictures are arranged with the longitude of the sampling point corresponding to the spatial picture as the horizontal axis and the latitude of the sampling point corresponding to the spatial picture as the vertical axis to generate the spatial picture matrix.

3. The method according to claim 1, wherein: The step of encoding the spatial pictures in the spatial picture matrix according to the key frames and the predicted frames respectively included in the plurality of picture groups to generate a coded file comprises: Arrange the picture groups corresponding to the sampling points at the same latitude in the multiple picture groups in ascending order of the longitudes of the sampling points corresponding to the picture groups, to generate multiple picture group subsequences; Arrange the plurality of picture group subsequences in ascending order of latitudes of sampling points corresponding to the picture groups, determine picture group identifiers corresponding to the plurality of picture groups, and generate a picture group sequence; Arrange the spatial pictures in each picture group in the picture group sequence in the order of key frames first and predicted frames later, determine the picture identifier of the spatial picture in each picture group in the plurality of picture groups, and generate a spatial picture sequence; The spatial picture sequence is encoded according to the key frames and the predicted frames respectively included in the multiple picture groups to generate the encoded file.

4. The method according to claim 3, wherein: The step of arranging the spatial pictures in each picture group in the picture group sequence in the order of key frames first and predicted frames later, determining the picture identifier of the spatial pictures in each picture group in the plurality of picture groups, and generating the spatial picture sequence comprises: Taking the spatial picture at the center position of the submatrix corresponding to the picture group as the key frame, and the spatial picture adjacent to the key frame as the prediction frame, arrange the spatial pictures in each picture group in the picture group sequence in the order of key frame first and prediction frame later, determine the picture identifier of the spatial picture in each picture group in the multiple picture groups, and generate the spatial picture sequence.

5. The method according to claim 3 or 4, wherein: The step of encoding the spatial picture sequence according to the key frames and the predicted frames respectively included in the plurality of picture groups to generate the encoded file comprises: For each picture group in the multiple picture groups, the spatial picture sequence is encoded in a reference manner in which a predicted frame in the picture group uniquely refers to a key frame in the picture group to generate the encoded file.

6. A decoding method applicable to a spatial picture, comprising: Determine the target longitude and latitude corresponding to the target space image desired by the user according to the acquired operation information; Determine, according to the target longitude and latitude, the position information of the target space picture and the key frames in the target picture group to which the target space picture belongs in the encoded file; The data at the position represented by the position information in the encoded file is decoded to obtain the target space picture.

7. The method according to claim 6, wherein: The determining, according to the target longitude and latitude, the target space picture and the key frames in the target picture group to which the target space picture belongs, and the position information in the encoded file includes: Determine a target picture group identifier of a target picture group to which the target spatial picture belongs and a target picture identifier of the target spatial picture according to the target longitude and latitude and key frame longitude and latitude of key frames in each picture group in the encoded file; The location information is determined according to the target picture group identifier and the target picture identifier.

8. The method according to claim 7, wherein: The step of determining the target picture group identifier of the target picture group to which the target spatial picture belongs and the target picture identifier of the target spatial picture according to the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file comprises: The target picture group is determined by taking the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame in each picture group in the encoded file belongs as the target picture group, and determining the target picture group identifier; The target picture identifier is determined according to an offset between the target longitude and latitude and a key frame longitude and latitude corresponding to a key frame in the target picture group.

9. The method according to claim 7 or 8, wherein: The decoding of the data at the position represented by the position information in the encoded file to obtain the target space picture includes: Determining, according to the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group; In response to determining that the target spatial picture is a predicted frame in the target picture group, a key frame in the target picture group at a position represented by the position information and a predicted frame corresponding to the target picture identifier are decoded to obtain the target spatial picture.

10. The method according to claim 9, wherein: The decoding to obtain the target space picture according to the position information further includes: In response to determining that the target spatial picture is a key frame in the target group of pictures, a key frame in the target group of pictures at a position represented by the position information is decoded to obtain the target spatial picture.

11. A coding device for a spatial picture, comprising: A first generating unit is configured to generate a spatial picture matrix including a plurality of spatial pictures collected by the plurality of sampling points according to the longitudes and latitudes corresponding to the plurality of sampling points at different spatial angles; a dividing unit, configured to divide the spatial picture matrix into sub-matrices of a preset size to obtain a plurality of picture groups; The second generating unit is configured to encode the spatial pictures in the spatial picture matrix according to the key frames and the predicted frames respectively included in the plurality of picture groups, and generate an encoded file.

12. A decoding device for a spatial picture, comprising: A first determining unit is configured to determine the target longitude and latitude corresponding to the target space picture desired by the user according to the acquired operation information; A second determining unit is configured to determine, according to the target longitude and latitude, position information of the target space picture and a key frame in the target picture group to which the target space picture belongs in the encoded file; The decoding unit is configured to decode the data at the position represented by the position information in the encoded file to obtain the target space picture.

13. A non-transitory computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 10 is implemented.

14. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Virtual reality compression method based on positions

    CN107197285A

  • Image processing method, terminal and server

    CN109327699A

  • Multi-view-angle-based panoramic playing method and device

    CN113038117A

  • Decoding method and device suitable for space image

    CN116527914A

  • Coding method and device suitable for space image

    CN116527936A