Image processing method and device

By acquiring multiple images and processing them according to their shooting perspectives, the problem of single image viewing angle is solved, the visual effect and display method of images are improved, and the user's needs for enriching image content is met.

CN119031248APending Publication Date: 2024-11-26NANJING VIVO SOFTWARE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411236206.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-04
Publication Date
2024-11-26

AI Technical Summary

Technical Problem

The prior art is difficult to generate a panoramic image that displays more details and scene elements, resulting in a single image viewing angle and cannot meet the high requirements of users for image effects.

Method used

By acquiring multiple images that meet the preset conditions, image processing is performed according to the shooting viewing angle of each image, a two-dimensional flat panoramic image or a three-dimensional three-dimensional panoramic image is generated, and multiple perspectives of the same shooting scene are displayed.

Benefits of technology

It effectively avoids the problem of single image viewing angle, improves the flexibility of the visual effects and display methods of the image, and meets the users' needs for enriching image content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119031248A_ABST
    Figure CN119031248A_ABST
Patent Text Reader

Abstract

The invention discloses an image processing method and device, and belongs to the technical field of electronics. The method comprises the steps that the electronic equipment obtains M first images, the M first images comprise images meeting preset conditions in the electronic equipment, one first image corresponds to one shooting view angle, and M is an integer larger than 1; according to the shooting visual angle corresponding to each first image, image processing is carried out on the M first images, second images are generated and output, and the second images comprise at least one of a two-dimensional plane panoramic image and a three-dimensional panoramic image; wherein the preset condition comprises that shooting is carried out at the target time or the target time period, and the distance between the shooting place and the position where the user is located is smaller than the first distance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of electronic technology, and specifically relates to an image processing method and device. Background Art

[0002] With the rapid development of electronic technology, the shooting functions of electronic devices are becoming increasingly diverse, and at the same time, users' requirements for image effects are becoming higher and higher.

[0003] In the related art, when capturing images, due to the limited field of view of the capturing device, the content of the captured images is relatively simple, which cannot meet the needs of users. Therefore, how to obtain images with richer content is a problem to be solved. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide an image processing method and device that can generate a panoramic image that shows more details and scene elements, avoids the problem of a single viewing angle of the image, and improves the visual effect of the image.

[0005] In a first aspect, an embodiment of the present application provides an image processing method, the method comprising: an electronic device acquires M first images, the M first images including images in the electronic device that meet preset conditions, one first image corresponds to a shooting angle, and M is an integer greater than 1; according to the shooting angle corresponding to each first image, the M first images are subjected to image processing to generate and output a second image, the second image comprising at least one of the following: a two-dimensional planar panoramic image, a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: being shot within a target time range and the distance between the shooting location and the user being less than a first distance.

[0006] In a second aspect, an embodiment of the present application provides an image processing device, which includes: an acquisition module and a processing module, wherein: the above-mentioned acquisition module is used to acquire M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to a shooting angle, and M is an integer greater than 1; the above-mentioned processing module is used to perform image processing on the M first images according to the shooting angle corresponding to each first image, generate and output a second image, and the second image includes at least one of the following: a two-dimensional plane panoramic image, a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: photographed at a target time or a target time period, and the distance between the shooting location and the user is less than the first distance.

[0007] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0008] 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 described in the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0010] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0011] In an embodiment of the present application, an electronic device acquires M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to one shooting angle, and M is an integer greater than 1; according to the shooting angle of each first image, the M first images are image processed to generate and output a second image, the second image includes at least one of the following: a two-dimensional plane panoramic image, a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: taken at a target time or a target time period, and the distance between the shooting location and the user is less than a first distance. In this solution, by acquiring M first images, image processing is performed according to the shooting angle of the first image, and the second image is generated and output, so that images of the same shooting scene at various shooting angles can be acquired, and a two-dimensional plane panoramic image or a three-dimensional stereoscopic panoramic image is generated according to the images at various shooting angles, so that a panoramic image showing more details and scene elements can be generated, avoiding the problem of a single perspective of the image, and improving the visual effect of the image. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 is one of the flow charts of the image processing method provided by some embodiments of the present application;

[0013] Figure 2 This is the second flowchart of the image processing method provided by some embodiments of the present application;

[0014] Figure 3 This is the third flowchart of the image processing method provided by some embodiments of the present application;

[0015] Figure 4 This is the fourth flowchart of the image processing method provided by some embodiments of the present application;

[0016] Figure 5 This is the fifth flowchart of the image processing method provided by some embodiments of the present application;

[0017] Figure 6 It is one of the display interface schematic diagrams of the image processing method provided in some embodiments of the present application;

[0018] Figure 7 This is the second display interface schematic diagram of the image processing method provided in some embodiments of the present application;

[0019] Figure 8 This is the sixth flowchart of the image processing method provided by some embodiments of the present application;

[0020] Fig. 9 This is a third schematic diagram of a display interface of an image processing method provided in some embodiments of the present application;

[0021] Fig.10 This is a fourth schematic diagram of a display interface of an image processing method provided in some embodiments of the present application;

[0022] Fig.11 This is a fifth display interface schematic diagram of the image processing method provided in some embodiments of the present application;

[0023] Fig.12 This is the sixth display interface schematic diagram of the image processing method provided in some embodiments of the present application;

[0024] Fig.13 This is the seventh display interface schematic diagram of the image processing method provided in some embodiments of the present application;

[0025] Fig.14 This is an eighth schematic diagram of a display interface of an image processing method provided in some embodiments of the present application;

[0026] Fig.15 This is the seventh flowchart of the image processing method provided by some embodiments of the present application;

[0027] Fig.16 This is the eighth flowchart of the image processing method provided by some embodiments of the present application;

[0028] Fig.17 is a schematic diagram of the structure of an image processing device provided by some embodiments of the present application;

[0029] Fig.18 is a schematic diagram of the structure of an electronic device provided by some embodiments of the present application;

[0030] Fig.19 It is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0032] 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, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0033] The terms "at least one (item)", "at least one of" and the like in the specification and claims of the present application refer to any one, any two or a combination of more than two of the objects included therein. For example, at least one (item) of a, b, and c can be represented by: "a", "b", "c", "a and b", "a and c", "b and c" and "a, b and c", where a, b, and c can be single or multiple. Similarly, "at least two (items)" refers to two or more, and its meaning is similar to that of "at least one (item)".

[0034] The terms of the embodiments of the present application are explained below.

[0035] Generative AI (Artificial Intelligence Generated Content, AIGC) refers to the technology based on artificial intelligence technical methods such as generative adversarial networks and large pre-trained models, which generates relevant content with appropriate generalization capabilities through learning and identifying existing data. The core idea of ​​AIGC technology is to use artificial intelligence algorithms to generate content with certain creativity and quality. Through training models and learning from large amounts of data, AIGC can generate relevant content based on input conditions or guidance.

