Wallpaper generation method, device and electronic equipment

By obtaining the outline information of and the three -dimensional reconstruction target building, the wallpaper with building style and core characteristics is generated, and the problem of lack of the lack of the style of the building and retaining the core characteristics in the existing technology.

CN113674396BActive Publication Date: 2025-01-24VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110868977.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-29
Publication Date
2025-01-24
Estimated Expiration
2041-07-29

AI Technical Summary

Technical Problem

Existing electronic devices do not provide wallpapers that can restore the building's appearance and retain the core features of the building.

Method used

By obtaining the outline information of the target building, three-dimensional reconstruction is performed, a target image containing the three-dimensionally reconstructed target building is generated, and the image is set as wallpaper.

Benefits of technology

It achieves the display of the building's style while retaining the core features of the building, providing a unique and recognizable wallpaper.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113674396B_ABST
    Figure CN113674396B_ABST
Patent Text Reader

Abstract

The present application discloses a wallpaper generation method, device and electronic device, which belongs to the field of computer technology. The method comprises: obtaining the outline information of a target building, the target building being located by an electronic device or determined by an image obtained by the electronic device; performing three-dimensional reconstruction of the target building according to the outline information of the target building, generating a target image containing the three-dimensionally reconstructed target building; and setting the target image as wallpaper.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of computer technology, and specifically relates to a wallpaper generation method, device and electronic device. Background Art

[0002] With the continuous development of electronic technology, mobile phones, computers, tablet computers and other electronic devices have penetrated into people's lives. In addition to basic communication and Internet access functions, electronic devices generally have wallpaper functions so that users can set the background picture of the electronic device screen according to their preferences.

[0003] Currently, users can select images from a wallpaper library of an electronic device or an image from an album of an electronic device as wallpaper for the electronic device screen according to their preferences. However, currently, electronic devices do not provide wallpapers that can both restore the style of a building and retain the core features of the building. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a wallpaper generation method, which can solve the problem that electronic devices in the prior art fail to provide wallpaper that can both restore the style and appearance of a building and retain the core features of the building.

[0005] In a first aspect, an embodiment of the present application provides a wallpaper generation method, the method comprising:

[0006] Acquiring contour information of a target building, where the target building is located by an electronic device or determined by an image acquired by the electronic device;

[0007] Performing three-dimensional reconstruction on the target building according to the contour information of the target building to generate a target image including the three-dimensionally reconstructed target building;

[0008] The target image is set as wallpaper.

[0009] In a second aspect, an embodiment of the present application provides a wallpaper generating device, the device comprising:

[0010] An acquisition module, used to acquire contour information of a target building, wherein the target building is located by an electronic device or determined by an image acquired by the electronic device;

[0011] A reconstruction module, used for performing three-dimensional reconstruction of the target building according to the contour information of the target building, and generating a target image including the three-dimensionally reconstructed target building;

[0012] The setting module is used to set the target image as wallpaper.

[0013] 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, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

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

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

[0016] In the embodiment of the present application, the target building is first determined by positioning the electronic device or the image obtained by the electronic device, and the target building is 3D reconstructed according to the contour information of the target building, and then a target image including the 3D reconstructed target building is generated and the target image is set as wallpaper. That is, the wallpaper in the present application is a target image obtained by 3D reconstructing the target building based on the contour information of the target building, and the wallpaper can not only show the style of the target building, but also retain the core features of the target building. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flowchart of a wallpaper generation method provided in an embodiment of the present application;

[0018] Figure 2 It is a schematic diagram of the interface display of an electronic device provided in an embodiment of the present application;

[0019] Figure 3 is a schematic diagram of an interface display of an electronic device provided by another embodiment of the present application;

[0020] Figure 4 is a structural schematic diagram of a wallpaper generating device provided in an embodiment of the present application;

[0021] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0022] Figure 6 It is a structural schematic diagram of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

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

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

[0025] The wallpaper generation 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.

[0026] Please see Figure 1 , which is a flowchart of a wallpaper generation method provided in an embodiment of the present application. The method can be applied to an electronic device, which can be a mobile phone, a tablet computer, a laptop computer, etc. Figure 1 As shown, the method may include steps S1100 to S1300, which are described in detail below.

