Image processing method, device and terminal

By receiving and storing image configuration information through the directory configuration interface, and automatically determining the merging strategy, the problem of low image merging efficiency in existing technologies is solved, and more efficient image processing is achieved.

CN113138815BActive Publication Date: 2026-05-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2020-01-19
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

In existing technologies, users need to configure image merging parameters every time image merging is required, resulting in low image processing efficiency, especially when merging a large number of image sets or modifying the merging parameters of a large number of image sets.

Method used

An image processing method and apparatus are provided, which receive configuration information of a first directory through a display directory configuration interface, create and store the directory, and determine the merging strategy of the images to be merged according to the stored configuration information, thereby realizing automatic image merging and reducing the steps of repetitive configuration.

Benefits of technology

It improves the efficiency of image processing, reduces the number of times merging parameters need to be configured, and enhances the efficiency of image merging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113138815B_ABST
    Figure CN113138815B_ABST
Patent Text Reader

Abstract

The application provides an image processing method and device and a terminal, and belongs to the technical field of computers. The method comprises the following steps: displaying a directory configuration interface; receiving first configuration information of a first directory input based on the directory configuration interface; creating the first directory and storing the first configuration information of the first directory according to the directory name and storage path of the first directory; in response to an operation of importing an image, storing the image to be merged in a storage space corresponding to a storage path of a second directory; in response to an operation of merging images, determining a merging strategy of a second directory to which the image to be merged belongs according to the first configuration information of at least one first directory that has been stored; and merging the image to be merged according to the merging strategy. The first configuration information only needs to be configured once, the merging strategy can be determined according to the configured first configuration information, the image to be merged is merged according to the merging strategy, the configuration efficiency is improved, and the efficiency of image processing is further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to an image processing method, apparatus and terminal. Background Technology

[0002] With the development of computer technology, application interfaces are becoming increasingly rich and colorful. Some application interfaces consist of multiple images. When loading and rendering the application interface, it is necessary to load and render the multiple images that make up the interface. To reduce the memory occupied by loading and rendering multiple images, multiple images are merged into a single image atlas. When loading and rendering the application interface, this image atlas can then be loaded and rendered directly.

[0003] In related technologies, each time an image set needs to be merged, the user imports the images to be merged and sets the merging parameters for the images; the terminal receives the images imported by the user and the image merging parameters; based on the imported images and the image merging parameters, the imported images are merged into an image set.

[0004] In related technologies, users need to configure the image merging parameters each time an image set needs to be merged. When a large number of image sets need to be merged or the merging parameters of a large number of image sets need to be modified, the merging parameters of each image set need to be configured or modified one by one, which is inefficient and leads to low image processing efficiency. Summary of the Invention

[0005] This application provides an image processing method, apparatus, and terminal, which can improve image processing efficiency. The technical solution is as follows:

[0006] According to one aspect of the embodiments of this application, an image processing method is provided, the method comprising:

[0007] Display the directory configuration interface;

[0008] Based on the directory configuration interface, the system receives first configuration information for at least one first directory, wherein the first configuration information includes at least the directory name of the first directory, the storage path of the first directory, and the merging strategy of the first directory.

[0009] Based on the directory name and storage path of the at least one first directory, create the at least one first directory and store the first configuration information of the at least one first directory;

[0010] In response to the image import operation, the image to be merged is stored in the storage space corresponding to the storage path of the second directory;

[0011] In response to the image merging operation, a merging strategy for the second directory to which the image to be merged belongs is determined based on the first configuration information of the at least one first directory that has been stored.

[0012] The images to be merged are merged according to the merging strategy of the second directory to which the images belong.

[0013] According to another aspect of the embodiments of this application, an image processing apparatus is provided, the apparatus comprising:

[0014] The display module is configured to display the directory configuration interface;

[0015] The receiving module is configured to receive, based on the directory configuration interface, first configuration information of at least one first directory, wherein the first configuration information includes at least the directory name of the first directory, the storage path of the first directory, and the merging strategy of the first directory.

[0016] A creation module is configured to create the at least one first directory based on the directory name and storage path of the at least one first directory;

[0017] The storage module is configured to store first configuration information of the at least one first directory; in response to the image import operation, the image to be merged is stored in the storage space corresponding to the storage path of the second directory;

[0018] The determination module is configured to, in response to the operation of merging images, determine the merging strategy of the second directory to which the images to be merged belong, based on the first configuration information of the at least one first directory that has been stored.

[0019] The merging module is configured to merge the images to be merged according to the merging strategy of the second directory to which the images to be merged belong.

[0020] In one possible implementation, the determining module is further configured to, in response to the second directory being one of the at least one first directory, determine the configuration information of the second directory from the stored first configuration information of the at least one first directory, and obtain the merging strategy of the second directory from the configuration information of the second directory; in response to the second directory not belonging to the at least one first directory, determine the third directory corresponding to the second directory, wherein the second directory is a subdirectory of the third directory, and the third directory is one of the at least one first directory; determine the configuration information of the third directory from the stored first configuration information of the at least one first directory; obtain the merging strategy of the third directory from the configuration information of the third directory; and determine the merging strategy of the third directory as the merging strategy of the second directory.

[0021] In another possible implementation, the merging module is further configured to, in response to the second directory to which the images to be merged belong being the same directory, and the merging strategy of the second directory being used to indicate the overall merging of the images to be merged in the storage space corresponding to the storage path of the second directory, merge the images to be merged to obtain the first image set.

[0022] In another possible implementation, the merging module is further configured to respond to the fact that the images to be merged belong to different third directories, the third directories being subdirectories of the second directory, and the merging strategy of the second directory being used to instruct the images to be merged in the storage space corresponding to the storage path of the subdirectory to be merged respectively, and the images to be merged in the storage space corresponding to the storage path of the third directory to be merged respectively, to obtain the first image set.

[0023] In another possible implementation, the merging module is further configured to, in response to the images to be merged belonging to different second directories, and the merging strategy of the second directories being used to indicate merging of images to be merged in the storage space corresponding to the storage path of the directory with the same atlas name, obtain the atlas name corresponding to the second directory from the first configuration information corresponding to the second directory, and merge the images to be merged in the storage space corresponding to the second directory with the same atlas name to obtain the first atlas.

[0024] In another possible implementation, the first configuration information further includes attribute information, and the determining module is further configured to determine the attribute information corresponding to the second directory to which the image to be merged belongs, based on the first configuration information of the at least one first directory that has been stored.

[0025] The merging module is further configured to configure the attribute information corresponding to the second directory in the first image set obtained by merging the images to be merged.

[0026] In another possible implementation, the device further includes:

[0027] The first acquisition module is configured to acquire at least one mergeable second map set from at least one first map set obtained by merging the images to be merged, and generate second configuration information of the second map set based on the at least one mergeable second map set, wherein the second configuration information includes at least the name of the merged map set;

[0028] The display module is further configured to display the second configuration information of the second atlas in the atlas configuration interface;

[0029] The first modification module is configured to modify the merged map name of the second map set based on the map set configuration interface;

[0030] The merging module is further configured to merge second sets with the same merging set name according to the merging set name in the second configuration information of the second set, to obtain a third set.

[0031] In another possible implementation, the device further includes:

[0032] The second acquisition module is configured to acquire attribute information of a first image set from at least one first image set obtained by merging the images to be merged;

[0033] The display module is also configured to display the attribute information of the first atlas in the atlas configuration interface;

[0034] The second modification module is configured to modify the attribute information of the first atlas based on the atlas configuration interface, and configure the modified attribute information into the first atlas.

[0035] According to another aspect of the embodiments of this application, a terminal is provided, the terminal including a processor and a memory, the memory storing at least one piece of program code, the at least one piece of program code being loaded and executed by the processor to implement the image processing method described in any of the possible implementations above.

[0036] According to another aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein at least one piece of program code is stored in the computer-readable storage medium, the at least one piece of program code being loaded and executed by a processor to implement the image processing method described in any of the possible implementations above.

[0037] In this embodiment of the application, the first configuration information of the first directory only needs to be configured once. When image merging is required, the merging strategy of the second directory to which the image to be merged belongs can be determined according to the configured first configuration information. The image to be merged is merged according to the configured merging strategy. It is not necessary to configure it every time image merging is performed, which can improve configuration efficiency and thus improve image processing efficiency. Attached Figure Description

[0038] To more clearly illustrate the technical solutions in the embodiments of this application, 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 this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0039] Figure 1 This is a flowchart of an image processing method provided in an embodiment of this application;