[0036] With the rapid development of virtual reality technology, many beautiful photos can be selected from the wallpapers of existing electronic devices. If you want to keep the wallpaper of the electronic device consistent with the virtual wearable device, the current common method is to use artificial intelligence (AI) technology to expand the photos of the electronic device to form available wallpapers to set VR devices. However, this method of setting VR wallpapers has the problem of inconsistency with the wallpaper of the electronic device, and it is necessary to reset the VR wallpaper, which is cumbersome and affects the user experience.

[0037] The image processing method provided in the embodiment of the present application can be applied to the scenario of setting desktop wallpaper.

[0038] In the related art, when a user wants to set an image of a certain building as a desktop wallpaper, the multiple images taken of the building may be images taken at specific angles of the building, and cannot fully display the overall picture of the building. Therefore, the user can only select one image from the multiple images to set as wallpaper the image whose content displays the entire building to a greater extent, so that the wallpaper after setting cannot meet the needs of the user, affecting the user experience. The image processing method provided by the present application, when a user wants to set an image of a certain building taken as a desktop wallpaper, the electronic device can obtain multiple images taken at various shooting angles of the building, and obtain the positional relationship between the shooting angles of each image, synthesize the images taken at various shooting angles into a two-dimensional plane panoramic image, and set the two-dimensional plane panoramic image as the desktop wallpaper, thereby displaying a wide-angle panoramic image with richer image content and a wider viewing angle, thereby improving the display effect.

[0039] The image processing method provided in the embodiment of the present application can be applied to the scenario where a VR device displays images.

[0040] When displaying images in VR devices, it is often faced with the problem that only a small range of images can be obtained due to the limitations of shooting angles and shooting scenes, which then leads to poor image display effects in VR devices, making it difficult to provide a smooth and realistic virtual reality experience. The image processing method provided in the present application can obtain images from various shooting angles of the same shooting scene when displaying images in a VR device, and synthesize them into a three-dimensional stereoscopic panoramic image through image recognition, matching and three-dimensional reconstruction technology, thereby retaining the rich details of the shooting scene, allowing users to intuitively view the full range of images of the shooting scene in the VR device, improving the image display effect and the user's immersive experience.

[0041] It should be noted that the image processing method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, and vehicle-mounted electronic devices. In some embodiments of the present application, the image processing method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the image processing method as an example.

[0042] The image processing method provided in the embodiment of the present application is described in detail below through specific embodiments and their application scenarios in conjunction with the accompanying drawings.

[0043] An image processing method provided in an embodiment of the present application is as follows: Figure 1 As shown, the image processing method includes the following steps 301 to 302:

[0044] Step 301: The electronic device obtains M first images.

[0045] In some embodiments of the present application, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to one shooting angle, and M is an integer greater than 1.

[0046] In some embodiments of the present application, the above-mentioned preset conditions include that the photo is taken at a target time or a target time period, and the distance between the photo taking location and the user is less than the first distance.

[0047] In some embodiments of the present application, the target time may be a user-defined time or a system default time, and the target time period may be a user-defined time period or a system default time period.

[0048] Exemplarily, the target time may be a specific time point or date. Further, the time point or date may be accurate to year, month, day, hour, minute or second, and the specific accuracy depends on actual needs, which is not limited in the embodiments of the present application. For example, the target time may be a date, such as "August 29", or the target time may be a time point, such as "8:00 a.m. on August 29".

[0049] Exemplarily, the above-mentioned target time period can be the time range from the start time point to the end time point. This time range can span a few minutes, hours, days, weeks or longer, and the specific time range depends on actual needs, which is not limited in the embodiments of the present application. For example, the target time period can be a time period across days, such as "the period between August 28 and August 29", or the target time period can be a time period within a day, such as "the period between 8 am and 6 pm".

[0050] In some embodiments of the present application, the user's location may be the user's current location.

[0051] In some embodiments of the present application, the first distance may be user-defined or system-preset.

[0052] Exemplarily, the first distance may be 1.5 km, 1 km, or 500 m.

[0053] It should be noted that the first distance can be set according to actual needs, and the embodiment of the present application does not limit this.

[0054] In some embodiments of the present application, the M first images may be images captured by a camera of an electronic device, or images downloaded from a network.

[0055] In some embodiments of the present application, the above-mentioned shooting perspectives include a horizontal perspective, a downward perspective, an upward perspective, a side perspective, a front perspective, a rear perspective, an oblique perspective and a shooting direction, etc.

[0056] In some embodiments of the present application, a first image is an image corresponding to a shooting angle of view of the target shooting scene, that is, a first image is an image under a shooting angle of view of the target shooting scene.

[0057] In some embodiments of the present application, the M first images correspond to at least two shooting angles of view, and different first images correspond to the same or different shooting angles of view.

[0058] It should be noted that the shooting perspective is used to define and determine the relative position relationship between the camera and the subject. By adjusting the shooting perspective, different visual effects and emotional atmospheres can be created. The shooting perspective can also be called the shooting angle.

[0059] In some embodiments of the present application, the electronic device may obtain the M first images from a local photo album, or from a first database, or from a server.

[0060] It should be noted that the first database may be an internal database of the electronic device.

[0061] In some embodiments of the present application, the first database may be a mySql database.

[0062] In some embodiments of the present application, the first database includes at least one image, and shooting time information and shooting location information of each image. Further, the shooting location information may be geographic longitude and latitude information.

[0063] Exemplarily, the electronic device can obtain the shooting time and shooting location of at least one image in the photo album, and then determine from at least one image one or more images whose shooting time is the target time or target time period and whose shooting location is less than the first distance from the user's current location as M first images.

[0064] As another example, taking obtaining images from a database, assuming that a user wants to obtain photos whose shooting time is July 15, 2024 and the distance between the shooting location and the user's current location is less than 1 km, the electronic device can use the image open computing language (Open Computing Language, OpenCL) technology to read the shooting time and geographic longitude and latitude information of all images from the internal database, and then obtain photos whose shooting time is July 15, 2024 and the distance between the location indicated by the geographic longitude and latitude and the user's current location is less than 1 km.

[0065] It should be noted that OpenCL is an open, royalty-free standard for cross-platform parallel programming of various accelerators in supercomputers, cloud servers, personal computers, mobile devices and embedded platforms.

[0066] In some embodiments of the present application, the electronic device can obtain at least one image stored locally, as well as the shooting time information and shooting location information of each image, sort the at least one image according to the order of shooting time from early to late, and store the at least one image in the first database according to the time sequence of the at least one image.

