CN113674396A - Wallpaper generation method and device and electronic equipment - Google Patents

Wallpaper generation method and device and electronic equipment Download PDF

Info

Publication number
CN113674396A
CN113674396A CN202110868977.5A CN202110868977A CN113674396A CN 113674396 A CN113674396 A CN 113674396A CN 202110868977 A CN202110868977 A CN 202110868977A CN 113674396 A CN113674396 A CN 113674396A
Authority
CN
China
Prior art keywords
target
target building
building
contour information
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110868977.5A
Other languages
Chinese (zh)
Inventor
何君尧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110868977.5A priority Critical patent/CN113674396A/en
Publication of CN113674396A publication Critical patent/CN113674396A/en
Priority to PCT/CN2022/108455 priority patent/WO2023006011A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a wallpaper generation method and device and electronic equipment, and belongs to the technical field of computers. The method comprises the following steps: acquiring contour information of a target building, wherein the target building is determined by electronic equipment positioning or an image acquired by the electronic equipment; according to the contour information of the target building, three-dimensional reconstruction is carried out on the target building, and a target image containing the target building after three-dimensional reconstruction is generated; and setting the target image as wallpaper.

Description

Wallpaper generation method and device and electronic equipment
Technical Field
The application belongs to the technical field of computers, and particularly relates to a wallpaper generation method and device and an electronic device.
Background
With the continuous development of electronic technology, electronic devices such as mobile phones, computers, tablet computers and the like have been deeply inserted into the lives of people. In addition to the basic communication internet function, the electronic device generally has a wallpaper function, so that a user can set a background picture of a screen of the electronic device according to the preference of the user.
Currently, a user can select an image in a wallpaper library of the electronic device or select an image in an album of the electronic device as wallpaper of a screen of the electronic device according to own preference. However, current electronic devices do not provide wallpaper that can both restore the appearance of a building and preserve the core features of the building.
Disclosure of Invention
The embodiment of the application aims to provide a wallpaper generation method, which can solve the problem that electronic equipment in the prior art does not provide wallpaper which can not only restore the appearance of a building, but also retain the core characteristics of the building.
In a first aspect, an embodiment of the present application provides a wallpaper generation method, where the method includes:
acquiring contour information of a target building, wherein the target building is determined by electronic equipment positioning or an image acquired by the electronic equipment;
according to the contour information of the target building, three-dimensional reconstruction is carried out on the target building, and a target image containing the target building after three-dimensional reconstruction is generated;
and setting the target image as wallpaper.
In a second aspect, an embodiment of the present application provides a wallpaper generation apparatus, including:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring contour information of a target building, and the target building is positioned by electronic equipment or determined by an image acquired by the electronic equipment;
the reconstruction module is used for performing three-dimensional reconstruction on the target building according to the contour information of the target building to generate a target image containing the target building after the three-dimensional reconstruction;
and the setting module is used for setting the target image as wallpaper.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a target building is determined through electronic equipment positioning or an image acquired by electronic equipment, the target building is subjected to three-dimensional reconstruction according to contour information of the target building, a target image containing the target building subjected to three-dimensional reconstruction is generated, and the target image is set as wallpaper. That is, the wallpaper in the application is a target image obtained by three-dimensionally reconstructing a target building based on contour information of the target building, and thus the wallpaper can not only show the appearance of the target building, but also retain the core features of the target building.
Drawings
Fig. 1 is a flowchart of a wallpaper generation method provided in an embodiment of the present application;
FIG. 2 is a schematic view of an interface display of an electronic device according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an interface display of an electronic device according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a wallpaper generation apparatus provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced otherwise than as shown or described herein and the terms "first," "second," and the like are used generically and do not limit the number of terms to which they may be applied, e.g., the first term may refer to one or more than one term. Further, in the specification and claims, "and/or" means at least one of the connected objects, the character "/" generally means a relationship that preceding and succeeding associated objects are an "or".
The wallpaper generation method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Please refer to fig. 1, which is a flowchart illustrating a wallpaper generation method according to an embodiment of the present application. The method can be applied to electronic equipment, and the electronic equipment can be a mobile phone, a tablet computer, a notebook computer and the like. As shown in fig. 1, the method may include steps S1100 to S1300, which are described in detail below.
Step S1100, contour information of the target building is acquired.
The target building is determined by electronic device positioning or an image acquired by the electronic device.
In one example, the target building may be located by an electronic device.
In this example, the electronic device is provided with a positioning device. The positioning device can be a wireless transceiver with a GPS positioning module, the GPS positioning module is mainly communicated with a satellite, acquires longitude and latitude information of the electronic equipment in real time, and uses the acquired longitude and latitude information as the position information of the electronic equipment to position the electronic equipment. For example, the building located by the GPS location module of the electronic device may be the building in the left image in fig. 2, or may be the building in the left image in fig. 3.
In one example, the target building may be determined from an image acquired by the electronic device.
In this example, the electronic device is provided with an imaging device, and the user acquires an image including a landmark building in the target area based on the imaging device of the electronic device, and the electronic device specifies the landmark building as the target building based on the image.
The target area may be a certain country, a certain city, a certain administrative area of a certain city, etc.
The landmark buildings within the target area may include buildings with cultural metaphors. The landmark buildings in the target area may also include buildings with top-ranked user preferences. The landmark buildings within the target area may also include buildings having a height above a set height and/or a footprint above a set area.
As shown in the left image in fig. 2, the user may capture an image containing a landmark building (large theater) in city a based on the camera of the electronic apparatus, and the electronic apparatus determines the landmark building as the target building based on the image.
As shown in fig. 3, the user may capture an image including a landmark building (square) in the 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.
The contour information of the target building can embody the overall appearance of the target building.
In this embodiment, after the target building is determined, the contour information of the target building may be extracted based on edge detection.
Taking the left image of fig. 2 as an example, the target building is a large theater, where the left image of fig. 2 can be edge-detected to obtain the contour information of the large theater, and as can be seen from the middle image of fig. 2, the overall shape of the large theater in the city is simple and powerful, and is a glass space-time ship.
After acquiring the contour information of the target building, entering:
and step S1200, performing three-dimensional reconstruction on the target building according to the contour information of the target building, and generating a target image containing the three-dimensionally reconstructed target building.
In this embodiment, after the contour information of the target building is obtained, the target building may be three-dimensionally reconstructed according to the contour information of the target building, and then a target image including the three-dimensionally reconstructed target building is generated. That is, according to the present step S1200, it is equivalent to performing secondary creation on the target building according to the contour information of the target building, so that the created target image can embody the core feature of the target building.
In this embodiment, the target buildings may be divided into different types according to the types of the buildings, and since the different types of the target buildings have large morphological differences, after the contour information of the target building is obtained, the three-dimensional reconstruction of the target building needs to be performed in combination with the types of the target building, so as to obtain a target image including the three-dimensional reconstructed target building.
In this embodiment, in step S1200, performing three-dimensional reconstruction on the target building according to the contour information of the target building to obtain a target image including the three-dimensional reconstructed target building may further include steps S1210 to S1220 of:
step S1210, 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 target building after the three-dimensional reconstruction.
Types of target buildings include, for example, but are not limited to: monomer building types, building group types, mountain building group types, bridges and roads.
The single building type building is a building formed by a plurality of building structures which are arranged on the same horizontal line and are partially overlapped and staggered together. A single building type building may be referred to as a single building.
The building group type building is a building group consisting of a plurality of single buildings on the same horizontal line. Or, the building group is formed by connecting single buildings at the same horizontal line and single buildings adjacent to the single buildings in a contact manner. Buildings of the building complex type may be referred to as building complexes.
The mountain building group type building is a building group constructed according to natural landform and topography. The mountain building group type building is a building group with different horizontal lines, and is closely integrated with the environment.
The bridge is a building constructed by a road crossing natural or artificial barriers.
The above roads are buildings for various trackless vehicles and pedestrians to pass through.
In one example, the three-dimensionally reconstructing the target building according to the contour information of the target building and the type of the target building to obtain the second image including the three-dimensionally reconstructed target building may further include the following steps S1211a to S1212a:
step S1211a, in the case that the type is the single building type, three-dimensionally reconstructing the target building based on the contour information, the target visual data, and the target proportion parameter.
The target ratio parameter is the picture ratio parameter of the target building in the target image. In case the type is a building type, the target proportion parameter may be 70%, i.e. the picture proportion of the target building in the target image is more than 70%.
The target visual data is the angle data with the most spatial hierarchy of the target building.
Continuing with the example of fig. 2, the target building is a large theater, and the large theater is a single building type building, and as can be seen from the left image and the middle image of fig. 2, the outline profile of the large theater is of the type of a glass space ship. And, since the side with the most stereoscopic space hierarchy of the large theater is the front side of the large theater, the target visual data is front view angle data. The contour information, the elevation angle data and the target ratio parameter can be processed based on three-dimensional reconstruction software, and a three-dimensional model of the large theater can be obtained. The three-dimensional reconstruction software is not limited.
In step S1212a, blurring the background other than the target building is performed, and a second image including the three-dimensionally reconstructed target building is obtained.
In step S1212a, in addition to the three-dimensional reconstruction of the target building, blurring of the background other than the target building is also required to obtain the second image including the three-dimensional reconstructed target building.
Blurring an area other than the target building includes: and extracting a background outside the target building, and performing different blurring processing on the background according to different types of the background.
For example, in the case where the background includes a plurality of roads, the plurality of roads may be filtered to leave only one main road, and the main road may be three-dimensionally reconstructed according to the above step S1211 a.
For another example, if the background is a bridge and the percentage of the bridge in the image acquired by the electronic device exceeds 30%, the bridge is three-dimensionally reconstructed according to the above step S1211 a.
For another example, in a case where the background includes a lake or a river, and the proportion of the lake or the river in the image acquired by the electronic device exceeds 30%, the lake or the river is three-dimensionally reconstructed according to the above step S1211 a.
For example, if the background includes vegetation and the proportion of vegetation in the image acquired by the electronic device exceeds 30%, the vegetation is three-dimensionally reconstructed according to the above step S1211 a.
In one example, the three-dimensionally reconstructing the target building according to the contour information of the target building and the type of the target building to obtain the second image including the three-dimensionally reconstructed target building may further include the following steps S1211b to S1213 b:
in step S1211b, in the case where the type is the building group type, a main area of the target building is determined based on the contour information and the target visual data.
The main area of the target building is an area capable of embodying core features of the target building.
The target visual data is the angle data with the highest hierarchy of the target building control.
Taking the left image of fig. 3 as an example, the target building is a square, and the square is a building of a building group type, as can be seen from the left image of fig. 3, the square is composed of eight turrets with outer vertical surfaces in arc line shapes and a crystal corridor, and the crystal corridor connects four of the turrets. And, since the side with the most stereoscopic spatial hierarchy of the square is the front side of the square, the target visual data is front view angle data.
As can be seen from the left image of fig. 3, the plaza is most distinguished by the two ultrahigh turrets and crystal galleries in the middle, and the two ultrahigh turrets and crystal galleries in the middle are determined as the main body area of the plaza. Here, the main area of the square may be extracted symmetrically with respect to the central axis area of the contour information of the square in the front view.
In step S1212b, the contour information of the body region is acquired as the first contour information.
Taking the middle image of fig. 3 as an example, the extracted main area of the square is two ultrahigh turrets and crystal galleries, and since the main area is H-shaped, the contour information of H-shaped can be extracted as the first contour information.
Step S1213b, according to the first contour information and the target proportion parameter, three-dimensionally reconstruct the target building, and perform blurring processing on the background outside the target building, to obtain a second image including the three-dimensionally reconstructed target building.
The target ratio parameter is the picture ratio parameter of the target building in the target image. In the case where the type is a building group type, the target occupancy parameter may be 50%, that is, the picture occupancy of the target building in the target image is more than 50%.
In step S1213b, after extracting the H-shaped contour information as the first contour information, the first contour information and the target proportion parameter may be processed based on the three-dimensional reconstruction software, so as to obtain a three-dimensional model of the square. And performing blurring processing on the background outside the square to obtain a second image including the three-dimensionally reconstructed square, where reference may be made to the example of step S1212b for how to perform blurring processing on the background, which is not described herein again.
In one example, the three-dimensionally reconstructing the target building according to the contour information of the target building and the type of the target building to obtain the second image including the three-dimensionally reconstructed target building may further include the following steps S1211c to S1214 c:
in step S1211c, in the case that the type is a mountain building group type, the target building includes a plurality of individual buildings located at different heights.
In step S1211c, in the case that the type of the target building is a mountain building group, the plurality of individual buildings in the mountain building group are located on different horizontal lines, so that the plurality of individual buildings have different heights.
In step S1212c, height relationships among the plurality of individual buildings are acquired.
In step S1212c, in order to perform three-dimensional reconstruction on the target building of the mountain building type, it is necessary to distinguish a height relationship between a plurality of single buildings in the target building, and the spatial hierarchy of the target building can be obtained through the obtained height relationship between the plurality of single buildings.
Step S1213c, second contour information is determined according to the height relationship between the plurality of individual buildings.
In step S1213c, after the height relationship between the plurality of individual buildings is obtained to obtain the spatial hierarchy of the target building, since the target building of the mountain building group type has more spatial hierarchies, the spatial hierarchies may be filtered according to the height relationship between the plurality of individual buildings, and the contour information of the target building with an obvious spatial hierarchy is retained as the second contour information.
Step S1214c is performed to perform three-dimensional reconstruction on the target building according to the second contour information and the target proportion parameter, and perform blurring processing on the background outside the target building, so as to obtain a second image including the three-dimensional reconstructed target building.
The target ratio parameter is the picture ratio parameter of the target building in the target image. In the case where the type is a mountain building group type, the target occupancy parameter may be 40%, that is, the picture occupancy of the target building in the target image is more than 40%.
In step S1214c, the second contour information and the target proportion parameter may be processed based on the three-dimensional reconstruction software to obtain a three-dimensional model of the target building. And performing blurring processing on the background outside the target building to obtain a second image including the three-dimensionally reconstructed target building, and for how to perform blurring processing on the background, reference may be made to the example of step S1212b, which is not described herein again.
Step S1220, performing preset processing on the second image to obtain a target image including the target building after three-dimensional reconstruction.
The preset treatment comprises effect treatment and/or material treatment. The effect treatments include, for example, frosted translucent, light effects, and the like. The material treatment includes, for example, treatment of metal, wood, and the like.
Continuing with the example in step S1212a above, the theater effect is set to frosted in the second image, and a rectangular array of hollow windows is added to the three-dimensional model of the theater, resulting in the right image of fig. 2 as the target image.
Continuing with the example of step S1213b, two super high tower steel frame structures and translucent outer facade materials are set in the second image, and four towers on both sides are set as metal materials, so as to obtain the right image of fig. 3 as the target image.
After three-dimensional reconstruction is carried out on the target building according to the contour information of the target building, and a target image containing the target building after three-dimensional reconstruction is generated, entering:
in step S1300, the target image is set as wallpaper.
In this embodiment, the setting the target image as the wallpaper in step S1300 may further include: an input to set the target image as wallpaper is received, and in response to the input, the target image is set as desktop wallpaper and displayed.
According to the embodiment, the target building is determined through the positioning of the electronic device or the image acquired by the electronic device, the target building is three-dimensionally reconstructed according to the contour information of the target building, and then the target image containing the three-dimensionally reconstructed target building is generated and set as the wallpaper. That is, the wallpaper in this application is a target image obtained by three-dimensionally reconstructing a target building based on the contour information of the target building, and thus the wallpaper can not only show the appearance of the target building, but also retain the overall characteristics of the target building.
Corresponding to the above embodiments, referring to fig. 4, an embodiment of the present application further provides a wallpaper generation apparatus 400, including:
an obtaining module 410, configured to obtain contour information of a target building, where the target building is determined by positioning through an electronic device or an image obtained by the electronic device.
And the reconstruction module 420 is configured to perform three-dimensional reconstruction on the target building according to the contour information of the target building, so as to obtain a plurality of target images including the three-dimensional reconstructed target building.
A setting module 430, configured to set the target image as wallpaper.
In an embodiment, the reconstruction module 420 is specifically configured to: according to the contour information of the target building and the type of the target building, three-dimensional reconstruction is carried out on the target building, and a second image containing the target building after three-dimensional reconstruction is obtained; and performing preset processing on the second image to obtain a target image containing the target building after three-dimensional reconstruction.
The preset treatment comprises effect treatment and/or material treatment.
In an embodiment, the reconstruction module 420 is specifically configured to: under the condition that the type is a single building type, performing three-dimensional reconstruction on the target building based on the contour information, the target visual data and the target proportion parameter; the target proportion parameter is a picture proportion parameter of the target building in the target image; blurring the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building.
In an embodiment, the reconstruction module 420 is specifically configured to: determining a main body area of the target building according to the contour information and the target visual data under the condition that the type is a building group type; acquiring contour information of the main body area as first contour information; according to the first contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; the target proportion parameter is the picture proportion parameter of the target building in the target image.
In an embodiment, the reconstruction module 420 is specifically configured to: in the case that the type is a mountain building group type, the target building includes a plurality of individual buildings located at different heights; acquiring the height relation among a plurality of single buildings; determining second contour information according to height relations among the single buildings; according to the second contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; the target ratio parameter is the picture ratio parameter of the target building in the target image.
The wallpaper generation device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The wallpaper generation device in the embodiment of the application may be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
The wallpaper generation device provided by the embodiment of the application can implement each process implemented by the method embodiment, and is not described herein again to avoid repetition.
Corresponding to the foregoing embodiments, optionally, as shown in fig. 5, an electronic device 500 is further provided in this embodiment of the present application, and includes a processor 501, a memory 502, and a program or an instruction stored in the memory 502 and capable of being executed on the processor 501, where the program or the instruction is executed by the processor 501 to implement each process of the foregoing image display method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
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, a processor 610, and the like.
Those skilled in the art will appreciate that the electronic device 600 may further include a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 610 through a power management system, so that the functions of managing charging, discharging, and power consumption are implemented through the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 610 is configured to obtain contour information of a target building, where the target building is determined by positioning through an electronic device or an image obtained by the electronic device; according to the contour information of the target building, three-dimensional reconstruction is carried out on the target building, and a target image containing the target building after three-dimensional reconstruction is generated; and setting the target image as wallpaper.
In one embodiment, the processor 610 is 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, so as to obtain a second image including the three-dimensional reconstructed target building; performing preset processing on the second image to obtain a target image containing the target building after three-dimensional reconstruction; the preset treatment comprises effect treatment and/or material treatment.
In one embodiment, the processor 610 is configured to perform three-dimensional reconstruction on the target building based on the contour information, the target visual data and the target proportion parameter if the type is a single building type; the target proportion parameter is a picture proportion parameter of the target building in the target image; blurring the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building.
In one embodiment, the processor 610 is configured to determine a main area of the target building according to the contour information and the target visual data if the type is a building group type; acquiring contour information of the main body area as first contour information; according to the first contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; and the target proportion parameter is the picture proportion parameter of the target building in the target image.
In one embodiment, the processor 610 is configured to, in a case where the type is a mountain building group type, configure the target building to include a plurality of individual buildings located at different heights; acquiring the height relation among a plurality of single buildings; determining second contour information according to height relations among the single buildings; according to the second contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; and the target proportion parameter is the picture proportion parameter of the target building in the target image.
It is to be understood that, in the embodiment of the present application, the input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics Processing Unit 6041 processes image data of a still picture or a video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing 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, or the like. The user input unit 607 includes a touch panel 6071 and other input devices 6072. A touch panel 6071, also referred to as a touch screen. The touch panel 6071 may include two parts of a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 609 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 610 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 610.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the wallpaper generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to run a program or an instruction to implement each process of the wallpaper generation method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as a system-on-chip, or a system-on-chip.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order, depending on the functionality involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the above embodiment method can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk), and including instructions for enabling a terminal (e.g., mobile phone, computer, server, or network device) to execute the methods according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the scope of the invention as defined by the appended claims.

