An image processing method, apparatus, electronic device, and storage medium

By generating and processing a GIS layer tiling scheme, the problems of low efficiency and large storage space in layer data tiling processing are solved, and the complete display of images is achieved.

CN115423889BActive Publication Date: 2025-11-18THREE-BODY SMART NETWORK TECH (SUZHOU) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211049108.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2025-11-18
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

Existing GIS thematic layer data has low tiling efficiency, large space consumption, and incomplete images when layers are missing.

Method used

The process involves obtaining feature information from the image to be displayed to generate a layer to be displayed, determining a tiling scheme based on the scaling ratio, tiling the layer to generate tile data, and generating the target display image upon receiving a display command.

Benefits of technology

It improves the efficiency of layer slicing, reduces storage space usage, and ensures the integrity of image display.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115423889B_ABST
    Figure CN115423889B_ABST
Patent Text Reader

Abstract

The application discloses an image processing method and device, electronic equipment and storage medium, wherein the method comprises: acquiring at least one to-be-used element information associated with a to-be-displayed image, and generating a to-be-displayed layer according to each to-be-used element information; determining a to-be-used slicing scheme corresponding to the to-be-displayed layer according to a to-be-used scaling ratio corresponding to the to-be-displayed layer; performing slicing processing on the corresponding to-be-displayed layer based on each to-be-used slicing scheme to obtain at least one group of to-be-used tile data corresponding to each to-be-displayed layer; when an image display instruction is received, determining target tile data from the at least one group of to-be-used tile data based on display information in the image display instruction, generating a target display image based on the target tile data, and displaying. The image layer slicing processing efficiency is improved, the image layer storage space is reduced, and the integrity of the image layer processing is ensured, so that the image display is complete.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of geographic information system technology, and in particular to an image processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] With the widespread adoption of Geographic Information Systems (GIS), it has become particularly important to lightweight existing data and process and train thematic layers accurately, reliably, quickly, and efficiently on the internet.

[0003] Currently, lightweight processing and publishing of GIS thematic layer data mainly involves processing and publishing the thematic layers directly through shared pages, processing and publishing the thematic layers based on servers, or slicing the thematic layers before publishing. However, these methods suffer from low processing efficiency, incomplete image slice display, and large image storage space requirements.

[0004] To solve the above problems, it is necessary to improve the processing methods for GIS thematic layer data. Summary of the Invention

[0005] This invention provides an image processing method, apparatus, electronic device, and storage medium to solve the problems of low efficiency in slicing layer data, large space occupation, and incomplete images caused by missing layers.

[0006] In a first aspect, embodiments of the present invention provide an image processing method, comprising:

[0007] Obtain at least one element information associated with the image to be displayed, and generate a layer to be displayed based on each element information; wherein the element information includes at least one of the location information of the display area of ​​the image to be displayed and image display attribute information;

[0008] Based on the scaling ratio to be used corresponding to the layer to be displayed, determine the slicing scheme to be used corresponding to the layer to be displayed;

[0009] Based on each tiling scheme to be used, the corresponding layers to be displayed are sliced ​​to obtain at least one set of tile data to be used for each layer to be displayed.

[0010] Upon receiving an image display instruction, based on the display information in the image display instruction, target tile data is determined from the at least one set of tile data to be used, and a target display image is generated and displayed based on the target tile data.

[0011] Secondly, embodiments of the present invention also provide an image processing apparatus, comprising:

[0012] The layer to be displayed generation module is used to obtain at least one element information to be used associated with the image to be displayed, and generate a layer to be displayed based on each element information to be used; wherein, the element information to be used includes at least one of the location information of the display area of ​​the image to be displayed and image display attribute information;

[0013] The slicing scheme determination module is used to determine the slicing scheme to be used corresponding to the layer to be displayed based on the scaling ratio to be used corresponding to the layer to be displayed;

[0014] The tile data determination module is used to perform slicing processing on the corresponding display layers based on each slicing scheme to be used, so as to obtain at least one set of tile data to be used for each display layer.

[0015] The target display image determination module is used to determine target tile data from the at least one set of tile data to be used based on the display information in the image display instruction when receiving an image display instruction, so as to generate a target display image based on the target tile data and display it.

[0016] Thirdly, embodiments of the present invention also provide an electronic device, comprising:

[0017] At least one processor; and