[0027] Step S1100, obtaining the outline information of the target building.

[0028] The target building is determined by positioning the electronic device or by images acquired by the electronic device.

[0029] In one example, a target building can be located by an electronic device.

[0030] In this example, the electronic device is provided with a positioning device. The positioning device may be a wireless transceiver with a GPS positioning module. The GPS positioning module mainly communicates with satellites, obtains the latitude and longitude information of the electronic device in real time, and uses the obtained latitude and longitude information as the position information of the electronic device to locate the electronic device. For example, the building located by the GPS positioning module of the electronic device may be Figure 2 The building in the left image can also be Figure 3 The building in the middle left image.

[0031] In one example, the target building can be determined through an image acquired by an electronic device.

[0032] In this example, a camera is provided on the electronic device, and the user captures an image of a landmark building in the target area using the camera of the electronic device, and the electronic device determines that the landmark building is the target building based on the image.

[0033] The target area can be a country, a city, an administrative area of ​​a city, etc.

[0034] The landmark buildings in the target area may include buildings with cultural symbolic significance. The landmark buildings in the target area may also include buildings ranked high by the user's preference. The landmark buildings in the target area may also include buildings with a height exceeding a set height and / or a floor area exceeding a set area.

[0035] like Figure 2 As shown in the image on the left, the user can capture an image of a landmark building (grand theater) in city A using the camera of the electronic device, and the electronic device determines that the landmark building is the target building based on the image.

[0036] like Figure 3 As shown, the user can capture an image of a landmark building (square) in city A based on the camera of the electronic device, and the electronic device determines that the landmark building is the target building based on the image.

[0037] The contour information of the target building can reflect the overall appearance of the target building.

[0038] In this embodiment, after the target building is determined, contour information of the target building may be extracted based on edge detection.

[0039] by Figure 2 Take the left image of the example, the target building is a theater. Figure 2 The left image is edge detected to obtain the outline information of the theater. Figure 2 As can be seen from the middle image, the overall appearance of the city's grand theater is simple and powerful, resembling a glass space-time ship.

[0040] After obtaining the outline information of the target building, enter:

[0041] Step S1200 , performing three-dimensional reconstruction on the target building according to the contour information of the target building, and generating a target image including the three-dimensionally reconstructed target building.

[0042] In this embodiment, after obtaining the contour information of the target building, the target building can be three-dimensionally reconstructed according to the contour information of the target building, thereby generating a target image including the three-dimensionally reconstructed target building. That is, according to this step S1200, it is equivalent to performing a secondary creation on the target building according to the contour information of the target building, so that the created target image can reflect the core features of the target building.

[0043] In this embodiment, the target building can be divided into different types according to the type of the building. Since the shapes of different types of target buildings are quite different, after obtaining the contour information of the target building, it is necessary to combine the type of the target building to perform three-dimensional reconstruction of the target building, and then obtain a target image containing the three-dimensionally reconstructed target building.

[0044] Here, in this embodiment, in step S1200, the target building is three-dimensionally reconstructed according to the contour information of the target building, and obtaining the target image including the three-dimensionally reconstructed target building may further include the following steps S1210 to S1220:

[0045] Step S1210: reconstruct the target building in three dimensions according to the outline information of the target building and the type of the target building, and obtain a second image including the three-dimensionally reconstructed target building.

[0046] The types of target buildings include, for example but not limited to: single building type, building group type, mountain building group type, bridge and road.

[0047] A building of the monolithic type is a building that is composed of multiple building structures on the same horizontal line, which are partially overlapped and intertwined to form a building. A building of the monolithic type can be called a monolithic building.

[0048] Buildings of the building complex type are composed of multiple single buildings on the same horizontal line. Alternatively, buildings of the building complex type are composed of single buildings on the same horizontal line and adjacent single buildings connected together in the form of contact points. Buildings of the building complex type can be called building complexes.

[0049] The buildings of the mountain building complex type are buildings built according to natural landforms and topography. The buildings of the mountain building complex type are buildings on different horizontal lines, which are closely integrated with the environment.