Claims (12)

1. A wallpaper generation method, the method comprising:
acquiring contour information of a target building, wherein the target building is determined by electronic equipment positioning or an image acquired by the electronic equipment;
according to the contour information of the target building, three-dimensional reconstruction is carried out on the target building, and a target image containing the target building after three-dimensional reconstruction is generated;
and setting the target image as wallpaper.
2. The method of claim 1, wherein the three-dimensionally reconstructing the target building according to the contour information of the target building to generate a target image including the three-dimensionally reconstructed target building comprises:
according to the contour information of the target building and the type of the target building, three-dimensional reconstruction is carried out on the target building, and a second image containing the target building after three-dimensional reconstruction is obtained;
performing preset processing on the second image to obtain a target image containing the target building after three-dimensional reconstruction;
the preset treatment comprises effect treatment and/or material treatment.
3. The method of claim 2, wherein the three-dimensionally reconstructing 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:
under the condition that the type is a single building type, performing three-dimensional reconstruction on the target building based on the contour information, the target visual data and the target proportion parameter; wherein the target proportion parameter is a picture proportion parameter of the target building in the target image;
blurring the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building.
4. The method of claim 2, wherein the three-dimensionally reconstructing 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:
determining a main body area of the target building according to the contour information and the target visual data under the condition that the type is a building group type;
acquiring contour information of the main body area as first contour information;
according to the first contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; and the target proportion parameter is the picture proportion parameter of the target building in the target image.
5. The method of claim 2, wherein the three-dimensionally reconstructing 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 that the type is a mountain building group type, the target building includes a plurality of individual buildings located at different heights;
acquiring the height relation among a plurality of single buildings;
determining second contour information according to height relations among the single buildings;
according to the second contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; and the target proportion parameter is the picture proportion parameter of the target building in the target image.
6. A wallpaper generation apparatus, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring contour information of a target building, and the target building is positioned by electronic equipment or determined by an image acquired by the electronic equipment;
the reconstruction module is used for performing three-dimensional reconstruction on the target building according to the contour information of the target building to generate a target image containing the target building after the three-dimensional reconstruction;
and the setting module is used for setting the target image as wallpaper.
7. The apparatus according to claim 6, wherein the reconstruction module is specifically configured to:
according to the contour information of the target building and the type of the target building, three-dimensional reconstruction is carried out on the target building, and a second image containing the target building after three-dimensional reconstruction is obtained;
performing preset processing on the second image to obtain a target image containing the target building after three-dimensional reconstruction;
wherein; the preset treatment comprises effect treatment and/or material treatment.
8. The apparatus according to claim 7, wherein the reconstruction module is specifically configured to:
under the condition that the type is a single building type, performing three-dimensional reconstruction on the target building based on the contour information, the target visual data and the target proportion parameter; wherein the target proportion parameter is a picture proportion parameter of the target building in the target image;
blurring the background outside the target building to obtain a second image containing the three-dimensionally reconstructed target building.
9. The apparatus according to claim 7, wherein the reconstruction module is specifically configured to:
determining a main body area of the target building according to the contour information and the target visual data under the condition that the type is a building group type;
acquiring contour information of the main body area as first contour information;
according to the first contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; and the target proportion parameter is the picture proportion parameter of the target building in the target image.
10. The apparatus according to claim 7, wherein the reconstruction module is specifically configured to:
in the case that the type is a mountain building group type, the target building includes a plurality of individual buildings located at different heights;
acquiring the height relation among a plurality of single buildings;
determining second contour information according to height relations among the single buildings;
according to the second contour information and the target proportion parameter, performing three-dimensional reconstruction on the target building, and performing blurring processing on a background outside the target building to obtain a second image containing the target building after three-dimensional reconstruction; and the target proportion parameter is the picture proportion parameter of the target building in the target image.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor, implement the steps of the wallpaper generation method according to any one of claims 1-5.
12. A readable storage medium, on which a program or instructions are stored, which when executed by a processor, implement the steps of the wallpaper generation method according to any one of claims 1 to 5.
CN202110868977.5A 2021-07-29 2021-07-29 Wallpaper generation method and device and electronic equipment Pending CN113674396A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202110868977.5A CN113674396A (en) 2021-07-29 2021-07-29 Wallpaper generation method and device and electronic equipment
PCT/CN2022/108455 WO2023006011A1 (en) 2021-07-29 2022-07-28 Wallpaper generation method and apparatus and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110868977.5A CN113674396A (en) 2021-07-29 2021-07-29 Wallpaper generation method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN113674396A true CN113674396A (en) 2021-11-19