[0018] A memory communicatively connected to the at least one processor; wherein,

[0019] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the image processing method according to any embodiment of the present invention.

[0020] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions that are used to cause a processor to execute the image processing method described in any embodiment of the present invention.

[0021] The technical solution of this embodiment involves acquiring at least one element information associated with an image to be displayed, generating a display layer based on each element information, and processing the element information using layer generation software to obtain a display layer corresponding to the image. Based on the scaling ratio corresponding to the display layer, a tiling scheme is determined, and corresponding display layers and tiling schemes are determined according to the scaling ratio. Tiling is then performed on the corresponding display layers based on each tiling scheme. Based on each tiling scheme, the corresponding display layers are tiled to obtain at least one set of tile data corresponding to each display layer. The tile data obtained from tiling the display layers differs depending on the scaling ratio; tile data corresponding to the same display layer level are considered as one set of tile data. Upon receiving an image display instruction, target tile data is determined from at least one set of tile data to be used based on the display information in the instruction. A target display image is generated and displayed based on the target tile data. According to information such as display level, display area, and display ratio in the display information, the target tile data is determined from at least one set of tile data to be used, and a target display layer corresponding to the target tile data is determined. The target tile data is imported into the target display layer to obtain the target display image, which is then displayed. This solves the problems of low efficiency and large space occupation in layer data slicing processing, as well as incomplete images caused by missing layers. It achieves improved layer slicing processing efficiency, reduced layer storage space, and ensures the integrity of layer processing, resulting in a complete image display.

[0022] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0024] Figure 1 This is a flowchart of an image processing method provided according to Embodiment 1 of the present invention;

[0025] Figure 2 This is a flowchart of a layer processing method provided in Embodiment 2 of the present invention;

[0026] Figure 3 This is a flowchart of a layer processing method provided in Embodiment 2 of the present invention;

[0027] Figure 4 This is a schematic diagram of a target display control interface provided according to Embodiment 2 of the present invention;

[0028] Figure 5 This is a schematic diagram of a target display image provided according to Embodiment 2 of the present invention;

[0029] Figure 6 This is a schematic diagram of the structure of an image processing device according to Embodiment 3 of the present invention;

[0030] Figure 7 This is a schematic diagram of the structure of an electronic device that implements the image processing method of the present invention. Detailed Implementation

[0031] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in sequences other than those illustrated or described herein.

[0033] Before elaborating on this technical solution, its application scenarios will be introduced to facilitate a clearer understanding. Geographic Information Systems (GIS), also known as "Geoscience Information Systems," are a comprehensive discipline and a specific, crucial type of spatial information system. Supported by geography, cartography, remote sensing, and computer science, it is a technological system for collecting, storing, managing, processing, analyzing, displaying, and describing geographic distribution data across the entire or part of the Earth's surface (including the atmosphere). With the increasing prevalence of GIS, it is particularly important to lightweight existing data and accurately, reliably, quickly, and efficiently process and train thematic layers on the internet.

[0034] Example 1

[0035] Figure 1The present invention provides a flowchart of an image processing method according to Embodiment 1. This embodiment is applicable to processing layers in a geographic information system and importing the image to be displayed into the processed layer to obtain the target display image. The method can be executed by an image processing device, which can be implemented in hardware and / or software and can be configured in a computing device capable of executing the image processing method.

[0036] like Figure 1 As shown, the method includes:

[0037] S110. Obtain at least one feature information associated with the image to be displayed, and generate a layer to be displayed based on each feature information.

[0038] The image to be displayed can be understood as the image corresponding to the relevant geographic information when performing geographic information queries based on GIS software. The feature information to be used can be understood as information associated with the image to be displayed. This feature information includes at least one of the following: the location information of the area to be displayed within the image, and image display attribute information. For example, users can determine the area to be displayed using the feature information, such as the geographic location information of the area to be displayed. They can also define the display attributes of the image, such as whether the coordinate system of the image to be displayed can be a latitude and longitude coordinate system, a Mars coordinate system, or another coordinate system. The layer to be displayed can be understood as a transparent data layer. This layer can be associated with each piece of feature information to be used. The layer attributes of the layer to be displayed are determined based on the settings of each piece of feature information.