[0040] Figure 2 This is a schematic diagram of a directory configuration interface provided in an embodiment of this application;

[0041] Figure 3 This is a schematic diagram of a directory configuration interface provided in an embodiment of this application;

[0042] Figure 4 This is a schematic diagram of a directory configuration interface provided in an embodiment of this application;

[0043] Figure 5 This is a schematic diagram of a catalog provided in an embodiment of this application;

[0044] Figure 6 This is a flowchart of an image processing method provided in an embodiment of this application;

[0045] Figure 7 This is a flowchart of an image processing method provided in an embodiment of this application;

[0046] Figure 8 This is a flowchart of an image processing method provided in an embodiment of this application;

[0047] Figure 9 This is a schematic diagram of a display preview atlas provided in an embodiment of this application;

[0048] Figure 10 This is a schematic diagram of an atlas configuration interface provided in an embodiment of this application;

[0049] Figure 11 This is a schematic diagram of a graph set merging provided in an embodiment of this application;

[0050] Figure 12 This is a block diagram of an image processing apparatus provided in an embodiment of this application;

[0051] Figure 13 This is a block diagram of a terminal provided in an embodiment of this application. Detailed Implementation

[0052] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.

[0053] With the development of computer technology, application interfaces are becoming increasingly rich and colorful, and the requirements for the efficiency of loading and rendering interfaces during application runtime are also increasing. For example, applications can display rich graphics in games, and to avoid interface lag during game runtime, the efficiency of interface loading and rendering should be improved.

[0054] During application development, the art director will break down the complete interface design into images that developers can easily use to create the interface. Compared to the complete interface design, the broken images make it easier to add logical relationships for interface interactions. For example, the broken images can be images of interactive buttons in the interface.

[0055] To improve the efficiency of application interface loading and rendering, during application development, multiple images that make up the application interface are merged into a single image set, i.e., combined into a large image. This reduces memory usage and pressure during application interface loading and rendering, and also improves rendering efficiency.

[0056] In this embodiment, only a first directory needs to be created and configured once. When image merging is required, images are placed in the configured first directory or a subdirectory of the configured first directory, and the images can be merged according to the configured information. Furthermore, a preview image set and its configuration information can be generated based on the configuration information. The configuration information can be adjusted based on the preview image set, and the final image set is generated based on the directory and image set configuration information.

[0057] After the atlas is packaged and exported, it is applied to the application. When the application renders the interface, it loads the images required for rendering the interface from the packaged atlas and renders the application interface.

[0058] Figure 1 This is a flowchart of an image processing method provided in an embodiment of this application. See also... Figure 1 This embodiment includes:

[0059] 101. The terminal displays a directory configuration interface and, based on the directory configuration interface, receives first configuration information for at least one first directory that has been entered.

[0060] The directory configuration interface is a visual, interactive interface for configuring the primary configuration information of the first directory. This primary configuration information includes at least the directory name, storage path, and merging strategy for the first directory. Figure 2 This is a schematic diagram of a directory configuration interface provided in an embodiment of this application. See also... Figure 2After opening the directory configuration interface, the interface displays the first configuration information of the configured first directory. This first configuration information includes at least the directory name; the storage path (directory path); and the merging strategy (atlas setting strategy) for the first directory. The first configuration information may also include a brief description of the first directory and its caching strategy (whether caching is required). Other configurable information may also be included in the directory configuration interface, but this is not limited in this embodiment.

[0061] The directory configuration interface also includes an "Add" button at the top, used to add the first configuration information for the first directory. The user corresponding to the terminal can click the "Add" button to add the first configuration information for the first directory to the list of pending configurations displayed on the terminal. The user corresponding to the terminal can be a developer of the project to which the images to be merged belong, or an art director of the project to which the images to be merged belong. Accordingly, the steps for the terminal to receive the first configuration information of at least one first directory input based on the directory configuration interface can be as follows: In response to the triggering operation of the "Add" button, the terminal displays the interface elements corresponding to the first directory to be configured in the directory configuration interface, including input boxes or selection boxes corresponding to the first directory to be configured; in response to the input operation of the interface elements, the terminal receives the input first configuration information of the first directory.

[0062] When the terminal responds to a trigger operation on the "Add" button, the displayed interface elements can be empty. The user on the terminal performs input operations within these interface elements, and the terminal responds to the input operations by receiving the first configuration information of the first directory. For example, Figure 3 This is a schematic diagram of a directory configuration interface provided in an embodiment of this application. See also... Figure 3 In response to the triggering operation of the add button, the terminal displays the interface element 301 corresponding to the first directory to be configured above the configuration information 302 of the configured first directory. The input box and selection box in the interface element are empty.

[0063] The interface elements displayed by the terminal in response to a trigger operation of the add button may not be empty. The terminal can also display the interface elements corresponding to the first directory to be configured based on the first configuration information of any configured first directory. For example, Figure 4 This is a schematic diagram of a directory configuration interface provided in an embodiment of this application. See also... Figure 4The first directory that has been configured is the "Animated Pictures" directory. In response to the trigger operation of the add button, the terminal displays the interface element 401 corresponding to the first directory to be configured in the directory configuration interface based on the first configuration information 402 of the "Animated Pictures" directory. The information displayed in the interface element corresponding to the first directory to be configured is the same as the first configuration information of the "Animated Pictures" directory. In response to the modification operation of the information in the interface element corresponding to the first directory to be configured, the terminal receives the configuration information corresponding to the first directory to be configured that has been entered.

[0064] The directory configuration interface also includes a "Add" button for each configured first directory. The "Add" button is used to add the first configuration information for the first directory to be configured. Accordingly, the step of the terminal receiving the first configuration information of at least one first directory input based on the directory configuration interface can be as follows: In response to a trigger operation on the "Add" button, the terminal displays the interface element corresponding to the first directory to be configured based on the first configuration information of the configured first directory corresponding to the "Add" button; in response to a modification operation on the interface element corresponding to the first directory to be configured, the terminal receives the input configuration information corresponding to the first directory to be configured and uses this configuration information as the first configuration information of the first directory. The terminal displays the interface element corresponding to the first directory to be configured based on the first configuration information of the configured first directory corresponding to the "Add" button, and the information displayed in the interface element corresponding to the first directory to be configured is the same as the first configuration information of the configured first directory corresponding to the "Add" button.

[0065] The directory configuration interface also includes a delete button for each configured first directory. The delete button is used to delete the first configuration information for the first directory corresponding to that delete button. For example, see [link to example]. Figure 2 For the "Animated Pictures" directory, when the terminal receives a trigger operation on the delete button corresponding to the "Animated Pictures" directory, the terminal deletes the first configuration information of the "Animated Pictures" directory.

[0066] The merging strategy for the first directory can be either grouping subdirectories into the same atlas (Sub Folder One Tag), grouping subdirectories into different atlases (Sub Folder Different Tag), or having all files in a separate atlas. When configuring the first configuration information for the first directory, any of these three merging strategies can be selected.

[0067] The directory configuration interface also includes the number of configured first directories. The number of directories is the number of currently configured first directories. For example, see [link to previous section]. Figure 2The terminal currently counts 7 directories as the first configured directory. The terminal can update the directory count when it receives an operation to add a first directory; the terminal can also update the directory count when it receives an operation to refresh directory configuration.

[0068] The directory configuration interface also includes a display button for showing the first configuration information and a hide button for hiding the first configuration information. In response to triggering the display button, the terminal displays the configured first configuration information. In response to triggering the hide button, the terminal hides the configured first configuration information in the directory configuration interface. The terminal can hide all information included in the first configuration information; for example, see [link to documentation]. Figure 2 The terminal can hide the directory description, directory name, whether caching is required, directory atlas configuration policy, directory path, and add / delete buttons; the terminal can also hide only a portion of the information included in the first configuration information, for example, see [link to previous section] Figure 2 The terminal can hide information such as whether caching is needed, the configuration strategy for the atlas in the directory, and the directory path, while displaying a directory description, directory name, and add / delete buttons. Displaying the directory description and directory name allows users to view the status of the configured first directory, and displaying the add / delete buttons allows users to add or delete the first configuration information of the first directory by triggering the add / delete buttons. In this embodiment, the method by which the terminal hides the first configuration information in response to the triggering of the hide button is not limited.