[0067] Exemplarily, assuming that there are three images, and the shooting times of the three images are 9:00 on August 5, 2023, 8:55 on August 5, 2023, and 9:12 on August 5, 2023, and the shooting locations are in the same area. The electronic device obtains the three images, as well as the shooting time information and shooting location information of the three images, and then sorts them in order from early to late, in the order of August 5, 2023 8:55, August 5, 2023, and August 5, 2023 9:12. According to the time sorting, each of the three images and the latitude and longitude information and time information of each image are associated and stored in the database to generate a first database.

[0068] Step 302: The electronic device performs image processing on the M first images according to the shooting angle of each first image, and generates and outputs a second image.

[0069] In some embodiments of the present application, the second image includes at least one of the following: a two-dimensional planar panoramic image, a three-dimensional stereoscopic panoramic image.

[0070] In some embodiments of the present application, the electronic device aggregates images whose shooting times and shooting positions meet preset conditions according to the shooting angles of the M first images to obtain an image set including the M first images, and then splices the M first images in the image set to generate a two-dimensional panoramic image (i.e., the second image).

[0071] Exemplarily, taking the M first images including image A, image B and image C as an example, and the shooting perspective being the horizontal angle as an example, assuming that the horizontal angle of image A is 0 degrees, the horizontal angle of image B is 30 degrees, and the horizontal angle of image C is 45 degrees, and the shooting time is all November 1, 2023, at this time, by stitching the three images in sequence according to the horizontal angle, a two-dimensional planar panoramic image (i.e., the second image) is obtained.

[0072] Exemplarily, taking the shooting angle as the shooting direction as an example, assuming that there are two images, the shooting time is November 5, 2021, and the shooting direction is the east and northeast of the user in the park. At this time, the two images are spliced ​​in sequence according to the shooting direction to obtain a two-dimensional plane panoramic image (ie, the second image).

[0073] For example, taking the shooting perspective as a side view perspective, assuming that there are two images, the shooting time is August 8, 2008, and the side view perspectives are 0 degrees and 45 degrees respectively. At this time, by splicing the two images in sequence according to the side view angle, a two-dimensional plane panoramic image (i.e., the second image) is obtained.

[0074] In some embodiments of the present application, after image stitching is performed to obtain a two-dimensional panoramic image, if there is image missing in the second image, the electronic device can expand the missing image portion in the second image through an AI algorithm to obtain an expanded two-dimensional panoramic image (i.e., the second image).

[0075] It should be noted that the above AI algorithm may be an AIGC algorithm.

[0076] In some embodiments of the present application, the electronic device stitches M first images according to the shooting angles of the M first images to generate a two-dimensional planar panoramic image, and then performs three-dimensional mapping processing on the two-dimensional planar panoramic image to obtain a three-dimensional stereoscopic panoramic image.

[0077] It should be noted that three-dimensional mapping processing is a technical process that converts two-dimensional image data or control information into three-dimensional space representation. It reconstructs or simulates the three-dimensional structure and spatial relationship of objects or scenes by analyzing and calculating the feature points, lines, textures, etc. in the image, combined with focal length, position, posture, etc.

[0078] Exemplarily, taking M first images including image A, image B and image C as an example, and the shooting perspective is a horizontal angle as an example, assuming that the horizontal angle of image A is 0 degrees, the horizontal angle of image B is 30 degrees, and the horizontal angle of image C is 45 degrees, and the shooting time is November 1, 2023, at this time, by stitching image A, image B and image C in sequence according to the horizontal angle, a two-dimensional plane panoramic image is obtained, and then, according to the spatial position corresponding to each pixel or feature point in the calculated image, a three-dimensional point cloud is constructed, and the two-dimensional plane panoramic image is three-dimensionally reconstructed through triangulation, surface reconstruction and other methods to obtain a three-dimensional stereoscopic panoramic image.

[0079] For example, taking M first images including a front perspective image of a building, a back perspective image of the building, a left perspective image of the building, a right perspective image of the building and a top perspective image of the building, the electronic device can synthesize the front perspective image, the back perspective image, the left perspective image, the right perspective image and the top perspective image of the building into a two-dimensional plane panoramic image of the building according to the positional relationship between the respective perspective images, and then construct a three-dimensional point cloud according to the spatial position corresponding to each pixel or feature point in the two-dimensional plane panoramic image, and perform three-dimensional reconstruction processing on the two-dimensional plane panoramic image through triangulation, surface reconstruction and other methods to obtain a three-dimensional stereoscopic panoramic image of the building.

[0080] It should be noted that the front view image of the building, that is, the image of the front of the building, mainly shows its main appearance features and entrance area. The back view image of the building, that is, the image of the back of the building, mainly shows the special design or important elements (such as rear windows, terraces, outbuildings, etc.) on the back of the building. The left view image of the building is an image taken from the left side of the building, and the right view image of the building is an image taken from the right side of the building. The left view image and the right view image are mainly used to show the width of the building and the design details of the side. The top view image of the building is a top view image taken from above the building, which can provide an overview of the overall shape of the building and the roof structure.

[0081] In some embodiments of the present application, after generating the second image, the electronic device can share, edit, set as a desktop wallpaper, set as a lock screen wallpaper, and other operations on the second image.

[0082] In some embodiments of the present application, when the second image is a three-dimensional stereoscopic panoramic image, the electronic device can send the three-dimensional stereoscopic panoramic image to a VR device to display the three-dimensional stereoscopic panoramic image through the VR device, so that the user can obtain an immersive viewing experience.

[0083] In some embodiments of the present application, the above-mentioned VR device may be a VR head-mounted device, such as a VR helmet or VR glasses.

[0084] In some embodiments of the present application, the electronic device may receive a user's touch input to a third operating control, and send the three-dimensional stereoscopic panoramic image to a VR device connected to the electronic device.

[0085] In some embodiments of the present application, the third control may be a spherical control or a rectangular control, etc.

[0086] The image processing method provided in the present application can generate 360-degree electronic device resources from batch photos taken over a long period of time in an electronic device, and then display the complete scene on the electronic device, and can complete the linkage between electronic devices with one click. At the same time, for the missing parts in the photos, available scene pictures can be generated based on AIGC, and the life cycle of the electronic device wallpaper can be set according to personal preferences. It changes with the life cycle, and factors such as weather will also affect it. It can be effectively set with one click, shortening the operation path, and multiple scenes can be set at one time to increase the fun of displaying wallpaper, thereby improving the flexibility of the display method.

[0087] In an embodiment of the present application, an electronic device acquires M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to one shooting angle, and M is an integer greater than 1; according to the shooting angle corresponding to each first image, the M first images are image processed to generate and output a second image, and the second image includes at least one of the following: a two-dimensional plane panoramic image and a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: photographed at a target time or a target time period, and the distance between the shooting location and the user is less than a first distance. In this solution, by acquiring M first images, image processing is performed according to the shooting angle of the first image, and the second image is generated and output, so that images of the same shooting scene at various shooting angles can be acquired, and a two-dimensional plane panoramic image or a three-dimensional stereoscopic panoramic image can be generated according to the images at various shooting angles, so that a panoramic image with richer picture content can be generated, effectively avoiding the singleness of the electronic device in terms of display, improving the flexibility of the display mode, and making the display effect more interesting, thereby meeting the needs of users.