[0039] Specifically, when users query geographic image information using GIS software, they can input at least one feature information associated with the image to be displayed. This can be done through editing controls on the GIS software's interface, such as inputting the image's storage location, image information, layer attributes, and the coordinate system used by the image. The software then calls a transparent layer and associates the information of each feature with that transparent layer to obtain the layer to be displayed corresponding to the image.

[0040] Optionally, obtaining at least one feature information associated with the image to be displayed, and generating a layer to be displayed based on each feature information, includes: retrieving at least one feature information associated with the image identifier from a feature information repository based on the image identifier of the image to be displayed; and processing each feature information based on layer generation software to obtain a layer to be displayed corresponding to the image to be displayed.

[0041] The feature information repository can be understood as a database used to store feature information corresponding to the image to be displayed. Image identifiers can be understood as identifying information corresponding to the image to be displayed, used to determine the feature information to be used based on the image identifiers. Layer generation software can be understood as software used to generate layers to be displayed, such as a GIS Portal platform, allowing users to obtain shared layer data.

[0042] Specifically, based on the image identifier of the image to be displayed, the corresponding feature information to be used is retrieved from the feature information repository, and each feature information to be used is input into the layer generation software. The layer generation software then processes each feature information to be used to obtain the layer to be displayed.

[0043] S120. Determine the slicing scheme corresponding to the layer to be displayed based on the scaling ratio corresponding to the layer to be displayed.

[0044] In practical applications, to display an image more clearly to the user, the image can be scaled, and the corresponding image can be retrieved based on the scaling ratio input by the user. It's understandable that the generation of the image is related to the layer being displayed; that is, by adjusting the scaling ratio of the layer being displayed, and processing the image based on the adjusted layer, an image with the corresponding scaling ratio can be obtained.

[0045] Here, the scaling ratio to be used can be understood as the ratio by which the layer to be displayed is adjusted. The slicing scheme to be used can be understood as the slicing scheme corresponding to the scaling ratio to be used. For example, based on different slicing schemes to be used, the layer to be displayed can be divided into 4 parts, 16 parts, or 64 parts, etc.

[0046] In this technical solution, determining the tiling scheme corresponding to the layer to be displayed based on the scaling ratio corresponding to the layer to be displayed includes: inputting the scaling ratio corresponding to the layer to be displayed in the scaling ratio editing control in the target control interface; and determining the tiling scheme corresponding to the layer to be displayed based on the scaling ratio.

[0047] The target control interface can be understood as the control interface of the GIS software. This control interface contains at least one zoom ratio control, and users can input the zoom ratio to be used in each zoom ratio editing control according to actual needs.

[0048] Specifically, users can input the desired scaling ratios through the target control interface to scale the layers to be displayed based on these ratios, resulting in at least one layer to be displayed. Further, a slicing scheme corresponding to each scaling ratio is determined, and the corresponding layer to be displayed is sliced ​​based on this scheme.

[0049] For example, there are three scaling ratios to be used. Scaling the layers to be displayed based on each scaling ratio yields three layers to be displayed, corresponding to each scaling ratio. Based on the scaling ratio corresponding to each layer, a tiling scheme corresponding to each layer can be determined. The tiling scheme is matched to the scaling ratio of the corresponding layer.

[0050] S130. Based on each tiling scheme to be used, perform tiling processing on the corresponding layers to be displayed to obtain at least one set of tile data to be used for each layer to be displayed.

[0051] The tile data to be used can be understood as rectangular data that divides the layer to be displayed into pieces.

[0052] Specifically, different display layers correspond to different tile schemes. The tiles corresponding to the display layers at the appropriate levels are retrieved and sliced ​​to obtain the tile data to be used for each display layer. In other words, the tile data corresponding to the same display layer is treated as a group of tile data to be used.

[0053] In practical applications, based on each tiling scheme to be used, the corresponding layers to be displayed are sliced ​​to obtain at least one set of tile data to be used for each layer to be displayed. This includes: for each tiling scheme to be used, determining the current layer to be displayed corresponding to the current tiling scheme to be used, and determining the scale to be used between the current layer to be displayed and the original layer to be displayed of the image to be displayed; based on the scale to be used, adjusting the tiling parameters of the layer tiling management tool, so as to perform tiling processing on the current layer to be displayed based on the adjusted layer tiling management tool to obtain the corresponding tile data to be used.