[0050] The above bridges are structures built to allow roads to cross natural or artificial obstacles.

[0051] The above roads are buildings for various trackless vehicles and pedestrians to pass through.

[0052] In one example, the above three-dimensional reconstruction of the target building according to the outline information of the target building and the type of the target building to obtain the second image containing the three-dimensionally reconstructed target building may further include the following steps S1211a to S1212a:

[0053] Step S1211a, when the type is a single building type, three-dimensionally reconstruct the target building based on the outline information, target visual data and target proportion parameters.

[0054] The target proportion parameter is a parameter of the screen proportion of the target building in the target image. In the case where the type is a building type, the target proportion parameter may be 70%, that is, the screen proportion of the target building in the target image must exceed 70%.

[0055] The target visual data is the angle data with the most spatial levels of the target building.

[0056] continue Figure 2 For example, the target building is a theater, and the theater is a single building type building. Figure 2 It can be seen from the left image and the middle image that the outline of the theater is similar to that of a glass spaceship. In addition, since the front of the theater has the most three-dimensional spatial layers, the target visual data is the front view angle data. Here, the outline information, front view angle data and target proportion parameters can be processed based on the three-dimensional reconstruction software to obtain a three-dimensional model of the theater. The three-dimensional reconstruction software is not limited.

[0057] Step S1212a, blurring the background outside the target building to obtain a second image including the three-dimensionally reconstructed target building.

[0058] In this step S1212a, in addition to performing three-dimensional reconstruction on the target building, it is also necessary to perform blurring processing on the background other than the target building to obtain a second image including the three-dimensionally reconstructed target building.

[0059] The blurring of the area except the target building includes: extracting the background outside the target building, and performing different blurring processes on the background according to different background types.

[0060] For example, when the background includes multiple roads, the multiple roads may be filtered to retain only one main road, and the main road may be three-dimensionally reconstructed according to the above step S1211a.

[0061] For another example, when the background is a bridge, and the bridge occupies more than 30% of the image captured by the electronic device, the bridge is three-dimensionally reconstructed according to the above step S1211a.

[0062] For another example, when the background includes a lake or a river, and the lake or the river occupies more than 30% of the image captured by the electronic device, the lake or the river is three-dimensionally reconstructed according to the above step S1211a.

[0063] For another example, when the background includes vegetation, and the vegetation occupies more than 30% of the image captured by the electronic device, the vegetation is three-dimensionally reconstructed according to the above step S1211a.

[0064] In one example, the above three-dimensional reconstruction of the target building according to the outline information of the target building and the type of the target building to obtain the second image containing the three-dimensionally reconstructed target building may further include the following steps S1211b to S1213b:

[0065] Step S1211b, when the type is a building complex type, determine the main area of ​​the target building according to the outline information and the target visual data.

[0066] The main area of ​​the target building is the area that can reflect the core features of the target building.

[0067] The target visual data is the angle data with the most levels of target building controls.

[0068] by Figure 3 Take the left image of as an example, the target building is a square, and the square is a building of the building group type. Figure 3 As can be seen from the left image, the square is composed of eight towers with curved facades and a crystal corridor, which connects four of the towers. In addition, since the square has the most three-dimensional spatial layers on its front side, the target visual data is the front view angle data.

[0069] from Figure 3 From the left image, we can see that the most recognizable parts of the square are the two super-tall towers and the crystal corridor in the middle, so the two super-tall towers and the crystal corridor in the middle are determined as the main area of ​​the square. Here, the main area of ​​the square can be extracted by taking the central axis area of ​​the outline information of the square at a normal viewing angle as symmetry.

[0070] Step S1212b: Acquire contour information of the main body area as first contour information.

[0071] by Figure 3 Taking the middle image of as an example, the main area of ​​the square extracted is the two super-high towers and the crystal corridor in the middle. Since the main area presents an H shape, the H-shape contour information can be extracted as the first contour information.

[0072] Step S1213b, based on the first contour information and the target proportion parameter, three-dimensionally reconstruct the target building, and blur the background outside the target building to obtain a second image including the three-dimensionally reconstructed target building.