[0088] In some embodiments of the present application, Figure 2 As shown, combined with the above Figure 1 , the above step 301 may include the following steps 301a and 301b:

[0089] Step 301a: The electronic device acquires X third images taken at a target time or a target time period.

[0090] Step 301b: the electronic device determines Y third images among the X third images as first images.

[0091] In some embodiments of the present application, the Y third images include images in which the distance between the shooting location and the user is less than the first distance.

[0092] In some embodiments of the present application, the X third images may be all or part of the images taken by the electronic device at a target time or a target time period.

[0093] It should be noted that X and Y are integers greater than 1.

[0094] In some embodiments of the present application, the electronic device sorts the images according to the shooting time to obtain X third images shot at a target time or a target time period, and then respectively obtains the shooting location corresponding to each of the X third images, that is, the geographic longitude and latitude information, and then calculates the distance between the shooting location of each third image and the user's location based on the geographic longitude and latitude information of each third image and the longitude and latitude information of the user's location, and determines Y third images of the X third images whose distance between the shooting location and the user is less than the first distance as the first images.

[0095] Exemplarily, assuming that the target time is October 1, 2022, and X is 10 images, the electronic device obtains 10 images shot on October 1, 2022 from all images according to the shooting time of all images in the album.

[0096] As another example, assuming that the target time period is between 10:00 a.m. on October 1, 2022 and 12:00 a.m. on October 1, 2022, the electronic device obtains 5 images whose shooting time is between 10:00 a.m. on October 1, 2022 and 12:00 a.m. on October 1, 2022 from all the images based on the shooting time of all the images in the album.

[0097] Further, in combination with the above example, taking the first distance of 500 meters as an example, after the electronic device obtains 5 images shot on October 1, 2022, it further calculates the images in which the distance between the shooting location of each of the 5 images and the user's current location is less than 500 meters. Assuming that the distance between 4 of the 5 images taken in the park and the user is 200 meters, and the distance between the shooting location of the other image and the user is greater than 500 meters, the 4 images taken in the park are determined as the first images.

[0098] In this way, by acquiring a third image according to the target time, and based on the distance between the shooting location and the user being less than the first distance, multiple images shot at the same time and at the same location and belonging to the same shooting scene can be effectively selected, so that the multiple images can be subsequently synthesized to obtain a panoramic image of the same shooting scene, thereby enriching the content of the image.

[0099] In some embodiments of the present application, Figure 3 As shown, combined with the above Figure 2 , the above step 301b includes the following step 301c:

[0100] Step 301c: The electronic device determines, from among the Y third images, an image whose image content corresponds to a target weather type as the first image.

[0101] In some embodiments of the present application, the above-mentioned weather types include but are not limited to sunny, cloudy, overcast, light rain, heavy snow, etc.

[0102] In some embodiments of the present application, the electronic device obtains an image whose weather type corresponding to the image content is the target weather type, i.e., the first image, from Y third images taken at the target time or target time period and whose distance between the shooting location and the user is less than the first distance.

[0103] Exemplarily, assuming that the target time is September 1, 2023, and the first distance is 300 meters, the electronic device obtains 30 lake photos with a shooting time of September 1, 2023 and a distance between the shooting location and the user's location less than 300 meters, and then selects 15 lake photos with sunny weather type from the 30 lake photos, that is, the first image.

[0104] In this way, by adding weather types, when selecting images, users can select images shot under specific weather conditions, thereby being able to more accurately acquire multi-viewing angle images of the same shooting scene.

[0105] In some embodiments of the present application, Figure 4 As shown, combined with the above Figure 2 , the above step 301a includes the following steps 301d and 301e:

[0106] Step 301d: The electronic device obtains the shooting time corresponding to at least one fourth image from the first database.

[0107] Step 301e: The electronic device determines, as the third image, an image whose shooting time matches the target time or the target time period in at least one fourth image;

[0108] In some embodiments of the present application, the first database may be a mySql database.

[0109] It should be noted that mySql is a relational database management system. A relational database stores data in different tables instead of placing all data in a large warehouse, thereby increasing speed and flexibility.

[0110] In some embodiments of the present application, the electronic device forms a first database for all images in order of shooting time, thereby obtaining the shooting time corresponding to at least one fourth image, and from at least one fourth image, determines the image as the third image by matching the shooting time with the target time or target time period.

[0111] Exemplarily, assuming that the first database contains 100 images in chronological order of shooting time, there are 79 images with shooting times from October 1, 2021 to May 1, 2024, and the target time is June 23, 2023. The electronic device obtains 79 fourth images corresponding to the shooting time from the database, and then obtains 45 images matching June 23, 2023 from the 79 images, that is, 45 images are third images.

[0112] In this way, by pre-storing the images and the shooting time and geographic longitude and latitude information corresponding to the images in a database, and subsequently obtaining images whose shooting time and shooting location meet the preset conditions, the shooting time and shooting location information of each image can be quickly queried from the database. Compared with the traditional method of identifying and processing each image one by one, the calculation amount and processing time are reduced, so that the images whose shooting time matches the target time or target time period and whose shooting location meets the requirements can be quickly determined, thereby improving the overall operational efficiency.

[0113] In some embodiments of the present application, Figure 5 As shown, combined with the above Figure 2 After the above step 301a, the method of the present application further includes step 303:

[0114] Step 303: The electronic device arranges and displays X third images on the first interface according to a preset arrangement pattern.

[0115] In some embodiments of the present application, the first interface includes X third images, or the first interface includes an image set, wherein the image set includes X third images.

[0116] In some embodiments of the present application, the electronic device may display X third images in the first interface area of ​​the first interface. Exemplarily, the first interface area may be any interface area such as the upper half of the first interface area, the lower half of the first interface area, the left interface area, the right interface area, or the center interface area, and the embodiments of the present application are not limited thereto.

[0117] Exemplarily, the electronic device may display M first images in the upper half of the first interface.

[0118] In some embodiments of the present application, the above-mentioned preset arrangement patterns may include any of the following: grid arrangement, radial arrangement, arrangement according to a preset shape (such as circular arrangement), etc.

[0119] It should be noted that grid arrangement means that images are placed in a regular grid, for example, placing images in squares, rectangles or grids of different sizes; radial arrangement means arranging images radiating from the center outward; circular arrangement means arranging images evenly according to the edges of a complete circle, semicircle, fan or ring.

[0120] In some embodiments of the present application, the electronic device may arrange and display the X second images in sequence based on the chronological order of the shooting times corresponding to the X second images. For example, an image with an earlier shooting time is displayed before an image with a later shooting time.