[0054] Each tiling scheme to be used can be considered the current tiling scheme, which can be understood as the scheme used to tile the layer to be displayed at the current moment. The scale to be used can be understood as a scale determined based on the scaling ratio corresponding to the layer to be displayed, used to cut the corresponding layer to be displayed. The original layer to be displayed can be understood as the layer to be displayed that has not been tiled. The layer tile management tool can be understood as a tool used to tile the layer to be displayed, such as a tile caching plugin installed in the GIS software. Tile parameters can be understood as parameters for tiling the layer to be displayed, such as the number of tiles to be cut from the layer to be displayed.

[0055] Specifically, taking one of the proposed tiling schemes as an example, the proposed scaling ratio corresponding to the current layer to be displayed is used to call the proposed tiling scheme. Based on the proposed tiling scheme, the proposed scaling ratio between the current layer to be displayed and the original layer to be displayed can be determined, and the tiling parameters corresponding to the current layer to be displayed can be determined based on the proposed scaling ratio. By adjusting the tiling parameters in the layer tiling management tool, the current layer to be displayed can be tiled to obtain the tile data corresponding to the current layer to be displayed.

[0056] S140. Upon receiving an image display instruction, based on the display information in the image display instruction, determine the target tile data from at least one set of tile data to be used, generate a target display image based on the target tile data, and display it.

[0057] Here, image display instructions can be understood as commands used to display the image to be displayed, such as a jump link. Display information can be understood as image display information corresponding to the image to be displayed, such as the image display area, display ratio, and display level. Target tile data can be understood as the tile data corresponding to the image to be displayed, as specified in the image display instructions. Target display image can be understood as the image to be displayed, as specified in the image display instructions.

[0058] Specifically, when users perform geographic image queries based on the GIS Portal on the server, they can enter the map name of the corresponding geographic area, etc., to retrieve the corresponding image information from the local resource storage module based on the map name and other information. The local resource storage module then processes the image information to obtain at least one set of tile data to be used, so as to determine the target tile data from at least one set of tile data to be used, and then send the obtained target tile data directly to the server for viewing.

[0059] Optionally, based on the display information in the image display instruction, the target tile data is determined from at least one set of tile data to be used, including: parsing the image display instruction to obtain display information corresponding to the layer to be displayed; determining the tile data to be used corresponding to the display information from at least one set of tile data to be used; determining the tile data to be used as the target tile data, generating a target display image based on the target tile data, and displaying it.

[0060] For example, the display information in the image display instruction is the image to be displayed corresponding to the second level, with a scaling ratio of 80%, and the display area is region A in the geographic image. Based on the display information, the layer to be displayed corresponding to this image can be retrieved; that is, the layer at the second level with a scaling ratio of 80%. The layer is then sliced ​​according to the tiling scheme corresponding to this layer, obtaining the corresponding tile data as target tile data. A target display image is then generated based on the target tile data and displayed.

[0061] Optionally, the tile data to be used is determined as the target tile data, and a target display image is generated and displayed based on the target tile data, including: determining the layer to be displayed corresponding to the target tile data as the target display layer; importing the target tile data into the target display layer, generating the target display image, and displaying it.

[0062] The target display layer can be understood as the layer to be displayed that corresponds to the target tile data.

[0063] Specifically, the target display layer can be determined based on the target tile data. The target tile data is then imported into the target display layer using tile data import software, generating the target display image. After obtaining the target display image, it is sent to the server, where it is displayed using the server's display interface.

[0064] The advantage of this setup is that, based on the local resource storage module, the layer to be displayed is processed. After determining the target tile data and the corresponding target display layer, the target tile data is imported into the target display layer to obtain the target display image. In other words, all processing of the target display image is performed in the local resource storage module, and the processed target display image is directly sent to the server for display. This avoids the problem of incomplete image display that may occur when layer and image processing is performed on the server.