[0069] It's important to note that the first directory added or added by the user on the terminal corresponds to different types of images to be merged, with different first directories representing different types of images. When configuring the first directory's configuration information, the directory name can be used to represent different types of images to be merged. For example, Figure 5 This is a schematic diagram of a catalog 500 provided in an embodiment of this application. See also... Figure 5 The "User Interface (UISprites)" directory includes four primary directories: "Background Images (BGTexture)", "Common Images (CommonSprites)", "Dynamic Images (DynamicSprites)", and "Specific Sprites (Module-Specific Images)".

[0070] The "General Images" directory includes subdirectories such as "Bars," "Buttons," "Decals," "Frames," "Icons," "Lines," "Pads," "Sliders," and "Toggles"; the "Animated Images" directory includes subdirectories such as "Emojis," "InnerBuild," "PlayerHeads," and "Props"; and the "Module-Related Images" directory includes subdirectories such as "City Interface" and "Common Images." The interface is divided into subdirectories such as "Common", "Login", and "Outer City Interface". The "Inner City Interface" subdirectory also includes subdirectories such as "Building Pop-up Information", "Building List", "Building Upgrade", "Building Properties", "Building Bubble Plugin", and "Building Upgrade Bubble Plugin".

[0071] For example, see continue. Figure 2The first configuration information of the first directory includes the configuration information 201 of the "Dynamic Sprites" directory, wherein the directory description of the "Dynamic Sprites" directory is "Dynamic Sprites"; the directory name of the "Dynamic Sprites" directory is "Dynamic Sprites (DynamicSprites)"; the caching strategy of the "Dynamic Sprites" directory is no caching; the merging strategy of the "Dynamic Sprites" directory, that is, the atlas setting strategy under the directory is "subdirectories are respectively categorized into different atlases (Sub Folder DifferentTag)"; the directory path of the "Dynamic Sprites" directory is "Dynamic Sprites (DynamicSprites)". The first configuration information of the first directory includes configuration information 202 for the "Common Images" directory, where the directory description of the "Common Images" directory is "Common Images"; the directory name of the "Common Images" directory is "Common Images (CommonSprites)"; the caching strategy of the "Common Images" directory is to be cached; the merging strategy of the "Common Images" directory, that is, the image set setting strategy under the directory is "Subdirectories are grouped into the same image set (Sub Folder One Tag)"; and the directory path of the "Common Images" directory is "Common Images (CommonSprites)". The first configuration information of the first directory includes configuration information 203 for the "Emoji Images" directory, where the directory description of the "Emoji Images" directory is "Emoji Images"; the directory name of the "Emoji Images" directory is "Emoji Images (Emoji)"; the caching strategy of the "Emoji Images" directory is to be cached; the merging strategy of the "Emoji Images" directory, that is, the image set setting strategy under the directory is "Subdirectories are grouped into the same image set (Sub Folder One Tag)"; and the directory path of the "Emoji Images" directory is "Emoji Images (Emoji)". The first configuration information of the first directory includes the configuration information 204 of the "Common Interface" directory, where the directory description of the "Common Interface" directory is "Common Interface"; the directory name of the "Common Interface" directory is "Common Interface (CommonPanel)"; the caching strategy of the "Common Interface" directory is that it needs to be cached; the merging strategy of the "Common Interface" directory, that is, the atlas setting strategy under the directory is "subdirectories are respectively summarized into different atlases (Sub Folder DifferentTag)"; the directory path of the "Common Interface" directory is "Common Interface (Common)".The first configuration information of the first directory includes the configuration information 205 of the "Inner City Interface" directory, where the directory description of the "Inner City Interface" directory is "Inner City Interface"; the directory name of the "Inner City Interface" directory is "Inner City Interface (CityPanel)"; the caching strategy of the "Inner City Interface" directory is no caching; the merging strategy of the "Inner City Interface" directory, that is, the atlas setting strategy under the directory is "subdirectories are respectively categorized into different atlases (Sub Folder Different Tag)"; and the directory path of the "Inner City Interface" directory is "Inner City Interface (City)". The first configuration information of the first directory includes the configuration information 206 of the "Outer City Interface" directory, wherein the directory description of the "Outer City Interface" directory is "Outer City Interface"; the directory name of the "Outer City Interface" directory is "Outer City Interface (WorldPanel)"; the caching strategy of the "Outer City Interface" directory is no caching; the merging strategy of the "Outer City Interface" directory, that is, the atlas setting strategy under the directory is "subdirectories are respectively categorized into different atlases (Sub Folder Different Tag)"; and the directory path of the "Outer City Interface" directory is "Outer City Interface (World)".

[0072] Another point that needs to be explained is that, Figure 6 This is a flowchart of an image processing method provided in an embodiment of this application. The terminal receives first configuration information of at least one first directory based on the directory configuration interface, that is, executes step 601 to configure the root directory attribute. The first directory is also the root directory.

[0073] Another point to note is that the terminal can display the directory configuration interface through the SpTagSettingInspector (editor interface) class; the terminal receives the first configuration information of at least one first directory, and the method for merging the images to be merged according to the first configuration information can be encapsulated in the SpriteTagSetting (configuration) class.

[0074] In this embodiment, a flexible directory configuration interface is provided, which enables the configuration of directory configuration information based on the directory configuration interface, resulting in high configuration efficiency.

[0075] 102. The terminal creates at least one first directory and stores first configuration information of at least one first directory based on the directory name and storage path of at least one first directory.

[0076] After the user corresponding to the terminal has configured the first configuration information of the first directory, the terminal can trigger a refresh of the directory configuration. In response to the refresh of the directory configuration, the terminal creates at least one first directory and stores the first configuration information of at least one first directory according to the directory name and storage path of at least one first directory.

[0077] The terminal can create a first directory in the storage space corresponding to the storage path based on the directory name and storage path of the first directory. Correspondingly, the steps for the terminal to create at least one first directory based on the directory name and storage path of at least one first directory can be as follows: for each first directory in at least one first directory, the terminal determines the storage space corresponding to the storage path of the first directory based on the storage path of the first directory; and creates the first directory in the storage space corresponding to the storage path of the first directory with the directory name of the first directory.

[0078] The terminal can also store at least one first configuration information of a first directory. When the images to be merged need to be merged, the merging strategy corresponding to the images to be merged can be obtained from the first configuration information of the stored first directory.

[0079] Figure 7 This is a flowchart of an image processing method provided in an embodiment of this application. See also... Figure 7 The terminal displays a directory configuration interface. Based on this interface, it receives the first configuration information of at least one first directory. According to the directory name and storage path of the at least one first directory, it creates at least one first directory and stores the first configuration information of the at least one first directory, which is also the step 701 of defining directory rules and creating a root directory. Defining directory rules means configuring the first configuration information of the first directory; the root directory is the already configured first directory; creating the root directory means creating the first directory according to its directory name and storage path.

[0080] It should be noted that steps 101 and 102 are executed beforehand; they are only executed when configuring the directory's configuration information or when the directory's configuration information is changed. The terminal does not need to execute steps 101 and 102 before each operation to import an image.

[0081] 103. In response to the image import operation, the terminal stores the image to be merged in the storage space corresponding to the storage path of the second directory.

[0082] In one possible implementation, when images to be merged need to be merged, the user on the terminal places the images to be merged into a second directory; an image import operation is triggered; in response to the image import operation, the terminal stores the images to be merged in the storage space corresponding to the storage path of the second directory. The second directory can be an existing first directory, or it can be a subdirectory of an existing first directory.

[0083] The second directory can be a directory that matches the type of images to be merged. For example, the application's interface includes images such as bars, buttons, and emojis; see further. Figure 5Users on the terminal can put horizontal bar images into the "Horizontal Bar" subdirectory, button images into the "Button" subdirectory, and emoticon images into the "Emoticon Images" subdirectory.

[0084] See also Figure 7 Step 702 involves placing the images to be merged into the second directory, which is the art slice, and placing it into the specified directory. Art slice, also known as art design, involves the application's art planner slicing the designed complete interface diagram into images that are easy for developers to create the interface from. These sliced ​​images are the images to be merged. The specified directory is the second directory.

[0085] In another possible implementation, the user on the terminal imports an image into the game development tool. In response to the image import operation, the terminal stores the image to be merged in the storage space corresponding to the storage path of the second directory corresponding to the image to be merged, based on the image type. Accordingly, the steps for the terminal to store the image to be merged in the storage space corresponding to the storage path of the second directory in response to the image import operation can be as follows: the terminal retrieves the imported image to be merged; determines the type of the image to be merged; determines the second directory that matches the type of the image to be merged; and stores the image to be merged in the storage space corresponding to the storage path of the second directory.