[0121] like Figure 6 As shown, in combination with the above example, after the electronic device obtains 5 images shot on October 1, 2022, assuming that the 5 images include image A, image B, image C, image D, and image E, the electronic device displays image A, image B, image C, image D, and image E in an arc shape in the interface 61.

[0122] In some embodiments of the present application, the first interface may further include a fifth image and a sixth image, the fifth image may include one or more images captured before the shooting time of X third images, and the sixth image may include one or more images captured after the shooting time of X third images.

[0123] For example, if the shooting time of the X third images is August 1, the fifth image may include two photos taken on July 30, and the sixth image may include two photos taken on August 3.

[0124] In some embodiments of the present application, after displaying X third images on the first interface, the electronic device receives a third input from the user on a target image among the X third images, and performs a corresponding processing action on the target image, which processing action may include at least one of the following: deleting the target image, editing the target image, sharing the target image, etc.

[0125] In some embodiments of the present application, the electronic device may display a collection of images in a first interface area of ​​a first interface.

[0126] like Figure 7 As shown, in combination with the above example, after the electronic device obtains 5 images shot on October 1, 2022, assuming that the 5 images include image A, image B, image C, image D, and image E, the electronic device displays image set C in the upper interface area of ​​​​the interface 71, and the image set includes image A, image B, image C, image D, and image E.

[0127] In some embodiments of the present application, after the electronic device receives a touch input from a user on the image set, the electronic device expands and displays the first image in the image set in the first interface area.

[0128] For example, in combination with the above example, after the user clicks on the image set C, the above Figure 6 The interface shown displays image set C including image A, image B, image C, image D, and image E.

[0129] In this way, the electronic device can enter the image set and select an image by receiving the user's touch input to the image set, thereby improving the richness of image selection and avoiding the problem of a single viewing angle for selecting images.

[0130] In some embodiments of the present application, Figure 8 As shown, combined with the above Figure 2 Before the above step 301a, the method of the present application further includes steps 304, 305 and 306:

[0131] Step 304: The electronic device displays a second interface.

[0132] Step 305: The electronic device receives a first input from a user on a first operating control.

[0133] Step 306: The electronic device determines a target time or a target time period according to input parameters of the first input in response to the first input.

[0134] In some embodiments of the present application, the second interface and the first interface may be the same interface or different interfaces.

[0135] In some embodiments of the present application, the second interface includes a first operation control, and the first operation control includes a first display partition, a second display partition, and a third display partition.

[0136] In some embodiments of the present application, the shape of the first operation control may be any possible shape such as a circle, a rectangle, a triangle, a diamond or a polygon, which may be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0137] In some embodiments of the present application, the first operation control may be displayed superimposed on the current interface of the electronic device. Specifically, the first operation control may be displayed superimposed on the current interface of the electronic device with a first transparency. For example, the first transparency is denoted as T1, and the value range of T1 may be 0% <T1<100%。

[0138] Exemplarily, taking the first operation control as a 360-degree dial-shaped control, the first operation control includes a first display partition, a second display partition and a third display partition, wherein the first display partition includes year information, the second display partition includes month information, and the third display partition includes a date.

[0139] In some embodiments of the present application, the electronic device may display the first operation control in the second interface area of ​​the second interface.

[0140] It should be noted that the explanation of the second interface region can refer to the relevant description of the first interface region, which will not be repeated here.

[0141] In some embodiments of the present application, the first input may be a click operation of the user on the first control control, or may be a drag operation of the user on the first control control, which may be determined according to actual use requirements and is not limited in the embodiments of the present invention. For example, the click operation may be a single click, a double click, or a preset number of consecutive clicks. The drag operation may be a drag operation in any direction, such as dragging in a clockwise direction, dragging in a counterclockwise direction, dragging upward, dragging downward, dragging to the left, or dragging to the right.

[0142] For example, Fig. 9As shown, taking the first operation control as a 360-degree dial-shaped control as an example, a 360-degree dial-shaped control 14 is displayed in the interface 13, and the 360-degree dial-shaped control includes display partition 15, display partition 16 and display partition 17, display partition 15 includes year information, display partition 16 includes month information, and display partition 17 includes date options. The 360-degree dial-shaped control also includes pointer 11 and pointer 12. The user can use a finger to move display partition 17 to make pointer 11 point to the year to be selected (such as 2023), and use a finger to move display partition 16 to make pointer 12 point to the month to be selected (such as August), and the user can move display partition 1014 to make pointer 12 point to the date to be selected, or, after clicking the date option, trigger the display of all dates under the month selected by the user in the 360-degree dial-shaped control, and click the desired date (such as the 1st) to select the date.

[0143] In some embodiments of the present application, after determining the target time or target time period according to the input parameters of the first input, the electronic device obtains the X third images taken at the target time or target time period, and displays the X third images in the third interface area of ​​the second interface.

[0144] For example, in combination with the above example, assuming that the user can operate the 360-degree dial-shaped control and select the date of August 1, 2023, the electronic device obtains images A, B, C, D, and E taken on August 1, 2023, and displays the images A, B, C, D, and E in the upper half of the screen area of ​​the electronic device, such as Fig.10 shown.

[0145] It should be noted that the explanation of the third interface region can refer to the relevant description of the first interface region or the second interface region mentioned above, and will not be repeated here.

[0146] In some embodiments of the present application, the second interface further includes a second operating control, and the electronic device can receive a user's touch input to the second operating control, and determine the first distance according to input parameters of the touch input.

[0147] In some embodiments of the present application, the second operation control may be a sliding control.

[0148] In some embodiments of the present application, the touch input may be a sliding input of a user on a sliding control, and the sliding input may be a sliding input from left to right or a sliding input from right to left.

[0149] In some embodiments of the present application, the electronic device may determine the first distance according to the sliding distance of the user on the sliding control. For example, if the user slides 0.5 mm on the sliding control, the corresponding first distance may be 200 meters or 2 km.

[0150] For example, in combination with the above examples, Fig.11 As shown, the interface 121 also displays a slide bar 122. After the user slides the slide bar 1 cm to the right, the electronic device determines that the first distance is 1 km. Then, the electronic device can determine that the distance between the shooting location and the user is less than 1 km from the image A, image B, image C, image D and image E, and update the image A, image B, image C, image D and image E to image B, image C and image D, as shown in FIG. Fig.12 shown.

[0151] In some embodiments of the present application, the first operation control further includes a fourth display partition.

[0152] In some embodiments of the present application, the fourth display partition includes a weather type identifier, and a weather type identifier indicates a weather type.

[0153] In some embodiments of the present application, the electronic device receives a user's touch input on the fourth display partition, and determines the target weather type according to input parameters of the touch input.