[0065] The technical solution of this embodiment involves acquiring at least one element information associated with an image to be displayed, generating a display layer based on each element information, and processing the element information using layer generation software to obtain a display layer corresponding to the image. Based on the scaling ratio corresponding to the display layer, a tiling scheme is determined, and corresponding display layers and tiling schemes are determined according to the scaling ratio. Tiling is then performed on the corresponding display layers based on each tiling scheme. Based on each tiling scheme, the corresponding display layers are tiled to obtain at least one set of tile data corresponding to each display layer. The tile data obtained from tiling the display layers differs depending on the scaling ratio; tile data corresponding to the same display layer level are considered as one set of tile data. Upon receiving an image display instruction, target tile data is determined from at least one set of tile data to be used based on the display information in the instruction. A target display image is generated and displayed based on the target tile data. According to information such as display level, display area, and display ratio in the display information, the target tile data is determined from at least one set of tile data to be used, and a target display layer corresponding to the target tile data is determined. The target tile data is imported into the target display layer to obtain the target display image, which is then displayed. This solves the problems of low efficiency and large space occupation in layer data slicing processing, as well as incomplete images caused by missing layers. It achieves improved layer slicing processing efficiency, reduced layer storage space, and ensures the integrity of layer processing, resulting in a complete image display.

[0066] Example 2

[0067] In a specific example, such as Figure 2 As shown, to ensure data accuracy and improve processing efficiency, users can save the organized data thematic layers in GIS software as a data type that can be published in the GIS Portal. To avoid processing failures due to excessively large data volumes and long processing times, users should choose to save as an offline service definition instead of directly processing and publishing. The specific method is as follows:

[0068] 1.1 Select the "Share" function in the toolbar.

[0069] 1.2 Select "Web Layer" in Sharing.

[0070] 1.3 In the Web layer, under "Publish Web Layer", "Overlay Web Layer", and "Save As Offline Service Definition", select "Save As Offline Service Definition" to save the thematic layer data as an .sd file (i.e., store the data of each thematic layer to the local resource storage module). When saving as .sd, be sure to select the coordinate system set in the current thematic layer in "Configuration".

[0071] In other words, multiple thematic layers are pre-stored in the local resource storage module. For example, layers with different layer attributes, different display areas, and different image categories can be used as a thematic layer. When a user needs to retrieve the corresponding layer and inputs the layer information corresponding to the required layer (i.e., the information of the features to be used), the layer to be displayed is generated based on the information of each feature to be used.

[0072] like Figure 3 As shown, to use the service in Web GIS, a service layer needs to be generated through the GIS Portal for the storage and retrieval of subsequent thematic layer tile data. (This step only uploads the data and creates the service in the portal, but the tiles have not yet been tiled, and previewing is not possible in the "Online Mapping" section of the portal. Subsequent tile uploads are required to obtain complete tile data from the service center.) The specific steps are as follows:

[0073] 2.1 Select "Personal Center" in the GIS Portal.

[0074] 2.2 Click on "Personal Center," and then select "My Content" on the corresponding screen.

[0075] 2.3 After setting up the folder for storing layer services during publishing, click "Add" at the top.

[0076] 2.4 In the "Add" section, select "Local Resources" to publish the SD file (i.e., the layer to be displayed) that was saved locally in step 1.3 to the GIS Portal portal, generating a thematic layer service. (This step only uploads the data and creates the service in the portal, but the tiles have not yet been tiled, and it is not possible to preview them in the "Online Mapping" section of the portal. Subsequent tile uploads and other operations are required to obtain complete tile data from the service center.)

[0077] Based on the above scheme, the user inputs image information (i.e., feature information to be used) corresponding to the image to be displayed through the server, such as the image identifier and storage path of the image to be displayed, so as to determine the corresponding image to be displayed from the local resource storage module and generate the layer to be displayed based on the feature information to be used associated with the image to be displayed.

[0078] Furthermore, the user can select the coordinate system required for the image to be displayed, and based on the scaling control in the target control interface, input the scaling ratio corresponding to the layer to be displayed, so as to determine the tiling scheme corresponding to the layer to be displayed based on the scaling ratio. See [link to relevant documentation]. Figure 4 For example, taking the current layer to be displayed as an example, the layer to be displayed is sliced ​​according to the management tile cache tool (i.e., the layer tile management tool) in the GIS software. Specifically, the scale to be used between the current layer to be displayed and the original layer to be displayed can be determined, so as to determine the slicing parameters of the layer management tool based on the scale to be used, and to perform tile stitching processing on the layer to be displayed based on the adjusted layer tile management tool to obtain at least one set of tile data to be used.

[0079] For example, the scale to be used is shown in the table below:

