Image storage method, device and equipment and readable storage medium

By splicing and cutting multiple scanned images to form a pyramid format image, the problem of low image storage efficiency in the existing technology is solved, and efficient image storage and browsing are achieved.

CN120751065APending Publication Date: 2025-10-03CHONGQING XINGMAI INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510987794.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-17
Publication Date
2025-10-03

AI Technical Summary

Technical Problem

In the prior art, when a digital scanner scans a sample image, a large number of fragmented image files are generated, which reduces the access efficiency of the file system, increases the difficulty of data browsing, and causes a waste of storage resources.

Method used

By acquiring multiple original images, stitching them together in the scanning order to obtain a stitched image, which is then cut into images of minimum size. The original cut image and its reduced image are then stored in the corresponding layers of the pyramid to form a pyramid format image.

Benefits of technology

The complexity of image storage is reduced and storage efficiency is improved. Users can directly extract images from the pyramid according to their needs, which reduces repetitive operations and improves browsing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120751065A_ABST
    Figure CN120751065A_ABST
Patent Text Reader

Abstract

The invention provides an image storage method, device and equipment and a readable storage medium. The image storage method comprises the following steps: acquiring a plurality of original images to be processed; splicing the plurality of original images according to a scanning sequence to obtain a spliced image; cutting the spliced image into an image with the minimum size to obtain an original cut image after the spliced image is cut; and storing the original cut image and the reduced image corresponding to the original cut image in the corresponding layer of the pyramid to obtain a pyramid format image, thereby improving the image storage efficiency, reducing the image storage complexity, avoiding the storage of repeated image data, saving the image storage space, and enabling a user to obtain the image in the pyramid format according to the actual demand. According to the method, the image in the corresponding layer is extracted from the pyramid, so that the actual application requirement is met, the user is prevented from executing operations such as zooming-out on the extracted image again, and the working efficiency during actual application is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing technology and relates to an image storage method, and in particular to an image storage method, apparatus, device and readable storage medium. Background Art

[0002] In the current field of digital scanning technology, when scanning sample images, scanners usually record them one by one in the form of individual images, and these image data are stored in the same directory. For a single glass slide sample, this often involves the accumulation of thousands of images, which complicates file storage management. Long-term scanning operations of this type will inevitably generate a large number of fragmented image files, which not only reduces the access efficiency of the file system, but also increases the difficulty of data browsing. In addition, due to the overlapping areas between adjacent images, storage resources are wasted, that is, a large amount of redundant storage of duplicate data is caused. The method of storing small images separately has low overall browsing efficiency, and users need to check each field of view one by one. Therefore, how to reduce the complexity of image storage management and improve the storage efficiency and browsing efficiency of images has become a technical problem that needs to be solved urgently. Summary of the Invention

[0003] The present application provides an image storage method, apparatus, device and readable storage medium, which are used to solve the technical problem of low efficiency of image storage in the prior art, so as to improve the efficiency of image browsing.

[0004] In a first aspect, an embodiment of the present application provides an image storage method, the method comprising: obtaining multiple original images to be processed; stitching the multiple original images in a scanning order to obtain a stitched image; cutting the stitched image into images with a minimum size to obtain an original cut image after the stitched image is cut; storing the original cut image and the reduced image corresponding to the original cut image in corresponding layers of a pyramid to obtain a pyramid format image.

[0005] In an implementation of the first aspect, the stitching processing of the multiple original images in a scanning order to obtain a stitched image after the original images are stitched together includes: determining the overlapping positions of adjacent original images; and performing edge fusion processing on the adjacent original images at the overlapping positions to stitch the adjacent original images together to obtain the stitched image.

[0006] In an implementation of the first aspect, performing a cutting operation on the stitched image to obtain an original cut image after the stitched image is cut includes: performing the cutting operation on the first row of stitched images based on a preset cutting size to obtain a first group of cut images after the first row of stitched images is cut and the first row of cut remaining images; stitching the first row of cut remaining images above the second row of stitched images to obtain the second row of stitched images to be cut; performing the cutting operation on the second row of stitched images to be cut based on the preset cutting size to obtain a second group of cut images after the second row of stitched images is cut and the second row of cut remaining images; and so on until performing the cutting operation on the last row of stitched images to obtain a last group of cut images after the stitched images are cut, wherein the original cut image includes each group of cut images.