[0073] The target proportion parameter is a parameter of the screen proportion of the target building in the target image. In the case where the type is a building complex type, the target proportion parameter may be 50%, that is, the screen proportion of the target building in the target image must exceed 50%.

[0074] In this step S1213b, after extracting the H-shaped contour information as the first contour information, the first contour information and the target proportion parameter can be processed based on the above-mentioned 3D reconstruction software to obtain the 3D model of the square. The background outside the square is blurred to obtain a second image containing the 3D reconstructed square. For how to blur the background, refer to the example of the above step S1212b, which will not be described in detail here.

[0075] In one example, the above three-dimensional reconstruction of the target building according to the outline information of the target building and the type of the target building to obtain the second image containing the three-dimensionally reconstructed target building may further include the following steps S1211c to S1214c:

[0076] Step S1211c: when the type is a mountain building complex type, the target building includes a plurality of single buildings located at different heights.

[0077] In this step S1211c, when the type of the target building is a mountain building complex, since the multiple individual buildings in the mountain building complex are located at different horizontal lines, the multiple individual buildings have different heights.

[0078] Step S1212c, obtaining the height relationship between multiple individual buildings.

[0079] In this step S1212c, in order to perform three-dimensional reconstruction of the target building of the mountain building type, it is necessary to distinguish the height relationship between multiple individual buildings in the target building. By obtaining the height relationship between the multiple individual buildings, the spatial hierarchy of the target building can be obtained.

[0080] Step S1213c: determining the second outline information according to the height relationship between the multiple single buildings.

[0081] In this step S1213c, after obtaining the height relationship between multiple individual buildings to obtain the spatial hierarchy of the target building, since the target building of the mountain building complex type has more spatial hierarchies, the spatial hierarchy can be filtered according to the height relationship between the multiple individual buildings, and the contour information of the target building with obvious spatial hierarchy is retained as the second contour information.

[0082] Step S1214c: perform three-dimensional reconstruction on the target building according to the second contour information and the target proportion parameter, and blur the background outside the target building to obtain a second image including the three-dimensionally reconstructed target building.

[0083] The target proportion parameter is a parameter of the screen proportion of the target building in the target image. In the case of a mountain building complex type, the target proportion parameter may be 40%, that is, the screen proportion of the target building in the target image must exceed 40%.

[0084] In this step S1214c, the second contour information and the target proportion parameter can be processed based on the above-mentioned 3D reconstruction software to obtain a 3D model of the target building. The background other than the target building is blurred to obtain a second image containing the 3D reconstructed target building. For how to blur the background, refer to the example of the above step S1212b, which will not be described in detail here.

[0085] Step S1220: performing preset processing on the second image to obtain a target image including the three-dimensionally reconstructed target building.

[0086] The preset processing includes effect processing and / or material processing. The effect processing includes, for example, frosted semi-transparent, lighting effects, etc. The material processing includes, for example, metal, wood texture, etc.

[0087] Continuing with the example in step S1212a above, the theater effect is set to frosted in the second image, and a rectangular hollow window array is added to the three-dimensional model of the theater to obtain Figure 2 The right image of is used as the target image.

[0088] Continuing with the example of step S1213b above, two super-high tower steel frame structures and translucent facade materials are set in the second image, and the four towers on both sides are set to metal materials, and the obtained Figure 3 The right image of is used as the target image.

[0089] After the target building is 3D reconstructed according to its outline information and a target image including the 3D reconstructed target building is generated, the following steps are performed:

[0090] Step S1300, setting the target image as wallpaper.

[0091] In this embodiment, setting the target image as wallpaper in step S1300 may further include: receiving an input for setting the target image as wallpaper, and in response to the input, setting the target image as desktop wallpaper and displaying it.

[0092] According to this embodiment, the target building is first determined by positioning the electronic device or the image obtained by the electronic device, and the target building is reconstructed in three dimensions according to the contour information of the target building, thereby generating a target image including the target building after three-dimensional reconstruction and setting the target image as wallpaper. That is, the wallpaper in this application is a target image obtained by three-dimensionally reconstructing the target building based on the contour information of the target building, and the wallpaper can not only show the style of the target building, but also retain the overall characteristics of the target building.