[0086] It should be noted that, in response to the image import operation, the terminal can also inspect the imported image. The steps for the terminal to inspect the imported image are as follows: the terminal obtains the format of the imported image; if the image format does not match the standard format, the terminal displays a prompt message indicating that the imported image format does not conform to the standard.

[0087] The steps for the terminal to check the imported image can also be as follows: the terminal obtains the resolution and type of the imported image, obtains the standard resolution corresponding to the type of image, and if the resolution of the image does not match its corresponding standard resolution, the terminal displays a prompt message indicating that the resolution of the imported image does not meet the standard.

[0088] Another point to note is that the terminal can also process the imported image in response to the image import operation. For example, the terminal can remove the alpha channel from an opaque image that contains an alpha channel. Accordingly, the steps for processing the imported image can be: the terminal obtains an opaque image containing an alpha channel; the image is then re-encoded to obtain an image without an alpha channel. The method for processing the imported image can be encapsulated in the `SpPostImportProcessor` class (for post-processing imported images). In this embodiment, the method for processing the imported image is not limited.

[0089] 104. In response to the image merging operation, the terminal determines the merging strategy of the second directory to which the image to be merged belongs, based on the first configuration information of at least one stored first directory.

[0090] The second directory to which the images to be merged belong can be a first directory that has been configured with first configuration information, or a subdirectory of a first directory that has been configured with first configuration information. When the second directory is one of at least one first directory, the terminal can obtain the merging strategy of the second directory from the first configuration information; when the second directory is not one of at least one first directory, the terminal can determine the first directory in the parent directory of the second directory that has been configured with first configuration information, obtain the merging strategy from the first configuration information of that first directory, and use it as the merging strategy of the second directory. Accordingly, the step of the terminal determining the merging strategy of the second directory to which the image to be merged belongs based on the first configuration information of at least one stored first directory can be as follows: in response to the second directory being one of at least one first directory, the terminal determines the configuration information of the second directory from the first configuration information of at least one stored first directory, and obtains the merging strategy of the second directory from the configuration information of the second directory; in response to the second directory not belonging to at least one first directory, the terminal determines the third directory corresponding to the second directory, wherein the second directory is a subdirectory of the third directory, and the third directory is one of at least one first directory; determines the configuration information of the third directory from the first configuration information of at least one stored first directory; obtains the merging strategy of the third directory from the configuration information of the third directory; and determines the merging strategy of the third directory as the merging strategy of the second directory.

[0091] For example, see Figure 5 If the second directory to which the images to be merged belong is the "Building List" directory, and the "Building List" directory does not have any first configuration information configured, meaning the "Building List" directory does not belong to at least one first directory; determine that the parent directory of the "Building List" directory is the "Inner City Interface" directory; the "Building List" directory is a subdirectory of the "Inner City Interface" directory; if the "Inner City Interface" directory is one of at least one first directory, obtain the merging strategy from the first configuration information of the "Inner City Interface" directory, and use this merging strategy as the merging strategy for the "Building List" directory; if the "Inner City Interface" directory does not belong to at least one first directory, determine that the parent directory of the "Inner City Interface" directory is the "Module Related Images" directory, and the "Inner City Interface" directory is a subdirectory of the "Module Related Images" directory; obtain the merging strategy from the first configuration information of the "Module Related Images" directory, and use this merging strategy as the merging strategy for the "Building List" directory.

[0092] Figure 8This is a flowchart of an image processing method provided in an embodiment of this application. See also... Figure 8 The terminal determines the merging strategy of the second directory to which the image to be merged belongs based on the first configuration information of at least one first directory that has been stored, which is step 801 of obtaining the atlas packaging directory configuration.

[0093] It's important to note that the merging strategy for the second directory can be encapsulated in a map atlas packaging strategy class (MyPackingPolicy). This class includes at least one merging strategy, which can be grouping subdirectories into the same map atlas (Sub Folder One Tag), grouping subdirectories into different map atlases (Sub Folder Different Tag), or creating a separate map atlas for all files. This map atlas packaging strategy class also provides an interface for customizing merging strategies, allowing users to define their own merging strategies.

[0094] 105. The terminal merges the images to be merged according to the merging strategy of the second directory to which the images to be merged belong.

[0095] In one possible implementation, the merging strategy of the second directory can be to merge the images to be merged as a whole in the storage space corresponding to the storage path of the second directory. Accordingly, the terminal can merge the images to be merged according to the merging strategy of the second directory to which the images to be merged belong, and the merging strategy of the second directory is used to indicate that the images to be merged are merged as a whole in the storage space corresponding to the storage path of the second directory, thereby merging the images to be merged to obtain the first image set.

[0096] The terminal can assign values ​​to the merging tags corresponding to the images to be merged based on the directory name of the second directory. The terminal then merges the images based on the assigned merging tags. Accordingly, the terminal will merge multiple images to be merged to obtain the first image set. The steps are as follows: The terminal generates an image set name corresponding to the second directory based on the directory name of the second directory; for each image to be merged in the storage space corresponding to the storage path of the second directory, the image set name corresponding to the second directory is assigned to the merging tag (packing tag) corresponding to the image to be merged; the terminal merges the images to be merged with the same merging tag to obtain the first image set.

[0097] The terminal generates the image set name for the first image set based on the directory name of the second directory. For example, if the second directory is "Background Images", the image set name for the first image set generated by merging multiple images to be merged from the second directory can be "Background Image Set".

[0098] The second directory may include multiple subdirectories, and multiple images to be merged are stored in the storage space corresponding to the storage path of each subdirectory. If the merging strategy of the second directory is used to indicate the overall merging of the images to be merged in the storage space corresponding to the storage path of the second directory, the terminal will merge the images to be merged in multiple subdirectories into one image set, that is, the subdirectories are summarized into the same image set.

[0099] For example, the second directory is the "General Images" directory, which includes the "Band" subdirectory, the "Button" subdirectory, and the "Slider" subdirectory. Each subdirectory contains multiple images to be merged. The merging strategy of the second directory is to merge all the images to be merged in the storage space corresponding to the storage path of the second directory. This can merge multiple images to be merged corresponding to the "Band" subdirectory, the "Button" subdirectory, and the "Slider" subdirectory into one image set.

[0100] The second directory may also not include subdirectories. If the second directory merging strategy is used to indicate the overall merging of the images to be merged in the storage space corresponding to the storage path of the second directory, the terminal directly merges the images to be merged in the storage space corresponding to the second directory into a single image set, thus obtaining the first image set.

[0101] For example, the second directory is the "Background Images" directory. This second directory does not include subdirectories. This second directory corresponds to multiple images to be merged. The multiple images to be merged corresponding to this second directory are merged into one image set.

[0102] In another possible implementation, the merging strategy of the second directory is to merge the images to be merged in the storage space corresponding to the storage path of the subdirectory respectively. Accordingly, the terminal can merge the images to be merged according to the merging strategy of the second directory to which the images to be merged belong, and the terminal can merge the images to be merged in the storage space corresponding to the storage path of the third directory respectively to obtain the first image set.

[0103] The terminal can assign a merge tag to the image to be merged based on the directory name of each third directory. The terminal then merges the images to be merged corresponding to each third directory based on the assigned merge tags. Correspondingly, the terminal merges the images to be merged in the storage space corresponding to the storage path of each third directory to obtain multiple first image sets. The steps are as follows: The terminal generates an image set name corresponding to each third directory based on the directory name of each third directory; for each image to be merged in the storage space corresponding to the storage path of each third directory, the image set name corresponding to each third directory is assigned to the merge tag (packing tag) corresponding to the image to be merged; the terminal merges the images to be merged with the same merge tag to obtain the first image set corresponding to each third directory.

[0104] The terminal merges the images to be merged in the storage space corresponding to the storage path of each third directory, that is, the subdirectories are respectively summarized into different image sets.

[0105] For example, the second directory is the "Animated Pictures" directory, which includes multiple third directories. The third directories can be the "Emoji Pictures" directory, the "Memory Buildings" directory, the "Character Avatars" directory, and the "Character Equipment" directory. The merging strategy for the second directory is to merge the images to be merged in the storage space corresponding to the storage path of each subdirectory. The images to be merged corresponding to the "Emoji Pictures" directory are merged into one image set, the images to be merged corresponding to the "Memory Buildings" directory are merged into one image set, the images to be merged corresponding to the "Character Avatars" directory are merged into one image set, and the images to be merged corresponding to the "Character Equipment" directory are merged into one image set.