[0154] For example, in combination with the above Fig.13 The 360-degree dial-shaped control includes display partition 1412, display partition 1413, display partition 1414 and display partition 1415, display partition 1413 includes year information, display partition 1414 includes month information, display partition 1415 includes date options, and display partition 1412 includes at least one weather identifier. The 360-degree dial-shaped control also includes a pointer. The user can use a finger to move the pointer in display partition 1415 to make the pointer point to the weather type identifier to be selected, and determine the weather corresponding to the weather type identifier as the target weather type.

[0155] In this way, the user can obtain images from various shooting perspectives in various shooting scenes according to the shooting time, shooting location and weather type through the first operation control, thereby generating a panoramic image that shows more details and scene elements, effectively avoiding the problem of a single perspective of the image and improving the visual effect of the image.

[0156] In some embodiments of the present application, the above-mentioned second interface also includes a third operation control. After the electronic device generates a three-dimensional stereoscopic panoramic image based on M first images, it receives the user's touch input to the third operation control and sends the three-dimensional stereoscopic panoramic image to the VR device.

[0157] For example, in combination with the above Fig.13 ,like Fig.14 As shown, the interface 141 also includes a spherical control 1416. After the user clicks the control 1416, the electronic device sends the three-dimensional stereoscopic panoramic image generated according to the image B, the image C and the image D to the VR device.

[0158] In some embodiments of the present application, after the above step 306, the method of the present application further includes steps 307 and 308:

[0159] Step 307: The electronic device receives a second input from the user to the first operating control.

[0160] Step 308: The electronic device responds to the second input and updates the target time or target time period according to the input parameters of the second input.

[0161] In some embodiments of the present application, the second input may be any feasible input such as a user's touch input, voice input, or gesture input.

[0162] It should be noted that the explanation of the second input can be found in the relevant description of the first input mentioned above, and will not be repeated here.

[0163] In some embodiments of the present application, the electronic device receives a second input from the user on the first operation control, and re-updates the target time or target time period according to input parameters of the second input.

[0164] Exemplarily, assuming that the date indicated by the input parameter of the first input is March 1, 2022, the electronic device determines the target date as March 1, 2022, and acquires an image with a shooting date of March 1, 2022. Then, if the user performs a touch operation on the first operation control again (i.e., the second input), and the date selected by the user's touch operation is March 1, 2023, the electronic device updates the target date to March 1, 2023.

[0165] In some embodiments of the present application, after the electronic device re-updates the target time or target time period according to the input parameters of the second input, the M first images may be updated according to the updated target time or target time period.

[0166] Exemplarily, assuming that the user operates the first operation control for the first time, the target time is determined to be 13:00 on June 17, 2024, and the electronic device acquires an image with a shooting date of 13:00 on June 17, 2024. Then the user operates the first operation control again, and the target time is determined to be 15:30 on July 17, 2024. The electronic device can re-acquire the image with a shooting date of 15:30 on July 17, 2024 to update the above-mentioned M first images.

[0167] In this way, the electronic device receives the second input of the user to the first operation control, and updates the target time or target time period according to the input parameters of the second input, so as to obtain different image scenes. By using this wallpaper setting processing method with better calendar memory, the user's mobile phone usage experience and higher playability can be improved, thereby improving the flexibility of displaying images, and having a higher boundary line for users who like taking pictures, bringing a better life experience.

[0168] The above image processing method is explained below through two specific examples.

[0169] For example, Fig.15 As shown, the image processing method includes the following steps 101 to 107.

[0170] Step 101: The electronic device receives a click input from a user.

[0171] It should be noted that the electronic device obtains the time, longitude and latitude information of a preset number of photos, obtains the photo taking time information of all photos based on all photos in the current mobile phone album, forms an internal information database in the order of photo taking time, and stores it in the mySql database.

[0172] Step 102: The electronic device reads the geographical longitude and latitude information of all photos through the general image OpenCL processing technology, and inserts the photo data object into the mySql database.

[0173] It should be noted that the electronic device automatically aggregates photos of the same scene according to the geographic location information and generates a 360-degree spherical display. The user swipes left to enter step 103.

[0174] Step 103: The user swipes left to display a 360-degree sphere.

[0175] It should be noted that at this time the database obtains the geographic location of the current photo. At this time, the 360-degree sphere is in the shape of a dial. The first circle of the four outer circles of the dial displays the year, the second circle displays the month, and the third circle displays the date. Then the hours, minutes and seconds are displayed normally like a daily clock. A slider bar for the current location range information is displayed below the picture. The display range of nearby photos can be determined by controlling the slider bar.

[0176] Step 104: The electronic device receives an operation of the user's finger turning the wheel to adjust the date.

[0177] It should be noted that at this time the photo is displayed in the area above the dial.

[0178] Step 105: The user selects a suitable date.

[0179] For example, suppose the user selects September 1, 2021 on the watch face. At this time, all photos of the current date are spread out on the watch face, and the photo is located. If there are multiple photos on the current date, they are displayed as a picture collection and the album logo is displayed. Then you can enter the desired photo collection by sliding the specific time.

[0180] Step 106: The user slides the geographic location distance range slider to enter the next round of picture selection.

[0181] It should be noted that if the picture is confirmed, the process proceeds to step 107 .

[0182] Step 107: The user clicks the button with two balls in the lower right corner of the phone, and the application takes effect in the VR helmet wallpaper.

[0183] For example, Fig.16 As shown, the image processing method includes the following steps 201 to 207.

[0184] Step 201: The electronic device receives a click input from a user.

[0185] It should be noted that the electronic device obtains the time, longitude and latitude, and weather information of a preset number of photos, obtains the photo taking time information of all photos based on all photos in the current mobile phone album, forms an internal information database in the order of photo taking time, and stores it in the mySql database.

[0186] Step 202: The electronic device reads the geographical longitude and latitude information of all photos through the general image OpenCL processing technology, and inserts the photo data object into the mySql database.

[0187] It should be noted that the electronic device automatically aggregates photos of the same scene according to the geographic location and the weather database information currently corresponding to the photos, and generates a 360-degree spherical display. The user swipes left to enter step 203.

[0188] Step 203: The user swipes left to obtain the geographic location data in the mySql database and displays it in a 360-degree sphere.

[0189] It should be noted that at this time the 360-degree ball is in the shape of a dial. The first circle of the four outer circles of the dial shows the weather, the second circle shows the year, the third circle shows the month, the fourth circle shows the date, and then the hours, minutes and seconds are displayed normally like a daily clock. A slider bar for the current location range information is displayed below the picture, and the display range of nearby photos can be determined by controlling the slider bar.

[0190] Step 204: The user adjusts the date by turning the wheel.

[0191] It should be noted that at this time the photo is displayed in the area above the dial.

[0192] Step 205: The user selects appropriate weather and date.