[0093] Corresponding to the above embodiment, see Figure 4 The embodiment of the present application further provides a wallpaper generating device 400, comprising:

[0094] The acquisition module 410 is used to acquire contour information of a target building, where the target building is located by an electronic device or determined by an image acquired by the electronic device.

[0095] The reconstruction module 420 is used to perform three-dimensional reconstruction of the target building according to the contour information of the target building, and obtain a plurality of target images including the three-dimensionally reconstructed target building.

[0096] The setting module 430 is used to set the target image as wallpaper.

[0097] In one embodiment, the reconstruction module 420 is specifically used to: perform three-dimensional reconstruction of the target building based on the contour information of the target building and the type of the target building to obtain a second image containing the three-dimensionally reconstructed target building; perform preset processing on the second image to obtain a target image containing the three-dimensionally reconstructed target building.

[0098] Wherein, the preset processing includes effect processing and / or material processing.

[0099] In one embodiment, the reconstruction module 420 is specifically used to: when the type is a single building type, perform three-dimensional reconstruction of the target building based on the contour information, target visual data and target proportion parameter; wherein the target proportion parameter is a screen proportion parameter of the target building in the target image; blur the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building.

[0100] In one embodiment, the reconstruction module 420 is specifically used to: when the type is a building complex type, determine the main area of ​​the target building according to the contour information and the target visual data; obtain the contour information of the main area as the first contour information; based on the first contour information and the target proportion parameter, perform three-dimensional reconstruction of the target building, and blur the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building; the target proportion parameter is a screen proportion parameter of the target building in the target image.

[0101] In one embodiment, the reconstruction module 420 is specifically used to: when the type is a mountain building complex type, the target building includes a plurality of individual buildings located at different heights; obtain the height relationship between the plurality of individual buildings; determine the second contour information according to the height relationship between the plurality of individual buildings; based on the second contour information and the target proportion parameter, perform three-dimensional reconstruction of the target building, and blur the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building; wherein the target proportion parameter is a screen proportion parameter of the target building in the target image.

[0102] The wallpaper generating device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, 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 network attached storage (NAS), 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.

[0103] The wallpaper generating 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.

[0104] The wallpaper generation 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.

[0105] Corresponding to the above embodiment, optionally, Figure 5 As shown, an embodiment of the present application also provides an electronic device 500, including a processor 501, a memory 502, and a program or instruction stored in the memory 502 and executable on the processor 501. When the program or instruction is executed by the processor 501, each process of the above-mentioned image display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

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

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

[0108] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610.

[0109] Those skilled in the art will appreciate that the electronic device 600 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 610 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.

[0110] Among them, the processor 610 is used to obtain contour information of the target building, and the target building is determined by positioning the target building through an electronic device or an image obtained by the electronic device; based on the contour information of the target building, the target building is three-dimensionally reconstructed to generate a target image including the three-dimensionally reconstructed target building; and the target image is set as wallpaper.

[0111] In one embodiment, the processor 610 is used to perform three-dimensional reconstruction of the target building based on the contour information of the target building and the type of the target building to obtain a second image containing the three-dimensionally reconstructed target building; perform preset processing on the second image to obtain a target image containing the three-dimensionally reconstructed target building; wherein the preset processing includes effect processing and / or material processing.

[0112] In one embodiment, the processor 610 is used to, when the type is a single building type, perform three-dimensional reconstruction of the target building based on the contour information, the target visual data and the target proportion parameter; wherein the target proportion parameter is a screen proportion parameter of the target building in the target image; blur the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building.

[0113] In one embodiment, the processor 610 is used to determine the main area of ​​the target building according to the contour information and the target visual data when the type is a building complex type; obtain the contour information of the main area as the first contour information; perform three-dimensional reconstruction of the target building according to the first contour information and the target proportion parameter, and blur the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building; wherein the target proportion parameter is a screen proportion parameter of the target building in the target image.