[0106] In another possible implementation, the first configuration information also includes the atlas name, and the merging strategy of the second directory is to merge the images to be merged in the storage space corresponding to the storage path of multiple directories with the same atlas name. Accordingly, the terminal can merge the images to be merged according to the merging strategy of the second directory to which the images to be merged belong. The steps can be as follows: in response to the images to be merged belonging to different second directories, and the merging strategy of the second directory is used to indicate that the images to be merged in the storage space corresponding to the storage path of the directory with the same atlas name are merged, the terminal obtains the atlas name corresponding to the second directory from the first configuration information corresponding to the second directory, and merges the images to be merged in the storage space corresponding to the second directory with the same atlas name to obtain the first atlas.

[0107] The terminal can assign the merge tag of each image to be merged to the image set name. The terminal merges the images to be merged according to the assigned merge tag. Correspondingly, the terminal merges the images to be merged in the storage space corresponding to the second directory with the same image set name to obtain the first image set. The steps are as follows: For each second directory with the same image set name, the terminal assigns the merge tag of each image to be merged to the image set name in the storage space corresponding to the second directory; merge the images to be merged with the merge tag of the image set name to obtain the first image set.

[0108] For example, the second directory is the "Character Avatar" directory and the "Character Equipment" directory. The first configuration information corresponding to the "Character Avatar" directory and the "Character Equipment" directory both include the image set name "Character Interface". The images to be merged corresponding to the "Character Avatar" directory and the images to be merged corresponding to the "Character Equipment" directory are merged into one image set, and the image set name of this image set is "Character Interface".

[0109] Another point to note is that the first configuration information also includes attribute information. The terminal can also configure the attribute information into the first image set when merging the images to be merged to obtain the first image set. Accordingly, the steps for the terminal to configure the attribute information into the first image set can be as follows: the terminal determines the attribute information corresponding to the second directory to which the images to be merged belong, based on the first configuration information of at least one stored first directory; and configures the attribute information corresponding to the second directory into the first image set obtained by merging the images to be merged.

[0110] The attribute information may include a caching strategy, i.e., whether caching is required. Whether caching is required indicates whether the first atlas needs to be cached during application runtime. The attribute information may also include a compression strategy, which may specify whether compression is required. Whether compression is required indicates whether the first atlas needs to be compressed when packaging and outputting the atlas. The compression strategy may also specify a compression ratio, which indicates the ratio of the size of the first atlas after compression to its size before compression.

[0111] Another point to note is that, please continue reading... Figure 8 The terminal merges the images to be merged according to the merging strategy of the second directory to which the images belong, which is step 802 of the first image set packaging according to the directory configuration.

[0112] Another point to note is that after merging the images according to the merging strategy of the second directory to which the images belong, the terminal can also generate a preview atlas and display the preview atlas. (See also...) Figure 6 According to the merging strategy of the second directory to which the images to be merged belong, the images are merged to generate a preview atlas, i.e., step 602, which generates a virtual atlas based on the root directory attributes. See also... Figure 7The terminal generates a preview atlas and displays the preview atlas, which is step 703 of printing out the preview atlas.

[0113] The terminal can use Unity 3D to display and preview the atlas. Unity 3D is a game development tool used to develop mobile games, PC games, and console games. After the user on the terminal places the images to be merged into the specified directory, they can trigger a refresh of the directory configuration. The terminal can then merge the images according to the merging strategy to obtain the first atlas. The user on the terminal can view the generated first atlas through Unity 3D's Sprite Packer (an atlas packaging tool) or Sprite Atlas. Figure 9 This is a schematic diagram of a display preview atlas 900 provided in an embodiment of this application. See also... Figure 9 The interface for displaying the preview atlas includes information such as the first atlas obtained, the images included in each first atlas, the format of the atlas, and the size of the atlas. For example, the resolution of the atlas is 2048×1024, the format of the atlas is RGBA (a color space), and the size of the atlas is 32 bits.

[0114] It should be noted that the terminal can merge the images to be merged according to the merging strategy of the second directory to which the images belong, and after obtaining the first image set, it will package and output the first image set. That is, after the terminal completes step 105, it does not need to execute steps 106 to 108. The terminal can also generate second configuration information for the first image set when it obtains the first image set, display the second configuration information in the image set configuration interface, and receive further adjustments to the second configuration information of the first image set. That is, the terminal can continue to execute steps 106 to 108 after executing step 105.

[0115] 106. The terminal obtains at least one mergeable second map set from at least one first map set obtained by merging the images to be merged, and generates second configuration information of the second map set based on at least one mergeable second map set. The second configuration information includes at least the name of the merged map set.

[0116] The terminal can determine whether the first image set needs to be merged based on the resolution of the first image set. Accordingly, the steps for the terminal to obtain at least one mergeable second image set from at least one first image set obtained by merging multiple images to be merged can be as follows: the terminal obtains the resolution of the first image set; and determines the first image set with a resolution less than a first threshold as the mergeable second image set.

[0117] The terminal can determine the merged map set name corresponding to the second map set based on the resolution of at least one mergeable second map set. Accordingly, the step of the terminal generating the second configuration information of each second map set based on at least one mergeable second map set can be as follows: the terminal determines the sum of the resolutions of at least two mergeable second map sets from at least one mergeable second map set, and determines the merged map set name of at least two mergeable second map sets whose sum of resolutions is within the standard range as the same merged map set name.

[0118] The second configuration information also includes attribute information for the first atlas. This attribute information may include a caching strategy corresponding to the first atlas, such as whether or not to cache. The attribute information may also include a compression strategy corresponding to the first atlas, such as whether or not to compress.

[0119] One point to note is that, please continue to refer to... Figure 8 Step 803 involves the terminal generating second configuration information for each second atlas, which is also known as generating a separate configuration for each atlas.

[0120] 107. The terminal displays the second configuration information of the second atlas in the atlas configuration interface.

[0121] The terminal can also obtain attribute information of the first image set from at least one first image set obtained by merging the images to be merged, and display the attribute information of the first image set in the image set configuration interface.

[0122] The atlas configuration interface is a visual interactive interface for configuring the second configuration information of the first atlas. Figure 10 This is a schematic diagram of a drawing configuration interface 1000 provided in an embodiment of this application. See also... Figure 10 The second configuration information includes the original atlas name of the second atlas that can be merged, the name of the merged atlas corresponding to the second atlas, whether to compress and whether to cache, etc.

[0123] In one possible implementation, the terminal determines the name of the merged atlas corresponding to the second atlas and displays the merged atlas name in the atlas configuration interface. For example, see [link to example]. Figure 10 The terminal determines that the second atlas named "Building Bubble Plugin_Main City" and the second atlas named "Building Upgrade Bubble Plugin_Main City" can be merged into a third atlas named "Bubble Atlas". The atlas configuration interface displays the atlas name of the third atlas, the original atlas name of each second atlas that makes up the third atlas, the merged atlas name corresponding to each second atlas that makes up the third atlas, the caching strategy of each second atlas that makes up the third atlas, and the compression strategy of each second atlas that makes up the third atlas.

[0124] In another possible implementation, the terminal does not determine the name of the merged atlas corresponding to the second atlas, but only displays the second configuration information of the mergeable second atlas in the atlas configuration interface. For example, see [link to previous section]. Figure 10 The terminal determines that the second atlas that can be merged is the second atlas named "Building Attributes". The atlas configuration interface displays the original atlas name, the name of the merged atlas to be entered, the caching strategy of the second atlas, and the compression strategy of the second atlas.

[0125] In another possible implementation, the terminal displays the second configuration information of the merged second atlas in the atlas configuration interface. For example, see [link to example]. Figure 10 The second atlas named "Building Bubble Plugin_Main City" and the second atlas named "Building Upgrade Bubble Plugin_Main City" have been merged into a third atlas named "Bubble Atlas". The atlas configuration interface displays the atlas name of the third atlas, the original atlas name of each second atlas that makes up the third atlas, the merged atlas name corresponding to each second atlas that makes up the third atlas, the caching strategy of each second atlas that makes up the third atlas, and the compression strategy of each second atlas that makes up the third atlas.

[0126] In another possible implementation, the terminal can also display the second configuration information of the first atlas in the atlas configuration interface. For example, see [link to example]. Figure 10 The atlas configuration interface displays the original atlas name of the first atlas, the name of the merged atlas to be entered, the caching strategy of the first atlas, and the compression strategy of the first atlas.

[0127] 108. The terminal modifies the merged atlas name of the second atlas based on the atlas configuration interface.