[0080] Scale level scale Space required for slicing Scale level scale Space required for slicing A1 1:B1 C1 A11 1:B11 C11 A2 1:B2 C2 A12 1:B12 C12 A3 1:B3 C3 A13 1:B13 C13 A4 1:B4 C4 A14 1:B14 C14 A5 1:B5 C5 A15 1:B15 C15 A6 1:B6 C6 A16 1:B16 C16 A7 1:B7 C7 A17 1:B17 C17 A8 1:B8 C8 A18 1:B18 C18 A9 1:B9 C9 A19 1:B19 C19 A10 1:B10 C10 A20 1:B20 C20

[0081] In this system, the scale level is A, B represents the actual distance, and C represents the slice size. Specifically, B2 = 2B1, B3 = 2B2 = 4B1…C2 = 4C1, C3 = 4C2 = 16C2… and so on.

[0082] Furthermore, different scaling ratios correspond to different tiling schemes. The current layer to be displayed is determined according to the scaling ratio, and the current tiling scheme corresponding to the current layer to be displayed is retrieved.

[0083] For example, if the required scale level is A10 to A16, then A10 and A16 are mandatory contents of the thematic layer data tiles; A11, A12, A13, A14, and A15 are optional contents. Assuming the tiles are defined as 1, 3, 5..., then the required tile levels are A10, A12, A14, and A16, and the required tile space is A10 + A12 + A14 + A16 = A10 + 16A10 + 256A10 + 4096A10 = 4369A10. The traditional thematic layer processing training method requires slice levels A10, A11, A12, A13, A14, A15, and A16, and the required slice space is A10+A11+A12+A13+A14+A15+A16=A10+4A10+16A10+64A10+256A10+1024A10+4096A10=5461A10.

[0084] This demonstrates that layer processing based on this technical solution can easily compress the size of a topic layer to 80% of its original size. In other words, this tool allows for slicing at any selected scale, unlike traditional publishing methods which require slicing at a continuous scale within a slicing scheme. Furthermore, it offers higher stability and significantly reduces slicing time while keeping layers lightweight.

[0085] When an image display instruction, such as an image jump link corresponding to the image to be displayed, is detected, the image display instruction is parsed to obtain display information. Based on this display information, target tile data is determined from at least one set of tile data to be used, and the target display layer corresponding to the target tile data is determined. The target tile data is then imported into the target display layer to obtain the target display layer, which is then displayed. The import of target tile data into the target display layer can be done using an import tool in GIS software, such as Bitvise SSH Client. Figure 5 As shown, this is a high-resolution image of the area around 120.977330°E and 31.381731°N at a scale of 1:564, based on this technical solution.

[0086] The technical solution of this embodiment involves acquiring at least one element information associated with an image to be displayed, generating a display layer based on each element information, and processing the element information using layer generation software to obtain a display layer corresponding to the image. Based on the scaling ratio corresponding to the display layer, a tiling scheme is determined, and corresponding display layers and tiling schemes are determined according to the scaling ratio. Tiling is then performed on the corresponding display layers based on each tiling scheme. Based on each tiling scheme, the corresponding display layers are tiled to obtain at least one set of tile data corresponding to each display layer. The tile data obtained from tiling the display layers differs depending on the scaling ratio; tile data corresponding to the same display layer level are considered as one set of tile data. Upon receiving an image display instruction, target tile data is determined from at least one set of tile data to be used based on the display information in the instruction. A target display image is generated and displayed based on the target tile data. According to information such as display level, display area, and display ratio in the display information, the target tile data is determined from at least one set of tile data to be used, and a target display layer corresponding to the target tile data is determined. The target tile data is imported into the target display layer to obtain the target display image, which is then displayed. This solves the problems of low efficiency and large space occupation in layer data slicing processing, as well as incomplete images caused by missing layers. It achieves improved layer slicing processing efficiency, reduced layer storage space, and ensures the integrity of layer processing, resulting in a complete image display.

[0087] Example 3

[0088] Figure 6 This is a schematic diagram of the structure of an image processing device provided in Embodiment 3 of the present invention. Figure 6 As shown, the device includes: a layer to be displayed generation module 210, a slicing scheme determination module 220, a tile data determination module 230, and a target display image determination module 240.

[0089] The layer to be displayed generation module 210 is used to obtain at least one feature information associated with the image to be displayed, and generate a layer to be displayed based on each feature information; wherein the feature information includes at least one of the location information of the display area of ​​the image to be displayed and image display attribute information.