[0114] In one embodiment, the processor 610 is used for, when the type is a mountain building complex type, the target building includes a plurality of individual buildings located at different heights; obtaining the height relationship between the plurality of individual buildings; determining second contour information according to the height relationship between the plurality of individual buildings; performing three-dimensional reconstruction of the target building according to the second contour information and a target proportion parameter, and blurring the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building; wherein the target proportion parameter is a screen proportion parameter of the target building in the target image.

[0115] It should be understood that in the embodiment of the present application, the input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042, and the graphics processor 6041 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 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 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 609 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 610 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.

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

[0117] The processor is a 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.

[0118] 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 wallpaper generation method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

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

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

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

[0122] 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 wallpaper generation method, the method comprising: Acquiring contour information of a target building, where the target building is located by an electronic device or determined by an image acquired by the electronic device; Performing three-dimensional reconstruction on the target building according to the contour information of the target building and the type of the target building to obtain a second image containing the three-dimensionally reconstructed target building; Performing a preset process on the second image to obtain a target image including the three-dimensionally reconstructed target building; Setting the target image as wallpaper; The step of performing three-dimensional reconstruction on the target building according to the contour information of the target building and the type of the target building to obtain a second image containing the three-dimensionally reconstructed target building comprises: In the case where the type is a single building type, based on the outline information, the target visual data and the target proportion parameter, the target building is three-dimensionally reconstructed, and the background outside the target building is blurred to obtain a second image including the three-dimensionally reconstructed target building; In the case where the type is a building complex type, a main area of ​​the target building is determined according to the outline information and the target visual data, the outline information of the main area is obtained as the first outline information, and the target building is three-dimensionally reconstructed according to the first outline information and the target proportion parameter, and the background outside the target building is blurred to obtain a second image containing the three-dimensionally reconstructed target building; In the case where the type is a mountain building complex type, the target building includes a plurality of single buildings located at different heights, a height relationship between the plurality of single buildings is obtained, second contour information is determined according to the height relationship between the plurality of single buildings, the target building is three-dimensionally reconstructed according to the second contour information and the target proportion parameter, and a background outside the target building is blurred to obtain a second image containing the three-dimensionally reconstructed target building; The target proportion parameter is a parameter of the screen proportion of the target building in the target image.

2. The method according to claim 1, characterized in that: The preset processing includes effect processing and / or material processing.

3. A wallpaper generating device, comprising: An acquisition module, used to acquire contour information of a target building, wherein the target building is located by an electronic device or determined by an image acquired by the electronic device; A reconstruction module, configured to perform three-dimensional reconstruction on the target building according to the contour information of the target building and the type of the target building, obtain a second image containing the three-dimensionally reconstructed target building, and perform a preset process on the second image to obtain a target image containing the three-dimensionally reconstructed target building; A setting module, used to set the target image as wallpaper; The reconstruction module is specifically used for: In the case where the type is a single building type, based on the outline information, the target visual data and the target proportion parameter, the target building is three-dimensionally reconstructed, and the background outside the target building is blurred to obtain a second image including the three-dimensionally reconstructed target building; In the case where the type is a building complex type, a main area of ​​the target building is determined according to the outline information and the target visual data, the outline information of the main area is obtained as the first outline information, and the target building is three-dimensionally reconstructed according to the first outline information and the target proportion parameter, and the background outside the target building is blurred to obtain a second image containing the three-dimensionally reconstructed target building; In the case where the type is a mountain building complex type, the target building includes a plurality of single buildings located at different heights, a height relationship between the plurality of single buildings is obtained, second contour information is determined according to the height relationship between the plurality of single buildings, the target building is three-dimensionally reconstructed according to the second contour information and the target proportion parameter, and a background outside the target building is blurred to obtain a second image containing the three-dimensionally reconstructed target building; The target proportion parameter is a parameter of the screen proportion of the target building in the target image.

4. The device according to claim 3, characterized in that The preset processing includes effect processing and / or material processing.

5. An electronic device, 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 wallpaper generating method according to any one of claims 1 to 2.

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

Citation Information

Patent Citations

  • Building 3D modeling method and device

    CN108320323A

  • Methods for setting terminal display interface and equipment

    CN109451161A