[0128] In one possible implementation, after viewing the preview of the first atlas, the user on the terminal can adjust the second configuration information corresponding to the first atlas in the atlas configuration interface based on the atlas information of the first atlas. Correspondingly, the steps for the terminal to modify the merged atlas name of any second atlas based on the atlas configuration interface can be as follows: the terminal receives input operations on the interface element corresponding to the merged atlas name based on the atlas configuration interface, obtains the text information input into that interface element, and uses this text information as the merged atlas name of the second atlas corresponding to that merged atlas name.

[0129] See also Figure 8 After viewing the preview of the first image set, the user on the terminal adjusts the second configuration information corresponding to the first image set in the image set configuration interface according to the image set information of the first image set, which is step 804 of adjusting the configuration of each image set.

[0130] In another possible implementation, the atlas configuration interface also displays the second configuration information of the first atlas. The terminal can also modify the attribute information of the first atlas based on the atlas configuration interface and configure the modified attribute information into the first atlas. For example, see [link to previous section]. Figure 10 The compression strategy of the atlas named "Building Attributes_Main City" is uncompressed. The user corresponding to the terminal can change the compression strategy of the atlas named "Building Attributes_Main City" to compressed. The terminal receives the change of the compression strategy of the atlas and modifies the compression strategy in the attribute information of the atlas to compressed.

[0131] It should be noted that the terminal can also determine the compression method corresponding to the atlas that needs to be compressed based on its type, and then compress the atlas accordingly. The steps for the terminal to compress the atlas can be as follows: the terminal obtains the type of the atlas to be compressed; determines the compression method matching that type; and compresses the atlas using that compression method. For example, the compression method could be grid compression, symmetrical compression, or smooth gradient stretching, etc.

[0132] Another point to note is that the compression strategy can also be a compression ratio, which represents the ratio of the size of the first atlas after compression to its original size. Users on the corresponding terminals can adjust the compression ratio for the atlas.

[0133] Another point to note is that when the attribute information of the first configuration information and the second configuration information are different, the second configuration information has a higher priority. That is, when performing graph set merging, the attribute information of the second configuration information is applied first.

[0134] Another point to note is that after modifying the attribute information of the first image set, the modified attribute information can also be reset to the attribute information of the first configuration information.

[0135] 109. The terminal merges the second sets with the same name according to the merge set name in the second configuration information of the second set, and obtains the third set.

[0136] The terminal will merge at least two second atlases with the same atlas name into a third atlas, for example, Figure 11 This is a schematic diagram of a graph set merging provided in an embodiment of this application. See also... Figure 11 For the third set 1100 with the set name "Bubble Set", the third set 1100 includes images from the second set 1101 with the set name "Building Bubble Plugin_Main City" and images from the second set 1102 with the set name "Building Upgrade Bubble Plugin_Main City".

[0137] It should be noted that after merging the atlases, the second configuration information of the atlases can be adjusted according to the actual output atlases. For example, if the resolution of the output atlases is greater than the resolution threshold, the atlases can be compressed; if the resolution of the output atlases is less than the resolution threshold, the atlases can be merged.

[0138] One point to note is that, please continue to refer to... Figure 6 After viewing the preview of the first atlas, the user on the terminal can adjust the second configuration information corresponding to the first atlas in the atlas configuration interface based on the atlas information. Based on the adjusted second configuration information, a third atlas is obtained, which is step 603 of adjusting the virtual atlas attributes. This merges the virtual atlas into a real atlas. After merging the real atlas, the terminal can execute step 604 of outputting the atlas based on the real atlas, packaging and outputting the final atlas product, which is step 605. See also... Figure 7 and Figure 8 After the terminal executes step 704, which sets individual attributes for each atlas based on the previewed atlas, it then performs step 705, which combines the packaging strategy of the root directory and the strategy of each atlas to re-package the atlas. This is step 805, which involves comprehensive packaging based on the directory configuration and atlas configuration. In other words, it obtains the third atlas based on the first and second configuration information. Finally, it executes step 706, which involves reviewing and outputting the atlas. This is step 806, which involves producing the final atlas product. Specifically, it reviews whether the resolution and other parameters of the atlas meet the standards. If they meet the standards, the final atlas is output. If they do not meet the standards, the second configuration information needs to be adjusted.

[0139] In this embodiment of the application, after the terminal obtains the first atlas based on the first configuration information, it further adjusts it based on the information of the first atlas, which can make the resolution of the final packaged atlas within a reasonable range and improve the rendering efficiency of the application during runtime.

[0140] In this embodiment, a directory configuration interface is displayed. Based on the directory configuration interface, first configuration information of at least one first directory is received. At least one first directory is created and its first configuration information is stored according to its directory name and storage path. In response to an image import operation, the images to be merged are stored in the storage space corresponding to the storage path of the second directory. In response to an image merging operation, a merging strategy for each second directory to which an image to be merged belongs is determined based on the stored first configuration information of the at least one directory. The images to be merged are then merged according to the merging strategy of the second directory to which the images to be merged belong. Only the first configuration information of the first directory needs to be configured once. When image merging is required, the merging strategy of the second directory to which the images to be merged belong can be determined based on the configured first configuration information, and the images to be merged can be merged according to the configured merging strategy. This eliminates the need for configuration every time an image merge is performed, improving configuration efficiency and thus image processing efficiency.

[0141] All of the above-mentioned optional technical solutions can be combined in any way to form the optional embodiments of this application, and will not be described in detail here.

[0142] Figure 12 This is a block diagram of an image processing apparatus provided in an embodiment of this application. See also... Figure 12 The device includes:

[0143] Display module 1201 is configured to display the directory configuration interface;

[0144] The receiving module 1202 is configured to receive first configuration information of at least one first directory based on the directory configuration interface. The first configuration information includes at least the directory name of the first directory, the storage path of the first directory, and the merging strategy of the first directory.

[0145] Module 1203 is configured to create at least one first directory based on the directory name and storage path of at least one first directory;

[0146] Storage module 1204 is configured to store first configuration information of at least one first directory; in response to the operation of importing images, it stores the images to be merged in the storage space corresponding to the storage path of the second directory;

[0147] The determining module 1205 is configured to, in response to the operation of merging images, determine the merging strategy of the second directory to which the images to be merged belong, based on first configuration information of at least one stored first directory.

[0148] The merging module 1206 is configured to merge images according to the merging strategy of the second directory to which the images to be merged belong.

[0149] In one possible implementation, the determining module 1205 is further configured to, in response to the second directory being one of at least one first directory, determine the configuration information of the second directory from the stored first configuration information of at least one first directory, and obtain the merging strategy of the second directory from the configuration information of the second directory; in response to the second directory not belonging to at least one first directory, determine the third directory corresponding to the second directory, wherein the second directory is a subdirectory of the third directory, and the third directory is one of at least one first directory; determine the configuration information of the third directory from the stored first configuration information of at least one first directory; obtain the merging strategy of the third directory from the configuration information of the third directory; and determine the merging strategy of the third directory as the merging strategy of the second directory.

[0150] In another possible implementation, the merging module 1206 is further configured to respond to the fact that the second directory to which the images to be merged belong is the same directory, and the merging strategy of the second directory is used to indicate that the images to be merged in the storage space corresponding to the storage path of the second directory are merged as a whole, so as to merge the images to be merged to obtain the first image set.

[0151] In another possible implementation, the merging module 1206 is further configured to respond to the fact that the images to be merged belong to at least two third directories, the third directories being subdirectories of the second directory, and the merging strategy of the second directory being used to instruct the images to be merged in the storage space corresponding to the storage path of the subdirectory to be merged respectively, and to merge the images to be merged in the storage space corresponding to the storage path of each third directory respectively, to obtain at least two first image sets.

[0152] In another possible implementation, the merging module 1206 is further configured to, in response to the images to be merged belonging to at least two second directories respectively, and the merging strategy of the second directories being used to indicate the merging of images to be merged in the storage space corresponding to the storage paths of at least two directories with the same atlas name, obtain the atlas name corresponding to each second directory from the first configuration information corresponding to each second directory, and merge the images to be merged in the storage space corresponding to the second directories with the same atlas name to obtain the first atlas.

[0153] In another possible implementation, the first configuration information also includes attribute information, and the determining module 1205 is further configured to determine the attribute information corresponding to the second directory to which the image to be merged belongs based on the first configuration information of at least one stored first directory.

[0154] The merging module 1206 is also configured to configure the attribute information corresponding to the second directory in the first image set obtained by merging the images to be merged.