[0193] For example, suppose the user selects September 1, 2021 on the watch face. At this time, all photos of the current date are spread out on the watch face, and the photo is located. If there are multiple photos on the current date, they are displayed as a picture collection and the album logo is displayed. Then you can enter the desired photo collection by sliding the specific time.

[0194] Step 206: The user slides the geographic location distance range slider to enter the next round of picture selection.

[0195] It should be noted that if the picture is confirmed, the process proceeds to step 207 .

[0196] Step 207: The user clicks the button with two balls in the lower right corner of the mobile phone, and the application takes effect in the VR helmet wallpaper.

[0197] This application forms an image relationship based on geographic location, and then forms a 360-degree spherical map by stitching images of the same scene from different angles, thereby displaying a complete wallpaper effect on a VR device based on the time and weather conditions, allowing users to set multiple scenes and improving the flexibility of image display.

[0198] It should be noted that the above-mentioned method embodiments, or various possible implementation methods in each method embodiment, can be executed separately, or, under the premise that there is no contradiction, can also be executed in combination with each other. The specific implementation can be determined according to actual usage requirements, and the embodiments of the present application do not limit this.

[0199] The image processing method provided in the embodiment of the present application can be executed by an image processing device. In the embodiment of the present application, the image processing device provided in the embodiment of the present application is described by taking the method for executing image processing by an image processing device as an example.

[0200] Fig.17 A schematic diagram of an image processing device provided in an embodiment of the present application, such as Fig.17As shown, the image processing device 2100 may include: an acquisition module 2101 and a processing module 2102, wherein: the acquisition module is used to acquire M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to a shooting angle, and M is an integer greater than 1; the processing module is used to perform image processing on the M first images according to the shooting angle corresponding to each first image, generate and output a second image, the second image includes at least one of the following: a two-dimensional plane panoramic image, a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: photographed at a target time or a target time period, and the distance between the shooting location and the user is less than the first distance.

[0201] In some embodiments of the present application, the acquisition module is specifically used to acquire X third images taken at a target time or a target time period; the acquisition module is specifically used to determine Y third images among the X third images as the first image, the Y third images include images where the distance between the shooting location and the user is less than the first distance, and X and Y are integers greater than 1.

[0202] In some embodiments of the present application, the preset conditions also include: the weather type corresponding to the image content is the target weather type; the above-mentioned acquisition module is specifically used to determine the image whose weather type corresponding to the image content is the target weather type as the first image from Y third images.

[0203] In some embodiments of the present application, the above-mentioned acquisition module is specifically used to: obtain the shooting time corresponding to at least one fourth image from the first database; and then determine the image whose shooting time matches the target time or target time period in at least one fourth image as the third image; wherein the first database includes at least one fourth image and the shooting time corresponding to each fourth image.

[0204] In some embodiments of the present application, the device also includes: a display module, the above-mentioned display device is used to display a first interface after the acquisition module acquires X third images corresponding to the target time or target time period, and the first interface includes X third images, and the X third images are arranged and displayed according to a preset arrangement style; or, the above-mentioned display module is used to display the first interface after the acquisition module acquires X third images corresponding to the target time or target time period, and the first interface includes an image set, and the image set includes X third images.

[0205] In some embodiments of the present application, the device also includes: a receiving module, the display module, which is also used to display a second interface before acquiring X third images corresponding to the target time or target time period, and the second interface includes a first operation control; the receiving module is used to receive a first input of the user to the first operation control; the processing module is specifically used to determine the target time or target time period according to the input parameters of the first input in response to the first input received by the receiving module.

[0206] In some embodiments of the present application, the above-mentioned receiving module is also used to receive a second input from the user to the first operation control; the above-mentioned processing module is used to respond to the second input received by the receiving module and update the target time or target time period according to the input parameters of the second input.

[0207] In an embodiment of the present application, an electronic device acquires M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to one shooting angle, and M is an integer greater than 1; according to the shooting angle corresponding to each first image, the M first images are image processed to generate and output a second image, the second image includes at least one of the following: a two-dimensional plane panoramic image, a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: taken at a target time or a target time period, and the distance between the shooting location and the user is less than a first distance. In this solution, by acquiring M first images, image processing is performed according to the shooting angle of the first image, and the second image is generated and output, so that images of the same shooting scene at various shooting angles can be acquired, and a two-dimensional plane panoramic image or a three-dimensional stereoscopic panoramic image is generated according to the images at various shooting angles, so that a panoramic image showing more details and scene elements can be generated, effectively avoiding the problem of a single perspective of the image, and improving the visual effect of the image.

[0208] The image processing device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0209] The image processing 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.

[0210] The image processing device provided in the embodiment of the present application can implement each process implemented in the above method embodiment, and will not be described again here to avoid repetition.

[0211] Alternatively, if Fig.18 As shown, an embodiment of the present application also provides an electronic device 2200, including a processor 2201 and a memory 2202, wherein the memory 2202 stores programs or instructions that can be executed on the processor 2201, and when the program or instructions are executed by the processor 2201, the various steps of the above-mentioned image processing method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0212] 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.

[0213] Fig.19 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0214] The electronic device 2300 includes but is not limited to: a radio frequency unit 2301, a network module 2302, an audio output unit 2303, an input unit 2304, a sensor 2305, a display unit 2306, a user input unit 2307, an interface unit 2308, a memory 2309, and a processor 2310 and other components.

[0215] Those skilled in the art will appreciate that the electronic device 2300 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 2310 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.19 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.

[0216] The processor 2310 is used to obtain M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to a shooting angle, and M is an integer greater than 1; the processing module 2310 is used to perform image processing on the M first images according to the shooting angle of each first image, generate and output a second image, and the second image includes at least one of the following: a two-dimensional plane panoramic image, a three-dimensional stereoscopic panoramic image; the preset conditions include: taken at a target time or a target time period, and the distance between the shooting location and the user is less than the first distance.

[0217] In some embodiments of the present application, the processor 2310 is specifically configured to obtain X third images captured at a target time or a target time period; the processor 2310 is specifically configured to determine Y third images among the X third images as the first image, the Y third images including images where the distance between the shooting location and the user is less than the first distance, and X and Y are integers greater than 1.

[0218] In some embodiments of the present application, the preset conditions also include: the weather type corresponding to the image content is the target weather type; the processor 2310 is specifically used to determine the image whose weather type corresponding to the image content is the target weather type as the first image from Y third images.

[0219] In some embodiments of the present application, the above-mentioned processor 2310 is specifically used to: obtain the shooting time corresponding to at least one fourth image from the first database; and then determine the image whose shooting time matches the target time or target time period in at least one fourth image as the third image; wherein the first database includes at least one fourth image and the shooting time corresponding to each fourth image.

