Image file generation method and apparatus, and image processing method and apparatus
Patent Information
- Application Number
- HK62026126632
- Authority / Receiving Office
- HK · HK
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-29
- Filing Date
- 2026-07-24
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2044-02-22
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
(12) International application published under the Patent Cooperation Treaty (19) International Bureau of the World Intellectual Property Organization (43) International Publication Date: 17 October 2024 (17.10.2024) WIPO I PCT lllllllllllllllllllllllllllllllllll^ (10) International Publication Number: WO 2024 / 212707 A1 (51) International Patent Classification: G06F16 / 29 (2019.01) G06T 7 / 11 (2017.01) G06F16 / 172 (2019.01) (21) International Application Number: (22) International Application Date: (25) Application Language: (26) Publication Language: (30) Priority: 202310391194.1 202310786240.8 PCT / CN2024 / 078220 2024 February 23, 2023 (23.02.2024) Chinese Chinese April 12, 2023 (12.04.2023) CN June 29, 2023 (29.06.2023) CN (71) Applicant: Huawei Cloud Computing Technologies Co., Ltd. [CN / CN]; Huawei Cloud Data Center, Jiaoxinggong Road, Qianzhong Avenue, Guian New District, Guiyang City, Guizhou Province, China, 550025 (CN) 0 = - ... 550025 (CN)0 Kang Yifei; Secondary Vocational School, Huawei Cloud Data Center, Xinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province, 550025 (CN)0 (74) Agent: Beijing Longsun Lead IP LTD.; Room 801-1, 8th Floor, Building 3, Zone 2, No. 81 Beiqing Road, Haidian District, Beijing, 100094 (CN)0 (81) Designated Country (unless otherwise specified, each requiring available national protection): AE, AG, AL, AM, AO, AT, AU, AZ, BA, BB, BG, BH, BN, BR, BW, BY, BZ, CA, CH, CL, CN, CO, CR,CU, CV, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, ES, FI, GB, GD, GE, GH, GM, GT, HN, HR, HU, ID, IL, IN, IQ, IR, IS, IT, JM, JO, JP, KE, KG, KH, KN, KP, KR, KW, KZ, LA, LC, LK, LR, LS, LU, LY, MA, MD, MG, MK, MN, MU, MW, MX, MY, MZ, NA, NG, NI, NO, NZ, OM, PA, PE, PG, PH, PL, PT, QA, RO, RS, RU, RW, SA, SC, SD, SE, SG, SK, SL, ST, SV, SY, TH, TJ, TM, TN, TR, TT, TZ, UA, UG, US, UZ, VC, VN, WS, ZA, ZM, ZW O (54) Title: IMAGE FILE GENERATION METHOD AND APPARATUS, AND IMAGE PROCESSING METHOD AND APPARATUS (54) Title of the invention: IMAGE FILE GENERATION METHOD, IMAGE PROCESSING METHOD AND APPARATUS 300 FIG. 3 310 Acquire data of a first image 320 Segment the first image to generate a plurality of tiles 330 Generate a first image file according to the plurality of tiles o O (57) Abstract: The present application provides an image file generation method and apparatus, and an image processing method and apparatus. The image file generation method comprises: receiving first image data, and segmenting the first image data to generate a plurality of tiles; andgenerating a first image file according to the plurality of tiles, wherein the first image file comprises: a first data structure area for storing a file header of the image file; a second data structure area for storing second image data, the second image data comprising a plurality of tiles; and a third data structure area for storing offsets of the plurality of tiles in the second image data. On the basis of said method, a terminal device can request tiles corresponding to a target image, and thus does not need to perform full download on original images, thereby mitigating the problem of slow loading of oversized images, and improving the browsing efficiency. [continued on next page] WO 2024 / 212707 A1 IIIIIIIIIIIIIIIIIIIIIIIIIIIIIM (84) Designated States: unless otherwise indicated, regional protection is claimed for every available region: ARIPO (BW, CV, GH, GM, KE, LR, LS, MW, MZ, NA, RW, SC, SD, SL, ST, SZ, TZ, UG, ZM, ZW), Eurasian (AM, AZ, BY, KG, KZ, RU, TJ, TM), European (AL, AT, BE, BG, CH, CY, CZ, DE, DK, EE, ES, FI, FR, GB, GR, HR, HU, IE, IS, IT, LT, LU, LV, MC, ME, MK, MT,NL, NO, PL, PT, RO, RS, SE, SI, SK, SM, TR), OAPI (BF, BJ, CF, CG, CI, CM, GA, GN, GQ, GW, KM, ML, MR, NE, SN, TD, TG)O This international publication includes: an international search report (Article 21(3) of the Treaty). ________________________________________________________ (57) Abstract: This application provides an image file generation method, an image processing method, and an apparatus. The image file generation method includes: receiving first image data and segmenting the first image data to generate multiple tiles; generating a first image file based on the multiple tiles, the first image file including: a first data structure area for storing the file header of the image file; a second data structure area for storing second image data, the second image data including multiple tiles; and a third data structure area for storing the offsets of the multiple tiles in the second image data. Based on the above method, the terminal device can request the tiles corresponding to the target image, thus avoiding the need to download the entire original image, which helps alleviate the problem of slow image loading in the cloud and improves browsing efficiency. WO 2024 / 212707 PCT / CN2024 / 078220 Specification Image File Generation Method, Image Processing Method and Apparatus This application claims priority to Chinese Patent Application No. 202310391194.1, filed on April 12, 2023, with the Chinese National Intellectual Property Administration, entitled "A File Generation Method, Apparatus and System", and priority to Chinese Patent Application No. 202310786240.8, filed on June 29, 2023, with the Chinese National Intellectual Property Administration, entitled "Image File Generation Method, Image Processing Method and Apparatus", the entire contents of which are incorporated herein by reference. Technical Field This application relates to the field of image processing, and more specifically, to an image file generation method, image processing method, and apparatus. Background Art Imaging objects with high-definition cameras is one of the most direct and effective ways to acquire data in future digital environments. Currently, various fields involve massive amounts of ultra-large image data, which are characterized by multi-source heterogeneity, large size, and complex types. In order to store massive image raster data, cloud storage services are gradually becoming an industry trend. Therefore, image raster data such as images can be stored on cloud servers, and image browsing can be achieved by transmitting the images stored in the cloud to the device. Summary of the Invention This application provides an image file generation method, image processing method, and apparatus, wherein the image file includes segments based on the original image.The method provides a way to generate an image file, including: acquiring data of a first image, including map data; segmenting the first image to generate multiple tiles; and generating a first image file based on the multiple tiles. The first image file includes: a first data structure area for storing the file header of the first image file, the file header indicating the file type of the first image file; a second data structure area for storing data of a second image, the data of the second image including data of multiple tiles; and a third data structure area for storing the offsets of the multiple tiles, the offsets of the multiple tiles indicating the storage location of the data of the multiple tiles in the second data structure area. Based on the above embodiments, a method for generating an image file including the above data structure areas is provided, which allows the terminal device to request only the tiles corresponding to the target image, thereby avoiding the need to download the entire original image, which helps alleviate the problem of slow image loading in the cloud and thus improves browsing efficiency. In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: resampling multiple tiles to generate multi-level tiles, wherein the second image includes multi-level tiles. Based on the above embodiments, providing multi-level tiles facilitates the use of tiles at different levels according to scaling requests, which is beneficial for improving the image browsing experience. In conjunction with the first aspect, in some implementations of the first aspect, for multiple homogeneous tiles among multiple tiles, the data of the second image in the second data structure area includes the data of feature tiles among the multiple homogeneous tiles, and the multiple homogeneous tiles are multiple tiles whose pixel ratio with the feature tiles reaches a predetermined threshold. In conjunction with the first aspect, in some implementations of the first aspect, the offsets corresponding to the multiple homogeneous tiles stored in the third data structure area are the same, and the same offset of the multiple homogeneous tiles indicates the storage location of the feature tiles in the second data structure area. Based on the above embodiments, tile reuse is realized, thereby effectively saving storage space. In conjunction with the first aspect, in some implementations of the first aspect, the third data structure area in the first image file is adjacent to the first data structure area. Based on this embodiment, it is beneficial for improving data reading efficiency. In conjunction with the first aspect, in some implementations of the first aspect, the third data structure area includes labels, whereby the labels include the index code and offset of each tile in the second image. Based on the above embodiments, it is convenient to find the offset in the third data structure area according to the encoded index, and then locate the tile of the target image according to the offset, which is beneficial to improving search efficiency. In conjunction with the first aspect, in some implementations of the first aspect, the data of the second image also includes the first image and / or the first thumbnail.The first thumbnail includes an image obtained by resampling the first image; the third data structure area also includes the offset corresponding to the first image and / or the first thumbnail. Based on the above embodiments, setting the second image in the first image file to further include the original image enables the first image file to be better compatible with existing TIFF format files; furthermore, setting the image data of the first image file to further include the first thumbnail facilitates image browsing and processing based on the first thumbnail; in addition, compared to storing the thumbnail or tile pyramid separately from the original image, storing all three in the image data of the first image file can reduce file input / output frequency and improve read / write efficiency. In conjunction with the first aspect, in some implementations of the first aspect, the first thumbnail includes multi-level thumbnails, which include multiple images with different resolutions obtained by resampling the first image multiple times. Based on the above embodiments, providing multi-level thumbnails facilitates different levels of thumbnails according to scaling requests, which is beneficial for improving the image browsing experience. In conjunction with the first aspect, in some implementations of the first aspect, the first image file further includes: a fourth data structure area, which stores specific attributes of multiple tiles, the size of which is greater than a certain threshold. In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: defining a projection coordinate system for the first image; defining a coordinate reference hierarchy for the first image based on the projection coordinate system; and segmenting the first image according to the coordinate reference hierarchy to obtain multiple tiles. In a second aspect, an image processing method is provided, comprising: receiving a first data request from a terminal device, the first data request requesting data of a first target image in a first image file, the first image file including a second data structure area including data of a second image, the second image including multiple tiles, the multiple tiles including an image obtained by segmenting based on the first image, wherein the first target image includes one or more tiles from the second image; obtaining data of the first target image from the first image file according to the first data request; and sending the data of the first target image to the terminal device. Based on the above embodiments, the server receives a first data request sent by the terminal device, then obtains one or more tiles included in the first target image according to the first data request, and sends them to the terminal device. This eliminates the need to download the entire original image, significantly alleviating the problem of slow image loading in the cloud and improving browsing efficiency; it also reduces data transmission volume. In conjunction with the second aspect, in some implementations of the second aspect, the second image includes multi-level tiles, which include multiple tiles of different levels obtained by multiple resampling of multiple tiles. Furthermore, the first target image specifically includes tiles of the same level within the multi-level tiles.One or more tiles in a layer. Based on the above embodiments, multiple tiles in a layer can be requested in a single request, which helps save transmission overhead. In conjunction with the second aspect, in some implementations of the second aspect, the first image file further includes a third data structure area, which includes offsets of data for multiple tiles in the second image. These offsets indicate the storage location of the data for the multiple tiles in the second data structure area. In conjunction with the second aspect, in some implementations of the second aspect, for multiple homogeneous tiles among the multiple tiles, the data of the second image in the second data structure area includes data for feature tiles among the multiple homogeneous tiles. The multiple homogeneous tiles are multiple tiles whose pixel percentage with the feature tiles reaches a predetermined threshold. In conjunction with the second aspect, in some implementations of the second aspect, the offsets corresponding to the multiple homogeneous tiles stored in the third data structure area are the same, and the same offset of the multiple homogeneous tiles indicates the storage location of the feature tiles in the second data structure area. Based on the above embodiments, by implementing tile reuse, storage space is effectively saved. In conjunction with the second aspect, in some implementations of the second aspect, obtaining data of the first target image from the first image file according to the first data request includes: determining the first target image according to the first data request; determining the first tile corresponding to the first target image according to the first target image; obtaining a first offset, the first offset being the offset of the first tile; obtaining the first tile according to the first offset; and sending the data of the first target image to the terminal device includes: sending the data of the first tile to the terminal device. In conjunction with the second aspect, in some implementations of the second aspect, the first data request includes a first offset, the first offset being the offset of the first tile corresponding to the first target image; obtaining data of the first target image from the first image file according to the first data request includes: obtaining the first tile according to the first offset; and sending the data of the first target image to the terminal device includes: sending the data of the first tile to the terminal device. Based on the above scheme, the first target image can be requested by including a first offset in the first data request. The server does not need to search for the offset corresponding to the first target image in the third data structure area, and can directly determine the location of the required tile based on the first offset in the first data request, thereby improving reading efficiency. Furthermore, this scheme can request data for multiple tiles in one data request, saving transmission overhead and improving browsing efficiency. In conjunction with the second aspect, in some implementations of the second aspect, before receiving the first data request from the terminal device, the method further includes: receiving a second data request from the terminal device, the second data request being used to request the third data structure area of the first image file;The third data structure area is obtained according to the second data request; the third data structure area is then sent to the terminal device. Based on this scheme, the terminal device can query the corresponding first offset in the third data structure area according to the set of index codes corresponding to the tiles in the first target image. In conjunction with the second aspect, in some implementations of the second aspect, the first image file also includes a first data structure area, which includes a file header indicating the file type. The third data structure area is adjacent to the first data structure area in the first image file. In this scheme, the third data structure area can be read quickly after reading the first data structure area, which is beneficial to improving data reading efficiency. In conjunction with the second aspect, in some implementations of the second aspect, the third data structure area includes a label, which includes the index code and offset of each tile in the first tile. In this scheme, the offset can be found in the third data structure area according to the index code, and then the tile of the target image can be located according to the offset, which is beneficial to improving search efficiency. In conjunction with the second aspect, in some implementations of the second aspect, the second image further includes a first image and / or a first thumbnail, the first thumbnail comprising an image obtained by resampling based on the first image; the third data structure area further includes the data of the first image and / or the offset corresponding to the data of the first thumbnail. Based on the above embodiments, setting the image data of the first image file to further include the original image enables the first image file to be better compatible with existing TIFF format files; furthermore, setting the image data of the first image file to further include the first thumbnail facilitates image browsing and processing based on the first thumbnail; in addition, compared to storing the thumbnail or tile pyramid separately from the original image, storing all three in the image data of the first image file can also reduce the file input / output frequency and improve read / write efficiency. In conjunction with the second aspect, in some implementations of the second aspect, the first thumbnail includes multi-level thumbnails, the multi-level thumbnails comprising multiple images with different resolutions obtained by resampling the first image multiple times. In conjunction with the second aspect, in some implementations of the second aspect, the first image file further includes: a fourth data structure area, which stores specific attributes of multiple tiles, the size of which is greater than a certain threshold. A third aspect provides an image processing method, comprising: sending a first data request to a server, the first data request requesting data of a first target image in a first image file, the first image file including a second data structure area including data of a second image, the second image including multiple tiles, the multiple tiles including an image obtained by segmenting based on the first image, wherein the first target image includes one or more tiles from the second image; receiving data of the first target image from the server; and presenting the first target image based on the data of the first target image.Based on the above scheme, the terminal device can request a first target image from a first image file on the server by sending a first data request. The server then obtains one or more tiles included in the first target image according to the first data request and sends them to the terminal device. This eliminates the need to download the entire original image, significantly alleviating the problem of slow image loading in the cloud and improving browsing efficiency; it also reduces data transmission volume. In conjunction with the third aspect, in some implementations of the third aspect, the second image includes multi-level tiles, which include multiple tiles of different levels obtained by multiple resampling of multiple tiles. Specifically, the first target image includes one or more tiles of the same level within the multi-level tiles. In conjunction with the third aspect, in some implementations of the third aspect, the first image file also includes a third data structure area. The third data structure area stores the offsets of the tile data in the second image, and the offsets indicate the storage location of the data of multiple tiles in the second data structure area. In conjunction with the third aspect, in some implementations of the third aspect, for multiple homogeneous tiles among multiple tiles, the data of the second image in the second data structure area includes the data of the feature tiles among the multiple homogeneous tiles, wherein the multiple homogeneous tiles are multiple tiles whose pixel proportions, identical to those of the feature tiles, reach a predetermined threshold. In conjunction with the third aspect, in some implementations of the third aspect, the offsets corresponding to the multiple homogeneous tiles stored in the third data structure area are the same, and the same offset of the multiple homogeneous tiles indicates the storage location of the feature tiles in the second data structure area. In conjunction with the third aspect, in some implementations of the third aspect, the first data request includes a first offset, the first offset being the offset of a first tile, and the first tile including one or more tiles corresponding to the first target image. In conjunction with the third aspect, in some implementations of the third aspect, before sending the first data request to the server, the method further includes: sending a second data request to the server, the second data request being used to request the third data structure area of the first image file; receiving the third data structure area from the server; and determining the first offset based on the third data structure area. In conjunction with the third aspect, in some implementations of the third aspect, before sending the first data request to the server, the method further includes: obtaining an image access request, the image access request being used to request the display of a first target image in the first image; and determining the first target image based on the image access request. In conjunction with the third aspect, in some implementations of the third aspect, determining the first target image includes: determining the layer and pixel coordinates of the first target image based on the image access request; and determining the first target image based on the layer and pixel coordinates of the first target image.In conjunction with the third aspect, in some implementations of the third aspect, the third data structure area includes labels, each label including an index code and offset for each tile in the second image. Determining the first offset based on the third data structure area includes: obtaining the index codes of the tiles in the first target image; and searching in the third data structure area based on the index codes of the tiles in the first target image to determine the first offset. In conjunction with the third aspect, in some implementations of the third aspect, the first image file also includes a first data structure area, which includes a file header indicating the file type. The third data structure area is adjacent to the first data structure area in the first image file. In conjunction with the third aspect, in some implementations of the third aspect, the second image data in the second data structure area also includes data of the first image and / or data of the first thumbnail, the first thumbnail including an image obtained by resampling based on the first image data; the third data structure area also includes the offsets corresponding to the data of the first image and / or the data of the first thumbnail. In conjunction with the third aspect, in some implementations of the third aspect, the first thumbnail includes a multi-level thumbnail, which includes multiple images with different resolutions obtained by resampling the first image multiple times. In a fourth aspect, an image file generation apparatus is provided, comprising: a transceiver module for receiving data of a first image, the data of which includes map data; a processing module for segmenting the first image to generate multiple tiles; the processing module is further configured to generate a first image file based on the multiple tiles, wherein the first image file includes: a first data structure area for storing a file header indicating the file type; a second data structure area for storing data of a second image, the data of which includes data of multiple tiles; and a third data structure area for storing offsets of the multiple tiles in the second image data, the offsets of which indicate the storage location of the data of the multiple tiles in the second image data. Based on the above embodiments, the image file generation apparatus can generate image files including the aforementioned data structure areas, allowing only the tiles corresponding to the target image to be requested, thus eliminating the need to download the entire original image, which helps alleviate the problem of slow image loading in the cloud and improves browsing efficiency. Fifthly, an image processing apparatus is provided, characterized in that the apparatus comprises: a transceiver module, configured to receive a first data request from a terminal device, the first data request being for requesting data of a first target image in a first image file, the first image file including a second data structure area, the second data structure area including data of a second image, the data of the second image including data of a plurality of tiles, the plurality of tiles including an image obtained by segmenting based on the first image, wherein the first target image includes one or more tiles of the second image;The image processing apparatus includes a transceiver module for obtaining data of a first target image from a first image file according to a first data request; and a transceiver module for sending the data of the first target image to a terminal device. Based on the above scheme, the image processing apparatus can receive a data request sent by a terminal device through the transceiver module, and the processing module then obtains one or more tiles included in the first target image according to the first data request and sends them to the terminal device. This eliminates the need to download the entire original image, significantly alleviating the problem of slow image loading in the cloud and improving browsing efficiency; it also reduces the amount of data transmitted. In a sixth aspect, an image processing apparatus is provided, characterized in that the apparatus includes: a transceiver module for sending a first data request to a server, the first data request requesting data of a first target image from a first image file, the first image file including a second data structure area including data of a second image, the second image including multiple tiles, the multiple tiles including an image obtained by segmenting based on the first image data, wherein the first target image includes one or more tiles in the second image; the transceiver module is also used to receive data of the first target image from the server; and a processing module for presenting the first target image according to the data of the first target image. Based on the above scheme, the image processing device can send a first data request to the server through the transceiver module, thereby requesting a first target image from a first image file on the server. The server then obtains one or more tiles included in the first target image according to the first data request, thus eliminating the need to download the entire original image. After the transceiver module receives the data of the first target image from the server, the processing module presents the first target image based on the data, thereby significantly alleviating the problem of slow image loading on the cloud and improving browsing efficiency; it can also reduce the amount of data transmission. In a seventh aspect, a first image file is provided, comprising a first data structure area for storing the file header of the first image file, the file header indicating the file type of the first image file; a second data structure area for storing data of a second image, the data of the second image including data of multiple tiles; the multiple tiles including images obtained by segmenting based on the first image; and a third data structure area for storing the offsets of the multiple tiles, the offsets of the multiple tiles indicating the storage location of the data of the multiple tiles in the second data structure area. Eighth aspect, a computing device is provided, including a processor and a memory, the processor being configured to execute instructions stored in the memory to cause the computing device to perform the methods of any one of the first, second, or third aspects. Ninth aspect, a computing device cluster is provided, including at least one computing device, each computing device including a processor and a memory;A processor of at least one computing device is configured to execute instructions stored in the memory of at least one computing device to cause a cluster of computing devices to perform a method as described in the first aspect, or the second aspect, or the third aspect. A tenth aspect provides a computer-readable storage medium including computer program instructions that, when executed by a cluster of computing devices, cause the cluster of computing devices to perform a method as described in the first aspect, or the second aspect, or the third aspect. An eleventh aspect provides a computer program product containing instructions, characterized in that, when executed by a cluster of computing devices, the cluster of computing devices causes the cluster of computing devices to perform a method as described in the first aspect, or the second aspect, or the third aspect. A twelfth aspect provides a cloud-side device including at least one processor coupled to at least one memory, the at least one processor being configured to execute a computer program or instructions stored in at least one memory to cause the cloud-side device to perform a method as described in the first aspect, or the second aspect. A thirteenth aspect provides an edge-side device including at least one processor coupled to at least one memory, the at least one processor being configured to execute a computer program or instructions stored in at least one memory to cause the edge-side device to perform a method as described in the third aspect. In a fourteenth aspect, an edge-cloud collaborative system is provided, including a cloud-side device as described in aspect twelfth and an edge-side device as described in aspect thirteen. Brief Description of the Drawings: Figure 1 is a schematic diagram of an edge-cloud collaborative system provided in an embodiment of this application. Figure 2 is a schematic diagram of an image processing method provided in an embodiment of this application. Figure 3 is a schematic diagram of an image file generation method provided in an embodiment of this application. Figure 4 is a TIFF image provided in an embodiment of this application. Figure 5 is a schematic diagram of the file structure of a TIFF image file provided in an embodiment of this application. Figure 6 is a schematic diagram of the coordinate mapping of a TIFF image provided in an embodiment of this application. Figure 7 is a schematic diagram of an image resampling and segmentation process provided in an embodiment of this application. Figure 8 is a schematic diagram of the file structure of a first image file provided in a typical embodiment of this application. Figure 9 is a schematic diagram of the tile determination process of a first target image provided in an embodiment of this application. Figure 10 is a schematic block diagram of an image file generation apparatus provided in an embodiment of this application. Figure 11 is a schematic block diagram of an image processing apparatus provided in an embodiment of this application. Figure 12 is a schematic structural block diagram of a computing device provided in an embodiment of this application. Figure 13 is a schematic structural block diagram of a computing device cluster provided in an embodiment of this application. Figure 14 is a schematic structural block diagram of another computing device cluster provided in an embodiment of this application. Detailed embodiments will be described below with reference to the accompanying drawings. The end-side devices in the embodiments of this invention can also be referred to as terminal devices, user equipment (UE), or mobile stations.Station (MS), or mobile terminal, etc. The end-side device can be, for example, a mobile phone (or "cellular" phone) or a computer with a mobile terminal, such as a portable, pocket-sized, handheld, computer-built-in, or vehicle-mounted mobile device. In this embodiment of the invention, the cloud-side device can be a server or a server cluster; the cloud-side device can also be called a computing node or a cloud-side computing cluster. To facilitate understanding and description of the image processing method provided in this embodiment of the invention, the end-cloud collaborative system 1000 provided in this application embodiment is described below with reference to FIG1. As shown in FIG1, the end-cloud collaborative system 100 includes an end-side device 110 and a cloud-side device 120. The end-side device 110 includes an image processing system 111 and application programs 112 (APP1, ApF2, ..., ApfN). The image processing system 111 includes a transceiver module and a processing module; wherein, the transceiver module is used to send image data requests or receive image data. The cloud-side device 120 includes a cloud storage module, a transceiver module, and a processing module. The cloud storage module is used to store image data. The following describes the relevant terms used in the embodiments of this application. 1. Raster image: Also known as a bitmap image or raster image, it refers to an image whose smallest unit is composed of pixels. It is typically acquired through photography, scanning, or other means, and file formats include BMP, GIF, JPG, TIFF, etc., and it is widely used in satellite remote sensing, astronomical observation, biomedicine, land management, and other fields. 2. Tile: Refers to a number of small images that are uniformly and seamlessly divided into several parts according to a fixed specification (such as 256*256). The process of dividing an image into tiles is called image slicing. 3. Tile pyramid: Tiles of different levels form a tile pyramid, also called an image pyramid. In this application, it can also be referred to as a multi-level tile, which is a multi-resolution hierarchical model. Each tile is identified by "layer number, row number, and column number". The layer refers to the resolution level; the higher the layer number, the higher the image resolution and the clearer the tile. 4. Thumbnail: A small image is a proportionally resampled version of a large image. Except for file size differences, thumbnails maintain a similar visual effect to the original image. Depending on the scaling degree, there can be multiple thumbnails with different resolutions. 5. Homogeneous region: A large area with a consistent color mode is called a homogeneous region, such as large geographical areas like snow-capped mountains, deserts, or oceans. The above provides a brief explanation of the terms used in this application, which will not be repeated in the following embodiments. Furthermore, the above explanations of terms are for ease of understanding only and do not limit the scope of protection of the embodiments of this application. In current cloud architectures, information systems mostly adopt a browser / server architecture.B / S architecture. In the B / S architecture design, the display of cloud images on the terminal mainly relies on network (Web) transmission technology. That is, after the image to be displayed on the cloud is transmitted to the terminal via the Web, the terminal renders a part of the image according to the screen range. However, when faced with a large amount of image data and frequent user operations such as panning and zooming, the terminal sends a large number of requests. Each request needs to transmit the original image, resulting in abnormally slow loading of cloud images and difficulty in achieving efficient browsing of large cloud images. In view of this, this application proposes a solution that can alleviate the problem of difficulty in efficiently browsing cloud images on the terminal. Figure 2 shows a schematic diagram of an image processing method 200 provided by an embodiment of this application. This method can be applied to the terminal-cloud collaborative system shown in Figure 1, but this application embodiment is not limited to it. The method includes the following steps: S210, the terminal device sends a first data request to the server; The terminal device can send a first data request to the server, wherein the first data request can be used to request data of a first target image in a first image file. The first target image can be the image that the terminal device needs to browse. The first image file may include a second data structure area, which can be used to store the data of the second image. The second image may include multiple tiles obtained by segmenting the first image. In this embodiment, the first target image may include one or more tiles from the second image. It is understood that the first image may be the original image, and the first image referred to below may also be called the original image, without limitation. For example, the data of the first image may include map data. In some embodiments, the second image in the second data structure area may include multi-level tiles, and the multi-level tiles may specifically include multiple tiles of different levels obtained by resampling multiple times based on the above-mentioned multiple tiles. Based on the above embodiments, providing multi-level tiles facilitates the use of tiles of different levels according to scaling requests, which is beneficial to improving the image browsing experience. In some embodiments, the first image file may also include a third data structure area, which can be used to store the offset of the data of multiple tiles in the second image, wherein the offset is used to indicate the storage location of the data of multiple tiles in the second data structure area. In some implementations, the first image file may further include a first data structure area, which may be used to store the file header of the first image file, wherein the file header is used to identify or indicate the file type. Optionally, the first data request may be an HTTP range (GETRange) request. Correspondingly, the server may receive the first data request from the terminal device. Optionally, the first image file may be stored on the server, and after the server receives the first data request from the terminal device, it may obtain the data of the first target image from the first image file according to the first data request.Optionally, the server may generate a first image file before receiving a first data request from a terminal device. This application provides an image file generation method 300, as shown in Figure 3. The method includes: S310, acquiring data of a first image; S320, segmenting the first image to generate multiple tiles; S330, generating a first image file based on the multiple tiles. Specifically, the first image file may include: a first data structure area, used to store the file header of the image file; wherein the file header may identify or indicate the file type. In some embodiments, the file header of the image file may be the same as the file header of the original image, thereby enabling the image file to be compatible with the original image format. Optionally, the file header of the original image can be directly extracted as the file header of the image file. A second data structure area, used to store data of a second image, the data of the second image including data of multiple tiles; and a third data structure area, which may be used to store the offsets of the data of the multiple tiles in the second image. Based on the embodiments of the above image file generation method, an image file including the aforementioned data structure area is provided, enabling the request of only the tiles corresponding to the target image without downloading the entire original image. This helps alleviate the problem of slow image loading in the cloud and improves browsing efficiency. In some embodiments, the second image may include multi-level tiles. In step S330, a projection coordinate system can be defined for the original image first, and then a coordinate reference level can be defined based on the projection coordinate system. Further, the original image can be segmented and resampled according to the coordinate reference level to obtain multi-level tiles. Specifically, multiple resampling operations can be performed on the multiple tiles obtained from segmenting the original image according to the coordinate reference level to obtain multi-level tiles. In some embodiments, the first image file may also include a fourth data structure area, which can be used to store specific attributes of the second image. Optionally, the size of this specific attribute is greater than a certain threshold. In specific embodiments of this application, the first data structure area can be described as a "file header," the second data structure area can be described as "image data," the third data structure area can be described as an "image attribute directory," and the fourth image attribute can be described as "attribute value," which will not be repeated below. It should be understood that the following are merely examples for ease of description and understanding and should not constitute any limitation on the technical solution. The image file generation method described above is illustrated below with reference to specific embodiments. For example, the format of the first image file can be named RM-TIFF format. In some embodiments, the format of the original image can be a tag image file format.(TIFF). For example, the suffix of the original image file may include tif, tiff, TIF, TIFF, etc. A TIFF format image file generally includes an Image File Header (IFH), image data, an Image File Directory (IFD), and attribute values. It should be noted that a TIFF file can store multiple images; that is, there can be one or more image data entries, and image data and IFDs appear in pairs. In other words, each image data entry corresponds to one or more IFDs. To facilitate understanding of the embodiments of this application, Figure 4 provides a TIFF image according to an embodiment of this application. The TIFF image, when opened, is shown in Figure 4. The TIFF image has a width of 750 pixels and a height of 1000 pixels. Figure 5 shows a schematic diagram of the file structure of the image file of the TIFF image in Figure 4. As shown in Figure 5, the image file of the TIFF format image includes an IFH, image data, an IFD, and attribute values. Since the image in this embodiment is small, it only contains one image data entry, and the attributes within the image are recorded through an IFD. TIFF format image files typically begin with an 8-byte IFH. An IFH (Integer Flowchart) can include a sequence flag, a TIFF flag, and the offset of the first IFD (Integer Flow Descriptor). The sequence flag occupies 2 bytes; the TIFF flag occupies 2 bytes; and the offset of the first IFD occupies 4 bytes, indicating the position of the first IFD corresponding to the first image data. IFDs can record attributes within the image. Specifically, an IFD includes the tag number, the tag itself, and the offset of the next IFD. The tag number occupies 2 bytes, recording the total number of subsequent tags; each tag occupies 12 bytes, representing a specific image attribute, which can be further divided into tag number (2 bytes), value type (2 bytes), value quantity (4 bytes), and data or offset (4 bytes). If the byte length of the value type multiplied by the value quantity is less than or equal to 4 bytes, the data can be directly stored in the tag; otherwise, the data can be stored in the attribute value at the end of the TIFF format, and the offset recorded in the tag. At the end of the IFD, there is also the offset of the next IFD; if there is no next IFD, this value can be NULL (0x00000000). In IFD, the labels are numbered in ascending order. This numbering is defined in the TIFF specification. For example, label number 256 represents the image width, and label number 282 represents the offset of the strip data. A strip divides continuous data into blocks, each stored in a different location. In the image file shown in Figure 5, label 3 points to the location of the image data within the TIFF file.In some implementations, the original image can also be in GeoTIFF format. GeoTIFF is an extended format of Tag Image File Format (TIFF), which defines geotags on top of TIFF to define and store various coordinate systems, ellipsoidal references, projection information, etc., so that image data and geographic data are stored in the same image file, thereby facilitating the creation and use of images with geographic information. For example, geographic information can be coordinate systems, latitude and longitude, etc. Processing images based on GeoTIFF format defines a standard coordinate system for the image, which is beneficial for subsequent format conversion. Specifically, in step S310 above, the file header 1FH of the original image can be extracted first as the file header of the first image file. Optionally, the format of the original image can be verified first to check whether it is a correct TIFF format or GeoTIFF format. For example, third-party libraries such as libtiff can be used to verify whether an image is in the correct TIFF format. For example, third-party libraries such as GDAL and OpenCV can be used to verify whether an image is in GeoTIFF format. In some implementations, the original image can be resampled to obtain a first thumbnail. The first thumbnail can include multi-level thumbnails, and the multi-level thumbnails include multiple images with different resolutions obtained by resampling the original image multiple times. The multi-level thumbnails can also be generated based on the aforementioned coordinate reference hierarchy. In this embodiment, when generating the second data structure area of the first image file in step S330, the first thumbnail and / or the original image can also be stored in the second data structure area. Based on the above embodiments, storing the original image in the second data structure area of the first image file enables the first image file to be better compatible with existing TIFF format files. Storing the first thumbnail in the second data structure area of the first image file facilitates image browsing and processing based on the first thumbnail. Compared to storing the thumbnail or tile pyramid separately from the original image, storing all three in the second data structure area of the first image file helps reduce file input / output (I / O) frequency and improves read / write efficiency. Optionally, in step S330, the offset of the first thumbnail and / or the original image data in the second data structure area can also be stored in the third data structure area. Furthermore, the image attributes in the IFD of the original image can also be stored in the third data structure area.In some implementations, image attributes in the IFD of the original image can be extracted and stored in memory. For example, the original image can be the TTFF image shown in Figure 4, and the image attributes in the TFD of the original image can be the image width, image height, strip offset, etc. of the original image shown in Figure 5. In some embodiments, data structures, such as Map structures, can be used to temporarily store the extracted IFH, IFD, and image data of the original image for later use. In other embodiments, the extracted IFH, IFD, and image data of the original image can be directly stored in a file for persistent use. The following describes the definition of the projection coordinate system, coordinate reference level, and the segmentation and resampling based on the original image in step S330 above, in conjunction with specific embodiments. (1) Defining the projection coordinate system Specifically, when the format of the original image is TIFF, the original image in TIFF format can be converted to GeoTIFF format first. GeoTIFF format image files contain geographic data, and a geographic coordinate system is defined based on the geographic data. It is understood that a geographic coordinate system is a spherical coordinate system in space, while a projected coordinate system is a planar coordinate system. The process of converting spherical coordinates to planar coordinates is called projection. In some implementations, GeoTIFF format images define both a geographic coordinate system and a projected coordinate system; that is, each pixel in GeoTIFF format can correspond to one geographic coordinate and one projected coordinate. In other implementations, GeoTIFF format images only define a geographic coordinate system, in which case a projected coordinate system needs to be defined based on that geographic coordinate system. In this application embodiment, defining a projected coordinate system can be understood as converting spherical coordinates to planar coordinates. For example, a projected coordinate system can be defined using the DefineProjection_management method of the arcpy script. It should be noted that defining a projected coordinate system does not change the geometric information of the image; it only updates the coordinate system, and therefore does not cause distortion to the image display. For example, the projected coordinate system can be defined as a spherical Mercator coordinate system (also known as a "Web Mercator coordinate system"), and projection can be performed based on the EPSG:3857 projection standard. In some implementations, the pixel coordinates of the original image can also be directly projected into projected coordinates. Specifically, the width and height of a TIFF image can be mapped to coordinates in a two-dimensional plane coordinate system, serving as the image's projection coordinates. For example, Figure 6 is a schematic diagram of the coordinate mapping for the TIFF image shown in Figure 4. Given that the resolution of the TIFF image shown in Figure 4 is 750*1000, the lower left corner of the TIFF image can be set as the origin (0,0) of the projection coordinate system. Therefore, the coordinates of the upper right corner of the TIFF image are (750, 0, 0).1000). As shown in Figure 6, this is a schematic diagram of the projected coordinates of the TIFF image after mapping. (2) Defining the coordinate reference level In some implementations, the coordinate reference level can be defined based on the projected coordinate system of the original image, which facilitates the generation of multi-level thumbnails and multi-level tiles, wherein the coordinate reference level corresponds to the level in the multi-level thumbnails and multi-level tiles. Generally, the maximum zoom level resolution during image browsing does not exceed the original resolution of the image, and the resolution of adjacent levels is twice that of each other. For example, assuming the length and width of each tile are 256 pixels, the tile pyramid can represent an image using 1*1 tiles for layer 0, 2*2 tiles for layer 1, 4*4 tiles for layer 2, and so on. The tile layer correspondence is shown in Table 1: 8 WO 2024 / 212707 PCT / CN2024 / 078220 Table 1 Tile Layer Correspondence of an Embodiment of this Application Pyramid Layer Number of Tiles Maximum Pixel Range Represented 0 1 256*256 1 4 512*512 2 16 1024*1024 3 64 2048*2048 ....... ....... ....... 15 1,073,741,824 8,388,608*8,388,608 16 4,294,967,296 According to Table 1, the 18 layers of the pyramid can represent images with a maximum pixel range of 67,108,864*67,108,864 pixels. Images exceeding this range can be further subdivided. Using the TIFF image shown in Figure 4 as the original image, the image size is 750*1000, so it can be represented by the second layer of the tile pyramid with a pixel range of 1024*1024. The pyramid level containing this image is the second layer, covering 12 tiles. Based on the defined coordinate reference hierarchy, the original image can be segmented and resampled to obtain multi-level tiles; it can also be resampled to obtain multi-level thumbnails. Segmentation can also be called cropping. For example, segmentation and resampling can be accomplished with the help of third-party libraries such as GDAL and OpenCV. (3) Segmentation and resampling based on the original image The resampling and segmentation process will be described below with reference to specific embodiments. Figure 7 is a schematic diagram of a resampling and segmentation process provided by an embodiment of this application. The original image in the resampling and segmentation process is the TIFF image in Figure 4. For example, in this embodiment, the tile length and width are both 256 pixels.As shown in Figure 7, the multi-level tile acquisition process is as follows: The original image with a resolution of 750*1000 is segmented to obtain 12 second-layer tiles; the 12 second-layer tiles are resampled to obtain 4 first-layer tiles. For example, resampling the 4 second-layer tiles labeled ①, ②, ③, and ④ in the figure yields 1 first-layer tile labeled ⑤; resampling the 4 first-layer tiles yields 1 first-layer tile. The multi-level thumbnail acquisition process is as follows: The original image with a resolution of 750*1000 is directly used as the second-layer thumbnail; the second-layer thumbnail is resampled to obtain 1 first-layer thumbnail with a resolution of 375*500; the first-layer thumbnail is resampled to obtain 1 first-layer thumbnail. Specifically, in step S330, the acquired multi-level thumbnails and multi-level tiles can be uniformly encoded, and the index code and offset of each image can be stored in the third data structure area. For example, the geohash method can be used for encoding, or other encoding methods, such as custom encoding methods, can be used; this application does not limit this. For example, in the embodiment shown in Figure 7, the geohash method can be used to encode the tiles in a ζ-shaped sequence. The index codes of tiles numbered ①, ②, ③, and ④ in the second layer are 0000, 0001, 0010, and 0011, respectively; the index code of tile numbered ⑤ in the first layer is 00. Based on the above embodiment, it is convenient to determine the offset according to the encoded index, thereby locating the tile of the target image according to the offset. In some embodiments, the index code and offset of the thumbnail can be stored in one label in the third data structure area; when the number of thumbnails is large, the encoding and offset of the thumbnails can also be stored in multiple labels in the third data structure area. Similarly, the tile encoding and offset can also be stored in one or more tags in the third data structure area. For example, in this embodiment, the offsets of the thumbnails in layers 0-2 are uniformly stored in one tag. In summary, a first image file can be generated based on the original image. Figure 8 shows a schematic diagram of the file structure of a first image file according to an embodiment of this application. Referring to Figure 8, the first image file includes IFH, IFD, attribute values, and image data. In IFD, tags 1 to n represent the attribute information of the original image, such as image width, image height, and strip offset; tags n+1 to m represent coordinate information; tags m+1 to k represent the offset of the original image; and subsequent tags are used to store the offsets of thumbnails and tiles. In some implementations, region detection can be performed on the tiles in the first image file to identify homogeneous tiles, where homogeneous tiles are those that have the same proportion as the feature tiles reaching a predetermined threshold. For example, homogeneous region detection can employ deep learning and histograms.Analysis can be performed using methods such as analysis. Specifically, similarity detection can be performed on tiles; tiles with a large number of identical color modes belong to homogeneous regions. In similarity detection, a parameter can be set such that if the proportion of identical or similar pixels in two tiles exceeds a certain threshold, then the two tiles are considered to be homogeneous tiles. Specifically, the parameter can be set according to the actual needs of the application. For multiple homogeneous tiles, the tile that best represents the region can be extracted as the feature tile. For example, feature tiles can be extracted through manual selection or machine learning. In the image data of the first image file, only the data of the feature tile among the multiple homogeneous tiles can be included, that is, the data of homogeneous tiles other than the feature tile can be deleted; and the offsets corresponding to multiple homogeneous tiles in the IFD are all set to the offset of the feature tile, that is, the offsets of multiple homogeneous tiles all indicate the position of the feature tile in the first image file. Based on the above embodiments, storage space is effectively saved by enabling tile reuse. In some implementations, image data in the first image file can be compressed to reduce storage space and lower network transmission costs. After compression, the offset in the IFD needs to be updated synchronously. For example, compression methods such as LZM, JPEG, and DEFLATE can be used. In some implementations, the third data structure area can be set adjacent to the first data structure area. Specifically, the IFD in the first image file can be set adjacent to the IFH. Based on this embodiment, it is beneficial to improve data reading efficiency. In some implementations, attribute values can also be placed adjacent to the IFD after the file header to facilitate reading complete image attributes at once. Based on the above embodiments, by converting the format of the original image, a first image file in RM-TIFF format can be obtained. S220, the server obtains the data of the first target image in the first image file according to the first data request. After receiving the first data request in S210, the server can obtain the data of the first target image in the first image file according to the first data request. S230, the server sends the data of the first target image to the terminal device. Correspondingly, the terminal device can receive data from the server for the first target image and present the first target image based on the data. Based on the above embodiments, the terminal device can request the first target image from the first image file on the server by sending a first data request. The server then obtains one or more tiles included in the first target image according to the first data request and sends them to the terminal device. This eliminates the need to download the entire original image, significantly alleviating the problem of slow image loading in the cloud and improving browsing efficiency; it also reduces the amount of data transmitted.Prior to S210, the terminal device can first determine the first target image. Specifically, the terminal device can first obtain an image access request. For example, the image access request may be a user performing panning, zooming, or other operations, and the image access request is used to request the display of the first target image in the original image. In some embodiments, the terminal device can determine the first target image based on the image access request. Specifically, the terminal device can determine the layer and pixel coordinates of the first target image based on the image access request, and then determine the first target image and the tiles corresponding to the first image based on the layer and pixel coordinates of the first target image. For example, the layer of the tiles within the viewport can be determined based on the user's panning, zooming, or other operations, and the screen coordinates can be converted into pixel coordinates; then the pixel coordinates can be converted into projection coordinates to obtain the projection coordinate range of the tiles within the viewport; and the set of index codes corresponding to the tiles can be obtained based on the projection coordinate range of the tiles. It should be noted that the viewport on the terminal device side and the image on the server side both adopt the same encoding method, for example, both adopt the geohash method for encoding, so that the index codes of the viewport on the terminal device side and the corresponding tiles on the server side are unified. In some embodiments, the first data request may include geographic information corresponding to the first target image, such as latitude and longitude ranges. After receiving the first data request, the server can obtain the data of the first target image in the first image file according to the first data request. Specifically, the server can determine the first target image according to the first data request; then determine the first tile corresponding to the first target image according to the first target image, wherein the first tile may include one or more tiles; then obtain the first offset corresponding to the first tile; then obtain the data of the first tile according to the first offset, and send the data of the first tile to the terminal device. In some embodiments, before the above step S210, the terminal device can also send a second data request to the server to request the third data structure area of the first image file. Optionally, the second data request may be an HTTP GET Range request. Correspondingly, the server can receive the second data request from the terminal device, obtain the third data structure area in the first image file according to the second data request, and then send the third data structure area of the first image file to the terminal device. Further, the terminal device can query the corresponding first offset in the third data structure area according to the set of index codes corresponding to the tiles in the first target image. It is understood that the first offset is a set of offsets corresponding to one or more tiles in the first tile. When the first target image covers only one tile, there is an index code and a corresponding offset, which together form the first offset. When the first target image covers multiple tiles, there are multiple index codes and multiple corresponding offsets, which together form the first offset.10 WO 2024 / 212707 PCT / CN2024 / 078220 Further, the first data request may include a first offset, so that the server can directly locate the position of the data of the first target image based on the first offset. Based on the above scheme, the first target image can be requested by including the first offset in the first data request. The server does not need to search for the offset corresponding to the first target image in the third data structure area, and can directly determine the position of the required tile based on the first offset in the first data request, thereby improving reading efficiency; and in this scheme, multiple tile data can be requested in one data request, which can save transmission overhead and improve browsing efficiency. The following describes the process of determining the set of index codes corresponding to the tiles in the first target image with reference to specific embodiments. Figure 9 is a schematic diagram of the process of determining the tiles of the first target image provided in an embodiment of this application. Assuming the image display area (or "window") is 300*300 pixels, when the user initially loads the image, the scaling level is at level 0. Afterwards, the user changes the scaling level to level 2 through translation and scaling operations. The pixel coordinates corresponding to the upper left corner of the image window are (200, 200). Referring to Figure 9, the window is located at the second scaling level, and the pixel coordinates corresponding to the upper left corner of the window are (200, 200). At this time, the screen cannot display the entire image, so it requests tiles within the window area. In this embodiment, the process of determining the index encoding of the tiles of the first target image is as follows: (1) The screen coordinates can be converted into pixel coordinates. Based on the window size of 300*300 and the pixel coordinates of the upper left corner (200, 200), the pixel coordinates of the lower right corner of the window can be calculated as (500, 500); (2) Based on the projection coordinate system of the image, the pixel coordinates are converted into standard projection coordinates. The origin of the pixel coordinates is located at the top left corner, and the y-axis increases from top to bottom. The origin of the projection coordinates is located at the bottom left corner, and the y-axis increases from bottom to top. Therefore, a coordinate system transformation is required. Align the top left corner coordinates of the projection coordinate system in the figure with the origin of the pixel coordinate system. The projection coordinate range within the window is X-axis [200, 500], y-axis [524, 824]; (3) According to the geohash encoding method, the projection coordinate range is converted into an index encoding set, namely four tiles: 0100, 010L·0H0, and 0111. In some implementations, the first target image may include a thumbnail. For example, when the user's image display area (or "window") is initially at layer 0, the top left corner of the screen coordinates is (0, 0), and the bottom right corner is (300, 300). The thumbnail size of the image at layer 0 is 256*256 pixels, so the full image can be displayed directly through the thumbnail. Optionally, the terminal device can retrieve information from the IFD.The first data request includes the second offset corresponding to the thumbnail. The server can determine the position of the thumbnail based on the second offset in the first data request and send the thumbnail data to the terminal device. In some embodiments, the terminal device can cache the received data of the first target image. Optionally, a memory cache can be used; when the cache demand is large, a database cache can be used. Subsequent identical requests can be preferentially searched in the local cache to improve efficiency. The method-side embodiments of this application have been described in detail above with reference to Figures 1 to 9. The device-side embodiments of this application will be described in detail below with reference to Figures 10 to 12. It should be understood that the description of the device embodiments corresponds to the description of the method embodiments. Therefore, the parts not described in detail can be referred to the above method embodiments. Figure 10 is a schematic block diagram of an image file generation device 1000 provided by an embodiment of this application. As shown in Figure 10, the image file generation device 1000 may include a transceiver module 1010 and a processing module 1020. In one possible design, the image file generation device 1000 can implement the steps or processes corresponding to the image file generation method executed in the above method embodiments. Optionally, the image file generation device 1000 can be applied to a server. In some embodiments, the makeup module 1010 can be used to receive data of a first image. The data of the first image may include map data. The processing module 1020 can be used to segment the first image to generate multiple tiles. The processing module 1020 can also be used to generate a first image file based on the multiple tiles. The first image file includes: a first data structure area for storing the file header of the image file, the file header indicating the file type; a second data structure area for storing data of a second image, the data of the second image including data of multiple tiles; and a third data structure area for storing the offsets of the multiple tiles in the second image data, the offsets indicating the storage location of the data of the multiple tiles in the second image data. Based on the image file generated by the image file generation device 1000, including the aforementioned data structure areas, the terminal device can request only the tiles corresponding to the target image in the image file, thus avoiding the need to download the entire original image, which helps alleviate the problem of slow image loading in the cloud and improves browsing efficiency. In some embodiments, the processing module 1020 can also be used to resample the aforementioned multiple tiles to generate multi-level tiles, and the second image may include multi-level tiles. In some embodiments, for multiple homogeneous tiles in the first tile, the second data structure area may only store the data of the feature tiles among the multiple homogeneous tiles, and the offsets corresponding to the multiple homogeneous tiles in the third data structure area may be set to be the same, and the same offsets corresponding to the multiple homogeneous tiles may point to the position of the feature tile data in the second data structure area.Optionally, the third data structure area can be arranged adjacent to the first data structure area. In some embodiments, the third data structure area may include a label, which may include the index code and offset of each tile in the first tile. In some embodiments, the second data structure area may also store the data of the original image and / or the data of the first thumbnail, wherein the first thumbnail includes an image obtained by resampling based on the original image. Further, the third data structure area may also store the offset corresponding to the data of the original image and / or the data of the first thumbnail. Further, the first thumbnail may include multi-level thumbnails, which may include multiple images with different resolutions obtained by resampling the original image multiple times. In some embodiments, the processing module 1020 may also be used to compress the data of the second image in the third data structure area. It should be noted that after compression, the offsets of each image change, therefore the offsets in the third data structure area also need to be updated. In some implementations, the processing module 1020 may specifically be used to define a projection coordinate system for the original image; define a coordinate reference level for the original image based on the projection coordinate system; and segment the original image according to the coordinate reference level to obtain multiple tiles. Figure 11 is a schematic block diagram of an image processing device 1100 provided in an embodiment of this application. As shown in Figure 11, the image processing device 1100 may include a transceiver module 1110 and a processing module 1120. The transceiver module 1110 can communicate with the outside, and the processing module 1120 is used for data processing. The transceiver module 1110 may also be referred to as a communication interface. In one possible design, the image processing device 1100 may implement steps or processes corresponding to those executed by the server (i.e., cloud device) in the above method embodiment, wherein the processing module 1120 may be used to execute processing-related operations of the server in the above image processing method embodiment, and the transceiver module 1110 may be used to execute makeup-related operations of the server in the above image processing method embodiment. In some embodiments, the transceiver module 1110 can be used to receive a first data request from a terminal device, wherein the first data request is used to request data of a first target image in a first image file, the first image file includes a second data structure area, the second data structure area includes data of a second image, the data of the second image includes data of multiple tiles, the multiple tiles include an image obtained by segmenting based on the first image, wherein the first target image includes one or more tiles in the second image; the processing module 1120 can be used to obtain data of the first target image in the first image file according to the first data request; the transceiver module 1110 can also be used to send data of the first target image to the terminal device.Based on the above embodiments, the image processing device 1100 can receive a first data request sent by the terminal device through the transceiver module 1110, and the processing module 1120 can obtain one or more tiles included in the first target image according to the first data request and send them to the terminal device. This eliminates the need for the terminal device to download the entire original image, thereby significantly alleviating the problem of slow image loading in the cloud and improving browsing efficiency; it also reduces the amount of data transmission. In one possible design, the image processing device 1100 can implement the steps or processes executed by the terminal device in the above method embodiments, wherein the processing module 1120 can be used to perform processing-related operations of the terminal device in the above image processing method embodiments, and the transceiver module 1110 can be used to perform transmission-reception-related operations of the terminal device in the above image processing method embodiments. In some implementations, transceiver module 1110 can be used to send a first data request to the server. The first data request requests data of a first target image in a first image file. The first image file includes a second data structure area, which includes data of a second image. The second image includes multiple tiles, which are images obtained by segmenting based on the first image data. The first target image includes one or more tiles from the second image. Transceiver module 1110 can also be used to receive data of the first target image from the server. Processing module 1120 can be used to present the first target image based on the data of the first target image. Based on the above scheme, the image processing device can send a first data request to the server through transceiver module 1110, thereby requesting the first target image in the first image file on the server. The server then obtains one or more tiles included in the first target image according to the first data request, thus eliminating the need to download the entire original image. After transceiver module 1110 receives the data of the first target image from the server, processing module 1120 presents the first target image based on the data, thereby significantly alleviating the problem of slow image loading in the cloud and improving browsing efficiency. It can also reduce the amount of data transmission. This application also provides a computing device 1200. As shown in FIG12, the computing device 1200 includes: a bus 1202, a processor 1204, a memory 1206, and a communication interface 1208. The processor 1204, the memory 1206, and the communication interface 1208 communicate with each other via the bus 1202. The computing device 1200 can be a server or a terminal device. It should be understood that this application does not limit the number of processors and memories in the computing device 1200. The bus 1202 can be a peripheral component interconnect (PCI) bus or an extended industry standard bus.Architecture, EISA) bus, etc. Buses can be divided into address buses, data buses, control buses, etc. For ease of representation, only one line is used in Figure 12, but this does not mean that there is only one bus or one type of bus. Bus 1202 may include a path for transmitting information between various components of computing device 1200 (e.g., memory 1206, processor 1204, communication interface 1208). Processor 1204 may include any one or more of the following processors: central processing unit (CPU), graphics processing unit (GPU), microprocessor (MP), or digital signal processor (DSP). Memory 1206 may include volatile memory, such as random access memory (RAM). The processor 1204 may also include non-volatile memory, such as read-only memory (ROM), flash memory, hard disk drive (HDD), or solid-state drive (SSD). The memory 1206 stores executable program code, which the processor 1204 executes to implement the functions of the aforementioned transceiver module and processing module, thereby implementing the aforementioned image file generation method or image processing method. That is, the memory 1206 stores instructions for executing the aforementioned image file generation method or image processing method. The communication interface 1208 uses a transceiver module, such as, but not limited to, a network interface card or transceiver, to enable communication between the computing device 1200 and other devices or communication networks. This application embodiment also provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device may be a server, such as a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may also be a desktop computer, a laptop computer, or a smartphone, or other terminal device. As shown in Figure 13, the computing device cluster includes at least one computing device 1200. The memory 1206 of one or more computing devices 1200 in the computing device cluster may store the same instructions for executing the above-described image file generation method or image processing method.In some possible implementations, the memory 1206 of one or more computing devices 1200 in the computing device cluster may also store partial instructions for executing the aforementioned image file generation method or image processing method. In other words, a combination of one or more computing devices 1200 can jointly execute the instructions for executing the aforementioned image file generation method or image processing method. It should be noted that the memory 1206 of different computing devices 1200 in the computing device cluster can store different instructions, respectively used to execute partial functions of the aforementioned image file generation method or image processing method. That is, the instructions stored in the memory 1206 of different computing devices 1200 can implement the functions of one or more modules in the processing module and transceiver module. In some possible implementations, one or more computing devices in the computing device cluster can be connected via a network. The network can be a wide area network or a local area network, etc. Figure 14 shows one possible implementation. As shown in Figure 14, two computing devices 1200A and 1200B are connected via a network. Specifically, they are connected to the network through the communication interface in each computing device. In this type of possible implementation, the memory 1206 in computing device 1200A stores instructions for executing the function of the task triggering module. It should be understood that the function of computing device 1200A shown in FIG. 14 can also be performed by multiple computing devices 1200. Similarly, the function of computing device 1200B can also be performed by multiple computing devices 1200. This application embodiment also provides a chip including a processor and a data interface. The processor reads instructions stored in memory through the data interface to execute the above-described image file generation method or image processing method. This application embodiment also provides a computer program product containing instructions. The computer program product can be software or program products containing instructions that can run on a computing device or be stored in any usable medium. When the computer program product runs on at least one computing device, it causes at least one computing device to execute the above-described image file generation method or image processing method. This application embodiment also provides a computer-readable storage medium. The computer-readable storage medium can be any usable medium that a computing device can store or a data storage device such as a data center containing one or more usable media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid-state drive). The computer-readable storage medium includes instructions that instruct a computing device to perform the aforementioned image file generation method or image processing method. Those skilled in the art will readily understand that, for the sake of convenience and brevity, the specific working processes of the systems, apparatuses, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the shown or discussed mutual couplings, direct couplings, or communication connections may be through some interfaces; indirect couplings or communication connections between devices or units may be electrical, mechanical, or other forms. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, i.e., they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs. Additionally, the functional units in the various embodiments of this application may be integrated into one processing unit, or each unit may exist independently, or two or more units may be integrated into one unit. If the aforementioned functions are implemented as software functional units 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 this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks. The above descriptions are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of protection claimed in the aforementioned claims. 14 WO 2024 / 212707 PCT / CN2024 / 078220 Claim 1 A method for generating an image file, characterized in that the method includes: acquiring data of a first image, wherein the data of the first image includes image data; segmenting the first image to generate multiple tiles;A first image file is generated based on the plurality of tiles, the first image file comprising: a first data structure area for storing the file header of the first image file, the file header indicating the file type of the first image file; a second data structure area for storing data of a second image, the data of the second image including the data of the plurality of tiles; and a third data structure area for storing the offsets of the plurality of tiles, the offsets of the plurality of tiles indicating the storage location of the data of the plurality of tiles in the second data structure area. 2. The method according to claim 1, characterized in that the method further comprises: resampling the plurality of tiles to generate multi-level tiles, the second image including the multi-level tiles. 3. The method according to claim 1 or 2, characterized in that, for a plurality of homogeneous tiles among the plurality of tiles, the data of the second image in the second data structure area includes the data of a feature tile among the plurality of homogeneous tiles, the homogeneous tile being a tile whose pixel percentage with the feature tile reaches a predetermined threshold. 4. The method according to claim 3, wherein the offsets corresponding to the plurality of homogeneous tiles stored in the third data structure area are the same, and the same offset of the plurality of homogeneous tiles indicates the storage location of the feature tile in the second data structure area. 5. The method according to any one of claims 1-4, wherein the third data structure area in the first image file is adjacent to the first data structure area. 6. The method according to any one of claims 1-5, wherein the third data structure area includes a label, the label including the index code of each tile in the second image and the offset. 7. The method according to any one of claims 1-6, wherein the second image further includes the first image and / or a first thumbnail, the first thumbnail including an image obtained by resampling based on the first image; the third data structure area further includes the offset corresponding to the first image and / or the first thumbnail. 8. The method according to claim 7, wherein the first thumbnail includes multi-level thumbnails, the multi-level thumbnails including a plurality of images with different resolutions obtained by multiple resamplings based on the first image. 9. The method according to any one of claims 1-8, wherein the first image file further comprises: a fourth data structure area, the fourth data structure area being used to store specific attributes of the plurality of tiles, the size of the specific attributes being greater than a certain threshold. 10. The method according to any one of claims 1-9, wherein the method further comprises: defining a projection coordinate system for the first image; defining a coordinate reference hierarchy for the first image based on the projection coordinate system; and segmenting the first image according to the coordinate reference hierarchy to obtain the plurality of tiles.11. A method for image processing, characterized in that the method comprises: receiving a first data request from a terminal device, the first data request being used to request data of a first target image in a first image file, the first image file including a second data structure area, the second data structure area including data of a second image, the second image including a plurality of tiles, the plurality of tiles including an image obtained by segmentation based on the first image, wherein the first target image includes one or more tiles in the second image; obtaining data of the first target image in the first image file according to the first data request; and sending the data of the first target image to the terminal device. 12. The method according to claim 11, characterized in that the second image includes multi-level tiles, the multi-level tiles including multiple tiles of different levels obtained by multiple resampling based on the plurality of tiles, and the first target image specifically including one or more tiles of the same level in the multi-level tiles. 13. The method according to claim 11 or 12, wherein the first image file further includes a third data structure area, the third data structure area being used to store the offsets of data of a plurality of tiles in the second image, the offsets being used to indicate the storage location of the tile data in the second image within the second data structure area. 14. The method according to claim 13, wherein for a plurality of homogeneous tiles among the plurality of tiles, the data of the second image in the second data structure area includes the data of a feature tile among the plurality of homogeneous tiles, the homogeneous tile being a tile whose pixel percentage with the feature tile reaches a predetermined threshold. 15. The method according to claim 14, wherein the offsets corresponding to the plurality of homogeneous tiles stored in the third data structure area are the same, and the same offset of the plurality of homogeneous tiles indicates the storage location of the feature tile in the second data structure area. 16. The method according to any one of claims 13-15, characterized in that, the step of obtaining data of the first target image in the first image file according to the first data request comprises: determining the first target image according to the first data request; determining a first tile corresponding to the first target image according to the first target image; obtaining a first offset, wherein the first offset is the offset of the first tile; obtaining data of the first tile according to the first offset, wherein the step of sending data of the first target image to the terminal device comprises: sending data of the first tile to the terminal device. 17. The method according to any one of claims 13-15, characterized in that, the first data request includes a first offset, wherein...The first offset is the offset of the first tile corresponding to the first target image. Obtaining data of the first target image in the first image file according to the first data request includes: obtaining the first tile according to the first offset. Sending data of the first target image to the terminal device includes: sending data of the first tile to the terminal device. 18. The method according to any one of claims 13-17, characterized in that, before receiving the first data request from the terminal device, the method further includes: receiving a second data request from the terminal device, the second data request being used to request the third data structure area of the first image file; obtaining the third data structure area according to the second data request; and sending the third data structure area to the terminal device. 19. The method according to any one of claims 13-18, characterized in that, the first image file further includes a first data structure area, the first data structure area including a file header of the first image file, the file header being used to indicate the file type, and the third data structure area being adjacent to the first data structure area in the first image file. 20. The method according to any one of claims 13-19, characterized in that, the third data structure area includes a label, the label including the index code of each tile in the second image and the offset. 21. The method according to any one of claims 13-20, wherein the second image further includes the first image and / or a first thumbnail, the first thumbnail comprising an image obtained by resampling based on the first image; the third data structure area further includes the offset corresponding to the data of the first image and / or the data of the first thumbnail. 22. The method according to claim 21, wherein the first thumbnail comprises a multi-level thumbnail, the multi-level thumbnail comprising multiple images with different resolutions obtained by resampling multiple times based on the first image. 23. The method according to any one of claims 11-22, wherein the first image file further comprises: a fourth data structure area, the fourth data structure area being used to store specific attributes of the multiple tiles, the size of the specific attributes being greater than a certain threshold. 24. A method for image processing, characterized in that the method comprises: sending a first data request to a server, the first data request being used to request data of a first target image in a first image file, the first image file including a second data structure area, the second data structure area including data of a second image, the second image including a plurality of tiles, the plurality of tiles including an image obtained by segmenting based on the first image, wherein the first target image includes one or more tiles of the second image; and receiving data of the first target image from the server;The first target image is presented based on the data of the first target image. 25. The method according to claim 24, wherein the second image comprises multi-level tiles, the multi-level tiles including multiple tiles of different levels obtained by multiple resampling based on the multiple tiles, and the first target image specifically includes one or more tiles of the same level among the multi-level tiles. 26. The method according to claim 24 or 25, wherein the first image file further includes a third data structure area, the third data structure area being used to store the offset of the data of the multiple tiles, the offset being used to indicate the storage location of the data of the multiple tiles in the second data structure area. 27. The method according to claim 26, wherein for multiple homogeneous tiles among the multiple tiles, the data of the second image in the second data structure area includes the data of the feature tiles among the multiple homogeneous tiles, the homogeneous tiles being tiles whose pixel percentage reaches a predetermined threshold with the same pixel percentage as the feature tiles. 28. The method according to claim 27, wherein the offsets corresponding to the plurality of homogeneous tiles stored in the third data structure area are the same, and the same offset of the plurality of homogeneous tiles indicates the storage location of the feature tile in the second data structure area. 29. The method according to any one of claims 26-28, wherein the first data request includes a first offset, the first offset being the offset of a first tile, the first tile including one or more tiles corresponding to the first target image. 30. The method according to claim 29, wherein before sending the first data request to the server, the method further includes: sending a second data request to the server, the second data request being used to request the third data structure area of the first image file; receiving the third data structure area from the server; and determining the first offset based on the third data structure area. 31. The method according to any one of claims 24-30, wherein before sending the first data request to the server, the method further includes: obtaining an image access request, the image access request being used to request the display of the first target image in the first image; and determining the first target image based on the image access request. 32. The method according to claim 31, wherein determining the first target image comprises: determining the layer and pixel coordinates of the first target image according to the image access request; and determining the first target image according to the layer and pixel coordinates of the first target image. 33.34. The method according to any one of claims 29-30, wherein the third data structure area includes a label, the label including an index code of each tile in the second image and the offset, and the step of determining the first offset according to the third data structure area includes: obtaining the index code of the tile of the first target image; and searching in the third data structure area according to the index code of the tile of the first target image to determine the first offset. 35. The method according to any one of claims 24-33, wherein the first image file further includes a first data structure area, the first data structure area including a file header of the first image file, the file header indicating the file type, and the third data structure area is adjacent to the first data structure area in the first image file. 36. The method according to any one of claims 30-33, wherein the second image data in the second data structure area further includes data of the first image and / or data of a first thumbnail, the first thumbnail including an image obtained by resampling based on the first image data; and the third data structure area further includes the offset corresponding to the data of the first image and / or the data of the first thumbnail. 36. The method according to claim 35, wherein the first thumbnail comprises a multi-level thumbnail, the multi-level thumbnail comprising multiple images with different resolutions obtained by resampling the first image multiple times. 37. An image file generation apparatus, comprising: a transceiver module for receiving data of a first image, the data of the first image including map data; a processing module for segmenting the first image to generate multiple tiles; the processing module further comprising generating a first image file based on the multiple tiles, wherein the first image file comprises: a first data structure area for storing a file header of the image file, the file header indicating a file type; a second data structure area for storing data of a second image, the data of the second image including data of the multiple tiles; and a third data structure area for storing offsets of the multiple tiles in the second image data, the offsets of the multiple tiles indicating the storage location of the data of the multiple tiles in the second image data. 17 WO 2024 / 212707 PCT / CN2024 / 078220 38. An image processing apparatus, characterized in that the apparatus comprises: a transceiver module, configured to receive a first data request from a terminal device, the first data request being for requesting data of a first target image in a first image file, the first image file including a second data structure area, the second data structure area including data of a second image.According to the data, the second image data includes data of multiple tiles, the multiple tiles including images obtained by segmenting based on the first image, wherein the first target image includes one or more tiles in the second image; a processing module is configured to obtain data of the first target image from the first image file according to the first data request; the transceiver module is further configured to send the data of the first target image to the terminal device. 39. An image processing apparatus, characterized in that the apparatus comprises: a sending module, configured to send a first data request to a server, the first data request being used to request data of a first target image in a first image file, the first image file including a second data structure area, the second data structure area including data of a second image, the second image including multiple tiles, the multiple tiles including images obtained by segmenting based on the first image data, wherein the first target image includes one or more tiles in the second image; the transceiver module is further configured to receive data of the first target image from the server; a processing module is configured to present the first target image according to the data of the first target image. 40. A computing device cluster, characterized in that it comprises at least one computing device, each computing device including a processor and a memory: the processor of the at least one computing device is configured to execute instructions stored in the memory of the at least one computing device to cause the computing device cluster to perform the method as described in any one of claims 1-10, 11-23, or 24-36. 41. A computer-readable storage medium, characterized in that it comprises computer program instructions, which, when executed by the computing device cluster, cause the computing device cluster to perform the method as described in any one of claims 1-10, 11-23, or 24-36. 42. A computer program product comprising instructions, characterized in that, when executed by the computing device cluster, causes the computing device cluster to perform the method as described in any one of claims 1-10, 11-23, or 24-36. 43. A cloud-side device, characterized in that it comprises at least one processor coupled to at least one memory, the at least one processor being configured to execute a computer program or instructions stored in the at least one memory to cause the cloud-side device to perform the method as described in any one of claims 1-10, 11-23. 44. An end-side device, characterized in that it includes at least one processor coupled to at least one memory, the at least one processor being configured to execute a computer program or instructions stored in the at least one memory to cause the energy storage device to perform the method as described in any one of claims 24-36. 45.A cloud-edge collaborative system, characterized in that it includes the cloud-side device as described in claim 43 and the edge-side device as described in claim 44. 18 WO 2024 / 212707 PCT / CN2024 / 078220 End-to-Cloud Collaborative System 100 Application 112 End-side Device 110 Image Processing System 111 Figure 1 Figure 2 1 / 6 WO 2024 / 212707 PCT / CN2024 / 078220 300 Figure 3 Figure 4 File Header OFH) Image Attribute Directory QFD) Attribute Value Tag Number Tag 1 <256, 750> Tag 2 <257, 1000> Tag 3 <282, 8> Tag n Next IFD offsel^null (256: Image Width) (257: Image Height) (282: Strip Offset) Figure 5 2 / 6 WO 2024 / 212707 PCT / CN2024 / 078220 Qin Er Mang 24.: Ying Shan Figure 6 Layer 1 Tile Layer 0 Tile Layer 2 Thumbnail Layer 1 Thumbnail Layer 0 Thumbnail Figure 7 3 / 6 WO 2024 / 212707 PCT / CN2024 / 078220 Number of Tags Tag 1 v Index Encoding 1, Offset Tag 2 v Index Encoding 2, Offset 2> Tag 3 Tag n Other Attributes Next IFD offeet^null File Header Image Attribute Directory (Number of Attribute Values Image Data Figure 8 Raw Image Data Layer 0 Tile Data Layer 1 Tile Data ... Layer 0 Thumbnail Data Layer 1 Thumbnail Data ... (0, 1024) (0, 1000) Figure 9 4 / 6 WO 2024 / 212707 PCT / CN2024 / 078220 Image File Generation Device 1000 Transceiver Module 1010 - Processing Module 1020 Figure 10 Image Processing Device 1100 Transceiver Module 1110 - Processing module 1120 Figure 11 5 / 6 WO 2024 / 212707 PCT / CN2024 / 078220 Figure 13 Figure 14 6 / 6 INTERNATIONAL SEARCH REPORT International application No. PCT / CN2024 / 078220 A. CLASSIFICATION OF SUBJECT MATTER G06F16 / 29(2019.01)i; G06F16 / 172(2019.01)i; G06T7 / ll(2017.01)i According to International Patent Classification (IPC) or to bothnational classification and IPC B. FIELDS SEARCHED Minimum documentation searched (classification system followed by classification symbols) IPC: G06F16 / -,G06T7 / - Documentation searched other than minimum documentation to the extent that such documents are included in the fields searched Electronic data base consulted during the international search (name of data base and, where practicable, search terms used) CNABS, CNTXT, CNKI: image, map, remote sensing tile, segmentation, harm weighted resampling, offset, geographic location, request, send, cloud, terminal, storage; VEN, USTXT, EPTXT: map, image, remote sens+, tile, segment, resample, offset, address, location, request, send, cloud, terminal, sav+, storage C. DOCUMENTS CONSIDERED TO BE RELEVANT Category* Citation of document, with indication, where appropriate, of the relevant passages Relevant to claim No. X CN 110309243 A (HANGZHOU HIKVISION SYSTEM TECHNOLOGY CO., LTD.) 08 October 2019 (2019-10-08) description, paragraphs
[0006] -
[0223] 1-45 A CN 115865896 A (BEIJING SUPERMAP SOFTWARE CO., LTD.) 28 March 2023 (2023-03-28) entiredocument 1-45 A CN 113574520 A (GOOGLE INC.) 29 October 2021 (2021-10-29) entire document 1-45 A CN 109597861 A (BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.) 09 April 2019 (2019-04-09) entire document 1-45 A CN 112070775 A (CHENGDU XINGSHIDAI AEROSPACE TECHNOLOGY CO., LTD.) 11 December 2020 (2020-12-11) entire document 1-45 | | Further documents are listed in the continuation of Box C. | / 1 See patent family annex. * Special categories of cited documents: “T" later document published after the international filing date or priority “A" document defining the general state of the art which is not considered date and not in conflict with the application but cited to understand the to be of paiticulai' relevance principle or theory underlying the invention "D” document cited by the applicant in the international application “χ” document of particular relevance; the claimed invention cannot be “E” eailier application or patent but published on or after the international considerednovel or cannot be considered to involve an inventive step filing date when the document is taken alone “L" document which may thi'ow doubts on priority claim(s) or which is “Y" document of paiticulai' relevance; the claimed invention cannot be cited to establish the publication date of another citation or other considered to involve an inventive step when the document is special reason (as specified) combined with one or more other such documents, such combination "O” document refen'ing to an oral disclosure, use, exhibition or other being obvious to a person skilled in the art means document member of the same patent family "P” document published prior to the international filing date but later than the priority date claimed Date of the actual completion of the international search 19 April 2024 Date of mailing of the international search report 29 April 2024 Name and mailing address of the ISA / CN China National Intellectual Property Administration (ISA / CN) China No. 6, XituchengRoad, Jimenqiao, Haidian District, Beijing 100088 Authorized officer Telephone No. Form PCT / ISA / 210 (second sheet) (July 2022) INTERNATIONAL SEARCH REPORT PCT / CN2024 / 078220 International application No. C. DOCUMENTS CONSIDERED TO BE RELEVANT Category* Citation of document, with indication, where appropriate, of the relevant passages Relevant to claim No. A WO 2022089018 Al (ECARX (HUBEI) TECHNOLOGY CO., LTD.) 05 May 2022 (2022-05-05) entire document 1-45 Form PCT / ISA / 210 (second sheet) (July 2022) International application No. PCT / CN2024 / 078220 INTERNATIONAL SEARCH REPORT Information on patent family members Patent document cited in search report Publication date (day / month / year) Patent family member(s) Publication date (day / month / year) CN 110309243 A 08 October 2019 WO 2019179237 Al 26 September 2019 CN 115865896 A 28 March 2023 None CN 113574520 A 29 October 2021 WO 2021126218 Al 24 June 2021 EP 3857404 Al 04 August 2021 US 2022316917 Al 06 October 2022 CN 109597861 A 09 April 2019None CN 112070775 A 11 December 2020 CN 112070775 B 09 November 2021 WO 2022089018 A1 05 May 2022 CN 112233240 A 15 January 2021 CN 112233240 B 22 October 2021 Form PCT / ISA / 210 (patent family annex) (July 2022) International Search Report International Application Number PCT / CN2024 / 078220 A. Subject Classification G06F16 / 29 (2019.01)i; G06F16 / 172 (2019.01)i; G06T7 / ll (2017.01)i According to the International Patent Classification (IPC) or both national classification and IPC classification B. Minimum literature retrieved in the search field (indicating classification system and classification number) IPC: G06F16 / -.G06T7 / - Electronic databases consulted during international searches, excluding the minimum literature included in the search field (database name and search terms used, if applicable) CNABS, CNTXT, CNKI: image, map, remote sensing, tile, segment, resample, offset, address, location, request, send, cloud, terminal, storage; VEN, USTXT, EPTXT: map, image, remote sensing, tile, segment, resample, offset, address, location, request, send, cloud, terminal, sav+, storage c. Relevant document types* Citations, indicating relevant paragraphs where necessary Relevant claims X CN 110309243 A (Hangzhou Hikvision System Technology Co., Ltd.) October 8, 2019 (2019-10-08) Instruction manual, paragraphs
[0006] -
[0223] , sections 1-45: A CN 115865896 A (Beijing SuperMap Software Co., Ltd.) March 28, 2023 (2023-03-28) Full text 1-45 A CN 113574520 A (Google LLC) October 29, 2021 (2021-10-29) Full text 1-45 A CN 109597861 A (Baidu Online Network Technology (Beijing) Co., Ltd.) April 9, 2019 (2019-04-09) Full text 1-45 A CN112070775 A (Chengdu Xing Shidai Aerospace Technology Co., Ltd.) December 11, 2020 (2020-12-11) Full text 1-45 A WO 2022089018 Al (ECARX (HUBEI) TECHNOLOGY CO., LTD.) May 5, 2022 (2022-05-05) Full text 1-45 □The remaining documents are listed on the continuation page in column C. *Specific types of cited documents: “A” Documents that are not particularly relevant and represent the general state of the prior art; “D” Documents cited by the applicant in an international application; “E” Prior applications or patents published on or after the international filing date; “L” Documents that may raise doubt about the priority claim, or documents cited to determine the publication date of another cited document, or documents cited for other specific reasons (as specifically stated); Documents involving disclosure, use, exhibition, or other forms of disclosure; “P” Documents published before the international filing date but after the claimed priority date (see Annex to the patent family). "T is a document published after the claim date or priority date, which does not conflict with the application, but is particularly different from the subsequent document for understanding the inventive theory or principle. Considering only the document, the claimed invention is not novel or lacks inventiveness. The document is particularly relevant to the claim, and when the document is not combined with any of the other documents of the same class and such combination is obviously excessive to those skilled in the art, the claimed invention lacks inventiveness. International search of patent family documents: Date of actual completion: April 19, 2024. Name and mailing address of ISA / CN: China National Intellectual Property Administration, No. 6, Tucheng Road, Xijimenqiao, Haidian District, Beijing 100088, China. International search report mailing date: April 29, 2024. Authorized officer: Chen Qi. Telephone number: (+86) 028-62967729. PCT / ISA / 210 Form (Page 2) (July 2022) PCT / CN2024 / 078220" International Search Report Information on Patent Families International Application Number Publication Date of Patent Documents Cited in the Search Report (Year / Month / Day) Publication Date of Patent Families (Year / Month / Day) CN 110309243 A October 8, 2019 WO 2019179237 A1 September 26, 2019 CN 115865896 A March 28, 2023 None CN 113574520 A October 29, 2021 WO 2021126218 A1 June 24, 2021 EP 3857404 A1 August 4, 2021 US 2022316917 A1 October 6, 2022 CN 109597861 A April 9, 2019 None CN112070775 A December 11, 2020 CN 112070775 B November 9, 2021 WO 2022089018 A1 May 5, 2022 CN 112233240 A January 15, 2021 CN 112233240 B October 22, 2021 PCT / ISA / 210 Form (Appendix to Patent Family) (July 2022) (19) *EP004685663A1* (11) EP 4 685 663 A1 (12) EUROPEAN PATENT APPLICATION published in accordance with Art. 153(4) EPC (43) Date of publication: 28.01.2026 Bulletin 2026 / 05 (21) Application number: 24787813.5 (22) Date of filing: 23.02.2024 (51) International Patent Classification (IPC): G06F 16 / 29 (2019.01) G06F 16 / 172 (2019.01) G06T 7 / 11 (2017.01) (52) Cooperative Patent Classification (CPC): G06F 16 / 16;G06F 16 / 172; G06F 16 / 29; States: AL AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HR HU IE IS IT LI LT LU LV MC ME MK MT NL NO PL PT RO RS SE SI SK SM TR Designated Extension States: BA Designated Validation States: GE KH MA MD TN (30) Priority:12.04.2023 CN 202310391194 29.06.2023 CN 202310786240 (71) Applicant: Huawei Cloud Computing Technologies Co., Ltd. Guizhou 550025 (CN) (72) Inventors: • SHEN, Dannan Gui’an New District, Guizhou 550025 (CN) • WEI, Xin Gui’an New District, Guizhou 550025 (CN) • KANG, Yifei Gui’an New District, Guizhou 550025 (CN) (74) Representative: Maiwald GmbH Elisenhof Elisenstraße 3 80335 München (DE) (54) IMAGE FILE GENERATION METHOD AND APPARATUS, AND IMAGE PROCESSING METHOD AND APPARATUS (57) This application provides an image file genera- tion method, an image processing method, and an ap- paratus. The image file generation method includes: receiving data of a first image; segmenting the data of the first image to generate a plurality of tiles; and gen- erating a first image file based on the plurality of tiles. The first image file includes: a first data structure area, con- figured to store a file header of the image file; a second data structure area, configured to store data of a secondimage, where the data of the second image includes a plurality of tiles; and a third data structure area, config- ured to store offsets of the plurality of tiles in the data of the second image. Based on the methods, a terminal device can request a tile corresponding to a target image, and does not need to fully download an original image. This helps alleviate a problem of slow loading of a cloud image and improve browsing efficiency. EP 4 68 5 66 3 A 1 Processed by Luminess, 75001 PARIS (FR) Description
[0001] This application claims priorities to Chinese Patent Application No. 202310391194.1, filed with the China National Intellectual Property Administration on April 12, 2023 and entitled "FILE GENERATION METHOD, APPARATUS, AND SYSTEM", and to Chinese Patent Application No. 202310786240.8, filed with the China National Intellectual Property Administration on June 29, 2023 and entitled "IMAGE FILE GENERATION METHOD, IMAGE PROCESSING METHOD, AND APPARATUS", both of which areincorporated herein by reference in their entireties. TECHNICAL FIELD
[0002] This application relates to the field of image processing, and more specifically, to an image file generation method, an image processing method, and an apparatus. BACKGROUND
[0003] Using high-definition cameras to take object images is one of the most direct and effective ways to obtain data in the future digital twin scenario. Currently, massive ultra-large image data is involved in various fields, and the image data is characterized by multi-source heterogeneity, a large size, a complex type, and the like. To store massive image raster data, cloud storage-based services gradually become a trend in the industry. Therefore, the image raster data such as images may be stored on a cloud server, and image browsing on a device side can be achieved by transmitting a cloud-stored image to the device side. SUMMARY
[0004] This application provides an image file generation method, an image processing method, and anapparatus. An image file includes a tile obtained through segmentation based on an original image and an offset indicating a location of the tile, so that a terminal device can request a tile corresponding to a target image, and does not need to fully download the original image. This helps alleviate a problem of slow loading of a cloud image and improve browsing efficiency.
[0005] According to a first aspect, an image file generating method is provided, including: obtaining data of a first image, where the data of the first image includes map data; segmenting the first image to generate a plurality of tiles; and generating a first image file based on the plurality of tiles, where the first image file includes: a first data structure area, configured to store a file header of the first image file, where the file header indicates a file type of the first image file; a second data structure area, configured to store data of a second image, where the data of the second image includes dataof the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles, where the offsets of the plurality of tiles indicate storage locations of the data of the plurality of tiles in the second data structure area.
[0006] Based on the foregoing embodiment, the method for generating an image file including the foregoing data structure areas is provided, so that onlya tile corresponding to a target image can be requested, and an original image does not need to be fully downloaded. This helps alleviate a problem of slow loading of a cloud image and improve browsing efficiency.
[0007] With reference to the first aspect, in some implementations of the first aspect, the method further includes resampling the plurality of tiles to generate a multi-level tile, where the second image includes the multi-level tile. Based on the foregoing embodiment, the multi-level tile is provided, to help request different levels of tiles based on zooming and improveimage browsing experience.
[0008] With reference to the first aspect, in some implementations of the first aspect, for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area includes data of a feature tile in the plurality of homogeneous tiles, and the plurality of homogeneous tiles are a plurality of tiles whose proportions of same pixels with the feature tile reach a predetermined threshold.
[0009] With reference to the first aspect, in some implementations of the first aspect, offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area. Based on the foregoing embodiment, tile reuse is implemented, thereby effectively saving storage space.
[0010] With reference to the first aspect, in some implementations ofthe first aspect, the third data structure area is adjacent to the first data structure area in the first image file. Based on this embodiment, data read efficiency is improved.
[0011] With reference to the first aspect, in some implementations of the first aspect, the third data structure area includes a tag, and the tag includes an index code and an offset that are of each tile in the second image. Based on the foregoing embodiment, it is convenient to search the third data structure area for an offset based on a index code, and then locate the tile of the target image based on the offset. This helps improve search efficiency.
[0012] With reference to the first aspect, in some implementations of the first aspect, the data of the second image further 2 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 includes the first image and / or a first thumbnail, and the first thumbnail includes an image obtained through resampling based on the first image; and the third data structure area furtherincludes an offset corresponding to the first image and / or the first thumbnail.
[0013] Based on the foregoing embodiment, the second image in the first image file is set to further include the original image, so that the first image file can be better compatible with an existing TIFF format file; and image data of the first image file is set to further include the first thumbnail, which facilitates image browsing and processing based on the first thumbnail. In addition, in comparison with additionally storing a thumbnail or a tile pyramid independent of the original image, storing the three in the image data of the first image file can further reduce file input / output frequency and improve read / write efficiency.
[0014] With reference to the first aspect, in some implementations of the first aspect, the first thumbnail includes a multi- level thumbnail, and the multi-level thumbnail includes a plurality of images having different resolutions obtained by performing resampling a pluralityof times based on the first image. Based on the foregoing embodiment, the multi-level thumbnail is provided, to help request different levels of thumbnails based on zooming and improve image browsing experience.
[0015] With reference to the first aspect, in some implementations of the first aspect, the first image file further includes a fourth data structure area, where the fourth data structure area is configured to store specific attributes of the plurality of tiles, and a size of the specific attribute is greater than a specific threshold.
[0016] With reference to the first aspect, in some implementations of the first aspect, the method further includes: defining a projection coordinate system for the first image; defining a coordinate reference level for the first image based on the projection coordinate system; and segmenting the first image based on the coordinate reference level to obtain the plurality of tiles.
[0017] According to a second aspect, an image processing method isprovided. The method includes: receiving a first data request from a terminal device, where the first data request is used to request data of a first target image in a first image file, the first image file includes a second data structure area, the second data structure area includes data of a second image, the second image includes a plurality of tiles, the plurality of tiles include an image obtained through segmentation based on a first image, and the first target image includes one or more tiles in the second image; obtaining the data of the first target image from the first image file based on the first data request; and sending the data of the first target image to the terminal device.
[0018] Based on the foregoing embodiment, a server receives the first data request sent by the terminal device, and then the server obtains, based on the first data request, the one or more tiles included in the first target image, and sends the tiles to the terminal device, so that an originalimage does not need to be fully downloaded. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0019] With reference to the second aspect, in some implementations of the second aspect, the second image includes a multi-level tile, and the multi-level tile includes a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles; and the first target image specifically includes one or more tiles at a same level in the multi-level tile. Based on the foregoing embodiment, a plurality of tiles at one level may be requested by using one request, which helps reduce transmission overheads.
[0020] With reference to the second aspect, in some implementations of the second aspect, the first image file further includes a third data structure area, the third data structure area includes offsets of data of the plurality of tiles in thesecond image, and the offsets indicate storage locations of the data of the plurality of tiles in the second data structure area.
[0021] With reference to the second aspect, in some implementations of the second aspect, for a plurality of homo- geneous tiles in the plurality of tiles, the data of the second image in the second data structure area includes data of a feature tile in the plurality of homogeneous tiles, and the plurality of homogeneous tiles are a plurality of tiles whose proportions of same pixels with the feature tile reach a predetermined threshold.
[0022] With reference to the second aspect, in some implementations of the second aspect, offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area. Based on the foregoing embodiment, tile reuse is implemented,thereby effectively saving storage space.
[0023] With reference to the second aspect, in some implementations of the second aspect, the obtaining the data of the first target image from the first image file based on the first data request includes: determining the first target image based on the first data request; determining, based on the first target image, a first tile corresponding to the first target image; obtaining a first offset, where the first offset is an offset of the first tile; and obtaining data of the first tile based on the first offset. The sending the data of the first target image to the terminal device includes: sending the data of the first tile to the terminal device.
[0024] With reference to the second aspect, in some implementations of the second aspect, the first data request includes a first offset, and the first offset is an offset of a first tile corresponding to the first target image. The obtaining the 3 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55data of the first target image from the first image file based on the first data request includes: obtaining the first tile based on the first offset. The sending the data of the first target image to the terminal device includes: sending data of the first tile to the terminal device.
[0025] Based on the foregoing solution, the first data request may include the first offset to request the first target image, and the server does not need to search the third data structure area for the offset corresponding to the first target image, and may directly determine a location of a required tile based on the first offset in the first data request, to help improve read efficiency. In addition, in this solution, data of a plurality of tiles may be requested by using one data request, so that transmission overheads can be reduced and browsing efficiency can be improved.
[0026] With reference to the second aspect, in some implementations of the second aspect, before receiving the first datarequest from the terminal device, the method further includes: receiving a second data request from the terminal device, where the second data request is used to request the third data structure area of the first image file; obtaining the third data structure area based on the second data request; and sending the third data structure area to the terminal device. Based on this solution, the terminal device may search the third data structure area for the corresponding first offset based on a set of index codes corresponding to the tiles in the first target image.
[0027] With reference to the second aspect, in some implementations of the second aspect, the first image file further includes a first data structure area, the first data structure area includes a file header of the first image file, the file header indicates a file type, and the third data structure area is adjacent to the first data structure area in the first image file. In this solution, the third data structure area canbe quickly read after the first data structure area is read, which helps improve data read efficiency.
[0028] With reference to the second aspect, in some implementations of the second aspect, the third data structure area includes a tag, and the tag includes an index code and an offset that are of each tile in the second image. In this solution, an offset can be obtained by searching the third data structure area based on a index code, and then the tile of the target image is located based on the offset. This helps improve search efficiency.
[0029] With reference to the second aspect, in some implementations of the second aspect, the second image further includes the first image and / or a first thumbnail, and the first thumbnail includes an image obtained through resampling based on the first image; and the third data structure area further includes an offset corresponding to data of the first image and / or data of the first thumbnail.
[0030] Based on the foregoing embodiment, imagedata of the first image file is set to further include the original image, so that the first image file can be better compatible with an existing TIFF format file; and image data of the first image file is set to further include the first thumbnail, which facilitates image browsing and processing based on the first thumbnail. In addition, in comparison with additionally storing a thumbnail or a tile pyramid independent of the original image, storing the three in the image data of the first image file can further reduce file input / output frequency and improve read / write efficiency.
[0031] With reference to the second aspect, in some implementations of the second aspect, the first thumbnail includes a multi-level thumbnail, and the multi-level thumbnail includes a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image.
[0032] With reference to the second aspect, in some implementations of the second aspect, thefirst image file further includes: a fourth data structure area, where the fourth data structure area is configured to store specific attributes of the plurality of tiles, and a size of the specific attribute is greater than a specific threshold.
[0033] According to a third aspect, an image processing method is provided, including: sending a first data request to a server, where the first data request is used to request data of a first target image in a first image file, the first image file includes a second data structure area, the second data structure area includes data of a second image, the second image includes a plurality of tiles, the plurality of tiles include an image obtained through segmentation based on a first image, and the first target image includes one or more tiles in the second image; receiving the data of the first target image from the server; and displaying the first target image based on the data of the first target image.
[0034] Based on the foregoingsolution, a terminal device can send the first data request to the server, to request the first target image in the first image file in the server, and then the server obtains, based on the first data request, the one or more tiles included in the first target image, and sends the tiles to the terminal device, so that an original image does not need to be fully downloaded. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0035] With reference to the third aspect, in some implementations of the third aspect, the second image includes a multi-level tile, and the multi-level tile includes a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles; and the first target image specifically includes one or more tiles at a same level in the multi-level tile.
[0036] With reference to the third aspect, in some implementationsof the third aspect, the first image file further includes a third data structure area, the third data structure area is configured to store offsets of data of the tiles in the second image, and the offsets indicate storage locations of the data of the plurality of tiles in the second data structure area.
[0037] With reference to the third aspect, in some implementations of the third aspect, for a plurality of homogeneous 4 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 tiles in the plurality of tiles, the data of the second image in the second data structure area includes data of a feature tile in the plurality of homogeneous tiles, and the plurality of homogeneous tiles are a plurality of tiles whose proportions of same pixels with the feature tile reach a predetermined threshold.
[0038] With reference to the third aspect, in some implementations of the third aspect, offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure areaare the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area.
[0039] With reference to the third aspect, in some implementations of the third aspect, the first data request includes a first offset, the first offset is an offset of a first tile, and the first tile includes one or more tiles corresponding to the first target image.
[0040] With reference to the third aspect, in some implementations of the third aspect, before sending the first data request to the server, the method further includes: sending a second data request to the server, where the second data request is used to request the third data structure area of the first image file; receiving the third data structure area from the server; and determining the first offset based on the third data structure area.
[0041] With reference to the third aspect, in some implementations of the third aspect, before sending the first data requestto the server, the method further includes: obtaining an image access request, where the image access request is used to request to display the first target image in the first image; and determining the first target image based on the image access request.
[0042] With reference to the third aspect, in some implementations of the third aspect, the determining the first target image includes: determining a level and pixel coordinates of the first target image based on the image access request; and determining the first target image based on the level and the pixel coordinates of the first target image.
[0043] With reference to the third aspect, in some implementations of the third aspect, the third data structure area includes a tag, and the tag includes an index code and the offset that are of each tile in the second image. The determining the first offset based on the third data structure area includes: obtaining an index code of a tile of the first target image; and searching thethird data structure area based on the index code of the tile of the first target image, to determine the first offset.
[0044] With reference to the third aspect, in some implementations of the third aspect, the first image file further includes a first data structure area, the first data structure area includes a file header of the first image file, the file header indicates a file type, and the third data structure area is adjacent to the first data structure area in the first image file.
[0045] With reference to the third aspect, in some implementations of the third aspect, the data of the second image in the second data structure area further includes data of the first image and / or data of a first thumbnail, and the first thumbnail includes an image obtained through resampling based on the data of the first image; and the third data structure area further includes an offset corresponding to the data of the first image and / or the data of the first thumbnail.
[0046] With reference tothe third aspect, in some implementations of the third aspect, the first thumbnail includes a multi-level thumbnail, and the multi-level thumbnail includes a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image.
[0047] According to a fourth aspect, an image file generation apparatus is provided, where the apparatus includes: a transceiver module, configured to receive data of a first image, where the data of the first image includes map data; and a processing module, configured to segment the first image to generate a plurality of tiles. The processing module is further configured to generate afirst imagefile based on the plurality of tiles, where the first image file includes: a first data structure area, configured to store a file header of an image file, where the file header indicates a file type; a second data structure area, configured to store data of a second image, where the data of the second imageincludes data of the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles in the data of the second image, where the offsets of the plurality of tiles indicate storage locations of data of the plurality of tiles in the data of the second image.
[0048] Based on the foregoing embodiment, the image file generation apparatus can generate an image file including the foregoing data structure areas, so that only a tile corresponding to a target image can be requested, and an original image does not need to be fully downloaded. This helps alleviate a problem of slow loading of a cloud image and improve browsing efficiency.
[0049] According to a fifth aspect, an image processing apparatus is provided, where the apparatus includes: a transceiver module, configured to receive a first data request from a terminal device, where the first data request is used to request data of a first target image in a first image file, the first image fileincludes a second data structure area, the second data structure area includes data of a second image, the data of the second image includes data of a plurality of tiles, the plurality of tiles include an image obtained through segmentation based on a first image, and the first target image includes one or more tiles in the second image; and a processing module, configured to obtain the data of the first target image from the first image file based on the first data request. The transceiver module is further configured to send the data of the first target image to the terminal device.
[0050] Based on the foregoing solution, the image processing apparatus can receive, through the transceiver module, the first data request sent by the terminal device, and then the processing module obtains, based on the first data request, the one or more tiles included in the first target image, and sends the tiles to the terminal device, so that an original image 5 EP 4 685 663 A1 5 10 15 20 25 30 3540 45 50 55 does not need to be fully downloaded. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0051] According to a sixth aspect, an image processing apparatus is provided, where the apparatus includes: a transceiver module, configured to send a first data request to a server, where the first data request is used to request data of a first target image in a first image file, the first image file includes a second data structure area, the second data structure area includes data of a second image, the second image includes a plurality of tiles, the plurality of tiles include an image obtained through segmentation based on data of a first image, and the first target image includes one or more tiles in the second image, where the transceiver module is further configured to receive the data of the first target image from the server; and a processing module, configured to display thefirst target image based on the data of the first target image.
[0052] Based on the foregoing solution, the image processing apparatus can send the first data request to the server through the transceiver module, to request the first target image in the first image file in the server, and then the server obtains, based on the first data request, the one or more tiles included in the first target image, so that an original image does not need to be fully downloaded. After the transceiver module receives data of the first target image from the server, the processing module displays the first target image based on the data of the first target image. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0053] According to a seventh aspect, a first image file is provided, where the first image file includes a first data structure area, configured to store a file header of the first imagefile, where the file header indicates a file type of the first image file; a second data structure area, configured to store data of a second image, where the data of the second image includes data of a plurality of tiles, and the plurality of tiles include an image obtained through segmentation based on the first image; and a third data structure area, configured to store offsets of the plurality of tiles, where the offsets of the plurality of tiles indicate storage locations of the data of the plurality of tiles in the second data structure area.
[0054] According to an eighth aspect, a computing device is provided, including a processor and a memory. The processor is configured to execute instructions stored in the memory, for the computing device to perform the method according to any one of the first aspect, or the second aspect, or the third aspect.
[0055] According to a ninth aspect, a computing device cluster is provided, including at least one computing device. Each computingdevice includes a processor and a memory; and the processor of the at least one computing device is configured to execute instructions stored in the memory in the at least one computing device, for the computing device cluster to perform the method according to any one of the first aspect, or the second aspect, or the third aspect.
[0056] According to a tenth aspect, a computer-readable storage medium is provided, including computer program instructions. When the computer instructions are run by a computing device cluster, the computing device cluster is enabled to perform the method according to any one of the first aspect, or the second aspect, or the third aspect.
[0057] According to an eleventh aspect, a computer program product including instructions is provided. When the instructions are run by a computing device cluster, the computing device cluster is enabled to perform the method according to any one of the first aspect, or the second aspect, or the third aspect.
[0058] According to a twelfth aspect, a cloud-side device is provided, including at least one processor. The at least one processor is coupled to at least one memory,and the at least one processor is configured toexecute acomputer program or instructions stored in the at least one memory, so that the cloud-side device performs the method according to any one of the first aspect or the second aspect.
[0059] According to a thirteenth aspect, a device-side device is provided, including at least one processor, where the at least one processor is coupled to at least one memory, and the at least one processor is configured to execute a computer program or instructions stored in the at least one memory, so that the device-side device performs the method according to the third aspect.
[0060] According to a fourteenth aspect, a device-cloud collaboration system is provided, including the cloud-side device according to the twelfth aspect and the device-side device according to the thirteenth aspect.BRIEF DESCRIPTION OF DRAWINGS
[0061] FIG. 1 is a diagram of a device-cloud collaboration system according to an embodiment of this application; FIG. 2 is a diagram of an image processing method according to an embodiment of this application; FIG. 3 is a diagram of an image file generation method according to an embodiment of this application; FIG. 4 shows a TIFF image according to an embodiment of this application; FIG. 5 is a diagram of a file structure of a TIFF image file according to an embodiment of this application; FIG. 6 is a diagram of coordinate mapping of a TIFF image according to an embodiment of this application; FIG. 7 is a diagram of an image resampling and segmenting process according to an embodiment of this application; FIG. 8 is a diagram of a file structure of a first image file according to an embodiment of this application; 6 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 FIG. 9 is a diagram of a process of determining a tile of a first target image according toan embodiment of this application; FIG. 10 is a block diagram of an image file generation apparatus according to an embodiment of this application; FIG. 11 is a block diagram of an image processing apparatus according to an embodiment of this application; FIG. 12 is a block diagram of a structure of a computing device according to an embodiment of this application; FIG. 13 is a block diagram of a structure of a computing device cluster according to an embodiment of this application; and FIG. 14 is a block diagram of a structure of another computing device cluster according to an embodiment of this application. DESCRIPTION OF EMBODIMENTS
[0062] The following describes technical solutions of this application with reference to accompanying drawings.
[0063] A device-side device in embodiments of the present invention may also be referred to as a terminal device, user equipment (User Equipment, UE), a mobile station (Mobile Station, MS), a mobile terminal (Mobile Terminal), or the like. Thedevice-side device may be, for example, a mobile phone (or referred to as a "cellular" phone) or a computer having a mobile terminal. For example, the device-side device may be a portable, pocket-sized, handheld, computer built-in, or vehicle-mounted mobile apparatus.
[0064] In embodiments of the present invention, a cloud-side device may be a server or a server cluster, and the cloud- side device may also be referred to as a computing node or a cloud-side computing cluster.
[0065] For ease of understanding and description of an image processing method according to embodiments of the present invention, the following first describes, with reference to FIG. 1,a device-cloud collaboration system 100 according to an embodiment of this application.
[0066] As shown in FIG. 1, the device-cloud collaboration system 100 includes a device-side device 110 and a cloud- side device 120. The device-side device 110 includes an image processing system 111 and an application 112 (App 1, App 2, ..., andApp N). The image processing system 111 includes a transceiver module and a processing module. The transceiver module is configured to send an image data request or receive image data. The cloud-side device 120 includes a cloud storage module, a transceiver module, and a processing module. The cloud storage module is configured to store the image data.
[0067] The following describes related terms in embodiments of this application. 1. Raster image: The raster image may also be referred to as a bitmap image or a dot matrix image, and is an image formed using a pixel as a smallest unit, and is usually obtained through photographing, scanning, image shooting, and the like. A file format includes BMP, GIF, JPG, TIFF, and the like. The raster image is widely applied to various fields such as satellite remote sensing, astronomical observation, biomedicine, and land management. 2. Tile: The tiles are some small images obtained by uniformly and seamlessly segmenting an image according to afixed specification (for example, 256*256). A process of segmenting an image into tiles is called image tiling. 3. Tile pyramid: The tile pyramid, also known as an image pyramid, is formed by tiles at different levels. In this application, the tile pyramid may also be referred to as a multi-level tile, and is a multi-resolution hierarchical model. Each tile is identified by "a level number, a row number, and a column number". The level means a level of a resolution. A higher level indicates a higher image resolution of a tile, and the tile is clearer. 4. Thumbnail: The thumbnail is a small image obtained by proportionally resampling a large image. The thumbnail and an original image have similar visual effects in addition to different file sizes. Usually, there may be various thumbnails with different resolutions based on different zooming degrees. 5. Homogeneous area: A large-scale area with a consistent color pattern is referred to as the homogeneous area, for example, a geographicallarge-scale snow mountain, desert, or ocean area.
[0068] The foregoing briefly describes the related terms in this application. Details are not described again in the following embodiments. In addition, the foregoing descriptions of the terms are merely descriptions for ease of under- standing, and do not limit the protection scope of embodiments of this application.
[0069] In a current cloud architecture, most information systems use a browser / server (Browser / Server, B / S) archi- tecture. In a design of the B / S architecture, displaying a cloud image on a device side mainly depends on a network (Web) transmission technology. To be specific, after the cloud image that needs to be displayed is transmitted to the device side through Web, the device side renders a part of the image based on a screen range. However, when a data amount of the image is large and a user frequently performs a pan operation, a zoom operation, or the like, the device side sends a large number of requests, and eachrequest requires transmitting an original image. This leads to abnormally slow loading of the cloud image, making it difficult to efficiently browse a large cloud image.
[0070] In view of this, this application provides a solution, to alleviate a problem that it is difficult to efficiently browse a 7 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 cloud image on a device side.
[0071] FIG. 2 is a diagram of an image processing method 200 according to an embodiment this application. The method may be applied to the device-cloud collaboration system shown in FIG. 1. However, this embodiment of this application is not limited thereto.
[0072] The method includes the following steps.
[0073] S210: A terminal device sends a first data request to a server.
[0074] The terminal device may send the first data request to the server, where the first data request may be used to request data of a first target image in a first image file.
[0075] The first target image may be an image that the terminaldevice needs to browse. The first image file may include a second data structure area, the second data structure area may be used to store data of a second image, and the second image may include a plurality of tiles obtained through segmentation based on a first image. In this embodiment of this application, the first target image may include one or more tiles in the second image. It may be understood that the first image may be an original image, and the first image in the following may also be referred to as the original image. This is not limited herein. For example, data of the first image may include map data.
[0076] In some implementations, the second image in the second data structure area may include a multi-level tile, and the multi-level tile may specifically include a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles. Based on the foregoing embodiment, the multi-level tile is provided, to helprequest different levels of tiles based on zooming and improve image browsing experience.
[0077] In some implementations, the first image file may further include a third data structure area, the third data structure area may be configured to store offsets of data of the plurality of tiles in the second image, and the offsets indicate storage locations of the data of the plurality of tiles in the second data structure area.
[0078] In some implementations, the first image file may further include a first data structure area, the first data structure area may be configured to store a file header of the first image file, and the file header identifies or indicates a file type.
[0079] Optionally, the first data request may be an HTTP range (GET Range) request.
[0080] Correspondingly, the server may receive the first data request from the terminal device. Optionally, the first image file may be stored in the server. After receiving the first data request from the terminal device, the servermay obtain the data of the first target image from the first image file based on the first data request.
[0081] Optionally, before receiving the first data request from the terminal device, the server may generate the first image file. This application provides an image file generation method 300, as shown in FIG. 3, and the method includes the following steps.
[0082] S310: Obtain data of a first image.
[0083] S320: Segment the first image to generate a plurality of tiles.
[0084] S330: Generate a first image file based on the plurality of tiles.
[0085] Specifically, the first image file may include: a first data structure area, where the first data structure area is configured to store a file header of an image file; and the file header may identify or indicate a file type; in some implementations, the file header of the image file may be the same as a file header of an original image, so that the image file can be compatible with a format of the original image; and optionally, thefile header of the original image may be directly extracted as the file header of the image file; a second data structure area, where the second data structure area is configured to store data of a second image, and the data of the second image includes data of the plurality of tiles; and a third data structure area, where the third data structure area may be configured to store offsets of data of the plurality of tiles in the second image.
[0086] Based on the embodiment of the image file generation method, the image file including the data structure areas is provided, so that only a tile corresponding to a target image can be requested, and the original image does not need to be fully downloaded. This helps alleviate a problem of slow loading of a cloud image and improve browsing efficiency.
[0087] In some implementations, the second image may include a multi-level tile. In step S330, a projection coordinate system may be first defined for the original image, and then a coordinatereference level is defined based on the projection coordinate system. Further, the original image may be segmented and resampled based on the coordinate reference level, to obtain the multi-level tile. Specifically, the plurality of tiles obtained through segmentation based on the original image may be resampled a plurality of times based on the coordinate reference level, to obtain the multi-level tile.
[0088] In some implementations, the first image file may further include a fourth data structure area, and the fourth data structure area may be configured to store a specific attribute of the second image. Optionally, a size of the specific attribute is greater than a specific threshold.
[0089] In a specific embodiment of this application, the first data structure area may be described as a "file header", the second data structure area may be described as "image data", the third data structure area may be described as an "image attribute directory", and the fourth image attribute maybe described as an "attribute value". Details are not described below 8 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 again. It should be understood that the following is merely an example provided for ease of description and understanding, and should not constitute any limitation on the technical solutions.
[0090] The following describes the image file generation method with reference to specific embodiments.
[0091] For example, a format of the first image file may be named an RM-TIFF format. In some embodiments, the format of the original image may be a tag image file format (Tag Image File Format, TIFF). For example, a suffix of the original image file may include tif, tiff, TIF, and TIFF. A TIFF format image file generally includes a file header (Image File Header, IFH), image data, an image attribute directory (ImageFile Directory, IFD), and an attribute value. It should be noted that one TIFF file may store a plurality of images, that is, there may be one or more pieces ofimage data, and the image data and the IFD appear in pairs. In other words, each piece of image data corresponds to one or more IFDs.
[0092] For ease of understanding embodiments of this application, FIG. 4 provides a TIFF image according to an embodiment of this application. The TIFF image is opened as shown in FIG. 4. The TIFF image has a width of 750 pixels and a height of 1000 pixels. FIG. 5 is a diagram of a file structure of an image file of the TIFF image shown in FIG. 4. As shown in FIG. 5, the image file of the TIFF format image includes an IFH, image data, an IFD, and an attribute value. Because the image in this embodiment is not large, only one piece of image data is included, and an attribute in the image is recorded by using one IFD.
[0093] An image file in the TIFF format usually starts with an 8-byte IFH. The IFH may include a sequence flag bit, a TIFF flag bit, and an offset of a first IFD. The sequence flag bit occupies 2 bytes (Bytes), the TIFF flag bit occupies 2bytes, and the offset of the first IFD occupies 4 bytes. The offset of the first IFD may indicate a location of the first IFD corresponding to first image data.
[0094] The IFD can record the attribute in the image. Specifically, the IFD includes a quantity of tags, tags, and an offset of a next IFD. The quantity of tags occupies 2 bytes and records a total quantity of subsequent tags. Each tag occupies 12 bytes and indicates an attribute of the image. The interior of the tag can be further divided into a number of the tag (2 bytes), a value type (2 bytes), a value quantity (4 bytes), and data or an offset (4 bytes). If a byte length of the value type multiplied by the value quantity is less than or equal to 4 bytes, the data can be directly stored in the tag. Otherwise, the data can be stored in the attribute value at the end of the TIFF format, and the offset is recorded in the tag. At the end of the IFD, there is the offset of the next IFD. If the next IFD does not exist, the offsetmay be NULL (0x00000000). In the IFD, numbers of tags are arranged in ascending order. The numbers are defined in a TIFF specification. For example, a tag with a number of 256 represents an image width, and a tag with a number of 282 represents an offset of stripe data. For a stripe (stripe), continuous data is divided into data blocks, and each data block is stored in a different location. In the image file shown in FIG. 5, a tag 3 points to a location, in the TIFF file, of the image data of the TIFF image.
[0095] In some implementations, the format of the original image may also be a geographic tag image file format (Geo Tag Image File Format, GeoTIFF). GeoTIFF is an extended format of the tag image file format (Tag Image File Format, TIFF). To be specific, some geographic tags (Geo Tag) are defined based on the TIFF to define and store various coordinate systems, ellipsoidal datum, projection information, and the like, so that image data and geographic data are stored in a sameimage file, to help production and use of an image with geographic information. For example, the geographic information may be information such as a coordinate system and longitude and latitude. GeoTIFF-based image processing defines a standard coordinate system for the image, which facilitates subsequent format conversion.
[0096] Specifically, in step S310, the file header IFH of the original image may be first extracted as the file header of the first image file. Optionally, the format of the original image may be verified first, to verify whether the format is a correct TIFF format or GeoTIFF format. For example, whether the image is in the correct TIFF format may be verified by using a third- party library, for example, libtiff. For example, whether the image is in the GeoTIFF format may be verified by using the third- party library like GDAL or OpenCV.
[0097] In some implementations, the original image may be further resampled to obtain a first thumbnail. The first thumbnail mayinclude a multi-level thumbnail, and the multi-level thumbnail includes a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the original image. The multi-level thumbnail may alternatively be generated based on the coordinate reference level.
[0098] In this embodiment of this application, when the second data structure area in the first image file is generated in step S330, the first thumbnail and / or the original image may also be stored in the second data structure area. Based on the foregoing embodiment, the original image is stored in the second data structure area of the first image file, so that the first image file can be better compatible with the existing TIFF format file. The first thumbnail is stored in the second data structure area of the first image file, which can facilitate image browsing and processing based on the first thumbnail. In addition, in comparison with additionally storing a thumbnail or a tilepyramid independent of the original image, storing the three in the second data structure area of the first image file helps reduce file input / output (I / O) frequency and improve read / write efficiency.
[0099] Optionally, in step S330, an offset of data of the first thumbnail and / or the original image in the second data structure area may also be stored in the third data structure area. Further, the imageattribute in the IFD of the original image may also be stored in the third data structure area.
[0100] In some implementations, the image attribute in the IFD of the original image may be extracted and stored in a 9 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 memory. For example, the original image may be the TIFF image shown in FIG. 4, and the image attribute in the IFD of the original image may be the image width, the image height, the stripe offset, and the like of the original image shown in FIG. 5.
[0101] In some embodiments, a data structure like a Map structure may be used totemporarily store the extracted IFH of the original image, the IFD of the original image, and the image data of the original image for subsequent use. In some other embodiments, the extracted IFH of the original image, the IFD of the original image, and the image data of the original image may be directly stored in the file for persistent use.
[0102] The following describes, with reference to a specific embodiment, the definition of the projection coordinate system and the coordinate reference level in step S330, and the segmentation and resampling performed based on the original image based on the coordinate reference level. (1) Define the projection coordinate system
[0103] Specifically, when the format of the original image is the TIFF format, the original image in the TIFF format may be first converted into the GeoTIFF format.
[0104] An image file in the GeoTIFF format includes geographic data, and a geographic coordinate system is defined based on the geographic data. It may beunderstood that the geographic coordinate system is a spatial spherical coordinate system, and the projection coordinate system is a plane coordinate system. A process of converting spherical coordinates into plane coordinates is referred to as projection.
[0105] In some implementations, the geographic coordinate system and the projection coordinate system are defined for the image in the GeoTIFF format, that is, each pixel in the GeoTIFF format may correspond to one geographic coordinate and one projection coordinate.
[0106] In some other implementations, if only the geographic coordinate system is defined for the image in the GeoTIFF format, the projection coordinate system needs to be defined based on the geographic coordinate system.
[0107] In embodiments of this application, defining the projection coordinate system may be understood as converting spherical coordinates into plane coordinates. For example, the projection coordinate system may be defined by using aDefineProjection_management method of an arcpy script. It should be noted that defining the projection coordinate system does not change geometric information of the image, but only updates the coordinate system. Therefore, display of the image is not distorted. For example, the projection coordinate system may be defined as a spherical Mercator coordinate system (which may also be referred to as a "Web Mercator coordinate system"), and projection may be performed according to a projection standard EPSG:3857.
[0108] In some implementations, pixel coordinates of the original image may be directly mapped to projection coordinates. Specifically, a width and a height of a TIFF image may be mapped to coordinates in a two-dimensional plane coordinate system, and the coordinates are used as projection coordinates of the image.
[0109] For example, FIG. 6 is a diagram of coordinate mapping of the TIFF image shown in FIG. 4. It is known that a resolution of the TIFF image shown in FIG. 4 is750*1000, and a lower left corner of the TIFF image may be set to an origin (0, 0) of a coordinate system of projection coordinates, so that coordinates of an upper right corner of the TIFF image are (750, 1000). FIG. 6 is a diagram of projection coordinates after the TIFF image is mapped. (2) Define the coordinate reference level
[0110] In some implementations, the coordinate reference level may be defined based on the projection coordinate system of the original image, to facilitate generation of the multi-level thumbnail and the multi-level tile. In addition, the coordinate reference level corresponds to a level in the multi-level thumbnail and the multi-level tile. Generally, a resolution at a maximum zoom level during image browsing does not exceed an original resolution of the image, and resolutions at adjacent levels are in a 2-fold relationship.
[0111] For example, it is assumed that a length and a width of a tile are both 256 pixels. In a tile pyramid, 1*1 tiles are used torepresent an image at a level 0, 2*2 tiles are used to represent an image at a level 1, and 4*4 tiles are used to represent an image at a level 2. By analogy, a tile and level correspondence shown in Table 1 may be obtained. Table 1 Tile and level correspondence in an embodiment of this application Pyramid level Quantity of tiles Maximum pixel range that can be represented 0 1 256*256 1 4 512*512 2 16 1024*1024 3 64 2048*2048 10 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 (continued) Pyramid level Quantity of tiles Maximum pixel range that can be represented ... ... ... 15 1,073,741,824 8,388,608*8,388,608 16 4,294,967,296 16,777,216*16,777,216 17 17,179,869,184 33,554,432*33,554,432 18 68,719,476,736 67,108,864*67,108,864
[0112] According to Table 1, the level 18 of the pyramid can represent an image in a maximum pixel range of 67,108,864*67,108,864. An image beyond this range may be further divided. When the TIFF image shown in FIG. 4 is used as the original image, a size of theimage is 750*1000, so that the image may be represented by using the level 2 whose pixel range is 1024*1024 in the tile pyramid. A pyramid level at which the image is located is the level 2, and covered by 12 tiles.
[0113] Based on the defined coordinate reference level, the multi-level tile may be obtained through segmentation and resampling based on the original image; and the multi-level thumbnail may also be obtained through resampling based on the original image. The segmentation may also be referred to as cropping. For example, segmentation and resampling may be completed by using a third-party library like GDAL or OpenCV. (3) Perform segmentation and resampling based on the original image
[0114] The following describes a resampling and segmentation process with reference to a specific embodiment. FIG. 7 is a diagram of the resampling and segmenting process according to an embodiment of this application. An original image used in the resampling and segmentation process is theTIFF image in FIG. 4. For example, in this embodiment, both a length and a width of a tile are 256 pixels.
[0115] As shown in FIG. 7, a multi-level tile obtaining process is as follows: segmenting an original image with a resolution of 750*1000 to obtain 12 level 2 tiles; resampling the 12 level 2 tiles to obtain four level 1 tiles, for example, resampling four level 2 tiles marked as①,②,③, and④ in the figure to obtain one level 1 tile marked as⑤ in the figure; and resampling the four level 1 tiles to obtain one level 0 tile.
[0116] A multi-level thumbnail obtaining process is as follows: directly using an original image with a resolution of 750*1000 as a level 2 thumbnail; resampling the level 2 thumbnail to obtain one level 1 thumbnail with a resolution of 375*500; and resampling the level 1 thumbnail to obtain one level 0 thumbnail.
[0117] Specifically, in step S330, the obtained multi-level thumbnail and multi-level tile may be encoded in a unified manner, and an index code and anoffset that are of each image are correspondingly stored in the third data structure area. For example, encoding may be performed by using a geohash method, or another encoding method like a user-defined encoding method. This is not limited in this application. For example, in the embodiment shown in FIG. 7, the geohash method may be used to perform z-shaped sequential encoding on the tiles. Index codes of the tiles numbered①,②,③, and④ in the level 2 tiles are 0000, 0001, 0010, and 0011 respectively, and an index code of the tile numbered⑤ in the level 1 tiles is 00. Based on the foregoing embodiment, it is convenient to determine the offset based on a index code, and then locate the tile of the target image based on the offset.
[0118] In some implementations, an index code and an offset that are of a thumbnail may be stored in one tag in the third data structure area. When there are a large quantity of thumbnails, codes and offsets of the thumbnails may alternatively becorrespondingly stored in a plurality of tags in the third data structure area. Similarly, codes and offsets of tiles may also be stored in one or more tags in the third data structure area. For example, in this embodiment of this application, all offsets of the level 0 thumbnail to the level 2 thumbnails are stored in one tag.
[0119] In conclusion, the first image file may be generated based on the original image.
[0120] FIG. 8 is a diagram of a file structure of a first image file according to an embodiment of this application. Refer to FIG. 8. The first image file includes an IFH, an IFD, an attribute value, and image data. In the IFD, a tag 1 to a tag n are attribute information of an original image, for example, an image width, an image height, and a stripe offset; a tag n+1 to a tag m are coordinate information; a tag m+1 to a tag k are offsets of the original image; and other subsequent tags are used to store offsets of thumbnails and tiles.
[0121] In some implementations, areadetection may be performed on a tile in the first image file, to determine a homogeneous tile, where the homogeneous tile is a tile whose proportion of same pixels with a feature tile reaches a predetermined threshold. For example, during homogeneous area detection, analysis may be performed by using a method like deep learning or histogram analysis. Specifically, similarity detection may be performed on tiles, and the tiles belong to a homogeneous area if large-scale color modes of the tiles are consistent. During similarity detection, a 11 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 parameter λ may be set, so that when a proportion of same or similar pixels of two tiles exceeds λ, the two tiles are considered to be homogeneous tiles. Specifically, the parameter λ may be set based on an actual requirement during application.
[0122] For a plurality of homogeneous tiles, a tile that best represents the area may be extracted as a feature tile. For example, the feature tile may beextracted through manual selection or machine learning. Image data of the first image file may include only data of the feature tile in the plurality of homogeneous tiles, in other words, data of a homogeneous tile other than the feature tile may be deleted. In addition, all offsets corresponding to the plurality of homogeneous tiles in the IFD are set to an offset of the feature tile, in other words, all the offsets of the plurality of homogeneous tiles indicate a location of the feature tile in the first image file. Based on the foregoing embodiment, tile reuse can be implemented, thereby effectively saving storage space.
[0123] In some implementations, the image data in the first image file may be compressed, to reduce occupied storage space and reduce network transmission costs. After compression, the offsets in the IFD need to be updated synchro- nously. For example, a compression manner may be LZM, JPEG, DEFLATE, or the like.
[0124] In some implementations, the third datastructure area may be adjacent to the first data structure area. Specifically, the IFD may be adjacently disposed after the IFH in the first image file. Based on this embodiment, data read efficiency is improved. In some implementations, the attribute value and the IFD may be adjacently placed after the file header, to help read a complete image attribute can be read at a time.
[0125] Based on the foregoing embodiment, the first image file in an RM-TIFF format can be obtained by performing format conversion on the original image.
[0126] S220: The server obtains the data of the first target image from the first image file based on the first data request.
[0127] After receiving the first data request in S210, the server may obtain the data of the first target image from the first image file based on the first data request.
[0128] S230: The server sends the data of the first target image to the terminal device.
[0129] Correspondingly, the terminaldevice may receive the data of the firsttarget image from the server, and display the first target image based on the data of the first target image.
[0130] Based on the foregoing embodiment, the terminal device can send the first data request to the server, to request the first target image in the first image file in the server, and then the server obtains, based on the first data request, the one or more tiles included in the first target image, and sends the tiles to the terminal device, so that the original image does not need to be fully downloaded. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0131] Before S210, the terminal device may alternatively first determine the first target image. Specifically, the terminal device may first obtain an image access request. For example, the image access request may be a pan operation, a zoom operation, or the like performed by the user, and the image access request is usedto request to display the first target image in the original image.
[0132] In some implementations, the terminal device may determine the first target image based on the image access request. Specifically, the terminal device may determine a level and pixel coordinates of the first target image based on the image access request, and then determine, based on the level and the pixel coordinates of the first target image, the first target image and a tile corresponding to the first target image.
[0133] For example, a level of a tile in a window range may be determined based on the pan operation, the zoom operation, or the like performed by the user, and screen coordinates are converted into pixel coordinates; then the pixel coordinates are converted into projection coordinates, to obtain a projection coordinate range of the tile in the window range; and a set of index codes corresponding to the tiles is obtained based on the projection coordinate range of the tile. It should be noted thata same encoding manner is used for both a window on a terminal device side and an image on a server side, for example, encoding is performed by using a geohash method, so that an index code of the window on the terminal device side is unified with an index code of a corresponding tile on the server side.
[0134] In some embodiments, the first data request may include geographic information corresponding to the first target image, for example, a longitude range and a latitude range. After receiving the first data request, the server may obtain the data of the first target image from the first image file based on the first data request. Specifically, the server may determine the first target image based on the first data request; determine, based on the first target image, a first tile corresponding to the first target image, where the first tile may include one or more tiles; obtain a first offset corresponding to the first tile; and then obtain data of the first tile based on the firstoffset, and send the data of the first tile to the terminal device.
[0135] In some embodiments, before step S210, the terminal device may further send a second data request to the server to request the third data structure area of the first image file. Optionally, the second data request may be an HTTP GET Range request. Correspondingly, the server may receive the second data request from the terminal device, obtain the third data structure area from the first image file based on the second data request, and then send the third data structure area of the first image file to the terminal device.
[0136] Further, the terminal device may search the third data structure area for the corresponding first offset based on a set of index codes corresponding to the tiles in the first target image. It may be understood that the first offset is a set of 12 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 offsets corresponding to one or more tiles in the first tile. When the first target image coversonly one tile, there is one index code, and there is one corresponding offset, and the offset forms the first offset. When the first target image covers a plurality of tiles, there are a plurality of index codes, and there are a plurality of corresponding offsets, and the plurality of offsets form the first offset.
[0137] Further, the first data request may include the first offset, so that the server may directly locate the location of the data of the first target image based on the first offset. Based on the foregoing solution, the first data request may include the first offset to request the first target image, and the server does not need to search the third data structure area for the offset corresponding to the first target image, and may directly determine a location of a required tile based on the first offset in the first data request, to help improve read efficiency. In addition, in this solution, data of a plurality of tiles may be requested by using one data request, sothat transmission overheads can be reduced and browsing efficiency can be improved.
[0138] The following describes, with reference to a specific embodiment, a process of determining a set of index codes corresponding to tiles in a first target image.
[0139] FIG. 9 is a diagram of a process of determining a tile of a first target image according to an embodiment of this application. It is assumed that an image display area (also referred to as a "window") is 300*300 pixels. A zoom level is a level 0 when a user initially loads an image. Then the zoom level changes to a level 2 after the user performs a pan operation or a zoom operation, and pixel coordinates corresponding to an upper left corner of the window of the image are (200, 200). Refer to FIG. 9. The window is located at the zoom level 2, and the pixel coordinates corresponding to the upper left corner of the window are (200, 200). In this case, a screen cannot display an entire image, and therefore tiles within a window rangeare requested.
[0140] In this embodiment, a process of determining an index code of the tile of the first target image is as follows: (1) Screen coordinates may be converted into pixel coordinates. Based on the size 300*300 of the window and the pixel coordinates (200, 200) of the upper left corner, pixel coordinates of a lower right corner of the window can be calculated as (500, 500). (2) The pixel coordinates are converted into standard projection coordinates based on a projection coordinate system of the image. The origin of the pixel coordinates is in the upper left corner, and the y axis increases from top to bottom. In addition, the origin of the projection coordinates is in a lower left corner, and the y axis increases from bottom to top. Therefore, coordinate system conversion is required. The coordinates of the upper left corner of the projection coordinate system in the figure are aligned with the origin of the pixel coordinate system, so that a projection coordinate rangein the window range is [200, 500] on the x axis and [524,824] on the y axis. (3) According to a geohash encoding method, the projection coordinate range is converted into a set of index codes, namely, four tiles 0100, 0101, 0110, and 0111.
[0141] In some implementations, the first target image may include a thumbnail. For example, when an image display area (also referred to as a "window") of the user is initially at a level 0, screen coordinates of an upper left corner is (0, 0), and screen coordinates of a lower right corner is (300, 300). A size of an image thumbnail at the level 0 is 256*256 pixels. Therefore, the entire image can be directly displayed by using the thumbnail. Optionally, the terminal device may retrieve the IFD to obtain a second offset corresponding to the thumbnail. Correspondingly, the first data request includes the second offset. The server may determine a location of the thumbnail based on the second offset in the first data request, and send data of thethumbnail to the terminal device.
[0142] In some implementations, the terminal device may cache the received data of the first target image. Optionally, a memory may be used for caching. When a caching requirement is large, a database may be used for caching. Subsequent same requests can be preferentially searched in a local cache to improve efficiency.
[0143] The foregoing describes in detail the method side embodiments of this application with reference to FIG. 1 to FIG. 9. The following describes in detail apparatus side embodiments of this application with reference to FIG. 10 and FIG. 12. It should be understood that descriptions of the apparatus embodiments correspond to the descriptions of the method embodiments. Therefore, for a part that is not described in detail, refer to the foregoing method embodiments.
[0144] FIG. 10 is a block diagram of an image file generation apparatus 1000 according to an embodiment of this application. As shown in FIG. 10, the image file generationapparatus 1000 may include a transceiver module 1010 and a processing module 1020. In a possible design, the image file generation apparatus 1000 may implement steps or procedures performed corresponding to the image file generation method in the foregoing method embodiments.
[0145] Optionally, the image file generation apparatus 1000 may be used in a server. In some embodiments, the transceiver module 1010 may be configured to receive data of a first image. The data of the first image may include map data. The processing module 1020 may be configured to segment the first image to generate a plurality of tiles. The processing module 1020 may be further configured to generate a first image file based on the plurality of tiles, where the first image file includes: a first data structure area, configured to store a file header of an image file, where the file header indicates a file type; a second data structure area, configured to store data of a second image, where the data of thesecond image includes data of the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles in the data of the second image, where the offsets of the plurality of tiles indicate storage locations of data of the plurality of tiles in the data of the second image.
[0146] Based on an image file including the data structure areas that is generated by the image file generation apparatus 13 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 1000, the terminal device can request only a tile corresponding to a target image in the image file, and an original image does not need to be fully downloaded. This helps alleviate a problem of slow loading of a cloud image and improve browsing efficiency.
[0147] In some implementations, the processing module 1020 may be further configured to resample the plurality of tiles to generate a multi-level tile, where the second image may include the multi-level tile.
[0148] In some implementations, for a pluralityof homogeneous tiles in a first tile, the second data structure area may store only data of a feature tile in the plurality of homogeneous tiles, offsets that correspond to the plurality of homogeneous tiles and that are in the third data structure area may be set to be the same, and the same offsets corresponding to the plurality of homogeneous tiles may indicate a location of the data of the feature tile in the second data structure area.
[0149] Optionally, the third data structure area may be adjacent to the first data structure area. In some implementations, the third data structure area may include a tag, and the tag may include an index code and an offset that are of each tile in the second image.
[0150] In some implementations, the second data structure area may further store data of an original image and / or data of a first thumbnail, where the first thumbnail includes an image obtained through resampling based on the original image. Further, the third data structure area mayfurther store the data of the original image and / or an offset corresponding to the data of the first thumbnail.
[0151] Further, the first thumbnail may include a multi-level thumbnail, and the multi-level thumbnail may include a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the original image.
[0152] In some implementations, the processing module 1020 may be further configured to compress the data of the second image in the third data structure area. It should be noted that, after compression, an offset of each image changes, and therefore the offset in the third data structure area also needs to be updated.
[0153] In some implementations, the processing module 1020 may be specifically configured to: define a projection coordinate system for the original image; define a coordinate reference level for the original image based on the projection coordinate system; and segment the original image based on the coordinatereference level to obtain the plurality of tiles.
[0154] FIG. 11 is a block diagram of an image processing apparatus 1100 according to an embodiment of this application. As shown in FIG. 11, the image processing apparatus 1100 may include a transceiver module 1110 and a processing module 1120. The transceiver module 1110 may communicate with the outside, the processing module 1120 is configured to process data, and the transceiver module 1110 may also be referred to as a communication interface.
[0155] In a possible design, the image processing apparatus 1100 may implement steps or procedures performed by the server (namely, the cloud-side device) in the foregoing method embodiments. The processing module 1120 may be configured to perform processing-related operations of the server in the foregoing image processing method embodi- ments, and the transceiver module 1110 may be configured to perform receiving and sending-related operations of the server in the foregoing image processingmethod embodiments.
[0156] In some embodiments, the transceiver module 1110 may be configured to receive a first data request from a terminal device, where the first data request is used to request data of a first target image in a first image file, the first image file includes a second data structure area, the second data structure area includes data of a second image, the data of the second image includes data of a plurality of tiles, the plurality of tiles include an image obtained through segmentation based on a first image, and the first target image includes one or more tiles in the second image. The processing module 1120 may be configured to obtain the data of the first target image from the first image file based on the first data request. The transceiver module 1110 may be further configured to send the data of the first target image to the terminal device.
[0157] Based on the foregoing embodiments, the image processing apparatus 1100 can receive, through the trans- ceivermodule 1110, the first data request sent by the terminal device, and the processing module 1120 can obtain, based on the first data request, the one or more tiles included in the first target image, and send the tiles to the terminal device, so that the terminal device does not need to fully download an original image. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0158] In a possible design, the image processing apparatus 1100 may implement steps or procedures performed by the terminal device in the foregoing method embodiments. The processing module 1120 may be configured to perform processing-related operations of the terminal device in the foregoing image processing method embodiments, and the transceiver module 1110 may be configured to perform receiving and sending-related operations of the terminal device in the foregoing image processing method embodiments.
[0159] In someimplementations, the transceiver module 1110 may be configured to send a first data request to a server, where the first data request is used to request data of a first target image in a first image file, the first image file includes a second data structure area, the second data structure area includes data of a second image, the second image includes a plurality of tiles, the plurality of tiles include an image obtained through segmentation based on data of a first image, and the first target image includes one or more tiles in the second image. The transceiver module 1110 may be further configured to receive the data of the first target image from the server. The processing module 1120 may be configured to display the first target image based on the data of the first target image. 14 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55
[0160] Based on the foregoing solution, the image processing apparatus can send the first data request to the server through the transceiver module 1110,to request the first target image in the first image file in the server, and then the server obtains, based on the first data request, the one or more tiles included in the first target image, so that an original image does not need to be fully downloaded. After the transceiver module 1110 receives data of the first target image from the server, the processing module 1120 displays the first target image based on the data of the first target image. This can significantly alleviate a problem of slow loading of a cloud image, improve browsing efficiency, and further reduce a data transmission amount.
[0161] This application further provides a computing device 1200. As shown in FIG. 12, the computing device 1200 includes a bus 1202, a processor 1204, a memory 1206, and a communication interface 1208. The processor 1204, the memory 1206, and the communication interface 1208 communicate with each other through the bus 1202. The computing device 1200 may be a server or a terminal device. Itshould be understood that quantities of processors and memories in the computing device 1200 are not limited in this application.
[0162] The bus 1202 may be a peripheral component interconnect (peripheral component interconnect, PCI) bus, an extended industry standard architecture (extended industry standard architecture, EISA) bus, or the like. The bus may be classified into an address bus, a data bus, a control bus, and the like. For ease of representation, the bus is represented by using only one line in FIG. 12. However, this does not indicate that there is only one bus or only one type of bus. The bus 1202 may include a path for transmitting information between components (for example, the memory 1206, the processor 1204, and the communication interface 1208) of the computing device 1200.
[0163] The processor 1204 may include any one or more of processors such as a central processing unit (central processing unit, CPU), a graphics processing unit (graphics processing unit, GPU), amicroprocessor (microprocessor, MP), or a digital signal processor (digital signal processor, DSP).
[0164] The memory 1206 may include a volatile memory (volatile memory), for example, a random access memory (random access memory, RAM). The processor 1204 may further include a non-volatile memory (non-volatile memory), for example, a read-only memory (read-only memory, ROM), a flash memory, a hard disk drive (hard disk drive, HDD), or a solid-state drive (solid-state drive, SSD).
[0165] The memory 1206 stores executable program code, and the processor 1204 executes the executable program code to separately implement functions of the transceiver module and the processing module, so as to implement the image file generation method or the image processing method. In other words, the memory 1206 stores instructions used to perform the image file generation method or the image processing method.
[0166] The communication interface 1208 uses a transceiver module, for example, but not limitedto, a network interface card or a transceiver, to implement communication between the computing device 1200 and another device or a communication network.
[0167] An embodiment of this application further provides a computing device cluster. The computing device cluster includes at least one computing device. The computing device may be a server, for example, a central server, an edge server, or a local server in a local data center. In some embodiments, the computing device may alternatively be a terminal device like a desktop computer, a notebook computer, or a smartphone.
[0168] As shown in FIG. 13, the computing device cluster includes at least one computing device 1200. The memory 1206 in the at least one computing device 1200 in the computing device cluster may store same instructions used to perform the image file generation method or the image processing method.
[0169] In some possible implementations, the memory 1206 in the at least one computing device 1200 in the computingdevice cluster may alternatively separatelystore some instructions used toperform the imagefile generationmethod or the image processing method. In other words, a combination of the at least one computing device 1200 may jointly execute the instructions used to perform the image file generation method or the image processing method.
[0170] It should be noted that memories 1206 in different computing devices 1200 in the computing device cluster may store different instructions, which are respectively used to perform some functions of the image file generation method or the image processing method. In other words, the instructions stored in the memories 1206 in the different computing devices 1200 may implement functions of one or more of the processing module and the transceiver module.
[0171] In some possible implementations, the at least one computing device in the computing device cluster may be connected through a network. The network may be a wide area network, a local areanetwork, or the like. FIG. 14 shows a possible implementation. As shown in FIG. 14, two computing devices 1200A and 1200B are connected through a network. Specifically, each computing device is connected to the network through a communication interface in the computing device. In this possible implementation, the memory 1206 in the computing device 1200A stores instructions for performing a function of a task triggering module.
[0172] It should be understood that functions of the computing device 1200A shown in FIG. 14 may alternatively be completed by the plurality of computing devices 1200. Similarly, functions of the computing device 1200B may alternatively be completed by the plurality of computing devices 1200.
[0173] An embodiment of thisapplication further provides a chip. The chip includes a processor and adata interface. The processor reads, through the data interface, instructions stored in a memory, to perform the image file generation method 15 EP 4 685 663 A1 5 10 15 20 2530 35 40 45 50 55 or the image processing method.
[0174] An embodiment of this application further provides a computer program product including instructions. The computer program product may be software or a program product that includes the instructions and that can be run on a computing device or stored in any usable medium. When the computer program product is run on at least one computing device, the at least one computing device is enabled to perform the image file generation method or the image processing method.
[0175] An embodiment of this application further provides a computer-readable storage medium. The computer- readable storage medium may be any usable medium accessible by a computing device, or a data storage device, for example, a data center, including one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, asolid-state drive), or the like. The computer-readable storage medium includes instructions, and the instructions instruct a computing device to perform the image file generation method or the image processing method.
[0176] It may be clearly understood by a person skilled in the art that, for the purpose of convenient and brief description, for a detailed working process of the foregoing system, apparatus, and unit, refer to a corresponding process in the foregoing method embodiments. Details are not described herein again.
[0177] In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiments are merely examples. For example, division into the units is merely logical function division and may be other division during actual implementation. For example, a plurality of units or components may be combined or integrated into anothersystem, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the apparatuses or units may be implemented in an electrical form, a mechanical form, or another form.
[0178] The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one location, or may be distributed on a plurality of network units. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of embodiments.
[0179] In addition, functional units in embodiments of this application may be integrated into one processing unit, or each of the units may exist alone physically, or two or more units may be integrated into one unit.
[0180] When the functions are implemented inthe form of a software function unit and sold or used as an independent product, the functions may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of this application essentially, or the part contributing to the conventional technology, or some of the technical solutions may be implemented in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in embodiments of this application. The storage medium includes various media that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk, or an optical disc.
[0181] The foregoing descriptions are merely specific implementations ofthis application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims. Claims 1. An image file generation method, wherein the method comprises: obtaining data of a first image, wherein the data of the first image comprises map data; segmenting the first image to generate a plurality of tiles; and generating a first image file based on the plurality of tiles, wherein the first image file comprises: a first data structure area, configured to store a file header of the first image file, wherein the file header indicates a file type of the first image file; a second data structure area, configured to store data of a second image, wherein the data of the second imagecomprises data of the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles, wherein the offsets of the plurality of tiles indicate storage locations of the data of the plurality of tiles in the second data structure area. 16 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 2. The method according to claim 1, wherein the method further comprises: resampling the plurality of tiles to generate a multi-level tile, wherein the second image comprises the multi-level tile. 3. The method according to claim 1 or 2, wherein for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area comprises data of a feature tile in the plurality of homogeneous tiles, and the homogeneous tile is a tile whose proportion of same pixels with the feature tile reaches a predetermined threshold. 4. The method according to claim 3, wherein offsets that correspond to the plurality of homogeneoustiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area. 5. The method according to any one of claims 1 to 4, wherein the third data structure area is adjacent to the first data structure area in the first image file. 6. The method according to any one of claims 1 to 5, wherein the third data structure area comprises a tag, and the tag comprises an index code and an offset that are of each tile in the second image. 7. The method according to any one of claims 1 to 6, wherein the second image further comprises the first image and / or a first thumbnail, and the first thumbnail comprises an image obtained through resampling based on the first image; and the third data structure area further comprises an offset corresponding to the first image and / or the first thumbnail. 8. The method according to claim 7, wherein the first thumbnailcomprises a multi-level thumbnail, and the multi-level thumbnail comprises a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image. 9. The method according to any one of claims 1 to 8, wherein the first image file further comprises: a fourth data structure area, wherein the fourth data structure area is configured to store specific attributes of the plurality of tiles, and a size of the specific attribute is greater than a specific threshold. 10. The method according to any one of claims 1 to 9, wherein the method further comprises: defining a projection coordinate system for the first image; defining a coordinate reference level for the first image based on the projection coordinate system; and segmenting the first image based on the coordinate reference level to obtain the plurality of tiles. 11. An image processing method, wherein the method comprises: receiving a first data request from a terminal device,wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the second image comprises a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on a first image, and the first target image comprises one or more tiles in the second image; obtaining the data of the first target image from the first image file based on the first data request; and sending the data of the first target image to the terminal device. 12. The method according to claim 11, wherein the second image comprises a multi-level tile, and the multi-level tile comprises a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles; and the first target image specifically comprises one or more tiles at a same level in the multi-level tile. 13. Themethod according to claim 11 or 12, wherein the first image file further comprises a third data structure area, the third data structure area is configured to store offsets of data of the plurality of tiles in the second image, and the offsets indicate storage locations of the data of the plurality of tiles in the second image in the second data structure area. 14. The method according to claim 13, wherein for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area comprises data of a feature tile in the plurality of homogeneous tiles, and the homogeneous tile is a tile whose proportion of same pixels with the feature tile reaches a predetermined 17 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 threshold. 15. The method according to claim 14, wherein offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality ofhomogeneous tiles indicate a storage location of the feature tile in the second data structure area. 16. The method according to any one of claims 13 to 15, wherein the obtaining the data of the first target image from the first image file based on the first data request comprises: determining the first target image based on the first data request; determining, based on the first target image, a first tile corresponding to the first target image; obtaining first offset, wherein the first offset is an offset of the first tile; and obtaining data of the first tile based on the first offset; and the sending the data of the first target image to the terminal device comprises: sending the data of the first tile to the terminal device. 17. The method according to any one of claims 13 to 15, wherein the first data request comprises a first offset, and the first offset is an offset of a first tile corresponding to the first target image; the obtaining the data of the first target image fromthe first image file based on the first data request comprises: obtaining the first tile based on the first offset; and the sending the data of the first target image to the terminal device comprises: sending data of the first tile to the terminal device. 18. The method according to any one of claims 13 to 17, wherein before receiving the first data request from the terminal device, the method further comprises: receiving a second data request from the terminal device, wherein the second data request is used to request the third data structure area of the first image file; obtaining the third data structure area based on the second data request; and sending the third data structure area to the terminal device. 19. The method according to any one of claims 13 to 18, wherein the first image file further comprises a first data structure area, the first data structure area comprises a file header of the first image file, the file header indicates a file type, and the third data structurearea is adjacent to the first data structure area in the first image file. 20. The method according to any one of claims 13 to 19, wherein the third data structure area comprises a tag, and the tag comprises an index code and the offset that are of each tile in the second image. 21. The method according to any one of claims 13 to 20, wherein the second image further comprises the first image and / or a first thumbnail, and the first thumbnail comprises an image obtained through resampling based on the first image; and the third data structure area further comprises an offset corresponding to data of the first image and / or data of the first thumbnail. 22. The method according to claim 21, wherein the first thumbnail comprises a multi-level thumbnail, and the multi-level thumbnail comprises a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image. 23. The method according to any one of claims 11 to 22, wherein thefirst image file further comprises: a fourth data structure area, wherein the fourth data structure area is configured to store specific attributes of the plurality of tiles, and a size of the specific attribute is greater than a specific threshold. 24. An image processing method, wherein the method comprises: sending a first data request to a server, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of asecond image, the second image comprisesa plurality of tiles, the plurality of tilescomprise an 18 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 image obtained through segmentation based on a first image, and the first target image comprises one or more tiles in the second image; receiving the data of the first target image from the server; and displaying the first target image based on the data of the first target image. 25.The method according to claim 24, wherein the second image comprises a multi-level tile, and the multi-level tile comprises a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles; and the first target image specifically comprises one or more tiles at a same level in the multi-level tile. 26. The method according to claim 24 or 25, wherein the first image file further comprises a third data structure area, the third data structure area is configured to store offsets of data of the plurality of tiles, and the offsets indicate storage locations of data of the plurality of tiles in the second data structure area. 27. The method according to claim 26, wherein for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area comprises data of a feature tile in the plurality of homogeneous tiles, and the homogeneous tile is a tile whose proportion of samepixels with the feature tile reaches a predetermined threshold. 28. The method according to claim 27, wherein offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area. 29. The method according to any one of claims 26 to 28, wherein the first data request comprises a first offset, the first offset is an offset of a first tile, and the first tile comprises one or more tiles corresponding to the first target image. 30. The method according to claim 29, wherein before sending the first data request to the server, the method further comprises: sending a second data request to the server, wherein the second data request is used to request the third data structure area of the first image file; receiving the third data structure area from the server; and determining the first offsetbased on the third data structure area. 31. The method according to any one of claims 24 to 30, wherein before sending the first data request to the server, the method further comprises: obtaining an image access request, wherein the image access request is used to request to display the first target image in the first image; and determining the first target image based on the image access request. 32. The method according to claim 31, wherein the determining the first target image comprises: determining a level and pixel coordinates of the first target image based on the image access request; and determining the first target image based on the level and the pixel coordinates of the first target image. 33. The method according to any one of claims 29 to 30, wherein the third data structure area comprises a tag, and the tag comprises an index code and the offset that are of each tile in the second image; and the determining the first offset based on the third data structure areacomprises: obtaining an index code of a tile of the first target image; and searching the third data structure area based on the index code of the tile of the first target image, to determine the first offset. 34. The method according to any one of claims 24 to 33, wherein the first image file further comprises a first data structure area, the first data structure area comprises a file header of the first image file, the file header indicates a file type, and the third data structure area is adjacent to the first data structure area in the first image file. 19 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 35. The method according to any one of claims 30 to 33, wherein the data of the second image in the second data structure area further comprises data of the first image and / or data of a first thumbnail, and the first thumbnail comprises an image obtained through resampling based on the data of the first image; and the third data structure area further comprises an offsetcorresponding to the data of the first image and / or the data of the first thumbnail. 36. The method according to claim 35, wherein the first thumbnail comprises a multi-level thumbnail, and the multi-level thumbnail comprises a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image. 37. An image file generation apparatus, wherein the apparatus comprises: a transceiver module, configured to receive data of a first image, wherein the data of the first image comprises map data; and a processing module, configured to segment the first image to generate a plurality of tiles, wherein the processing module is further configured to generate a first image file based on the plurality of tiles, wherein the first image file comprises: a first data structure area, configured to store a file header of the first image file, wherein the file header indicates a file type; a second data structure area, configured to store data ofa second image, wherein the data of the second image comprises data of the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles in the data of the second image, wherein the offsets of the plurality of tiles indicate storage locations of data of the plurality of tiles in the data of the second image. 38. An image processing apparatus, wherein the apparatus comprises: a transceiver module, configured to receive a first data request from a terminal device, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the data of the second image comprises data of a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on a first image, and the first target image comprises one or more tiles in the second image; and a processingmodule, configured to obtain the data of the first target image from the first image file based on the first data request, wherein the transceiver module is further configured to send the data of the first target image to the terminal device. 39. An image processing apparatus, wherein the apparatus comprises: a transceiver module, configured to send a first data request to a server, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the second image comprises a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on data of a first image, and the first target image comprises one or more tiles in the second image, wherein the transceiver module is further configured to receive the data of the first target image from the server; and a processing module, configured todisplay the first target image based on the data of the first target image. 40. A computing device cluster, comprising at least one computing device, wherein each computing device comprises a processor and a memory; and the processor of the at least one computing device is configured to execute instructions stored in the memory in the at least one computing device, so that the computing device cluster performs the method according to any one of claims 1 to 10, or 11 to 23, or 24 to 36. 41. A computer-readable storage medium, comprising computer program instructions, wherein when the computer program instructions are run by a computing device cluster, the computing device cluster is enabled to perform the method according to any one of claims 1 to 10, or 11 to 23, or 24 to 36. 42. A computer program product comprising instructions, wherein when the instructions are run by a computing device 20 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 cluster, the computing device cluster isenabled to perform the method according to any one of claims 1 to 10, or 11 to 23, or 24 to 36. 43. A cloud-side device, comprising at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to execute a computer program or instructions stored in the at least one memory, so that the cloud-side device performs the method according to any one of claims 1 to 10, or 11 to 23. 44. A device-side device, comprising at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to execute a computer program or instructions stored in the at least one memory, so that the device-side device performs the method according to any one of claims 24 to 36. 45. A device-cloud collaboration system, comprising the cloud-side device according to claim 43 and the device-side device according to claim 44. 21 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 5522 EP 4 685 663 A1 23 EP 4 685 663 A1 24 EP 4 685 663 A1 25 EP 4 685 663 A1 26 EP 4 685 663 A1 27 EP 4 685 663 A1 28 EP 4 685 663 A1 29 EP 4 685 663 A1 30 EP 4 685 663 A1 31 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 32 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 33 EP 4 685 663 A1 5 10 15 20 25 30 35 40 45 50 55 34 EP 4 685 663 A1 REFERENCES CITED IN THE DESCRIPTION This list of references cited by the applicant is for the reader’s convenience only. It does not form part of the European patent document. Even though great care has been taken in compiling the references, errors or omissions cannot be excluded and the EPO disclaims all liability in this regard. Patent documents cited in the description • CN 202310391194
[0001] • CN 202310786240
[0001]
Claims
1. An image file generation method, wherein the method comprises: obtaining data of a first image, wherein the data of the first image comprises map data; segmenting the first image to generate a plurality of tiles; and generating a first image file based on the plurality of tiles, wherein the first image file comprises: a first data structure area, configured to store a file header of the first image file, wherein the file header indicates a file type of the first image file; a second data structure area, configured to store data of a second image, wherein the data of the second image comprises data of the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles, wherein the offsets of the plurality of tiles indicate storage locations of the data of the plurality of tiles in the second data structure area.
2. The method according to claim 1, wherein the method further comprises: resampling the plurality of tiles to generate a multi-level tile, wherein the second image comprises the multi-level tile.
3. The method according to claim 1 or 2, wherein for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area comprises data of a feature tile in the plurality of homogeneous tiles, and the homogeneous tile is a tile whose proportion of same pixels with the feature tile reaches a predetermined threshold.
4. The method according to claim 3, wherein offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area.
5. The method according to any one of claims 1 to 4, wherein the third data structure area is adjacent to the first data structure area in the first image file.
6. The method according to any one of claims 1 to 5, wherein the third data structure area comprises a tag, and the tag comprises an index code and an offset that are of each tile in the second image.
7. The method according to any one of claims 1 to 6, wherein the second image further comprises the first image and / or a first thumbnail, and the first thumbnail comprises an image obtained through resampling based on the first image; and the third data structure area further comprises an offset corresponding to the first image and / or the first thumbnail.
8. The method according to claim 7, wherein the first thumbnail comprises a multi-level thumbnail, and the multi-level thumbnail comprises a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image.
9. The method according to any one of claims 1 to 8, wherein the first image file further comprises: a fourth data structure area, wherein the fourth data structure area is configured to store specific attributes of the plurality of tiles, and a size of the specific attribute is greater than a specific threshold.
10. The method according to any one of claims 1 to 9, wherein the method further comprises: defining a projection coordinate system for the first image; defining a coordinate reference level for the first image based on the projection coordinate system; and segmenting the first image based on the coordinate reference level to obtain the plurality of tiles.
11. An image processing method, wherein the method comprises: receiving a first data request from a terminal device, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the second image comprises a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on a first image, and the first target image comprises one or more tiles in the second image; obtaining the data of the first target image from the first image file based on the first data request; and sending the data of the first target image to the terminal device.
12. The method according to claim 11, wherein the second image comprises a multi-level tile, and the multi-level tile comprises a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles; and the first target image specifically comprises one or more tiles at a same level in the multi-level tile.
13. The method according to claim 11 or 12, wherein the first image file further comprises a third data structure area, the third data structure area is configured to store offsets of data of the plurality of tiles in the second image, and the offsets indicate storage locations of the data of the plurality of tiles in the second image in the second data structure area.
14. The method according to claim 13, wherein for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area comprises data of a feature tile in the plurality of homogeneous tiles, and the homogeneous tile is a tile whose proportion of same pixels with the feature tile reaches a predetermined threshold.
15. The method according to claim 14, wherein offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area.
16. The method according to any one of claims 13 to 15, wherein the obtaining the data of the first target image from the first image file based on the first data request comprises: determining the first target image based on the first data request; determining, based on the first target image, a first tile corresponding to the first target image; obtaining first offset, wherein the first offset is an offset of the first tile; and obtaining data of the first tile based on the first offset; and the sending the data of the first target image to the terminal device comprises: sending the data of the first tile to the terminal device.
17. The method according to any one of claims 13 to 15, wherein the first data request comprises a first offset, and the first offset is an offset of a first tile corresponding to the first target image; the obtaining the data of the first target image from the first image file based on the first data request comprises: obtaining the first tile based on the first offset; and the sending the data of the first target image to the terminal device comprises: sending data of the first tile to the terminal device.
18. The method according to any one of claims 13 to 17, wherein before receiving the first data request from the terminal device, the method further comprises: receiving a second data request from the terminal device, wherein the second data request is used to request the third data structure area of the first image file; obtaining the third data structure area based on the second data request; and sending the third data structure area to the terminal device.
19. The method according to any one of claims 13 to 18, wherein the first image file further comprises a first data structure area, the first data structure area comprises a file header of the first image file, the file header indicates a file type, and the third data structure area is adjacent to the first data structure area in the first image file.
20. The method according to any one of claims 13 to 19, wherein the third data structure area comprises a tag, and the tag comprises an index code and the offset that are of each tile in the second image.
21. The method according to any one of claims 13 to 20, wherein the second image further comprises the first image and / or a first thumbnail, and the first thumbnail comprises an image obtained through resampling based on the first image; and the third data structure area further comprises an offset corresponding to data of the first image and / or data of the first thumbnail.
22. The method according to claim 21, wherein the first thumbnail comprises a multi-level thumbnail, and the multi-level thumbnail comprises a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image.
23. The method according to any one of claims 11 to 22, wherein the first image file further comprises: a fourth data structure area, wherein the fourth data structure area is configured to store specific attributes of the plurality of tiles, and a size of the specific attribute is greater than a specific threshold.
24. An image processing method, wherein the method comprises: sending a first data request to a server, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the second image comprises a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on a first image, and the first target image comprises one or more tiles in the second image; receiving the data of the first target image from the server; and displaying the first target image based on the data of the first target image.
25. The method according to claim 24, wherein the second image comprises a multi-level tile, and the multi-level tile comprises a plurality of different levels of tiles obtained by performing resampling a plurality of times based on the plurality of tiles; and the first target image specifically comprises one or more tiles at a same level in the multi-level tile.
26. The method according to claim 24 or 25, wherein the first image file further comprises a third data structure area, the third data structure area is configured to store offsets of data of the plurality of tiles, and the offsets indicate storage locations of data of the plurality of tiles in the second data structure area.
27. The method according to claim 26, wherein for a plurality of homogeneous tiles in the plurality of tiles, the data of the second image in the second data structure area comprises data of a feature tile in the plurality of homogeneous tiles, and the homogeneous tile is a tile whose proportion of same pixels with the feature tile reaches a predetermined threshold.
28. The method according to claim 27, wherein offsets that correspond to the plurality of homogeneous tiles and that are stored in the third data structure area are the same, and the same offsets of the plurality of homogeneous tiles indicate a storage location of the feature tile in the second data structure area.
29. The method according to any one of claims 26 to 28, wherein the first data request comprises a first offset, the first offset is an offset of a first tile, and the first tile comprises one or more tiles corresponding to the first target image.
30. The method according to claim 29, wherein before sending the first data request to the server, the method further comprises: sending a second data request to the server, wherein the second data request is used to request the third data structure area of the first image file; receiving the third data structure area from the server; and determining the first offset based on the third data structure area.
31. The method according to any one of claims 24 to 30, wherein before sending the first data request to the server, the method further comprises: obtaining an image access request, wherein the image access request is used to request to display the first target image in the first image; and determining the first target image based on the image access request.
32. The method according to claim 31, wherein the determining the first target image comprises: determining a level and pixel coordinates of the first target image based on the image access request; and determining the first target image based on the level and the pixel coordinates of the first target image.
33. The method according to any one of claims 29 to 30, wherein the third data structure area comprises a tag, and the tag comprises an index code and the offset that are of each tile in the second image; and the determining the first offset based on the third data structure area comprises: obtaining an index code of a tile of the first target image; and searching the third data structure area based on the index code of the tile of the first target image, to determine the first offset.
34. The method according to any one of claims 24 to 33, wherein the first image file further comprises a first data structure area, the first data structure area comprises a file header of the first image file, the file header indicates a file type, and the third data structure area is adjacent to the first data structure area in the first image file.
35. The method according to any one of claims 30 to 33, wherein the data of the second image in the second data structure area further comprises data of the first image and / or data of a first thumbnail, and the first thumbnail comprises an image obtained through resampling based on the data of the first image; and the third data structure area further comprises an offset corresponding to the data of the first image and / or the data of the first thumbnail.
36. The method according to claim 35, wherein the first thumbnail comprises a multi-level thumbnail, and the multi-level thumbnail comprises a plurality of images having different resolutions obtained by performing resampling a plurality of times based on the first image.
37. An image file generation apparatus, wherein the apparatus comprises: a transceiver module, configured to receive data of a first image, wherein the data of the first image comprises map data; and a processing module, configured to segment the first image to generate a plurality of tiles, wherein the processing module is further configured to generate a first image file based on the plurality of tiles, wherein the first image file comprises: a first data structure area, configured to store a file header of the first image file, wherein the file header indicates a file type; a second data structure area, configured to store data of a second image, wherein the data of the second image comprises data of the plurality of tiles; and a third data structure area, configured to store offsets of the plurality of tiles in the data of the second image, wherein the offsets of the plurality of tiles indicate storage locations of data of the plurality of tiles in the data of the second image.
38. An image processing apparatus, wherein the apparatus comprises: a transceiver module, configured to receive a first data request from a terminal device, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the data of the second image comprises data of a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on a first image, and the first target image comprises one or more tiles in the second image; and a processing module, configured to obtain the data of the first target image from the first image file based on the first data request, wherein the transceiver module is further configured to send the data of the first target image to the terminal device.
39. An image processing apparatus, wherein the apparatus comprises: a transceiver module, configured to send a first data request to a server, wherein the first data request is used to request data of a first target image in a first image file, the first image file comprises a second data structure area, the second data structure area comprises data of a second image, the second image comprises a plurality of tiles, the plurality of tiles comprise an image obtained through segmentation based on data of a first image, and the first target image comprises one or more tiles in the second image, wherein the transceiver module is further configured to receive the data of the first target image from the server; and a processing module, configured to display the first target image based on the data of the first target image.
40. A computing device cluster, comprising at least one computing device, wherein each computing device comprises a processor and a memory; and the processor of the at least one computing device is configured to execute instructions stored in the memory in the at least one computing device, so that the computing device cluster performs the method according to any one of claims 1 to 10, or 11 to 23, or 24 to 36.
41. A computer-readable storage medium, comprising computer program instructions, wherein when the computer program instructions are run by a computing device cluster, the computing device cluster is enabled to perform the method according to any one of claims 1 to 10, or 11 to 23, or 24 to 36.
42. A computer program product comprising instructions, wherein when the instructions are run by a computing device cluster, the computing device cluster is enabled to perform the method according to any one of claims 1 to 10, or 11 to 23, or 24 to 36.
43. A cloud-side device, comprising at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to execute a computer program or instructions stored in the at least one memory, so that the cloud-side device performs the method according to any one of claims 1 to 10, or 11 to 23.
44. A device-side device, comprising at least one processor, wherein the at least one processor is coupled to at least one memory, and the at least one processor is configured to execute a computer program or instructions stored in the at least one memory, so that the device-side device performs the method according to any one of claims 24 to 36.
45. A device-cloud collaboration system, comprising the cloud-side device according to claim 43 and the device-side device according to claim 44.