[0155] In another possible implementation, the device also includes:

[0156] The first acquisition module is configured to acquire at least one mergeable second map set from at least one first map set obtained by merging the images to be merged, and generate second configuration information for each second map set based on the at least one mergeable second map set, wherein the second configuration information includes at least the name of the merged map set;

[0157] The display module 1201 is also configured to display the second configuration information of each second atlas in the atlas configuration interface;

[0158] The first modification module is configured to modify the merged atlas name of any second atlas based on the atlas configuration interface;

[0159] The merging module 1206 is also configured to merge at least two second sets with the same merging set name according to the merging set name in the second configuration information of each second set, to obtain a third set.

[0160] In another possible implementation, the device also includes:

[0161] The second acquisition module is configured to acquire attribute information of each first image set from at least one first image set obtained by merging the images to be merged;

[0162] The display module 1201 is also configured to display the attribute information of each first atlas in the atlas configuration interface;

[0163] The second modification module is configured to modify the attribute information of any first atlas based on the atlas configuration interface, and configure the modified attribute information into the first atlas.

[0164] In this embodiment, a directory configuration interface is displayed. Based on the directory configuration interface, first configuration information of at least one first directory is received. At least one first directory is created and its first configuration information is stored according to its directory name and storage path. In response to an image import operation, the images to be merged are stored in the storage space corresponding to the storage path of the second directory. In response to an image merging operation, a merging strategy for each second directory to which an image to be merged belongs is determined based on the stored first configuration information of the at least one directory. The images to be merged are then merged according to the merging strategy of the second directory to which the images to be merged belong. Only the first configuration information of the first directory needs to be configured once. When image merging is required, the merging strategy of the second directory to which the images to be merged belong can be determined based on the configured first configuration information, and the images to be merged can be merged according to the configured merging strategy. This eliminates the need for configuration every time an image merge is performed, improving configuration efficiency and thus image processing efficiency.

[0165] It should be noted that the image processing apparatus provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the terminal can be divided into different functional modules to complete all or part of the functions described above. In addition, the image processing apparatus and image processing method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process can be found in the method embodiments, which will not be repeated here.

[0166] Figure 13 This is a block diagram of a terminal 1300 provided in an embodiment of this application. The terminal 1300 can be a desktop computer, laptop computer, tablet computer, or smartphone, etc. The terminal 1300 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other names.

[0167] Typically, terminal 1300 includes a processor 1301 and a memory 1302.

[0168] Processor 1301 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1301 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1301 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1301 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1301 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0169] The memory 1302 may include one or more computer-readable storage media, which may be non-transitory. The memory 1302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in the memory 1302 are used to store at least one line of program code, which is executed by the processor 1301 to implement the image processing method provided in the method embodiments of this application.

[0170] In some embodiments, the terminal 1300 may also optionally include a peripheral device interface 1303 and at least one peripheral device. The processor 1301, memory 1302, and peripheral device interface 1303 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1303 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1304, a touch display screen 1305, a camera assembly 1306, an audio circuit 1307, a positioning assembly 1308, and a power supply 1309.

[0171] Peripheral device interface 1303 can be used to connect at least one I / O (Input / Output) related peripheral device to processor 1301 and memory 1302. In some embodiments, processor 1301, memory 1302 and peripheral device interface 1303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of processor 1301, memory 1302 and peripheral device interface 1303 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0172] The radio frequency (RF) circuit 1304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 1304 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 1304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 1304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 1304 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: metropolitan area networks (MANs), various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks (WLANs), and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 1304 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0173] Display screen 1305 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. When display screen 1305 is a touch display screen, it also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to processor 1301 for processing. In this case, display screen 1305 can also be used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one display screen 1305, which serves as the front panel of terminal 1300; in other embodiments, there may be at least two display screens, respectively disposed on different surfaces of terminal 1300 or in a folded design; in still other embodiments, display screen 1305 may be a flexible display screen, disposed on a curved or folded surface of terminal 1300. Furthermore, display screen 1305 may also be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1305 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).

[0174] The camera assembly 1306 is used to acquire images or videos. Optionally, the camera assembly 1306 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is located on the front panel of the terminal, and the rear-facing camera is located on the back of the terminal. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, a wide-angle camera, and a telephoto camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, panoramic shooting by fusion of the main camera and the wide-angle camera, VR (Virtual Reality) shooting, or other fusion shooting functions. In some embodiments, the camera assembly 1306 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash refers to a combination of a warm-light flash and a cool-light flash, which can be used for light compensation at different color temperatures.

[0175] The audio circuit 1307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to the processor 1301 for processing, or input to the radio frequency circuit 1304 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of the terminal 1300. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from the processor 1301 or the radio frequency circuit 1304 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, the audio circuit 1307 may also include a headphone jack.

[0176] The positioning component 1308 is used to locate the current geographic location of the terminal 1300 in order to enable navigation or LBS (Location Based Service). The positioning component 1308 can be a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, Russia's Granas system, or the EU's Galileo system.

[0177] Power supply 1309 is used to power the various components in terminal 1300. Power supply 1309 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When power supply 1309 includes a rechargeable battery, the rechargeable battery can support wired charging or wireless charging. The rechargeable battery can also be used to support fast charging technology.

[0178] In some embodiments, the terminal 1300 further includes one or more sensors 1310. The one or more sensors 1310 include, but are not limited to: an accelerometer 1311, a gyroscope 1312, a pressure sensor 1313, a fingerprint sensor 1314, an optical sensor 1315, and a proximity sensor 1316.

[0179] Accelerometer 1311 can detect the magnitude of acceleration along the three axes of a coordinate system established by terminal 1300. For example, accelerometer 1311 can be used to detect the components of gravitational acceleration along the three axes. Processor 1301 can control touchscreen 1305 to display the user interface in landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 1311. Accelerometer 1311 can also be used for games or for acquiring user motion data.

[0180] The gyroscope sensor 1312 can detect the orientation and rotation angle of the terminal 1300. The gyroscope sensor 1312, in conjunction with the accelerometer sensor 1311, can collect 3D motion data from the user on the terminal 1300. Based on the data collected by the gyroscope sensor 1312, the processor 1301 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0181] The pressure sensor 1313 can be disposed on the side bezel of the terminal 1300 and / or on the lower layer of the touch display screen 1305. When the pressure sensor 1313 is disposed on the side bezel of the terminal 1300, it can detect the user's grip signal on the terminal 1300, and the processor 1301 can perform left / right hand recognition or quick operation based on the grip signal collected by the pressure sensor 1313. When the pressure sensor 1313 is disposed on the lower layer of the touch display screen 1305, the processor 1301 can control the operable controls on the UI interface based on the user's pressure operation on the touch display screen 1305. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0182] The fingerprint sensor 1314 is used to collect a user's fingerprint. The processor 1301 identifies the user based on the fingerprint collected by the fingerprint sensor 1314, or vice versa. When the user's identity is identified as trusted, the processor 1301 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 1314 can be located on the front, back, or side of the terminal 1300. When the terminal 1300 has physical buttons or a manufacturer's logo, the fingerprint sensor 1314 can be integrated with the physical buttons or manufacturer's logo.

[0183] The optical sensor 1315 is used to collect ambient light intensity. In one embodiment, the processor 1301 can control the display brightness of the touch screen 1305 based on the ambient light intensity collected by the optical sensor 1315. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 1305 is increased; when the ambient light intensity is low, the display brightness of the touch screen 1305 is decreased. In another embodiment, the processor 1301 can also dynamically adjust the shooting parameters of the camera assembly 1306 based on the ambient light intensity collected by the optical sensor 1315.

[0184] The proximity sensor 1316, also known as a distance sensor, is typically located on the front panel of the terminal 1300. The proximity sensor 1316 is used to detect the distance between the user and the front of the terminal 1300. In one embodiment, when the proximity sensor 1316 detects that the distance between the user and the front of the terminal 1300 is gradually decreasing, the processor 1301 controls the touchscreen display 1305 to switch from a screen-on state to a screen-off state; when the proximity sensor 1316 detects that the distance between the user and the front of the terminal 1300 is gradually increasing, the processor 1301 controls the touchscreen display 1305 to switch from a screen-off state to a screen-on state.

[0185] Those skilled in the art will understand that Figure 13 The structure shown does not constitute a limitation on terminal 1300 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0186] In an exemplary embodiment, a computer-readable storage medium is also provided, which stores at least one line of program code that can be executed by a processor in a terminal to perform the image processing method described above. For example, the computer-readable storage medium may be a ROM (Read-Only Memory), RAM (Random Access Memory), CD-ROM (Compact Disc Read-Only Memory), magnetic tape, floppy disk, or optical data storage device, etc.