[0220] In some embodiments of the present application, the above-mentioned processor 2310 is used to display a first interface after the processor 2310 obtains X third images corresponding to the target time or target time period, and the first interface includes X third images, and the X third images are arranged and displayed according to a preset arrangement style; or, the processor 2310 is used to display a first interface after the processor 2310 obtains X third images corresponding to the target time or target time period, and the first interface includes an image set, and the image set includes X third images.

[0221] In some embodiments of the present application, the above-mentioned display unit 2306 is also used to display a second interface before acquiring X third images corresponding to the target time or target time period, and the second interface includes a first operation control; the processor 2310 is used to receive a first input from a user to the first operation control; the processor 2310 is specifically used to respond to the first input received by the user input unit 2307, and determine the target time or target time period according to the input parameters of the first input.

[0222] In some embodiments of the present application, the above-mentioned user input unit 2307 is also used to receive a second input from the user to the first operation control; the processor 2310 is used to respond to the second input received by the processor 2310 and update the target time or target time period according to the input parameters of the second input.

[0223] In an embodiment of the present application, an electronic device acquires M first images, the M first images include images that meet preset conditions in the electronic device, one first image corresponds to one shooting angle, and M is an integer greater than 1; according to the shooting angle of each first image, the M first images are image processed to generate and output a second image, the second image includes at least one of the following: a two-dimensional plane panoramic image, a three-dimensional stereoscopic panoramic image; wherein the preset conditions include: taken at a target time or a target time period, and the distance between the shooting location and the user is less than a first distance. In this solution, by acquiring M first images, image processing is performed according to the shooting angle corresponding to the first image, and the second image is generated and output, so that images of the same shooting scene at various shooting angles can be acquired, and a two-dimensional plane panoramic image or a three-dimensional stereoscopic panoramic image is generated according to the images at various shooting angles, so that a panoramic image showing more details and scene elements can be generated, effectively avoiding the problem of a single perspective of the image, and improving the visual effect of the image.

[0224] It should be understood that in the embodiment of the present application, the input unit 2304 may include a graphics processor (Graphics Processing Unit, GPU) 23041 and a microphone 23042, and the graphics processor 23041 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 2306 may include a display panel 23061, and the display panel 23061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 2307 includes a touch panel 23071 and at least one of other input devices 23072. The touch panel 23071 is also called a touch screen. The touch panel 23071 may include two parts: a touch detection device and a touch controller. Other input devices 23072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0225] The memory 2309 can be used to store software programs and various data. The memory 2309 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 2309 may include a volatile memory or a non-volatile memory, or the memory 2309 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 2309 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0226] The processor 2310 may include one or more processing units; optionally, the processor 2310 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 2310.

[0227] 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 image processing method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0228] The processor is the processor in the electronic device described 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.

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

[0230] 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.

[0231] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned image processing method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0232] 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.

[0233] 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 computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0234] 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. An image processing method, characterized in that: The method includes: Acquire M first images, where the M first images include images in the electronic device that meet a preset condition, one first image corresponds to one shooting angle, and M is an integer greater than 1; Performing image processing on the M first images according to the shooting angle corresponding to each of the first images to generate and output a second image, wherein the second image includes at least one of the following: a two-dimensional planar panoramic image and a three-dimensional stereoscopic panoramic image; The preset conditions include: the photo is taken at a target time or a target time period, and the distance between the photo taking location and the user's location is less than a first distance.

2. The method according to claim 1, characterized in that The acquiring of M first images comprises: Acquire X third images captured at the target time or target time period; Y third images among the X third images are determined as the first images, the Y third images include images where the distance between the shooting location and the user is less than a first distance, and X and Y are integers greater than 1.

3. The method according to claim 2, characterized in that The preset condition also includes: the weather type corresponding to the image content is the target weather type; and determining Y third images among the X second images as the first images includes: From the Y third images, an image whose image content corresponds to a target weather type is determined as the first image.

4. The method according to claim 2, characterized in that: The acquiring of X third images captured at the target time or target time period includes: Acquire a shooting time corresponding to at least one fourth image from the first database; Determine, among the at least one fourth image, an image whose shooting time matches the target time or the target time period as the third image; The first database includes at least one fourth image and also includes the shooting time corresponding to each fourth image.

5. The method according to claim 2, characterized in that: After the X third images captured at the target time or target time period, the method further includes: Arranging and displaying the X third images on the first interface according to a preset arrangement pattern; Alternatively, an image set is displayed on the first interface, where the image set includes the X third images.

6. The method according to any one of claims 1 to 4, characterized in that Before acquiring X third images captured at the target time or target time period, the method further includes: Displaying a second interface, wherein the second interface includes a first operation control; Receiving a first input of the user to the first operation control; In response to the first input, the target time or target time period is determined according to input parameters of the first input.

7. An image processing device, characterized in that: The device comprises: an acquisition module and a processing module, wherein: The acquisition module is used to acquire M first images, where the M first images include images in the electronic device that meet a preset condition, one first image corresponds to one shooting angle, and M is an integer greater than 1; The processing module is used to perform image processing on the M first images according to the shooting angle corresponding to each of the first images, generate and output a second image, and the second image includes at least one of the following: a two-dimensional planar panoramic image and a three-dimensional stereoscopic panoramic image; The preset conditions include: the photo is taken at a target time or a target time period, and the distance between the photo location and the user is less than a first distance.

8. The device according to claim 7, characterized in that: The acquisition module is specifically used to acquire X third images taken at the target time or target time period; The acquisition module is specifically configured to determine Y third images among the X third images as the first image, wherein the Y third images include images where the distance between the shooting location and the user is less than a first distance, and X and Y are integers greater than 1.

9. The device according to claim 8, characterized in that: The preset conditions also include: the weather type corresponding to the image content is the target weather type; the acquisition module is specifically used to determine, from the Y third images, an image whose weather type corresponding to the image content is the target weather type as the first image.

10. The device according to claim 8, characterized in that: The acquisition module is specifically used for: Acquire a shooting time corresponding to at least one fourth image from the first database; Determine, among the at least one fourth image, an image whose shooting time matches the target time or the target time period as the third image; The first database includes at least one fourth image and also includes the shooting time corresponding to each fourth image.

11. The device according to claim 8, characterized in that: The device further comprises: a display module; The display module is used for arranging and displaying the X third images in a preset arrangement style on the first interface after the acquisition module acquires the X third images captured at the target time or target time period; Alternatively, the display module is used to display an image set on the first interface, where the image set includes the X third images.

12. The device according to any one of claims 7 to 11, characterized in that The device further comprises: a receiving module; The display module is further configured to display a second interface including a first operation control before acquiring X third images captured at the target time or target time period; The receiving module is used to receive a first input of the user to the first operation control; The processing module is further configured to determine the target time or target time period according to input parameters of the first input in response to the first input received by the receiving module.