[0090] The slicing scheme determination module 220 is used to determine the slicing scheme corresponding to the layer to be displayed based on the scaling ratio to be used corresponding to the layer to be displayed.

[0091] The tile data determination module 230 is used to perform slicing processing on the corresponding display layer based on each slicing scheme to be used, so as to obtain at least one set of tile data to be used for each display layer.

[0092] The target display image determination module 240 is used to determine target tile data from at least one set of tile data to be used based on the display information in the image display instruction when receiving an image display instruction, so as to generate a target display image based on the target tile data and display it.

[0093] The technical solution of this embodiment involves acquiring at least one element information associated with an image to be displayed, generating a display layer based on each element information, and processing the element information using layer generation software to obtain a display layer corresponding to the image. Based on the scaling ratio corresponding to the display layer, a tiling scheme is determined, and corresponding display layers and tiling schemes are determined according to the scaling ratio. Tiling is then performed on the corresponding display layers based on each tiling scheme. Based on each tiling scheme, the corresponding display layers are tiled to obtain at least one set of tile data corresponding to each display layer. The tile data obtained from tiling the display layers differs depending on the scaling ratio; tile data corresponding to the same display layer level are considered as one set of tile data. Upon receiving an image display instruction, target tile data is determined from at least one set of tile data to be used based on the display information in the instruction. A target display image is generated and displayed based on the target tile data. According to information such as display level, display area, and display ratio in the display information, the target tile data is determined from at least one set of tile data to be used, and a target display layer corresponding to the target tile data is determined. The target tile data is imported into the target display layer to obtain the target display image, which is then displayed. This solves the problems of low efficiency and large space occupation in layer data slicing processing, as well as incomplete images caused by missing layers. It achieves improved layer slicing processing efficiency, reduced layer storage space, and ensures the integrity of layer processing, resulting in a complete image display.

[0094] Optionally, the layer to be displayed generation module includes: a feature information determination unit, used to retrieve at least one feature information to be used associated with the image identifier from the feature information repository based on the image identifier of the image to be displayed;

[0095] The layer to be displayed determination unit is used to process the information of each feature to be used based on the layer generation software to obtain the layer to be displayed corresponding to the image to be displayed.

[0096] Optionally, the slicing scheme determination module includes: a scaling ratio determination unit, used to input the scaling ratio to be used corresponding to the layer to be displayed in the scaling ratio editing control in the target control interface;

[0097] The slicing scheme determination unit is used to determine the slicing scheme to be used corresponding to the layer to be displayed, based on the scaling ratio to be used.

[0098] Optionally, the tile data determination module includes: a scale determination unit, used to determine the current layer to be displayed corresponding to the current tiling scheme to be used for each tiling scheme to be used, and to determine the scale to be used between the current layer to be displayed and the original layer to be displayed of the image to be displayed;

[0099] The tile data determination unit is used to adjust the slicing parameters of the layer slicing management tool based on the scale to be used, so as to perform slicing processing on the current layer to be displayed based on the adjusted layer slicing management tool and obtain the corresponding tile data to be used.

[0100] Optionally, the target display image determination module includes: a display information determination unit, used to parse the image display instruction to obtain display information corresponding to the layer to be displayed; wherein, the display information includes at least one of the display level, display ratio, and display area corresponding to the layer to be displayed;

[0101] The tile data determination unit is used to determine the tile data to be used corresponding to the display information from at least one set of tile data to be used;

[0102] The target display image determination unit is used to determine the tile data to be used as target tile data, generate a target display image based on the target tile data, and display it.

[0103] Optionally, the target display image determination unit includes: a target display layer determination subunit, used to determine the layer to be displayed corresponding to the target tile data as the target display layer;

[0104] The target display image determination subunit is used to import target tile data into the target display layer, generate the target display image, and display it.

[0105] The image processing apparatus provided in the embodiments of the present invention can execute the image processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of executing the method.

[0106] Example 4

[0107] Figure 7A schematic diagram of the structure of an electronic device 10 according to an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0108] like Figure 7 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0109] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0110] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as image processing methods.

[0111] In some embodiments, the image processing method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or mounted on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the image processing method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the image processing method by any other suitable means (e.g., by means of firmware).