Family

ID=78540961

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110868977.5A Pending CN113674396A (en) 2021-07-29 2021-07-29 Wallpaper generation method and device and electronic equipment

Country Status (2)

Country Link
CN (1) CN113674396A (en)
WO (1) WO2023006011A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023006011A1 (en) * 2021-07-29 2023-02-02 维沃移动通信有限公司 Wallpaper generation method and apparatus and electronic device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201044246A (en) * 2009-06-01 2010-12-16 Mitac Int Corp Electronic apparatus
US20110279453A1 (en) * 2010-05-16 2011-11-17 Nokia Corporation Method and apparatus for rendering a location-based user interface
CN103473259A (en) * 2013-06-18 2013-12-25 展讯通信(上海)有限公司 Display interface change system and display interface change method
KR20150011577A (en) * 2013-07-23 2015-02-02 삼성전자주식회사 Device, method and computer readable recording medium for displaying a wallpaper on an electronic device
CN108320323B (en) * 2017-01-18 2021-10-01 华为技术有限公司 Building three-dimensional modeling method and device
CN113674396A (en) * 2021-07-29 2021-11-19 维沃移动通信有限公司 Wallpaper generation method and device and electronic equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023006011A1 (en) * 2021-07-29 2023-02-02 维沃移动通信有限公司 Wallpaper generation method and apparatus and electronic device