[0007] In an implementation of the first aspect, after obtaining the original cutting image, the method further includes: storing the original cutting image in the first layer of the pyramid; reducing the original cutting image and storing the reduced image in the upper layer of the pyramid.

[0008] In an implementation of the first aspect, when performing the cutting operation on the stitched image, the method further includes:

[0009] Based on a multi-task parallel processing manner, a cutting operation is performed on the spliced ​​image, and number information is assigned to each of the cut images in each group of the cut images.

[0010] In an implementation of the first aspect, after performing the cutting operation on the spliced ​​image, the method further includes: storing the cut image and the numbering information corresponding to the cut image in a to-be-processed stack; and the file generation thread storing the cut image and the numbering information corresponding to the cut image stored in the to-be-processed stack in the pyramid.

[0011] In an implementation of the first aspect, the cut image is stored in the first layer of the pyramid in a disordered manner.

[0012] In the image storage method provided in the embodiment of the present application, multiple original images to be processed are obtained; the multiple original images are spliced ​​in a scanning order to obtain a spliced ​​image; the spliced ​​image is cut into images with a minimum size to obtain an original cut image after the spliced ​​image is cut; the original cut image and the reduced image corresponding to the original cut image are stored in the corresponding layer of the pyramid to obtain a pyramid format image, which reduces the complexity of image storage and improves the efficiency of image storage. The user can extract the image in the corresponding layer in the pyramid according to actual needs to meet actual application needs, avoids the user from performing operations such as reduction on the extracted image again, and improves work efficiency in actual application.

[0013] In a second aspect, an embodiment of the present application provides an image storage device, characterized in that the device includes: an image acquisition module for acquiring multiple original images to be processed; an image stitching module for stitching the multiple original images in a scanning order to obtain a stitched image after the original images are stitched together; an image cutting module for cutting the stitched image into images with a minimum size to obtain an original cut image after the stitched image is cut; and an image storage module for storing the original cut image and the reduced image corresponding to the original cut image in the corresponding layer of the pyramid to obtain a pyramid format image.

[0014] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, the image storage method described in any one of the first aspects of the embodiment of the present application is implemented.

[0015] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor; the memory is used to store a computer program; the processor is used to execute the computer program and implement the image storage method as described in any one of the first aspects of the embodiments of the present application when executing the computer program. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1A Shown is a schematic diagram of an application scenario of image storage provided by an embodiment of the present application.

[0017] Figure 1B Shown is a flowchart of an image storage method provided by an embodiment of the present application.

[0018] Figure 2A Shown is a flowchart of an image segmentation method provided by an embodiment of the present application.

[0019] Figure 2B Shown is a schematic diagram of another image cutting method provided by an embodiment of the present application.

[0020] Figure 2C A schematic diagram showing a first group of cut images and a first row of cut remaining images provided in an embodiment of the present application is shown.

[0021] Figure 3A Shown is a flowchart of an image storage method provided by an embodiment of the present application.

[0022] Figure 3B A schematic diagram showing a pyramid format image provided by an embodiment of the present application is shown.

[0023] Figure 4 Shown is a schematic diagram of an image storage device according to an embodiment of the present application.

[0024] Figure 5 Shown is a structural schematic diagram of an electronic device in one embodiment of the present application.

[0025] Component number description

[0026] Steps S11 to S14

[0027] Steps S21-S22

[0028] Steps S31-S32

[0029] 21 The first set of cut images

[0030] 22 The first line cuts the remaining image

[0031] 40 Image storage device

[0032] 41 Image acquisition module

[0033] 42 Image stitching module

[0034] 43 Image Slicing Module

[0035] 44 Image Storage Module

[0036] 50 electronic devices

[0037] 51 processors

[0038] 52 Non-volatile storage media

[0039] 53 System Bus

[0040] 54 internal memory

[0041] 55 Network Interface DETAILED DESCRIPTION