[0112] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0113] Computer programs for implementing the image processing methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The computer programs can be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0114] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0115] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0116] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0117] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0118] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0119] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. An image processing method, characterized in that, include: Obtain at least one element information associated with the image to be displayed, and generate a layer to be displayed based on each element information; wherein the element information includes at least one of the location information of the display area of ​​the image to be displayed and image display attribute information; Based on the scaling ratio to be used corresponding to the layer to be displayed, determine the slicing scheme to be used corresponding to the layer to be displayed; Based on each tiling scheme to be used, the corresponding layers to be displayed are sliced ​​to obtain at least one set of tile data to be used for each layer to be displayed. Upon receiving an image display instruction, based on the display information in the image display instruction, target tile data is determined from the at least one set of tile data to be used, and a target display image is generated and displayed based on the target tile data; The step involves slicing the corresponding layers to be displayed based on each slicing scheme to obtain at least one set of tile data corresponding to each layer to be displayed, including: For each slicing scheme to be used, determine the current layer to be displayed corresponding to the current slicing scheme to be used, and determine the scale bar to be used between the current layer to be displayed and the original layer to be displayed of the image to be displayed; Based on the scale to be used, the slicing parameters of the layer slicing management tool are adjusted so that the current layer to be displayed can be sliced ​​based on the adjusted layer slicing management tool to obtain the corresponding tile data to be used. The currently used slicing scheme is the scheme for slicing the currently displayed layer at the current moment.

2. The method according to claim 1, characterized in that, The step of acquiring at least one feature information associated with the image to be displayed, and generating a layer to be displayed based on each feature information, includes: Based on the image identifier of the image to be displayed, retrieve at least one element information to be used that is associated with the image identifier from the element information repository; Based on layer generation software, the information of each element to be used is processed to obtain the layer to be displayed corresponding to the image to be displayed.

3. The method according to claim 1, characterized in that, The step of determining the tiling scheme corresponding to the layer to be displayed based on the scaling ratio corresponding to the layer to be displayed includes: In the scaling ratio editing control of the target control interface, enter the scaling ratio to be used corresponding to the layer to be displayed; Based on the scaling ratio to be used, determine the slicing scheme to be used corresponding to the layer to be displayed.

4. The method according to claim 1, characterized in that, The step of determining the target tile data from the at least one set of tile data to be used based on the display information in the image display instruction includes: The image display instruction is parsed to obtain display information corresponding to the layer to be displayed; wherein, the display information includes at least one of the display ratio and display area corresponding to the layer to be displayed; From the at least one set of tile data to be used, determine the tile data to be used that corresponds to the display information; The tile data to be used is determined as the target tile data, and a target display image is generated and displayed based on the target tile data.

5. The method according to claim 4, characterized in that, The step of determining the tile data to be used as target tile data, generating a target display image based on the target tile data, and displaying it includes: The layer to be displayed corresponding to the target tile data is determined as the target display layer; The target tile data is imported into the target display layer to generate the target display image, which is then displayed.

6. An image processing apparatus, characterized in that, include: The layer to be displayed generation module is used to obtain at least one element information to be used associated with the image to be displayed, and generate a layer to be displayed based on each element information to be used; wherein, the element information to be used includes at least one of the location information of the display area of ​​the image to be displayed and image display attribute information; The slicing scheme determination module is used to determine the slicing scheme to be used corresponding to the layer to be displayed based on the scaling ratio to be used corresponding to the layer to be displayed; The tile data determination module is used to perform slicing processing on the corresponding display layers based on each slicing scheme to be used, so as to obtain at least one set of tile data to be used for each display layer. A target display image determination module is used to, upon receiving an image display instruction, determine target tile data from the at least one set of tile data to be used based on the display information in the image display instruction, so as to generate a target display image based on the target tile data and display it; The tile data determination module includes: The scale determination unit is used to determine the current layer to be displayed corresponding to the current tiling scheme to be used for each tiling scheme to be used, and to determine the scale to be used between the current layer to be displayed and the original layer to be displayed of the image to be displayed. The tile data determination unit is used to adjust the slicing parameters of the layer slicing management tool based on the scale to be used, so as to perform slicing processing on the current layer to be displayed based on the adjusted layer slicing management tool to obtain the corresponding tile data to be used. The currently used slicing scheme is the scheme for slicing the currently displayed layer at the current moment.

7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the image processing method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the image processing method according to any one of claims 1-5.