[0187] This application also provides a computer program product, which includes one or more computer programs. When executed by a processor, the computer programs are used to implement the image processing methods provided in the above-described method embodiments.

[0188] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0189] The above description is merely an optional embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. An image processing method, characterized in that, The method includes: Display the directory configuration interface; Based on the directory configuration interface, the system receives first configuration information for at least one first directory, wherein the first configuration information includes at least the directory name of the first directory, the storage path of the first directory, and the merging strategy of the first directory. Based on the directory name and storage path of the at least one first directory, create the at least one first directory and store the first configuration information of the at least one first directory; In response to the image import operation, the image to be merged is stored in the storage space corresponding to the storage path of the second directory; In response to the image merging operation, and in response to the second directory to which the images to be merged belong being one of the at least one first directory, the configuration information of the second directory is determined from the stored first configuration information of the at least one first directory, and the merging strategy of the second directory is obtained from the configuration information of the second directory; in response to the second directory not belonging to the at least one first directory, a third directory corresponding to the second directory is determined, wherein the second directory is a subdirectory of the third directory, and the third directory is one of the at least one first directory; the configuration information of the third directory is determined from the stored first configuration information of the at least one first directory; the merging strategy of the third directory is obtained from the configuration information of the third directory; and the merging strategy of the third directory is determined as the merging strategy of the second directory; The images to be merged are merged according to the merging strategy of the second directory to which the images belong.

2. The method according to claim 1, characterized in that, The step of merging the images to be merged according to the merging strategy of the second directory to which the images to be merged belong includes: In response to the fact that the second directory to which the images to be merged belong is the same directory, and the merging strategy of the second directory is used to indicate that the images to be merged in the storage space corresponding to the storage path of the second directory are merged as a whole, the images to be merged are merged to obtain the first image set.

3. The method according to claim 1, characterized in that, The step of merging the images to be merged according to the merging strategy of the second directory to which the images to be merged belong includes: In response to the fact that the images to be merged belong to different third directories, the third directories are subdirectories of the second directory, and the merging strategy of the second directory is used to indicate that the images to be merged in the storage space corresponding to the storage path of the subdirectory are merged respectively, and the images to be merged in the storage space corresponding to the storage path of the third directory are merged respectively, to obtain the first image set.

4. The method according to claim 1, characterized in that, The step of merging the images to be merged according to the merging strategy of the second directory to which the images to be merged belong includes: In response to the fact that the images to be merged belong to different second directories, and the merging strategy of the second directories is used to indicate the merging of images to be merged in the storage space corresponding to the storage path of the directory with the same atlas name, the atlas name corresponding to the second directory is obtained from the first configuration information corresponding to the second directory, and the images to be merged in the storage space corresponding to the second directory with the same atlas name are merged to obtain the first atlas.

5. The method according to claim 1, characterized in that, The first configuration information also includes attribute information. After merging the images to be merged according to the merging strategy of the second directory to which the images to be merged belong, the method further includes: Based on the first configuration information of the at least one first directory that has been stored, determine the attribute information corresponding to the second directory to which the image to be merged belongs; Configure the attribute information corresponding to the second directory in the first image set obtained by merging the images to be merged.

6. The method according to claim 1, characterized in that, After merging the images to be merged according to the merging strategy of the second directory to which the images to be merged belong, the method further includes: At least one mergeable second map set is obtained from at least one first map set obtained by merging the images to be merged, and second configuration information of the second map set is generated based on the at least one mergeable second map set, wherein the second configuration information includes at least the name of the merged map set; Display the second configuration information of the second atlas in the atlas configuration interface; Based on the atlas configuration interface, the name of the merged atlas of the second atlas is modified; Based on the merge set name in the second configuration information of the second set, merge the second sets with the same merge set name to obtain the third set.

7. The method according to claim 1, characterized in that, After merging the images to be merged according to the merging strategy of the second directory to which the images to be merged belong, the method further includes: Obtain attribute information of a first image set from at least one first image set obtained by merging the images to be merged, and display the attribute information of the first image set in the image set configuration interface; Based on the atlas configuration interface, the attribute information of the first atlas is modified, and the modified attribute information is configured into the first atlas.

8. An image processing apparatus, characterized in that, The device includes: The display module is configured to display the directory configuration interface; The receiving module is configured to receive, based on the directory configuration interface, first configuration information of at least one first directory, wherein the first configuration information includes at least the directory name of the first directory, the storage path of the first directory, and the merging strategy of the first directory. A creation module is configured to create the at least one first directory based on the directory name and storage path of the at least one first directory; The storage module is configured to store first configuration information of the at least one first directory; in response to the image import operation, the image to be merged is stored in the storage space corresponding to the storage path of the second directory; A determination module is configured to, in response to an image merging operation, and in response to the second directory to which the image to be merged belongs being one of the at least one first directory, determine the configuration information of the second directory from the stored first configuration information of the at least one first directory, and obtain the merging strategy of the second directory from the configuration information of the second directory; in response to the second directory not belonging to the at least one first directory, determine a third directory corresponding to the second directory, wherein the second directory is a subdirectory of the third directory, and the third directory is one of the at least one first directory; determine the configuration information of the third directory from the stored first configuration information of the at least one first directory; obtain the merging strategy of the third directory from the configuration information of the third directory; and determine the merging strategy of the third directory as the merging strategy of the second directory; The merging module is configured to merge the images to be merged according to the merging strategy of the second directory to which the images to be merged belong.

9. The apparatus according to claim 8, characterized in that, The merging module is also configured to: In response to the fact that the second directory to which the images to be merged belong is the same directory, and the merging strategy of the second directory is used to indicate that the images to be merged in the storage space corresponding to the storage path of the second directory are merged as a whole, the images to be merged are merged to obtain the first image set.

10. The apparatus according to claim 8, characterized in that, The merging module is also configured to: In response to the fact that the images to be merged belong to different third directories, the third directories are subdirectories of the second directory, and the merging strategy of the second directory is used to indicate that the images to be merged in the storage space corresponding to the storage path of the subdirectory are merged respectively, and the images to be merged in the storage space corresponding to the storage path of the third directory are merged respectively, to obtain the first image set.

11. The apparatus according to claim 8, characterized in that, The merging module is also configured to: In response to the fact that the images to be merged belong to different second directories, and the merging strategy of the second directories is used to indicate the merging of images to be merged in the storage space corresponding to the storage path of the directory with the same atlas name, the atlas name corresponding to the second directory is obtained from the first configuration information corresponding to the second directory, and the images to be merged in the storage space corresponding to the second directory with the same atlas name are merged to obtain the first atlas.

12. The apparatus according to claim 8, characterized in that, The first configuration information also includes attribute information, and the determining module is further configured to: Based on the first configuration information of the at least one first directory that has been stored, determine the attribute information corresponding to the second directory to which the image to be merged belongs; The merging module is also configured to: Configure the attribute information corresponding to the second directory in the first image set obtained by merging the images to be merged.

13. The apparatus according to claim 8, characterized in that, The device further includes: The first acquisition module is configured to acquire at least one mergeable second map set from at least one first map set obtained by merging the images to be merged, and generate second configuration information of the second map set based on the at least one mergeable second map set, wherein the second configuration information includes at least the name of the merged map set; The display module is also configured to display the second configuration information of the second atlas in the atlas configuration interface; The first modification module is configured to modify the merged map name of the second map set based on the map set configuration interface; The merging module is also configured to merge second sets with the same merging set name according to the merging set name in the second configuration information of the second set, to obtain a third set.

14. The apparatus according to claim 8, characterized in that, The device further includes: The second acquisition module is configured to acquire attribute information of a first image set from at least one first image set obtained by merging the images to be merged; The display module is also configured to display the attribute information of the first atlas in the atlas configuration interface; The second modification module is configured to modify the attribute information of the first atlas based on the atlas configuration interface, and configure the modified attribute information into the first atlas.

15. A terminal, characterized in that, The terminal includes a processor and a memory, the memory storing at least one piece of program code, which is loaded and executed by the processor to implement the image processing method as described in any one of claims 1-7.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one piece of program code, which is executed by a processor in a terminal to implement the image processing method as described in any one of claims 1-7.

17. A computer program product, characterized in that, The computer program product includes one or more computer programs, which, when executed by a processor, are used to implement the image processing method as described in any one of claims 1-7.