[0042] The following describes the embodiments of the present application through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present application from the content disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments. The details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other unless they conflict.

[0043] It should be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present application. Therefore, the drawings only show components related to the present application and are not drawn according to the number, shape and size of components in actual implementation. In actual implementation, the shape, quantity and proportion of each component can be changed at will, and the component layout type may also be more complicated.

[0044] The existing technology lacks an efficient image storage method in the process of storing images.

[0045] To address at least the aforementioned issues, embodiments of the present application provide an image storage method. This method can obtain multiple original images to be processed; stitch the multiple original images together in a scanning order to obtain a stitched image; cut the stitched image into images of minimum size to obtain an original cut image after the stitched image is cut; and store the original cut image and its corresponding reduced image in corresponding layers of a pyramid to obtain a pyramid-format image. This method can address the technical problem of the lack of efficient image storage in the prior art.

[0046] Figure 1A Shown is a schematic diagram of an application scenario of image storage provided by an embodiment of the present application. Figure 1A As shown, this application scenario includes an electronic device and a scanning device. The electronic device and the scanning device are communicatively connected. The scanning device is used to scan an original image and transmit the scanned original image to the electronic device. The electronic device then performs splicing, cutting, and reduction processing on the multiple original images. The cut original cut image and the reduced image are then stored in corresponding layers of a pyramid to obtain a pyramid format image.

[0047] The technical solutions in the embodiments of the present application will be described in detail below with reference to the accompanying drawings in the embodiments of the present application.

[0048] Figure 1B Shown is a flow chart of an image storage method provided by an embodiment of the present application. Figure 1B As shown, the image storage method provided in the embodiment of the present application includes the following steps S11 to S14.

[0049] S11, obtaining multiple original images to be processed.

[0050] Specifically, the original images may be scanned in sequence based on a scanning device to obtain a plurality of original images to be processed.

[0051] Exemplarily, scanning devices include: high-resolution scanners, microscope scanners, portable scanners, etc.

[0052] It should be noted that the scanning devices listed above are only for illustrative purposes. In actual applications, any suitable scanning device can be selected according to the specific application scenario, and this application does not impose any restrictions on this.

[0053] S12, performing stitching processing on the multiple original images in a scanning order to obtain a stitched image.

[0054] Specifically, before the original images are stitched together, they can be preprocessed to eliminate or reduce irrelevant noise and artifacts in the image and improve image quality. Preprocessing can remove unnecessary information in the original image (for example, marking the solid background area so that it can be skipped during subsequent processing), or reducing the size of the original image by downsampling (in the early stages), which can reduce the amount of data that needs to be processed in subsequent image stitching, edge fusion processing, and other steps, thereby speeding up the overall stitching speed.

[0055] Among them, image preprocessing operations include: image denoising, image correction, image enhancement, etc.

[0056] Specifically, according to the order in which the scanning device scans the images, the plurality of original images are stitched together in sequence to obtain a stitched image.

[0057] In some embodiments, the stitching of the plurality of original images in a scanning order to obtain a stitched image includes: determining overlapping positions of adjacent original images; and performing edge fusion processing on the adjacent original images at the overlapping positions to stitch the adjacent original images to obtain the stitched image.

[0058] Exemplarily, overlapping positions of adjacent original images are determined based on feature point matching, optical flow method or template matching technology.

[0059] Exemplarily, the edge fusion process includes at least one of the following steps: image blending, multi-resolution fusion, color correction, brightness contrast matching, texture synthesis, etc. Among them, image blending is to blend the pixel values ​​of the overlapping area by using weighted average or other blending algorithms to reduce the stitching line. Multi-resolution fusion can perform image fusion at different resolution levels to maintain image details and reduce distortion. Color correction can adjust the color of the overlapping area so that the stitched image is more consistent in color. Brightness contrast matching includes adjusting the brightness and contrast of the overlapping area to match the visual appearance of the adjacent images. Texture synthesis is to synthesize a new texture in the overlapping area to eliminate the stitching marks. Through the various steps in the above-mentioned edge fusion process, the edges of adjacent images can be fused at the overlapping positions of adjacent images to smoothly transition the image content at the stitching.

[0060] It should be noted that the above-mentioned techniques for determining the overlapping positions of adjacent original images are merely illustrative. In actual applications, any other appropriate techniques may be selected according to actual application requirements, and this application does not impose any limitation thereto.

[0061] S13 , cutting the stitched image into images with minimum size to obtain an original cut image after the stitched image is cut.

[0062] The minimum size may be 1024x1024, 512x512, etc. The minimum size may be preset.

[0063] It should be noted that the specific value of the minimum size can be reasonably set according to actual application requirements, and this application does not impose any restrictions on this.

[0064] S14 , storing the original cut image and the reduced image corresponding to the original cut image in corresponding layers of a pyramid to obtain a pyramid format image.

[0065] The reduced image is geometrically reduced based on the original cut image, and the position of the reduced image in the pyramid corresponds to the position of the original cut image.

[0066] Exemplarily, the proportional reduction includes dividing the length and width of the original cut image by 2 or dividing the length and width of the original cut image by 3 to obtain the reduced image.

[0067] It should be noted that, in the above-mentioned process of proportionally reducing the original cut image, dividing the length and width of the original cut image by 2 or 3 is only for illustrative purposes. In actual applications, the length and width of the original cut image can also be divided by any other suitable values ​​according to specific application requirements. This application does not impose any restrictions on this.

[0068] For example, if the original cut image is located at the bottom of the pyramid, and there are 16 original cut images at the bottom of the pyramid, the 16 original cut images are marked as T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, and T16 respectively. The original cut images T1, T2, T3, and T4, and the corresponding reduced images are T 1-4 , the reduced images corresponding to the original cut images T5, T6, T7, and T8 are T 5-8 , the reduced images corresponding to the original cut images T9, T10, T11, and T12 are T 9-12 , the reduced images corresponding to the original cut images T13, T14, T15, and T16 are T 13-16 Then reduce the image T 1-4 , reduce the image T 5-8 , reduce the image T 9-12 , reduce the image T 13-16 The second layer of the pyramid is located above and adjacent to the bottom layer of the pyramid. 1-4 The specific position of the second layer corresponds to the specific position of the original cut image T1, T2, T3, T4 in the bottom layer. 5-8 The specific position of the second layer corresponds to the specific position of the original cut image T5, T6, T7, T8 in the bottom layer. 9-12 The specific position of the second layer corresponds to the specific position of the original cut image T9, T10, T11, T12 in the bottom layer. 13-16 The specific positions on the second layer correspond vertically to the specific positions of the original cut images T13, T14, T15, and T16 on the bottom layer.

[0069] In the image storage method provided in the embodiment of the present application, multiple original images to be processed are obtained; the multiple original images are spliced ​​in a scanning order to obtain a spliced ​​image, thereby reducing the overlap between adjacent images and reducing the memory space when storing images; the spliced ​​image is cut into images with a minimum size to obtain an original cut image after the spliced ​​image is cut; the original cut image and the reduced image corresponding to the original cut image are stored in the corresponding layer of the pyramid to obtain a pyramid format image. The pyramid format image provides a multi-scale image representation and can easily switch between different images at different levels to meet different analysis needs from global overview to local details without having to process the original high-resolution image separately for each scale. This improves the efficiency of image storage and facilitates the management, storage, browsing and extraction of images of different sizes and resolutions. Users can directly extract images in different states in the corresponding layer of the pyramid according to actual application needs, greatly reducing the steps of processing the amount of data and improving the convenience of users in extracting images of different sizes and resolutions.

[0070] Figure 2A The flowchart of the image cutting method provided by one embodiment of the present application is shown. Figure 2A As shown, the image cutting method provided in the embodiment of the present application includes the following steps S21 to S22.

[0071] S21 , performing the cutting operation on the first row of the stitched images based on a preset cutting size to obtain a first group of cut images after the first row of the stitched images are cut and a first row of cut remaining images.

[0072] Among them, the preset cutting size can be reasonably set according to actual needs, and this application does not impose any restrictions on this.

[0073] In some embodiments, when performing the cutting operation on the stitched image, the method further includes: performing the cutting operation on the stitched image based on a multi-task parallel processing manner, and assigning number information to each of the cut images in each group of the cut images.

[0074] Exemplarily, multi-task parallel processing methods include data parallelism, thread parallelism, process parallelism, etc.

[0075] Specifically, based on a multi-task parallel processing method, the cutting operation can be performed on a row of stitched images at the same time to improve the image cutting efficiency, and unique numbering information is assigned to the cut images, and the images can be extracted subsequently based on the numbering information.

[0076] It should be noted that the multi-task parallel processing methods listed above are only for illustrative purposes. In actual applications, any other appropriate multi-task parallel processing methods can be selected according to actual application requirements, and this application does not impose any restrictions on this.

[0077] S22, stitching the remaining images of the first row of cutting onto the top of the stitched images of the second row to obtain the stitched images of the second row to be cut, performing the cutting operation on the stitched images of the second row to be cut based on the preset cutting size, obtaining a second group of cut images after the stitched images of the second row are cut and the remaining images of the second row are cut, and so on until the cutting operation is performed on the stitched images of the last row to obtain the last group of cut images after the stitched images are cut, wherein the original cut image includes each group of cut images.

[0078] For example, Figure 2B Shown is a schematic diagram of another image cutting method provided by an embodiment of the present application. Figure 2B As shown in , if there are four rows of stitched images, each row includes 8 original images. Based on the preset stitching size, after performing the cutting operation on the first row of stitched images, the first group of cut images after the stitching images in the first row are cut and the first row of cut remaining images are obtained. Please refer to Figure 2C , Figure 2C A schematic diagram of a first group of cut images and a first row of cut remaining images provided in an embodiment of the present application is shown, wherein the first group of cut images includes 10 cut images. Next, the first row of cut remaining images are spliced ​​above the second row of spliced ​​images, and the first row of cut remaining images are aligned with the second row of spliced ​​images to obtain the second row of spliced ​​images to be cut. Based on a preset splicing size, a cutting operation is performed on the second row of spliced ​​images to be cut, to obtain a second group of cut images and a second row of cut remaining images, wherein the second group of cut images includes 10 cut images. The second row of cut remaining images are spliced ​​above the third row of spliced ​​images, and the second row of cut remaining images are aligned with the third row of spliced ​​images to obtain a third row of spliced ​​images to be cut. Based on a preset splicing size, a cutting operation is performed on the third row of spliced ​​images to be cut, to obtain a third group of cut images and a third row of cut remaining images, wherein the third group of cut images includes 10 cut images. The third row of remaining cut images are spliced ​​above the fourth row of stitched images, and the third row of remaining cut images are aligned with the fourth row of stitched images to obtain a fourth row of stitched images to be cut. Based on a preset stitching size, a cutting operation is performed on the fourth row of stitched images to be cut to obtain a fourth group of cut images and a fourth row of remaining cut images, wherein the fourth group of cut images includes 10 cut images. The fourth row of remaining cut images can be temporarily stored in a computer system for splicing above the next stitched image.

[0079] The original cut image is obtained by combining the first set of cut images, the second set of cut images, the third set of cut images, and the fourth set of cut images, and each of the first set of cut images, the second set of cut images, the third set of cut images, and the fourth set of cut images is assigned a unique number.

[0080] In some embodiments, after performing the cutting operation on the spliced ​​image, the method further includes: storing the cut image and the numbering information corresponding to the cut image in a to-be-processed stack; and the file generation thread storing the cut image and the numbering information corresponding to the cut image stored in the to-be-processed stack in the pyramid.

[0081] For example, after the first group of cutting images is cut, the 10 cutting images in the first group of cutting images and the unique numbering information corresponding to each cutting image are stored in the to-be-processed stack in the electronic device. When the file generation thread in the electronic device detects that a cutting image or numbering information enters the to-be-processed stack, the cutting image and the numbering information corresponding to the cutting image are written into the bottom layer of the pyramid, and the cutting image and the numbering information corresponding to the cutting image are reduced and processed as the original input of the upper-level data.

[0082] The embodiment of the present application provides an image cutting method. Based on a preset cutting size, a cutting operation can be performed on each row in the spliced ​​image in sequence. During the process of performing the cutting operation on each row in the spliced ​​image, the remaining cut portion of each row can be spliced ​​to the top of the next row to cut the spliced ​​row of spliced ​​images again. This reduces the loss of image data during the splicing process and preserves the integrity of the image data to a greater extent. Even if the total height of the spliced ​​image is not an integer multiple of the preset cutting size, this "inter-row splicing" method can handle it well. As a result, the cutting operation does not have a strict integer multiple restriction on the total height of the input image, which increases the versatility of the method. At the same time, during the cutting process, the cutting operation can be performed on the spliced ​​image based on a multi-task parallel processing method, which reduces the time for cutting the image and greatly improves the efficiency of image cutting.

[0083] Figure 3A Shown is a flow chart of an image storage method provided by an embodiment of the present application. Figure 3A As shown, the image storage method provided in the embodiment of the present application includes the following steps S31 to S32.

[0084] S31: Store the original cut image in the first layer of the pyramid.

[0085] Specifically, the first level of the pyramid is level 0.

[0086] In some embodiments, the storage mode of the cut images in the first layer of the pyramid is disordered storage.

[0087] Specifically, the cut image and the numbering information corresponding to the cut image can be placed at any position in the first layer of the pyramid.

[0088] For example, Figure 3B A schematic diagram showing a pyramid format image provided by an embodiment of the present application is shown. Figure 3B It can be seen that the pyramid format image consists of 5 layers, from bottom to top: Level0, Level1, Level2, Level3, and Level4. The 8 cut images are stored in the first layer of the pyramid, Level0. Figure 3B The numbers on the right and the image blocks where each number is located represent a cut image, and the 8 cut images are stored in a disordered manner.

[0089] S32: performing a reduction process on the original cut image, and storing the reduced image in the upper layer of the pyramid.

[0090] Specifically, the original cutting image located at the first layer is reduced to obtain a first reduced image corresponding to the original cutting image, and the first reduced image is stored in the second layer of the pyramid; the first reduced image located at the second layer is scaled to obtain a second reduced image corresponding to the first reduced image, and the second reduced image is stored in the third layer of the pyramid, and so on, until the size of the reduced image after the scaling process matches the preset cutting size, scaling is stopped, and the reduced image is stored in the top layer of the pyramid, so that the pyramid format image is obtained.

[0091] For example, Figure 3B Taking the eight cut images in the Level 0 layer in the image as an example, the length and width of the eight cut images are divided by 2 respectively, and the first reduced image after reduction is stored in the Level 1 layer. Then, the length and width of the first reduced image in the Level 1 layer are divided by 2 to obtain a second reduced image after reduction, and the second reduced image is stored in the Level 2 layer. The length and width of the second reduced image in the Level 2 layer are divided by 2 to obtain a third reduced image after reduction, and the third reduced image is stored in the Level 3 layer. The length and width of the third reduced image in the Level 3 layer are further divided by 2 to obtain a fourth reduced image after reduction, and the fourth reduced image is stored in the Level 4 layer. At this time, the size of the fourth reduced image is the same as the preset cut size, and the reduction process is stopped to obtain a pyramid format image.

[0092] In the image storage method provided in the embodiment of the present application, the original cut image is stored in the first layer of the pyramid; the original cut image is scaled down, and the scaled image is stored in the upper layer of the pyramid until the size of the scaled image after the scaling process matches the preset cut size, and then the scaling is stopped and the scaled image is stored in the top layer of the pyramid. Thus, the pyramid format image is obtained, which improves the efficiency of image storage, avoids storing duplicate image data, and saves image storage space. The user can intuitively browse the images in different layers of the pyramid according to actual needs and extract the images of the corresponding layers in the pyramid to meet actual application needs, avoids the user from performing operations such as scaling down on the extracted image again, and improves work efficiency in actual applications.

[0093] The protection scope of the image storage method of the embodiment of the present application is not limited to the execution order of the steps listed in this embodiment. All solutions implemented by adding, reducing, or replacing steps in the prior art based on the principles of the present application are included in the protection scope of the present application.

[0094] An embodiment of the present application also provides an image storage device, which can implement the image storage method of the present application. However, the implementation device of the image storage method of the present application includes but is not limited to the structure of the image storage device listed in this embodiment. All structural deformations and replacements of the existing technology made according to the principles of the present application are included in the scope of protection of the present application.

[0095] like Figure 4 As shown, in one embodiment, the image storage device 40 of the present application includes an image acquisition module 41 , an image stitching module 42 , an image cutting module 43 , and an image storage module 44 .

[0096] The image acquisition module 41 is used to acquire multiple original images to be processed.

[0097] The image stitching module 42 is configured to stitch the plurality of original images in a scanning order to obtain a stitched image obtained by stitching the original images.

[0098] The image cutting module 43 is used to cut the spliced ​​image into images with minimum size to obtain an original cut image after the spliced ​​image is cut.

[0099] The image storage module 44 is configured to store the original cut image and the reduced image corresponding to the original cut image in corresponding layers of a pyramid to obtain a pyramid format image.

[0100] The structures and principles of the image acquisition module 41 , the image stitching module 42 , the image cutting module 43 , and the image storage module 44 correspond to the steps in the above-mentioned image storage method, and therefore will not be described in detail here.

[0101] In the several embodiments provided in this application, it should be understood that the disclosed devices or methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules / units is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or units can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules or units, which can be electrical, mechanical or other forms.

[0102] The modules / units described as separate components may or may not be physically separate, and the components displayed as modules / units may or may not be physical modules, that is, they may be located in one place or distributed across multiple network elements. Some or all of the modules / units may be selected according to actual needs to achieve the purpose of the embodiments of the present application. For example, the functional modules / units in the various embodiments of the present application may be integrated into a processing module, or each module / unit may exist physically separately, or two or more modules / units may be integrated into a single module / unit.

[0103] Those skilled in the art should further appreciate that the units and steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0104] The embodiment of the present application also provides a computer-readable storage medium. Those skilled in the art will understand that all or part of the steps in the method for implementing the above embodiment can be completed by instructing the processor through a program, and the program can be stored in a computer-readable storage medium, and the storage medium is a non-transitory medium, such as a random access memory, a read-only memory, a flash memory, a hard disk, a solid-state hard disk, a magnetic tape, a floppy disk, an optical disc, and any combination thereof. The above storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or a data center that includes one or more available media. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a digital video disc (DVD)), or a semiconductor medium (for example, a solid-state disk (SSD)), etc.

[0105] An embodiment of the present application also provides an electronic device. Figure 5 The diagram shows the structure of an electronic device 50 in one embodiment of the present application. The image storage method provided in the embodiment of the present application can be applied to Figure 5 The electronic device 50 shown is, but not limited to, Figure 5 As shown, the electronic device 50 includes a processor 51 , a memory, a system bus 53 , and a network interface 55 , wherein the memory may include a non-volatile storage medium 52 and an internal memory 54 .

[0106] The non-volatile storage medium 52 can store an operating system and a computer program. The computer program includes program instructions, which, when executed, can enable the processor to execute any one of the image storage methods provided in the embodiments of the present application.

[0107] The processor is used to provide computing and control capabilities and support the operation of the entire computer equipment.

[0108] The internal memory 54 provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor, the processor can execute any one of the image storage methods provided in the embodiments of the present application.

[0109] The network interface 55 is used for network communication, such as sending assigned tasks, etc. It will be understood by those skilled in the art that Figure 5 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0110] It should be understood that the processor 51 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0111] The electronic device 50 in the embodiment of the present application may include terminal devices such as tablet computers, laptop computers, mobile phones, supercomputers, smart wearable devices, etc., and can also be applied to databases, servers, and service response systems based on terminal artificial intelligence. The embodiment of the present application does not impose any restrictions on the specific type of electronic device.