Also Published As

Publication number Publication date
WO2023006011A1 (en) 2023-02-02

Similar Documents

Publication Publication Date Title
CN107545788B (en) Goods electronic sand map system is deduced based on the operation that augmented reality is shown
Huang et al. Mobile augmented reality survey: a bottom-up approach
DE112013002803B4 (en) Method, system and device for providing a three-dimensional transition animation for a change in a map view
US20210397628A1 (en) Method and apparatus for merging data of building blocks, device and storage medium
CN107423445A (en) A kind of map data processing method, device and storage medium
CN107018336A (en) The method and apparatus of image procossing and the method and apparatus of Video processing
US20160019713A1 (en) Blending between street view and earth view
CN105339987A (en) Image extraction and image-based rendering for manifolds of terrestrial, aerial and/or crowd-sourced visualizations
Wang Landscape design of coastal area based on virtual reality technology and intelligent algorithm
CN104657458A (en) Method and device for presenting object information of foreground object in scene image
Zhang et al. An efficient flood dynamic visualization approach based on 3D printing and augmented reality
Xie Intangible cultural heritage high-definition digital mobile display technology based on vr virtual visualization
CN110070616A (en) Memory, statistical data rendering method, device and equipment based on GIS platform
CN106971142B (en) A kind of image processing method and device
CN112990053B (en) Image processing method, device, equipment and storage medium
CN102147926A (en) Three-dimensional (3D) icon processing method and device and mobile terminal
Haynes et al. Mobile augmented reality for flood visualisation in urban riverside landscapes
CN112053440A (en) Method for determining individualized model and communication device
WO2022174517A1 (en) Crowd counting method and apparatus, computer device and storage medium
CN113674396A (en) Wallpaper generation method and device and electronic equipment
CN113018865B (en) Climbing line generation method and device, computer equipment and storage medium
KR102276659B1 (en) Method for displaying facility through augmented reality using geospatial information
CN112348965A (en) Imaging method, imaging device, electronic equipment and readable storage medium
CN112948518A (en) Object processing method and device, electronic equipment and computer storage medium
She et al. A building label placement method for 3D visualizations based on candidate label evaluation and selection

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination