Digital zoom method, device and electronic equipment

By determining a unique interpolation strategy for each image area for pixel interpolation and splicing, the problem of image distortion in existing digital zoom methods is solved and a high-quality digital zoom effect is achieved.

CN111968037BActive Publication Date: 2024-09-24VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010889919.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-28
Publication Date
2024-09-24
Estimated Expiration
2040-08-28

AI Technical Summary

Technical Problem

In existing digital zoom methods, the use of the same interpolation algorithm results in enhanced image graininess and reduced sharpness, resulting in image distortion.

Method used

By acquiring images of multiple image areas, the interpolation strategy corresponding to each image is determined, and pixel interpolation and splicing are performed according to different interpolation strategies to generate the final digital zoom image.

Benefits of technology

It avoids the enhancement of image graininess and the reduction of sharpness, ensures that the image after digital zoom is not distorted, and improves the display effect of the image.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111968037B
    Figure CN111968037B
Patent Text Reader

Abstract

The present application discloses a digital zoom method, device and electronic device, belonging to the field of communication technology. The method can solve the problem of image distortion after digital zoom, and includes: obtaining N first images, the N first images are images of N image areas in the second image, and N is an integer greater than 1; determining an interpolation strategy corresponding to each of the N first images; performing pixel interpolation on a first image according to the interpolation strategy corresponding to a first image to obtain a third image corresponding to the first image; splicing N third images to obtain a fourth image. The present application is applicable to the scene of digital zooming of images.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a digital zoom method, device and electronic equipment. Background Art

[0002] At present, an image can be processed by digital zoom. For example, when an image (hereinafter referred to as image 1) is processed by digital zoom (for example, image 1 is enlarged), the nearest pixel interpolation algorithm can be used to perform pixel interpolation on image 1 to enlarge image 1. Specifically, for each insertion point in image 1, the pixel point closest to the insertion point in image 1 can be determined first, and then the pixel value of the pixel point is used as the pixel value of the insertion point.

[0003] However, in the above method, since the same interpolation algorithm (such as the nearest pixel interpolation algorithm) is used to perform pixel interpolation on each insertion point in image 1, after the image is digitally zoomed, the pixel value of each insertion point in the image is the same as the pixel value of the pixel point closest to the insertion point, which makes the image after digital zoom more granular and less sharp, thereby causing the image after digital zoom to be distorted. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a digital zoom method that can solve the problem of image distortion after digital zoom.

[0005] In order to solve the above technical problems, this application is implemented as follows:

[0006] In a first aspect, an embodiment of the present application provides a digital zoom method, which includes: acquiring N first images; and determining an interpolation strategy corresponding to each of the N first images; and performing pixel interpolation on the one first image according to the interpolation strategy corresponding to the one first image to obtain a third image corresponding to the one first image; and splicing the N third images to obtain a fourth image; wherein the N first images are images of N image areas in the second image, and N is an integer greater than 1.

[0007] In a second aspect, an embodiment of the present application provides a digital zoom device, which may include an acquisition module, a determination module, an interpolation module, and a stitching module. The acquisition module is used to acquire N first images, where the N first images are images of N image areas in a second image, and N is an integer greater than 1; the determination module is used to determine an interpolation strategy corresponding to each of the N first images acquired by the acquisition module; the interpolation module is used to perform pixel interpolation on a first image according to the interpolation strategy corresponding to a first image determined by the determination module for each of the first images, to obtain a third image corresponding to the first image; and the stitching module is used to stitch the N third images interpolated by the interpolation module to obtain a fourth image.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and the program or instruction, when executed by the processor, implements the steps of the method of the first aspect.

[0009] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method of the first aspect are implemented.

[0010] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method of the first aspect.

[0011] In an embodiment of the present application, the digital zoom device can obtain N first images, which can be images of N image areas in the second image, and N can be an integer greater than 1; and determine the interpolation strategy corresponding to each of the N first images; and perform pixel interpolation on a first image according to the interpolation strategy corresponding to a first image to obtain a third image corresponding to the first image; and splice N third images to obtain a fourth image. Through this scheme: since the digital zoom device can perform pixel interpolation on each first image according to the interpolation strategy corresponding to each first image in the N first images, it can avoid the image obtained by pixel interpolation of each first image (for example, the third image corresponding to each first image) from being enhanced in graininess and reduced in sharpness; and the N first images are images of N image areas in the second image (i.e., the image to be digitally zoomed), the digital zoom method provided in the embodiment of the present application can avoid the image obtained by pixel interpolation of N image areas in the second image from being enhanced in graininess and reduced in sharpness, thereby ensuring that the second image after digital zoom processing is not distorted. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 A schematic diagram of a digital zoom method provided in an embodiment of the present application;

[0013] Figure 2 is a schematic diagram of a second image, N first images and N third images;

[0014] Figure 3 is a schematic diagram of a second image;

[0015] Figure 4 is a schematic diagram of a digital zoom device in an embodiment of the present application;

[0016] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present application;

[0017] Figure 6 A hardware schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0019] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here. In addition, the "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally represents that the objects associated with each other are in an "or" relationship.

[0020] First, some nouns or terms involved in the claims and description of this application are explained below.

[0021] Pixel interpolation: insert at least one pixel in an image.

[0022] The digital zoom method provided in the embodiment of the present application is described in detail below through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0023] like Figure 1 As shown, an embodiment of the present application provides a digital zoom method, which may include the following steps 101 to 104.

[0024] Step 101: A digital zoom device acquires N first images.

[0025] The N first images may be images of N image areas in the second image, and N may be an integer greater than 1.

[0026] Optionally, in the embodiment of the present application, in the first mode, the digital zoom device may divide the second image by image area to obtain N first images. Alternatively, in the second mode, the digital zoom device may extract image feature information (e.g., color, pattern, texture feature information, etc.) of N image areas from the second image, and generate the above-mentioned N first images according to the extracted image feature information. The specific method can be determined according to actual use requirements and is not limited in the embodiment of the present application.

[0027] In the embodiment of the present application, the N first images mentioned above may be images of at least a partial image area in the second image.

[0028] For example, assuming that the second image includes 5 image areas, the N first images may be images of 1 image area, 2 image areas, 3 image areas, 4 image areas, or 5 image areas among the 5 image areas.

[0029] In the embodiment of the present application, the second image is an image to be digitally zoomed.

[0030] For example, the second image may be a preview image or a captured image captured by a camera of the electronic device.

[0031] Step 102: The digital zoom device determines an interpolation strategy corresponding to each of the N first images.

[0032] In the embodiment of the present application, after the digital zoom device determines the interpolation strategy corresponding to each of the N first images, N interpolation strategies can be obtained, and the N interpolation strategies correspond one-to-one to the N first images.

[0033] For example, assuming that the four (i.e., N=4) first images are image a1, image a2, image a3, and image a4, the digital zoom device can respectively determine the interpolation strategy b1 corresponding to image a1, the interpolation strategy b2 corresponding to image a2, the interpolation strategy b3 corresponding to image a3, and the interpolation strategy b4 corresponding to image a4. In this way, the digital zoom device can determine four interpolation strategies, and the four interpolation strategies correspond to the four first images one by one.

[0034] Optionally, in an embodiment of the present application, the above-mentioned N interpolation strategies include at least 2 different interpolation strategies.

[0035] For example, the interpolation strategy b1 in the above example 1 may be an interpolation strategy different from the interpolation strategy b2, the interpolation strategy b3, and the interpolation strategy b4, while the interpolation strategy b2, the interpolation strategy b3, and the interpolation strategy b4 may be the same or different.

[0036] The specific method for determining the interpolation strategy corresponding to a first image will be described in detail in the following embodiments, and will not be described again here to avoid repetition.

[0037] Step 103 : For each first image among the M first images, the digital zoom device performs pixel interpolation on the first image according to the interpolation strategy corresponding to the first image to obtain a third image corresponding to the first image.

[0038] It should be noted that in the embodiment of the present application, the digital zoom device can perform step 103 on each of the N first images, that is, the digital zoom device performs step 103 N times in total to obtain N third images corresponding to the N first images. In other words, after the digital zoom device performs step 103 on the N first images, N third images corresponding to the N first images can be obtained, and the N third images correspond to the N first images one by one.

[0039] It can be understood that in the embodiment of the present application, the N third images also correspond one-to-one to the N interpolation strategies.

[0040] For example, assuming that the N first images are image a1, image a2, image a3, and image a4, and the interpolation strategies corresponding to the four first images are interpolation strategy b1, interpolation strategy b2, interpolation strategy b3, and interpolation strategy b4, and the four interpolation strategies are different; then the digital zoom device can specifically perform pixel interpolation on image a1 according to interpolation strategy b1 to obtain image c1 corresponding to image a1; and perform pixel interpolation on image a2 according to interpolation strategy b2 to obtain image c2 corresponding to image a2; and perform pixel interpolation on image a3 according to interpolation strategy b3 to obtain image c3 corresponding to image a3; and perform pixel interpolation on image a4 according to interpolation strategy b4 to obtain image c4 corresponding to image a4. In this way, N third images corresponding to the N first images can be obtained.

[0041] It can be seen that in the embodiment of the present application, the digital zoom device can interpolate images of different image areas in the second image according to different interpolation strategies.

[0042] Step 104: The digital zoom device stitches N third images to obtain a fourth image.

[0043] In the embodiment of the present application, since one first image corresponds to one third image, N first images correspond to N third images. The digital zoom device splices the N third images to obtain a fourth image; that is, the digital zoom device splices the third image corresponding to each first image in the N first images.

[0044] Optionally, in the embodiment of the present application, if a third image corresponds to a first image, then the third image and the first image correspond to the same image area in the second image.

[0045] For example, Figure 2 As shown in (a) in FIG. 1 , the second image includes four image regions, namely image region 1, image region 2, image region 3 and image region 4; Figure 2 As shown in (b), the four (N=4) first images are image a1, image a2, image a3 and image a4, and image a corresponds to image area 1, image a2 corresponds to image area 2, image a3 corresponds to image area 3, and image a4 corresponds to image area 4; Figure 2 As shown in (c), the four third images are image c1, image c2, image c3 and image c4. If image c1 corresponds to image a1, image c2 corresponds to image a2, image c3 corresponds to image a3, and image c4 corresponds to image a4, then: image c1 corresponds to image area 1, image c2 corresponds to image area 2, image c3 corresponds to image area 3, and image c4 corresponds to image area 4.

[0046] In the digital zoom method provided in the embodiment of the present application, since the digital zoom device can perform pixel interpolation on each first image according to the interpolation strategy corresponding to each first image in the N first images, it is possible to avoid the image obtained by pixel interpolation of each first image (for example, the third image corresponding to each first image) from having an enhanced sense of grain and a reduced sharpness; and the N first images are images of N image areas in the second image (i.e., the image to be digitally zoomed), the digital zoom method provided in the embodiment of the present application can avoid the image obtained by pixel interpolation of the images of the N image areas in the second image from having an enhanced sense of grain and a reduced sharpness, thereby ensuring that the second image after digital zoom processing is not distorted.

[0047] Optionally, in an embodiment of the present application, in the first manner described above, the step 101 may be specifically implemented through the following steps 101a and 101b.

[0048] Step 101a: The digital zoom device divides the second image into M first images.

[0049] Optionally, in the embodiment of the present application, the digital zoom device may first identify an object in the second image, and then segment the second image into M first images according to the identified object. The object in the second image may include any identifiable object such as a person, an animal, a plant, the sky, a building, the ground, and an object.

[0050] For example, Figure 3 As shown, assuming that the digital zoom device recognizes that the second image 30 includes a tree 31, a mountain 32, a sun 33 and a sky 34, the digital zoom device can divide the second image into four first images according to the edge contour of each object, namely, an image of the tree 31, an image of the mountain 32, an image of the sun 33 and an image of the sky 34.

[0051] Optionally, in the embodiment of the present application, the digital zoom device may use a variety of technologies to identify the object in the second image.

[0052] For example, the digital zoom device can use ORC recognition technology, face recognition technology, general object and scene recognition technology, etc. Specifically, ORC technology can be used to recognize text, bank cards, license plates, and phone numbers. Face recognition technology can be used to recognize the position and size of eyes, lips, and noses; general object and scene recognition technology can be used to recognize common objects such as teacups and watches, as well as animals such as chickens, ducks, and horses, and scenes such as churches and snow-capped mountains.

[0053] Optionally, in an embodiment of the present application, after the digital zoom device divides the second image into M first images, it can first perform a preliminary roughness analysis on each of the M first images to divide the M first images into rough images and smooth images.

[0054] Among them, if an image is a rough image, it means that the texture features in the image may be relatively rich, for example, there are more colors and patterns in the image; if an image is a smooth image, it means that the texture features in the image may be relatively few, for example, there are fewer colors and patterns in the image.

[0055] Step 101b: The digital zoom device determines, according to the pixel display information of the M first images, the first images whose pixel display information meets a preset condition among the M first images as N first images.

[0056] Optionally, in the embodiment of the present application, the pixel display information of an image may be the brightness value of each pixel in the image and / or the RGB value of each pixel.

[0057] Optionally, in the embodiment of the present application, the digital zoom device can use at least two methods (ie, method 1 and method 2 described below) to determine the first images whose pixel display information meets a preset condition among the M first images as N first images.

[0058] Method 1: The digital zoom device determines the first images whose brightness values ​​meet a preset condition among the M first images as N first images according to the brightness values ​​of the pixels.

[0059] Optionally, in the embodiment of the present application, in method 1, the preset condition may be that the average brightness difference of the pixels in the first image (i.e., the average brightness difference) is greater than or equal to the first threshold; or that the mean square error of the brightness of the pixels in the first image (i.e., the mean square error of the brightness) is greater than or equal to the second threshold. That is, the digital zoom device determines the first images whose average brightness difference of the pixels in the M first images is greater than or equal to the first threshold as N first images; or determines the first images whose brightness variance of the pixels in the M first images is greater than or equal to the second threshold as N first images.

[0060] Specifically, for each of the M first images, the digital zoom device can calculate the average brightness difference of the pixels in the first image. If the average brightness difference is greater than or equal to a first threshold value (determined according to actual use requirements, not limited in the embodiments of the present application), it indicates that the first image is a rough image. If the average brightness difference is less than the first threshold value, it indicates that the first image is a smooth image. Alternatively, for each of the M first images, the digital zoom device can calculate the mean square error of the brightness of the pixels in the first image. If the mean square error of the brightness is greater than or equal to a second threshold value, it indicates that the first image is a rough image. If the mean square error of the brightness is less than the second threshold value, it indicates that the first image is a smooth image.

[0061] Method 2: The digital zoom device determines the first images whose RGB values ​​meet a preset condition among the M first images as N first images according to the RGB values ​​of the pixels.

[0062] Optionally, in the embodiment of the present application, in method 2, the preset condition may be that the RGB average difference of pixels in the first image (i.e., the average difference of RGB values) is greater than or equal to the third threshold; or that the RGB mean square difference of pixels in the first image (i.e., the mean square difference of RGB values) is greater than or equal to the fourth threshold. That is, the digital zoom device determines the first image whose RGB average difference of pixels in the M first images is greater than or equal to the third threshold; or the first image whose RGB mean square difference of pixels in the M first images is greater than or equal to the fourth threshold as the N first images.

[0063] Specifically, for each of the M first images, the digital zoom device may calculate the RGB average difference of pixels in the first image, and if the RGB average difference is greater than or equal to a third threshold, it indicates that the first image is a rough image, and if the RGB average difference is less than the third threshold, it indicates that the first image is a smooth image. Alternatively, for each of the M first images, the digital zoom device may calculate the RGB mean square difference of pixels in the first image, and if the RGB mean square difference is greater than or equal to a fourth threshold, it indicates that the first image is a rough image, and if the RGB mean square difference is less than the fourth threshold, it indicates that the first image is a smooth image.

[0064] Optionally, in an embodiment of the present application, the first threshold, the second threshold, the third threshold, and the fourth threshold may be the same or different, or may be partially the same and partially different. The specific threshold may be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0065] In the embodiment of the present application, since the digital zoom device can determine the first image whose pixel display information satisfies the preset condition among the M first images as the N first images, it can ensure that the N first images are all rough images (i.e., texture images). In this way, the digital zoom device does not need to sequentially determine the interpolation strategy with each smooth image (i.e., the other images among the M first images except the N first images), thereby shortening the time for determining the interpolation strategy and further increasing the speed of digital zoom.

[0066] The following is a detailed description of a method for the digital zoom device to determine an interpolation strategy corresponding to each of the N first images.

[0067] Optionally, in the embodiment of the present application, for each of the N first images, the digital zoom device can determine the interpolation strategy corresponding to the first image based on the texture feature information of the first image (method 1). Alternatively, the digital zoom device can determine the interpolation strategy corresponding to the first image based on the object category of the first image and the texture feature information of the first image (method 2). The specific method can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0068] The above-mentioned method 1 and method 2 are respectively described exemplarily below.

[0069] Method 1

[0070] Optionally, in an embodiment of the present application, in the above-mentioned method 1, the above-mentioned step 102 can be specifically implemented by the following step 102a.

[0071] Step 102a: For each first image in the N first images, the digital zoom device determines an interpolation strategy corresponding to the first image according to texture feature information of the first image.

[0072] In the embodiment of the present application, for each first image among the N first images, the digital zoom device may determine the interpolation strategy corresponding to the texture feature information of a first image in the interpolation strategy library as the interpolation strategy corresponding to the first image.

[0073] Example 1: If the texture characteristic information of a first image indicates a parallel, non-intersecting texture (for example, the veins of a bamboo leaf), the digital zoom device may determine the parallel texture interpolation strategy corresponding to the texture characteristic information in the interpolation database as the interpolation strategy of the first image, so as to ensure to the greatest extent that the texture characteristic information of the image obtained after pixel interpolation of the first image (for example, a third image corresponding to the first image) remains unchanged, thereby avoiding the increase in graininess and the decrease in sharpness of the first image after pixel interpolation, and further ensuring that the first image after digital zoom is not distorted.

[0074] Example 2: If the texture characteristic information of a first image indicates a feathery texture (such as the veins of a green radish), the digital zoom device may determine the feathery fission interpolation strategy corresponding to the texture characteristic information in the interpolation database as the interpolation strategy for the first image, so as to ensure to the greatest extent that the texture characteristic information of the image obtained after pixel interpolation of the first image (such as the third image corresponding to the first image) remains unchanged, thereby avoiding the increase in graininess and the decrease in sharpness of the first image after pixel interpolation, and further ensuring that the first image after digital zoom is not distorted.

[0075] Example 3: If the texture characteristic information of a first image indicates an irregular texture (such as the texture of a stone), the digital zoom device may determine the random fission interpolation strategy corresponding to the texture characteristic information in the interpolation database as the interpolation strategy of the first image, so as to achieve random fission of the colors of the surrounding insertion points that need to be interpolated using the surface pixels of the first image, thereby forming a more delicate texture to improve the clarity of the image after pixel interpolation.

[0076] Optionally, in the embodiment of the present application, for each interpolation strategy in the interpolation database, an interpolation strategy may be obtained by pre-training with sample images.

[0077] It can be understood that in the embodiment of the present application, each of the sample texture images includes texture feature information corresponding to the interpolation strategy. In other words, each interpolation strategy in the interpolation database is trained using texture images (ie, sample images) with certain features.

[0078] Optionally, in an embodiment of the present application, the above-mentioned interpolation strategy library can be pre-stored in an electronic device or in a server, which can be determined based on actual usage requirements and is not limited in the embodiment of the present application.

[0079] For other descriptions in step 102a, please refer to the relevant descriptions in the above step 102. In order to avoid repetition, they will not be repeated here.

[0080] In the embodiment of the present application, since the digital zoom device can determine the interpolation strategy corresponding to the image according to the texture feature information of the image, it can ensure that the determined interpolation strategy can meet the digital zoom requirements of the texture feature information of the image. In this way, it can avoid the increase of graininess and decrease of sharpness of the image after digital zoom processing, so as to ensure that the image after digital zoom is not distorted.

[0081] Optionally, in an embodiment of the present application, in the above-mentioned method 2, the above-mentioned step 102 can be specifically implemented by the following step 102b.

[0082] Step 102b: For each first image in the N first images, the digital zoom device determines an interpolation strategy corresponding to a first image according to an object category of the first image and texture feature information of the first image.

[0083] Optionally, in the embodiment of the present application, the object category of an image may specifically be the category to which the object in the image belongs.

[0084] For example, if the object in an image is a stone, then the object category of the image is the stone class.

[0085] For another example, if the object in an image is a tree, then the object category of the image is the tree class.

[0086] For another example, if the object in an image is bamboo, then the object category of the image is bamboo.

[0087] For another example, if the object in an image is a portrait, then the object category of the image is the portrait class.

[0088] For another example, if the object in an image is a green radish, then the object category of the image is a green potted plant.

[0089] It should be noted that, in the embodiments of the present application, the above object categories are only for illustration and do not limit the protection scope of the digital zoom method provided in the embodiments of the present application. In actual implementation, the object category of the image can also be any other possible object category, which can be determined according to actual use requirements and is not limited in the embodiments of the present application.

[0090] For other descriptions in step 102b, please refer to the relevant descriptions in the above steps 102 and 102a. In order to avoid repetition, they will not be repeated here.

[0091] In the embodiment of the present application, since the digital zoom device can determine the interpolation strategy corresponding to the image based on the object category of the image and the texture feature information of the image, it can ensure that the determined interpolation strategy not only conforms to the texture feature information of the image, but also conforms to the category to which the object in the image belongs, thereby further ensuring the display effect of the image obtained after pixel interpolation of the image.

[0092] Optionally, in the embodiment of the present application, when it is required to save a smooth image among the M first images in the image after digital zoom, the digital zoom device can directly use the nearest pixel interpolation algorithm or the bilinear interpolation algorithm to perform pixel interpolation on the smooth image among the M first images (i.e., the first image among the M first images except the N first images). In this way, since a unified interpolation strategy can be used to interpolate the smooth image, the speed of digital zoom processing can be improved.

[0093] Optionally, in an embodiment of the present application, the interpolation strategy library in the above-mentioned method 2 may include multiple sub-interpolation strategy libraries, each sub-interpolation strategy library corresponds to an object category, and each sub-interpolation strategy library includes at least one interpolation strategy. The above-mentioned step 102b can be specifically implemented by the following steps 102b1 and 102b2.

[0094] Step 102b1: The digital zoom device determines at least one interpolation strategy corresponding to an object category of a first image according to the object category of the first image.

[0095] Step 102b2: The digital zoom device determines the interpolation strategy corresponding to the texture feature information of a first image among at least one interpolation strategy as the interpolation strategy corresponding to the first image.

[0096] Exemplarily, it is assumed that the interpolation strategy library includes 100 sub-interpolation strategy libraries, each sub-interpolation strategy library corresponds to an object category, and the 100 sub-interpolation strategy libraries include a tree category; then, if the category to which the object in a first image belongs is a tree category, the digital zoom device can first determine at least one interpolation strategy corresponding to the tree category from the 100 sub-interpolation strategy libraries. Through this step, the interpolation strategies corresponding to the other 99 object categories other than the tree category in the interpolation database can be excluded. In other words, the digital zoom device can directly determine the interpolation strategy corresponding to the texture feature information of a first image in at least one interpolation strategy as the interpolation strategy corresponding to the first image. There is no need to compare the texture feature information of the first image with the texture feature information corresponding to the interpolation strategies in the other 99 sub-interpolation databases one by one, so that the time for comparing the texture feature information can be shortened, thereby increasing the speed of digital zoom.

[0097] For other descriptions of step 102b1 and step 102b2, please refer to the relevant description in the above step 102a. In order to avoid repetition, they will not be repeated here.

[0098] In the embodiment of the present application, since the digital zoom device selects at least one interpolation strategy corresponding to the object category of the image by object category, the amount of data for texture feature information comparison can be greatly reduced, thereby reducing the amount of calculation of texture feature information, and further shortening the time spent on texture feature information comparison. In this way, the speed of digital zoom can be improved.

[0099] Optionally, in an embodiment of the present application, after the digital zoom device obtains N third images, the following steps A and B can be performed on the N third images, and after performing steps A and B on the N third images, a fourth image can be obtained.

[0100] Step A: The digital zoom device determines a stitching strategy corresponding to the one third image and the other third image according to information of the one third image and information of the other third image.

[0101] Step B: The digital zoom device stitches the one third image and the other third image according to a stitching strategy corresponding to the one third image and the other third image.

[0102] The one third image and the other third image are images corresponding to adjacent image areas in the second image.

[0103] For example, Figure 2 (a) in FIG. 1 is a schematic diagram of a second image 20, in which image region 1 and image region 2 are adjacent to each other; if the third image corresponding to image region 1 is Figure 2The image c1 shown in (c) in the figure, the third image corresponding to the image area 2 is Figure 2 , then image c1 and image c2 are images corresponding to adjacent image regions in the second image. That is, the digital zoom device can determine a stitching strategy corresponding to image c1 and image c2 based on information about image c1 and image c2, and stitch image c1 and image c2 according to the stitching strategy. Thus, it can be seen that image c1 and image c2 can be images of two adjacent image regions in the stitched image (e.g., the fourth image).

[0104] Optionally, in the embodiment of the present application, the information of a third image may include at least one of display parameters of the edge area of ​​the third image and an object in the third image, wherein the display parameters include at least one of brightness value and color.

[0105] It should be noted that, in the embodiment of the present application, the edge region of a third image and the edge region of another third image may specifically be: a region where the first image and the other third image are in contact with each other.

[0106] For example, Figure 2 As shown, assuming that image c1 corresponds to image area 1 in the second image 20, image c2 corresponds to image area 2 in the second image 20, and the right area of ​​image area 1 is adjacent to the left area of ​​image area 2; then the right edge line of image c1 is adjacent to the left edge line of image c2, so that the edge area of ​​image c1 and the edge area of ​​image c2 are the right edge line of image c1 and the left edge line of image c2. In this way, the display parameters of the edge area of ​​image c1 can be specifically the display parameters at the right edge line of image c1, and the display parameters of the edge area of ​​image c2 can be specifically the display parameters at the left edge line of image c2.

[0107] Optionally, in an embodiment of the present application, taking the information of the third image as the display parameters of the edge area of ​​the third image as an example, assuming that the color of the edge area of ​​one third image is color 1 and the color of the edge area of ​​another third image is color 2, then the digital zoom device can determine the stitching strategy corresponding to the color 1 and the color 2 in the stitching database as the stitching strategy corresponding to the one third image and the other third image.

[0108] Optionally, in the embodiment of the present application, taking the information of the third image as an object in the third image as an example, assuming that the object in one third image is object 1 and the object in another third image is object 2, the digital zoom device can determine the stitching strategy corresponding to the object 1 and the object 2 in the stitching database as the stitching strategy corresponding to the one third image and the other third image. For the description of the display parameter as a brightness value, please refer to the related description of the display parameter as a color, and in order to avoid repetition, it will not be repeated here.

[0109] Optionally, in an embodiment of the present application, for each stitching strategy in the stitching database, a stitching strategy may be obtained by pre-training with sample images; it can be understood that, in an embodiment of the present application, each pair of images in the sample texture image includes display parameters and / or objects corresponding to the stitching strategy.

[0110] Optionally, in an embodiment of the present application, the above-mentioned splicing strategy library can be pre-stored in an electronic device or in a server, which can be determined according to actual usage requirements and is not limited in the embodiment of the present application.

[0111] For the convenience of description, one third image and another third image in step A and step B are referred to as an image pair below.

[0112] In the embodiment of the present application, it is assumed that the N third images include P image pairs, and P can be a positive integer; then the digital zoom device can determine a stitching strategy corresponding to each of the P image pairs, that is, the digital zoom device can determine P stitching strategies. Then, for each of the P image pairs, the digital zoom device can stitch the image pair according to the stitching strategy corresponding to the image pair. In this way, after stitching the P image pairs together, a fourth image can be obtained.

[0113] For example, assuming that the N third images are Figure 2 , then, the N third images include 4 image pairs, namely: image c1 and image c2, image c1 and image c3, image c2 and image c4, image c3 and image c4. Thus, the digital zoom device can respectively determine the stitching strategy d1 corresponding to image c1 and image c2, the stitching strategy d2 corresponding to image c1 and image c3, the stitching strategy d3 corresponding to image c2 and image c4, and the stitching strategy d4 corresponding to image c3 and image c4; that is, the digital zoom device can determine 4 (P=4) stitching strategies. Then, the digital zoom device can stitch the 4 third images according to the 4 stitching strategies to obtain the fourth image.

[0114] Specifically, in one embodiment, the digital zoom device can stitch image c1 and image c2 according to stitching strategy d1 to obtain stitching image f1; then stitch image c2 to image f1 according to stitching strategy d2 to obtain stitching image f2, and image c3 is specifically stitched with image c1 in image f1; then stitch image c4 to stitching image f2 according to stitching strategy d3, and image c4 is specifically stitched with image c2 in stitching image f2; finally, stitch image c3 in stitching image f2 and image c4 in stitching image f2 according to stitching strategy d4 to obtain stitching image f3. It can be seen that stitching image f3 is the fourth image.

[0115] In another way, the digital zoom device can stitch image c1 and image c2 according to stitching strategy d1 to obtain stitching image f1, and stitch image c3 and image c4 according to stitching strategy d3 to obtain stitching image f4; then, according to stitching strategy d2, stitch image c1 in stitching image f1 and image c3 in stitching image f4 to obtain stitching image f5; finally, according to stitching strategy d4, stitch image c2 in stitching image f5 and image c4 to obtain stitching image f6. It can be seen that stitching image f3 is the fourth image.

[0116] It should be noted that, in the embodiment of the present application, the above-mentioned one method and the other method are schematic illustrations of the way in which the digital zoom device stitches N third images according to P stitching strategies, and do not constitute any limitation on the digital zoom method provided in the embodiment of the present application.

[0117] In the embodiment of the present application, since the digital zoom device can determine the stitching strategy corresponding to the one third image and the other third image according to the information of the one third image and the information of the other third image, and according to the one third image and the other third image, it can ensure that the stitching line between the one third image and the other third image (which is a plurality of seam pixel points, and the values ​​of these seam pixel points are the best quality of these seam pixel points) can smoothly transition. In this way, it can be ensured that after the digital zoom device stitches N third images, each stitching line in the fourth image obtained has a smooth transition, so as to further ensure that the image after digital zoom is not distorted, and then the imaging effect of the image after digital zoom can be improved.

[0118] It should be noted that the digital zoom method provided in the embodiment of the present application can be executed by a digital zoom device or a control module in the digital zoom device for executing the digital zoom method. In the embodiment of the present application, the digital zoom device provided in the embodiment of the present application is described by taking the execution of the digital zoom method by a digital zoom device as an example.

[0119] like Figure 4As shown, the embodiment of the present application provides a digital zoom device 50, which may include an acquisition module 51, a determination module 52, an interpolation module 53 and a stitching module 54. The acquisition module 51 may be used to acquire N first images, where the N first images may be images of N image regions in a second image, and N may be an integer greater than 1; the determination module 52 may be used to determine an interpolation strategy corresponding to each of the N first images acquired by the acquisition module 51; the interpolation module 53 may be used to perform pixel interpolation on a first image according to the interpolation strategy corresponding to a first image determined by the determination module 52 for each first image, to obtain a third image corresponding to the first image; the stitching module 54 may be used to stitch the N third images interpolated by the interpolation module 53 to obtain a fourth image.

[0120] In the digital zoom device provided in the embodiment of the present application, since the digital zoom device can perform pixel interpolation on each first image according to the interpolation strategy corresponding to each first image in the N first images, it is possible to avoid the image obtained by pixel interpolation of each first image (for example, the third image corresponding to each first image) from having an enhanced sense of grain and a reduced sharpness; and the N first images are images of N image areas in the second image (i.e., the image to be digitally zoomed), the digital zoom method provided in the embodiment of the present application can avoid the image obtained by pixel interpolation of the images of the N image areas in the second image from having an enhanced sense of grain and a reduced sharpness, thereby ensuring that the second image after digital zoom processing is not distorted.

[0121] Optionally, in an embodiment of the present application, the determination module 52 can be specifically used to determine, for each first image among the N first images, an interpolation strategy corresponding to a first image according to an object category of the first image and texture feature information of the first image.

[0122] In the digital zoom device provided in the embodiment of the present application, since the digital zoom device can determine the interpolation strategy corresponding to the image based on the object category of the image and the texture feature information of the image, it can ensure that the determined interpolation strategy not only conforms to the texture feature information of the image, but also conforms to the category to which the object in the image belongs, thereby further ensuring the display effect of the image obtained after pixel interpolation of the image.

[0123] Optionally, in an embodiment of the present application, the determination module 52 can be specifically used to determine at least one interpolation strategy corresponding to an object category of a first image based on the object category of the first image; and among the at least one interpolation strategy, the interpolation strategy corresponding to the texture feature information of the first image is determined as the interpolation strategy corresponding to the first image.

[0124] In the digital zoom device provided in the embodiment of the present application, since the digital zoom device selects at least one interpolation strategy corresponding to the object category of the image through the object category, the amount of data for texture feature information comparison can be greatly reduced, thereby reducing the amount of calculation of texture feature information, and further shortening the time spent on texture feature information comparison. In this way, the speed of digital zoom can be improved.

[0125] Optionally, in an embodiment of the present application, the acquisition module 51 may include a segmentation submodule and a determination submodule; the segmentation submodule can be used to segment the second image into M first images; the determination submodule can be used to determine the first image whose texture feature information meets preset conditions among the M first images as N first images based on the texture feature information of the M first images segmented by the segmentation submodule.

[0126] In the digital zoom device provided in the embodiment of the present application, since the digital zoom device can determine the first image whose pixel display information satisfies the preset condition among the M first images as N first images, it can ensure that the N first images are all rough images (i.e., texture images). In this way, the digital zoom device does not need to sequentially determine the interpolation strategy with each smooth image (i.e., the other images among the M first images except the N first images), thereby shortening the time for determining the interpolation strategy and further increasing the speed of digital zoom.

[0127] Optionally, in an embodiment of the present application, the stitching module 54 is specifically used to obtain the fourth image after performing the following steps on the N third images: determining a stitching strategy corresponding to one third image and another third image based on information of one third image and information of another third image; and stitching one third image and another third image according to the stitching strategy; wherein, one third image and another third image are images corresponding to adjacent image areas in the second image.

[0128] In the digital zoom device provided in the embodiment of the present application, since the digital zoom device can determine the stitching strategy corresponding to the one third image and the other third image according to the information of the one third image and the information of the other third image, and according to the one third image and the other third image, it can ensure that the stitching line between the one third image and the other third image (which is a plurality of seam pixel points, and the values ​​of these seam pixel points are the best quality of these seam pixel points) can smoothly transition. In this way, it can be ensured that after the digital zoom device stitches N third images, each stitching line in the fourth image obtained has a smooth transition, so as to further ensure that the image after digital zoom is not distorted, and then the imaging effect of the image after digital zoom can be improved.

[0129] The digital zoom device in the embodiment of the present application can be an electronic device, or a component, integrated circuit, or chip in the electronic device. The electronic device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0130] The digital zoom device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0131] The digital zoom device provided in the embodiment of the present application can achieve Figures 1 to 3 The various processes of implementing the digital zoom method in the method embodiment will not be described again here to avoid repetition.

[0132] like Figure 5 As shown, an embodiment of the present application also provides an electronic device 200, including a processor 202, a memory 201, and a program or instruction stored in the memory 201 and executable on the processor 202. When the program or instruction is executed by the processor 202, each process of the above-mentioned music recognition method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0133] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0134] Figure 6 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0135] The electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010 and other components.

[0136] Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0137] Among them, the processor 1010 can be used to obtain N first images; and determine the interpolation strategy corresponding to each of the N first images; and for each first image, according to the interpolation strategy corresponding to a first image, perform pixel interpolation on a first image to obtain a third image corresponding to the first image; and be used to splice N third images to obtain a fourth image; wherein the N first images may be images of N image areas in the second image, and N may be an integer greater than 1.

[0138] In the electronic device provided in the embodiment of the present application, since the electronic device can perform pixel interpolation on each first image according to the interpolation strategy corresponding to each first image in the N first images, it is possible to avoid the image obtained by pixel interpolation of each first image (for example, the third image corresponding to each first image) from having an enhanced sense of grain and a reduced sharpness; and the N first images are images of N image areas in the second image (i.e., the image to be digitally zoomed), the digital zoom method provided in the embodiment of the present application can avoid the image obtained by pixel interpolation of the images of the N image areas in the second image from having an enhanced sense of grain and a reduced sharpness, thereby ensuring that the second image after digital zoom processing is not distorted.

[0139] Optionally, in an embodiment of the present application, the processor 1010 can be specifically used to determine, for each first image among the N first images, an interpolation strategy corresponding to a first image according to an object category of the first image and texture feature information of the first image.

[0140] In the electronic device provided in the embodiment of the present application, since the electronic device can determine the interpolation strategy corresponding to the image based on the object category of the image and the texture feature information of the image, it can ensure that the determined interpolation strategy not only conforms to the texture feature information of the image, but also conforms to the category to which the object in the image belongs, thereby further ensuring the display effect of the image obtained after pixel interpolation of the image.

[0141] Optionally, in an embodiment of the present application, the processor 1010 can be specifically used to determine at least one interpolation strategy corresponding to an object category of a first image based on the object category of the first image; and among the at least one interpolation strategy, the interpolation strategy corresponding to the texture feature information of the first image is determined as the interpolation strategy corresponding to the first image.

[0142] In the electronic device provided in the embodiment of the present application, since the electronic device selects at least one interpolation strategy corresponding to the object category of the image by object category, the amount of data for texture feature information comparison can be greatly reduced, thereby reducing the amount of calculation of texture feature information, and further shortening the time spent on texture feature information comparison. In this way, the speed of digital zoom can be improved.

[0143] Optionally, in an embodiment of the present application, the processor 1010 can be specifically used to divide the second image into M first images; and based on the texture feature information of the M first images, determine the first image whose texture feature information meets a preset condition among the M first images as N first images.

[0144] In the electronic device provided by the embodiment of the present application, since the electronic device can determine the first image whose pixel display information satisfies the preset condition among the M first images as N first images, it can ensure that the N first images are all rough images (i.e., texture images). In this way, the electronic device does not need to sequentially determine the interpolation strategy with each smooth image (i.e., the other images among the M first images except the N first images), thereby shortening the time for determining the interpolation strategy, and further increasing the speed of digital zoom.

[0145] Optionally, in an embodiment of the present application, the processor 1010 is specifically used to obtain the fourth image after performing the following steps on the N third images: determining a stitching strategy corresponding to one third image and another third image based on information of one third image and information of another third image; and stitching one third image and another third image according to the stitching strategy; wherein, one third image and another third image are images that are adjacent in position.

[0146] In the electronic device provided by the embodiment of the present application, since the electronic device can determine the stitching strategy corresponding to the one third image and the other third image based on the information of the one third image and the information of the other third image, and according to the one third image and the other third image, it can ensure that the stitching line between the one third image and the other third image (which is a plurality of seam pixel points, and the values ​​of these seam pixel points are the best quality of these seam pixel points) can smoothly transition. In this way, it can be ensured that after the electronic device stitches N third images, each stitching line in the fourth image obtained has a smooth transition, so as to further ensure that the image after digital zoom is not distorted, and then the imaging effect of the image after digital zoom can be improved.

[0147] It should be understood that in the embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 1010.

[0148] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned digital zoom method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0149] The processor is a processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0150] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned digital zoom method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0151] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0152] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0153] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0154] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A digital zoom method, It is characterized in that The method comprises: Acquire N first images, where the N first images are images of N image areas in the second image, and N is an integer greater than 1; Determining an interpolation strategy corresponding to each of the N first images; For each of the first images, according to an interpolation strategy corresponding to the first image, pixel interpolation is performed on the first image to obtain a third image corresponding to the first image; splicing N third images to obtain a fourth image; The determining an interpolation strategy corresponding to each of the N first images comprises: For each of the N first images, determining an interpolation strategy corresponding to the first image according to an object category of the first image and texture feature information of the first image; The acquiring of N first images comprises: dividing the second image into M first images; According to the pixel display information of the M first images, determining a first image whose pixel display information satisfies a preset condition among the M first images as the N first images; The preset condition includes at least one of the following: the average brightness difference of the pixels in the first image is greater than or equal to the first threshold, the mean square difference of the brightness of the pixels in the first image is greater than or equal to the second threshold, the average RGB difference of the pixels in the first image is greater than or equal to the third threshold, and the mean square difference of the RGB of the pixels in the first image is greater than or equal to the fourth threshold; The step of stitching N third images to obtain a fourth image includes: After performing the following steps on the N third images, the fourth image is obtained: Determining, according to information of one third image and information of another third image, a stitching strategy corresponding to the one third image and the another third image; splicing the one third image and the another third image according to the splicing strategy; The one third image and the another third image are images corresponding to adjacent image areas in the second image; The information of the third image includes at least one of the following: display parameters of the edge area of ​​the third image and objects in the third image.

2. The method according to claim 1, It is characterized in that The step of determining an interpolation strategy corresponding to a first image according to an object category of the first image and texture feature information of the first image comprises: According to the object category, determining at least one interpolation strategy corresponding to the object category; The interpolation strategy corresponding to the texture feature information among the at least one interpolation strategy is determined as the interpolation strategy corresponding to the one first image.

3. A digital zoom device, It is characterized in that The device comprises an acquisition module, a determination module, an interpolation module and a splicing module; The acquisition module is used to acquire N first images, where the N first images are images of N image areas in the second image, and N is an integer greater than 1; The determining module is used to determine an interpolation strategy corresponding to each of the N first images acquired by the acquiring module; The interpolation module is configured to perform pixel interpolation on each of the first images according to the interpolation strategy corresponding to the first image determined by the determination module, so as to obtain a third image corresponding to the first image; The splicing module is used to splice the N third images interpolated by the interpolation module to obtain a fourth image; The determination module is specifically configured to determine, for each of the N first images, an interpolation strategy corresponding to the first image according to an object category of the first image and texture feature information of the first image; The acquisition module includes a segmentation submodule and a determination submodule; The segmentation submodule is used to segment the second image into M first images; The determining submodule is configured to determine, according to the pixel display information of the M first images obtained by segmentation by the segmentation submodule, a first image whose pixel display information satisfies a preset condition among the M first images as the N first images; The preset condition includes at least one of the following: the average brightness difference of the pixels in the first image is greater than or equal to the first threshold, the mean square difference of the brightness of the pixels in the first image is greater than or equal to the second threshold, the average RGB difference of the pixels in the first image is greater than or equal to the third threshold, and the mean square difference of the RGB of the pixels in the first image is greater than or equal to the fourth threshold; The stitching module is specifically configured to obtain the fourth image after performing the following steps on the N third images: Determine a splicing strategy corresponding to the one third image and the another third image according to information of the one third image and information of the another third image; and splice the one third image and the another third image according to the splicing strategy; The one third image and the another third image are images adjacent in position; The information of the third image includes at least one of the following: display parameters of the edge area of ​​the third image and objects in the third image.

4. The device according to claim 3, It is characterized in that The determination module is specifically used to determine at least one interpolation strategy corresponding to the object category according to the object category; and determine the interpolation strategy corresponding to the texture feature information among the at least one interpolation strategy as the interpolation strategy corresponding to the first image.

5. An electronic device, It is characterized in that The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the digital zoom method as described in any one of claims 1 to 2.

6. A readable storage medium, It is characterized in that The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by the processor, the steps of the digital zoom method according to any one of claims 1 to 2 are implemented.