[0112] For example, the electronic device can be a station (STAION, ST) in a WLAN, a cellular phone, a cordless phone, a Session Initiation Protocol (SIP) phone, a Wireless Local Loop (WLL) station, a handheld device with wireless communication capabilities, a computing device or other processing device connected to a wireless modem, a computer, a laptop computer, a handheld communication device, a handheld computing device, and / or other devices for communicating on a wireless system and next-generation communication systems, such as mobile terminals in a 5G network, a mobile terminal in a future-evolved Public Land Mobile Network (PLMN), or a mobile terminal in a future-evolved Non-terrestrial Network (NTN).

[0113] As an example and not a limitation, when the electronic device is a wearable device, the wearable device can also be a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as gloves and watches equipped with near-field communication modules. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. It is attached to the user and performs payment, authentication and other operations through a pre-bound electronic card. Wearable devices are not just hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various types of smart watches and smart bracelets with display screens.

[0114] The descriptions of the processes or structures corresponding to the above figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.

[0115] The above embodiments are merely illustrative of the principles and effects of this application and are not intended to limit this application. Anyone skilled in the art may modify or alter the above embodiments without departing from the spirit and scope of this application. Therefore, all equivalent modifications or alterations made by one of ordinary skill in the art without departing from the spirit and technical concepts disclosed in this application shall be covered by the claims of this application.

Claims

1. An image storage method, characterized in that: The method comprises: Obtain multiple original images to be processed; splicing the plurality of original images in a scanning order to obtain a spliced ​​image; Cutting the stitched image into images with minimum size to obtain an original cut image after the stitched image is cut; The original cut image and the reduced image corresponding to the original cut image are stored in corresponding layers of a pyramid to obtain a pyramid format image.

2. The image storage method according to claim 1, wherein: The step of performing stitching processing on the plurality of original images in a scanning order to obtain a stitched image after stitching the original images comprises: Determining overlapping positions of adjacent original images; At the overlapping position, edge fusion processing is performed on the adjacent original images to achieve splicing of the adjacent original images to obtain the spliced ​​image.

3. The image storage method according to claim 1, wherein: The performing a cutting operation on the stitched image to obtain an original cut image after the stitched image is cut includes: Based on a preset cutting size, performing the cutting operation on the first row of the stitched images to obtain a first group of cut images after the first row of the stitched images are cut and a first row of cut remaining images; The remaining images of the first row of cutting are spliced ​​above the second row of spliced ​​images to obtain the second row of spliced ​​images to be cut; based on the preset cutting size, the cutting operation is performed on the second row of spliced ​​images to be cut to obtain a second group of cut images after the second row of spliced ​​images are cut and the remaining images of the second row are cut; and so on until the cutting operation is performed on the last row of spliced ​​images to obtain the last group of cut images after the spliced ​​images are cut, wherein the original cut image includes each group of cut images.

4. The image storage method according to claim 3, wherein: After obtaining the original cutting image, the method further includes: Storing the original cut image in the first layer of the pyramid; The original cut image is reduced, and the reduced image is stored in the upper layer of the pyramid.

5. The image storage method according to claim 3, wherein: When performing the cutting operation on the stitched image, the method further includes: Based on a multi-task parallel processing manner, a cutting operation is performed on the spliced ​​image, and number information is assigned to each of the cut images in each group of the cut images.

6. The image storage method according to claim 5, characterized in that: After performing the cutting operation on the spliced ​​image, the method further includes: storing the cut image and the number information corresponding to the cut image in a to-be-processed stack; The file generation thread stores the cut image stored in the to-be-processed stack and the numbering information corresponding to the cut image in the pyramid.

7. The image storage method according to claim 6, characterized in that: The storage mode of the cut images in the first layer of the pyramid is disordered storage.

8. An image storage device, characterized in that: The device comprises: An image acquisition module, used to acquire multiple original images to be processed; An image stitching module is used to stitch the multiple original images in a scanning order to obtain a stitched image after stitching the original images; An image cutting module, configured to cut the spliced ​​image into images of minimum size to obtain an original cut image after the spliced ​​image is cut; The image storage module is used to store the original cut image and the reduced image corresponding to the original cut image in corresponding layers of the pyramid to obtain a pyramid format image.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the image storage method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: The electronic device comprises: a memory storing a computer program; A processor is communicatively connected to the memory, and executes the image storage method according to any one of claims 1 to 7 when calling the computer program.