WO2023006011A1 - 壁纸生成方法、装置及电子设备 - Google Patents

壁纸生成方法、装置及电子设备 Download PDF

Info

Publication number
WO2023006011A1
WO2023006011A1 PCT/CN2022/108455 CN2022108455W WO2023006011A1 WO 2023006011 A1 WO2023006011 A1 WO 2023006011A1 CN 2022108455 W CN2022108455 W CN 2022108455W WO 2023006011 A1 WO2023006011 A1 WO 2023006011A1
Authority
WO
WIPO (PCT)
Prior art keywords
target
building
target building
image
dimensional reconstruction
Prior art date
Application number
PCT/CN2022/108455
Other languages
English (en)
French (fr)
Inventor
何君尧
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2023006011A1 publication Critical patent/WO2023006011A1/zh

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

Definitions

  • the present application belongs to the field of computer technology, and in particular relates to a wallpaper generation method, device and electronic equipment.
  • electronic devices such as mobile phones, computers, and tablet computers have penetrated into people's lives.
  • electronic devices In addition to basic communication and Internet access functions, electronic devices generally have a wallpaper function, so that users can set the background picture of the screen of the electronic device according to their preferences.
  • the user can select an image in the wallpaper library of the electronic device according to his preference, or select an image in the photo album of the electronic device as the wallpaper of the screen of the electronic device.
  • electronic devices do not provide wallpapers that can not only restore the appearance of buildings, but also retain the core features of buildings.
  • the purpose of the embodiments of the present application is to provide a method for generating wallpaper, which can solve the problem that electronic devices in the prior art cannot provide wallpaper that can not only restore the style of the building, but also retain the core features of the building.
  • the embodiment of the present application provides a method for generating wallpaper, the method including:
  • Obtaining outline information of a target building the target building being determined by positioning the electronic device or an image acquired by the electronic device;
  • the embodiment of the present application provides a wallpaper generating device, which includes:
  • An acquisition module configured to acquire outline information of a target building, the target building being determined by positioning the electronic device or an image acquired by the electronic device;
  • a reconstruction module configured to perform three-dimensional reconstruction on the target building according to the outline information of the target building, and generate a target image including the three-dimensional reconstructed target building;
  • the setting module is used for setting the target image as wallpaper.
  • an embodiment of the present application provides an electronic device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • the target building will be determined first through the positioning of the electronic device or the image acquired by the electronic device, and the target building will be reconstructed in 3D according to the outline information of the target building, and then the target building including the 3D reconstruction will be generated.
  • object's target image and set the target image as wallpaper is a target image obtained by 3D reconstruction of the target building based on the outline information of the target building, so the wallpaper can not only show the style of the target building, but also retain the core features of the target building.
  • Fig. 1 is a flow chart of the method for generating wallpaper provided by the embodiment of the present application
  • FIG. 2 is a schematic diagram of an interface display of an electronic device provided in an embodiment of the present application.
  • FIG. 3 is a schematic diagram of an interface display of an electronic device provided by another embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of a wallpaper generation device provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of an electronic device provided by another embodiment of the present application.
  • FIG. 1 is a flow chart of a wallpaper generation method provided by an embodiment of the present application.
  • the method can be applied to an electronic device, and the electronic device can be a mobile phone, a tablet computer, a notebook computer, and the like.
  • the method may include step S1100 to step S1300, which will be described in detail below.
  • Step S1100 acquiring contour information of a target building.
  • the target building is determined through positioning of the electronic device or images acquired by the electronic device.
  • the target building can be located electronically.
  • 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 mainly maintains communication with satellites, obtains the latitude and longitude information of the electronic equipment in real time, and uses the obtained latitude and longitude information as the position information of the electronic equipment to locate the electronic equipment.
  • the building positioned by the GPS positioning module of the electronic device may be the building in the left image in FIG. 2 or the building in the left image in FIG. 3 .
  • the target building may be identified from images captured by the electronic device.
  • the electronic device is provided with a camera, and the user collects an image including a landmark building in the target area based on the camera device of the electronic device, and the electronic device determines that the landmark building is the target building based on the image.
  • the target area may be a certain country, a certain city, a certain administrative region of a certain city, and the like.
  • 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 first in user preference.
  • the landmark buildings in the target area may also include buildings whose height exceeds a set height and/or whose floor area exceeds a set area.
  • the user can capture an image containing a landmark building (grand theater) in city A based on the camera device of the electronic device, and the electronic device determines that the landmark building is the target building based on the image.
  • a landmark building (grand theater) in city A based on the camera device of the electronic device
  • the user may collect an image including a landmark building (square) in city A based on the camera device of the electronic device, and the electronic device determines the landmark building as the target building based on the image.
  • a landmark building square
  • the outline information of the target building can reflect the overall shape of the target building.
  • outline information of the target building may be extracted based on edge detection.
  • the target building is the Grand Theater.
  • edge detection can be performed on the left image in Figure 2 to obtain the outline information of the Grand Theater. From the middle image in Figure 2, it can be seen that the city The overall shape of the Grand Theater is simple and powerful, similar to a glass space-time ship.
  • Step S1200 perform 3D reconstruction on the target building according to the outline information of the target building, and generate a target image including the 3D reconstructed target building.
  • the target building after the contour information of the target building is acquired, the target building can be reconstructed three-dimensionally according to the contour information of the target building, and then a target image including the three-dimensional reconstructed target building can be generated. That is, according to this step S1200, it is equivalent to performing secondary creation on the target building according to the outline information of the target building, so that the created target image can reflect the core features of the target building.
  • 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 outline information of the target building, it is necessary to combine the target building type, the target building can be 3D reconstructed, and then the target image including the 3D reconstructed target building can be obtained.
  • step S1200 according to the outline information of the target building, perform 3D reconstruction on the target building, and obtain the target image including the 3D reconstructed target building may further include the following steps S1210-S1220:
  • Step S1210 perform 3D reconstruction on the target building according to the outline information of the target building and the type of the target building, and obtain a second image including the 3D reconstructed target building.
  • Types of target buildings include, but are not limited to: single building types, building complex types, mountain building complex types, bridges, and roads.
  • a building of the single building type is a building composed of multiple building structures on the same horizontal line that are partly overlapped and staggered together.
  • a single building type of building can be called a single building.
  • a group of buildings is a group of buildings composed of multiple single buildings on the same level. Or, a building group composed of single buildings on the same level and adjacent single buildings connected together in the form of contact points. Buildings of the complex type may be referred to as complexes.
  • the buildings of the mountain complex type are buildings built according to the natural topography.
  • the buildings of the mountain complex type are buildings of different levels, which are closely integrated with the environment.
  • the above-mentioned bridges are buildings built by roads crossing natural or artificial obstacles.
  • the above roads are buildings for various trackless vehicles and pedestrians.
  • the above three-dimensional reconstruction of the target building is performed according to the outline information of the target building and the type of the target building, and the second image containing the three-dimensional reconstructed target building may further include the following steps S1211a-S1212a:
  • Step S1211a if the type is a single building type, perform 3D reconstruction of the target building based on the outline information, target visual data and target proportion parameters.
  • the target ratio parameter is a frame ratio parameter of the target building in the target image.
  • the target proportion parameter may be 70%, that is, the proportion of the target building in the target image must exceed 70%.
  • the target visual data is the angle data with the most spatial layers of the target building.
  • the target building is the Grand Theater
  • the Grand Theater is a single-building building. From the left and middle images of Figure 2, it can be seen that the outline of the Grand Theater is similar to a glass vessel time ship. Moreover, since the side with the most three-dimensional space levels of the Grand Theater is the front of the Grand Theater, the target visual data is the front view angle data.
  • the contour information, elevation angle data and target proportion parameters can be processed to obtain a 3D model of the Grand Theater.
  • the 3D reconstruction software is not limited.
  • Step S1212a blurring the background outside the target building to obtain a second image including the 3D reconstructed target building.
  • Performing blur processing on areas other than the target building includes: extracting backgrounds other than the target building, and performing different blur processing on the background according to different background types.
  • the multiple roads may be filtered and only one main road may be reserved, and the three-dimensional reconstruction of the main road may be performed according to the above step S1211a.
  • the background is a bridge
  • the proportion of the bridge in the image captured by the electronic device is more than 30%
  • the background includes a lake or a river
  • the proportion of the lake or river in the image captured by the electronic device is more than 30%
  • the above three-dimensional reconstruction of the target building is performed according to the outline information of the target building and the type of the target building, and the obtaining of the second image containing the three-dimensional reconstructed target building may further include the following steps S1211b-S1213b:
  • Step S1211b if the type is a group of buildings, determine the main body area of the target building according to the outline information and the target visual data.
  • the main area of the target building is an area that can reflect the core features of the target building.
  • the target visual data is the angle data with the most spatial layers of the target building.
  • the target building is a square
  • the square is a building complex. From the left image of Figure 3, it can be seen that the square consists of eight towers with arc-shaped facades And a crystal corridor, the crystal corridor connects four of the towers. Moreover, since the side of the square with the most layers in the three-dimensional space is the front of the square, the target visual data is the front view angle data.
  • the main body area of the square may be extracted symmetrically with the central axis area of the outline information of the square under the front viewing angle.
  • Step S1212b acquiring contour information of the subject area as first contour information.
  • the extracted main area of the square is the two super-tall towers and the crystal corridor in the middle. Since the main area presents an H-shape, here, the outline of the H-shape can be extracted information as the first contour information.
  • Step S1213b perform 3D reconstruction on the target building according to the first contour information and the target proportion parameter, and perform blur processing on the background outside the target building, to obtain a second image including the 3D reconstructed target building.
  • the target ratio parameter is a frame ratio parameter of the target building in the target image.
  • the target proportion parameter may be 50%, that is, the proportion of the target building in the target image must exceed 50%.
  • step S1213b after the H-shape contour information is extracted as the first contour information, the first contour information and target proportion parameters can be processed based on the above-mentioned 3D reconstruction software to obtain a 3D model of the square.
  • the background other than the square is blurred to obtain a second image including the three-dimensionally reconstructed square.
  • step S1212b please refer to the example of step S1212b above, which will not be repeated here.
  • the above three-dimensional reconstruction of the target building is performed according to the outline information of the target building and the type of the target building, and the obtaining of the second image containing the three-dimensional reconstructed target building may further include the following steps S1211c-S1214c:
  • Step S1211c when the type is a group of mountain buildings, the target building includes multiple single buildings at different heights.
  • step S1211c when the type of the target building is a group of mountain buildings, since the multiple individual buildings in the group of mountain buildings are located on different horizontal lines, the multiple individual buildings have different heights.
  • Step S1212c obtaining the height relationship among multiple individual buildings.
  • step S1212c in order to carry out 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.
  • the height relationship of the target building can be obtained.
  • Step S1213c determining second contour information according to the height relationship among multiple individual buildings.
  • step S1213c after obtaining the height relationship between multiple individual buildings to obtain the spatial hierarchy of the target building, since the target buildings of the mountainous building group have many spatial
  • the spatial hierarchy is filtered by the height relationship between the solid buildings, and the outline information of the target building with obvious spatial hierarchy is reserved as the second outline information.
  • Step S1214c perform 3D reconstruction on the target building according to the second contour information and the target proportion parameter, and perform blur processing on the background outside the target building, to obtain a second image including the 3D reconstructed target building.
  • the target ratio parameter is a frame ratio parameter of the target building in the target image.
  • the target proportion parameter may be 40%, that is, the proportion of the target building in the target image must exceed 40%.
  • the second contour information and target proportion parameters may 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 including the 3D reconstructed target building.
  • For how to blur the background please refer to the example of the above step S1212b, which will not be repeated here.
  • Step S1220 performing preset processing on the second image to obtain a target image including the 3D reconstructed target building.
  • Preset processing includes effect processing and/or material processing.
  • the effect processing includes, for example, frosted translucency, lighting effects, and the like.
  • Material processing includes, for example, processing such as metal and wood textures.
  • step S1212a set the effect of the Grand Theater to be frosted in the second image, and add a rectangular hollowed-out window array to the 3D model of the Grand Theater to obtain the right image in Figure 2 as the target image.
  • step S1213b set two super-tall towers with steel frame structures and translucent facade materials in the second image, set the four towers on both sides as metal materials, and obtain the right image in Figure 3 as the target image .
  • Step S1300 setting the target image as wallpaper.
  • setting the target image as the wallpaper in step S1300 may further include: receiving an input of setting the target image as the wallpaper, and setting and displaying the target image as the desktop wallpaper in response to the input.
  • the wallpaper in this application is a target image obtained by performing three-dimensional reconstruction of the target building based on the outline information of the target building, so the wallpaper can not only show the style and features of the target building, but also retain the overall characteristics of the target building.
  • the embodiment of the present application also provides a wallpaper generation device 400, including:
  • the acquiring module 410 is configured to acquire outline information of a target building, and the target building is determined through positioning of an electronic device or an image acquired by the electronic device.
  • the reconstruction module 420 is configured to perform three-dimensional reconstruction on the target building according to the outline information of the target building, and 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.
  • the reconstruction module 420 is specifically configured to: perform three-dimensional reconstruction on the target building according to the outline information of the target building and the type of the target building, and obtain the three-dimensional reconstructed The second image of the target building; performing preset processing on the second image to obtain a target image including the three-dimensionally reconstructed target building.
  • the preset processing includes effect processing and/or material processing.
  • the reconstruction module 420 is specifically configured to: if the type is a single building type, based on the outline information, target visual data and target proportion parameters, reconstruct the target building Carrying out three-dimensional reconstruction; wherein, the target ratio parameter is the frame ratio parameter of the target building in the target image; blurring the background outside the target building to obtain the three-dimensional reconstructed A second image of the target building.
  • the reconstruction module 420 is specifically configured to: determine the main body area of the target building according to the outline information and target visual data when the type is a group of buildings; obtain the The contour information of the main body area is used as the first contour information; according to the first contour information and the target proportion parameter, perform three-dimensional reconstruction on the target building, and perform blurring processing on the background outside the target building , obtaining a second image including the three-dimensionally reconstructed target building; the target proportion parameter is a frame proportion parameter of the target building in the target image.
  • the reconstruction module 420 is specifically configured to: when the type is a group of mountain buildings, the target building includes a plurality of single buildings located at different heights; The height relationship between the individual buildings; the second contour information is determined according to the height relationship between the plurality of individual buildings; according to the second contour information and the target proportion parameter, the target performing three-dimensional reconstruction of the building, 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 the target A frame ratio parameter of the building in the target image.
  • the wallpaper generating device in the embodiment of the present application may be a device, or a component, an integrated circuit, or a chip in a terminal.
  • the device may be a mobile electronic device or a non-mobile electronic device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the wallpaper generation device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the wallpaper generation device provided in the embodiment of the present application can implement the various processes implemented in the above method embodiments, and to avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, which are stored in the memory 502 and can be stored on the processor 501.
  • the program or instruction running on the computer when the program or instruction is executed by the processor 501, implements the various processes of the above image display method embodiment, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.
  • 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, and a processor 610, etc. part.
  • the electronic device 600 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 610 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the electronic device shown in FIG. 7 does not constitute a limitation to the electronic device.
  • the electronic device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, and details will not be repeated here. .
  • the processor 610 is configured to obtain the outline information of the target building, the target building is determined through the positioning of the electronic device or the image acquired by the electronic device; according to the outline information of the target building, the target building performing three-dimensional reconstruction on objects to generate a target image including the three-dimensionally reconstructed target building; and setting the target image as wallpaper.
  • the processor 610 is configured to perform three-dimensional reconstruction on the target building according to the outline information of the target building and the type of the target building, to obtain the target building including the three-dimensional reconstruction A second image of the object; performing preset processing on the second image to obtain a target image including the three-dimensionally reconstructed target building; wherein, the preset processing includes effect processing and/or material processing.
  • the processor 610 is configured to perform three-dimensional reconstruction on the target building based on the outline information, target visual data and target proportion parameters when the type is a single building type; Wherein, the target ratio parameter is the screen ratio parameter of the target building in the target image; the background outside the target building is blurred to obtain the target including the three-dimensional reconstruction The second image of the building.
  • the processor 610 is configured to determine the main body area of the target building according to the outline information and target visual data when the type is a group of buildings; acquire the main area of the main body area The contour information is used as the first contour information; according to the first contour information and the target proportion parameter, the target building is reconstructed in three dimensions, and the background outside the target building is blurred to obtain a three-dimensional The reconstructed second image of the target building; wherein, the target proportion parameter is a frame proportion parameter of the target building in the target image.
  • the input unit 604 may include a graphics processor (Graphics Processing Unit, GPU) 6041 and a microphone 6042, and the graphics processor 6041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • 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 .
  • the touch panel 6071 is also called a touch screen.
  • the touch panel 7071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 609 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 610 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the wallpaper generating method can be realized, and the same can be achieved. To avoid repetition, the technical effects will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiments.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the above-mentioned wallpaper generating method embodiment
  • the chip includes a processor and a communication interface
  • the communication interface is coupled to the processor
  • the processor is used to run programs or instructions to implement the above-mentioned wallpaper generating method embodiment
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • 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. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Abstract

本申请公开了一种壁纸生成方法、装置及电子设备,属于计算机技术领域。该方法包括:获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定;根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生成包含三维重建后的所述目标建筑物的目标图像;将所述目标图像设为壁纸。

Description

壁纸生成方法、装置及电子设备
相关申请的交叉引用
本申请要求于2021年07月29日提交的申请号为202110868977.5,发明名称为“壁纸生成方法、装置及电子设备”的中国专利申请的优先权,其通过引用方式全部并入本申请。
技术领域
本申请属于计算机技术领域,具体涉及一种壁纸生成方法、装置及电子设备。
背景技术
随着电子技术的不断发展,手机、电脑、平板电脑等电子设备已经深入到人们的生活中。除了基本的通信上网功能外,电子设备上一般都具有壁纸功能,以便于用户能够根据自己的喜好设置电子设备屏幕的背景图片。
目前,用户可以根据自己的喜好选择电子设备的壁纸库中的图像,或者选择电子设备的相册中的图像作为电子设备屏幕的壁纸。然而,目前电子设备并没有提供能够既还原建筑物风貌,又能保留建筑物核心特征的壁纸。
发明内容
本申请实施例的目的是提供一种壁纸生成方法,能够解决现有技术中的电子设备没有提供能够既还原建筑物风貌,又能保留建筑物核心特征的壁纸。
第一方面,本申请实施例提供了一种壁纸生成方法,该方法包括:
获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定;
根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生 成包含三维重建后的所述目标建筑物的目标图像;
将所述目标图像设为壁纸。
第二方面,本申请实施例提供了一种壁纸生成装置,该装置包括:
获取模块,用于获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定;
重建模块,用于根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生成包含三维重建后的所述目标建筑物的目标图像;
设置模块,用于将所述目标图像设为壁纸。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
在本申请实施例中,其会通过电子设备定位或电子设备获取的图像先确定目标建筑物,并根据目标建筑物的轮廓信息对目标建筑物进行三维重建,进而生成包含三维重建后的目标建筑物的目标图像并将该目标图像设为壁纸。即,本申请中的壁纸是基于目标建筑物的轮廓信息对目标建筑物进行三维重建得到的目标图像,则该壁纸不仅能展示该目标建筑物的风貌,还能够保留目标建筑物的核心特征。
附图说明
图1是本申请实施例提供的壁纸生成方法的流程图;
图2是本申请实施例提供的电子设备的界面显示示意图;
图3是本申请另一实施例提供的电子设备的界面显示示意图;
图4是本申请实施例提供的壁纸生成装置的结构示意图;
图5是本申请实施例提供的电子设备的结构示意图;
图6是本申请另一实施例提供的电子设备的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的壁纸生成方法进行详细地说明。
请参看图1,其是本申请实施例提供的一种壁纸生成方法的流程图。该方法可以应用于电子设备中,该电子设备可以为手机、平板电脑、笔记本电脑等。如图1所示,该方法可以包括步骤S1100~步骤S1300,以下予以详细说明。
步骤S1100,获取目标建筑物的轮廓信息。
目标建筑物通过电子设备定位或电子设备获取的图像确定。
在一个例子中,目标建筑物可以通过电子设备定位。
本例子中,电子设备上设置有定位装置。该定位装置可以为一个具有GPS 定位模块的无线收发装置,GPS定位模块主要与卫星保持通信,实时获取电子设备经纬度信息,并将获取到的经纬度信息作为电子设备的位置信息以对电子设备进行定位。例如,电子设备的GPS定位模块定位的建筑物可以为图2中左边图像中的建筑物,也可以是图3中左边图像中的建筑物。
在一个例子中,目标建筑物可以通过电子设备获取的图像确定。
本例子中,电子设备上设置有摄像装置,用户基于电子设备的摄像装置采集包含目标区域内的标志性建筑物的图像,电子设备基于该图像确定出该标志性建筑物为目标建筑物。
目标区域可以为某个国家、某个城市、某个城市的某个行政区域等。
目标区域内的标志性建筑物可以包括具有文化象征意义的建筑物。目标区域中的标志性建筑物也可以包括用户喜好程度排序靠前的建筑物。目标区域内的标志性建筑物还可以包括高度超过设定高度和/或占地面积超过设定面积的建筑物。
如图2中左边图像所示,用户可以基于电子设备的摄像装置采集包含城市A内的标志性建筑物(大剧院)的图像,电子设备基于该图像确定该标志性建筑物为目标建筑物。
如图3所示,用户可以基于电子设备的摄像装置采集包括城市A内的标志性建筑物(广场)的图像,电子设备基于该图像确定该标志性建筑物为目标建筑物。
目标建筑物的轮廓信息能够体现目标建筑物的整体外形。
本实施例中,确定目标建筑物之后,可以基于边缘检测提取该目标建筑物的轮廓信息。
以图2的左边图像为例,目标建筑物为大剧院,在此,可以对图2的左边图像进行边缘检测以得到该大剧院的轮廓信息,从图2的中间图像可以看出,该城市大剧院的整体外形简洁有力,类似于一艘玻璃时空船。
在获取目标建筑物的轮廓信息之后,进入:
步骤S1200,根据目标建筑物的轮廓信息,对目标建筑物进行三维重建, 生成包含三维重建后的目标建筑物的目标图像。
本实施例中,获取目标建筑物的轮廓信息之后,便可根据目标建筑物的轮廓信息,对该目标建筑物进行三维重建,进而生成包含三维重建后的目标建筑物的目标图像。即,根据本步骤S1200,其相当于是根据目标建筑物的轮廓信息,对目标建筑物进行了二次创作,使得所创作出的目标图像能够体现目标建筑物的核心特征。
本实施例中,根据建筑物的类型可以将目标建筑物划分为不同类型,由于不同类型的目标建筑物的形态差异较大,因此,在得到目标建筑物的轮廓信息之后,需要结合目标建筑物的类型,才能对目标建筑物进行三维重建,进而得到包含三维重建后的目标建筑物的目标图像。
在此,本实施例中,本步骤S1200中根据目标建筑物的轮廓信息,对目标建筑物进行三维重建,得到包含三维重建后的目标建筑物的目标图像可以进一步包括如下步骤S1210~S1220:
步骤S1210,根据目标建筑物的轮廓信息和目标建筑物的类型,对目标建筑物进行三维重建,获得包含三维重建后的目标建筑物的第二图像。
目标建筑物的类型包括但不限于:单体建筑类型、建筑群类型、山体建筑群类型、桥梁和道路。
单体建筑类型的建筑物为,处于同一水平线的多个建筑结构一部分重叠的方式交错在一起共同构成的一个建筑物。单体建筑类型的建筑物可称之为单体建筑物。
建筑群类型的建筑物为,处于同一水平线的多个单体建筑物组成的建筑群。或者,由处于同一水平线的单体建筑物和与其相邻的单体建筑物以接触点的形式连接在一起组成的建筑群。建筑群类型的建筑物可称之为建筑群。
山体建筑群类型的建筑物为,依据天然地貌地形建造的建筑群。山体建筑群类型的建筑物为不同水平线的建筑群,其与环境融合紧密。
以上桥梁为,道路跨越天然或人工障碍物而修建的建筑物。
以上道路为,供各种无轨车辆和行人通行的建筑物。
在一个例子中,以上根据目标建筑物的轮廓信息和目标建筑物的类型,对目标建筑物进行三维重建,得到包含三维重建后的目标建筑物的第二图像可以进一步包括如下步骤S1211a~S1212a:
步骤S1211a,在类型为单体建筑类型的情况下,基于轮廓信息、目标视觉数据和目标占比参数,对目标建筑物进行三维重建。
目标占比参数为目标建筑物在目标图像中的画面占比参数。在类型为建筑类型的情况下,目标占比参数可以为70%,即,目标建筑物在目标图像中的画面占比比例要超过70%。
目标视觉数据为目标建筑物空间层次最多的角度数据。
继续图2的示例,目标建筑物为大剧院,且该大剧院为单体建筑类型的建筑物,从图2的左边图像和中间图像可以看出,该大剧院的外形轮廓类似于一艘玻璃时空船。并且,由于该大剧院立体空间层次最多的一面为该大剧院正面,则目标视觉数据为正视角度数据。在此,可以基于三维重建软件对该轮廓信息、正视角度数据和目标占比参数进行处理,获得大剧院的三维模型。该三维重建软件不做限定。
步骤S1212a,对目标建筑物之外的背景进行虚化处理,获得包含三维重建后的目标建筑物的第二图像。
本步骤S1212a中,除了对目标建筑物进行三维重建,还需要对除目标建筑物之外的背景进行虚化处理,以得到包含三维重建后的目标建筑物的第二图像。
对除目标建筑物之外的区域进行虚化处理包括:提取目标建筑物之外的背景,并根据背景类型的不同对背景进行不同虚化处理。
例如,在背景包括多条道路的情况下,可以对多条道路进行过滤仅保留一条主道路,并根据以上步骤S1211a对该主道路进行三维重建。
又例如,在背景为桥梁,且桥梁在电子设备所获取的图像中的画面占比比例超过30%的情况下,则根据以上步骤S1211a对该桥梁进行三维重建。
再例如,在背景包括湖泊或河流,且湖泊或河流在电子设备所获取的图 像中的画面占比比例超过30%的情况下,则根据以上步骤S1211a对该湖泊或河流进行三维重建。
还例如,在背景包括植被,且植被在电子设备所获取的图像中的画面占比比例超过30%的情况下,则根据以上步骤S1211a对该植被进行三维重建。
在一个例子中,以上根据目标建筑物的轮廓信息和目标建筑物的类型,对目标建筑物进行三维重建,得到包含三维重建后的目标建筑物的第二图像可以进一步包括如下步骤S1211b~S1213b:
步骤S1211b,在类型为建筑群类型的情况下,根据轮廓信息和目标视觉数据,确定目标建筑物的主体区域。
目标建筑物的主体区域为能够体现目标建筑物的核心特征的区域。
目标视觉数据为目标建筑物空间层次最多的角度数据。
以图3的左边图像为例,目标建筑物为广场,且该广场为建筑群类型的建筑物,从图3的左边图像可以看出,该广场由八座外立面为弧线造型的塔楼以及一条水晶长廊构成,水晶连廊将其中四座塔楼相连。并且,由于该广场立体空间层次最多的一面为该广场正面,则目标视觉数据为正视角度数据。
从图3的左边图像可以看出,该广场最有辨识度的是中间两座超高的塔楼与水晶长廊,则将中间两座超高的塔楼与水晶长廊确定为该广场的主体区域。在此,可以以正视角度下的该广场的轮廓信息的中心轴区域为对称,提取出该广场的主体区域。
步骤S1212b,获取主体区域的轮廓信息作为第一轮廓信息。
以图3的中间图像为例,所提取出的该广场的主体区域为中间两座超高的塔楼与水晶长廊,由于该主体区域呈现出H型,在此,可以提取出H型这个轮廓信息作为第一轮廓信息。
步骤S1213b,根据第一轮廓信息和目标占比参数,对目标建筑物进行三维重建,并对目标建筑物之外的背景进行虚化处理,获得包含三维重建后的目标建筑物的第二图像。
目标占比参数为目标建筑物在目标图像中的画面占比参数。在类型为建 筑群类型的情况下,目标占比参数可以为50%,即,目标建筑物在目标图像中的画面占比比例要超过50%。
本步骤S1213b中,在提取出H型这个轮廓信息作为第一轮廓信息之后,可以基于上述的三维重建软件对第一轮廓信息和目标占比参数进行处理,获得该广场的三维模型。并对广场以外的背景进行虚化处理,得到包含三维重建后的该广场的第二图像,关于如何对背景进行虚化处理可以参照以上步骤S1212b的示例,在此不做赘述。
在一个例子中,以上根据目标建筑物的轮廓信息和目标建筑物的类型,对目标建筑物进行三维重建,得到包含三维重建后的目标建筑物的第二图像可以进一步包括如下步骤S1211c~S1214c:
步骤S1211c,在类型为山体建筑群类型的情况下,目标建筑物包括多个位于不同高度的单体建筑物。
本步骤S1211c中,在目标建筑物的类型为山体建筑群的情况下,由于山体建筑群中的多个单体建筑物位于不同水平线,使得多个单体建筑物具有不同高度。
步骤S1212c,获取多个单体建筑物之间的高度关系。
本步骤S1212c中,为了对山体建筑物类型的目标建筑物进行三维重建,需要区分出目标建筑物中多个单体建筑物之间的高度关系,通过获取到的多个单体建筑物之间的高度关系,可以得到目标建筑物的空间层次。
步骤S1213c,根据多个单体建筑物之间的高度关系确定第二轮廓信息。
本步骤S1213c中,获取到多个单体建筑物之间的高度关系以得到目标建筑物的空间层次之后,由于山体建筑群类型的目标建筑物的空间层次较多,在此可以根据多个单体建筑物之间的高度关系对空间层次进行过滤,保留空间层次明显的目标建筑物的轮廓信息作为第二轮廓信息。
步骤S1214c,根据第二轮廓信息和目标占比参数,对目标建筑物进行三维重建,并对目标建筑物之外的背景进行虚化处理,获得包含三维重建后的目标建筑物的第二图像。
目标占比参数为目标建筑物在目标图像中的画面占比参数。在类型为山体建筑群类型的情况下,目标占比参数可以为40%,即,目标建筑物在目标图像中的画面占比比例要超过40%。
本步骤S1214c中,可以基于上述的三维重建软件对第二轮廓信息和目标占比参数进行处理,获得目标建筑物的三维模型。并对目标建筑物以外的背景进行虚化处理,得到包含三维重建后的目标建筑物的第二图像,关于如何对背景进行虚化处理可以参照以上步骤S1212b的示例,在此不做赘述。
步骤S1220,对第二图像进行预设处理,获得包含三维重建后的目标建筑物的目标图像。
预设处理包括效果处理和/或材质处理。该效果处理例如包括磨砂半透、灯光效果等。材质处理例如包括金属、木质纹理等处理。
继续上述步骤S1212a中的示例,在第二图像中设置大剧院效果为磨砂,并在大剧院的三维模型中加入矩形的镂空窗户阵列,得到图2的右边图像作为目标图像。
继续上述步骤S1213b的示例,在第二图像中设置两座超高的塔楼钢架结构和半透明的外立面材质,两侧的四座塔楼设置为金属材质,得到图3的右边图像作为目标图像。
在根据目标建筑物的轮廓信息,对目标建筑物进行三维重建,生成包含三维重建后的目标建筑物的目标图像之后,进入:
步骤S1300,将目标图像设为壁纸。
本实施例中,本步骤S1300中将目标图像设为壁纸可以进一步包括:接收将该目标图像设为壁纸的输入,响应于该输入,将目标图像设为桌面壁纸并展示。
根据本实施例,其会通过电子设备定位或电子设备获取的图像先确定目标建筑物,并根据目标建筑物的轮廓信息对目标建筑物进行三维重建,进而生成包含三维重建后的目标建筑物的目标图像并将该目标图像设为壁纸。即,本申请中的壁纸是基于目标建筑物的轮廓信息对目标建筑物进行三维重建得 到的目标图像,则该壁纸不仅能展示该目标建筑物的风貌,还能够保留目标建筑物的整体特征。
与上述实施例相对应,参见图4,本申请实施例还提供一种壁纸生成装置400,包括:
获取模块410,用于获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定。
重建模块420,用于根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,得到多个包含三维重建后的所述目标建筑物的目标图像。
设置模块430,用于将所述目标图像设为壁纸。
在一个实施例中,所述重建模块420,具体用于:根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述目标建筑物进行三维重建,得到包含三维重建后的所述目标建筑物的第二图像;对所述第二图像进行预设处理,获得包含三维重建后的所述目标建筑物的目标图像。
其中,所述预设处理包括效果处理和/或材质处理。
在一个实施例中,所述重建模块420,具体用于:在所述类型为单体建筑类型的情况下,基于所述轮廓信息、目标视觉数据和目标占比参数,对所述目标建筑物进行三维重建;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数;对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像。
在一个实施例中,所述重建模块420,具体用于:在所述类型为建筑群类型的情况下,根据所述轮廓信息和目标视觉数据,确定所述目标建筑物的主体区域;获取所述主体区域的轮廓信息作为第一轮廓信息;根据所述第一轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
在一个实施例中,所述重建模块420,具体用于:在所述类型为山体建筑 群类型的情况下,所述目标建筑物包括多个位于不同高度的单体建筑物;获取多个所述单体建筑物之间的高度关系;根据所述多个所述单体建筑物之间的高度关系确定第二轮廓信息;根据所述第二轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
本申请实施例中的壁纸生成装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动电子设备,也可以为非移动电子设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的壁纸生成装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的壁纸生成装置能够实现上述方法实施例实现的各个过程,为避免重复,这里不再赘述。
与上述实施例相对应,可选的,如图5所示,本申请实施例还提供一种电子设备500,包括处理器501,存储器502,存储在存储器502上并可在所述处理器501上运行的程序或指令,该程序或指令被处理器501执行时实现上述图像展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
需要说明的是,本申请实施例中的电子设备包括上述所述的移动电子设备和非移动电子设备。
图6为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备600包括但不限于:射频单元601、网络模块602、音频输出单元603、输入单元604、传感器605、显示单元606、用户输入单元607、接口单元608、存储器609、以及处理器610等部件。
本领域技术人员可以理解,电子设备600还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器610逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图7中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器610,用于获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定;根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生成包含三维重建后的所述目标建筑物的目标图像;将所述目标图像设为壁纸。
在一个实施例中,处理器610,用于根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述目标建筑物进行三维重建,得到包含三维重建后的所述目标建筑物的第二图像;对所述第二图像进行预设处理,获得包含三维重建后的所述目标建筑物的目标图像;其中,所述预设处理包括效果处理和/或材质处理。
在一个实施例中,处理器610,用于在所述类型为单体建筑类型的情况下,基于所述轮廓信息、目标视觉数据和目标占比参数,对所述目标建筑物进行三维重建;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数;对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像。
在一个实施例中,处理器610,用于在所述类型为建筑群类型的情况下,根据所述轮廓信息和目标视觉数据,确定所述目标建筑物的主体区域;获取所述主体区域的轮廓信息作为第一轮廓信息;根据所述第一轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;其中, 所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
在一个实施例中,处理器610,用于在所述类型为山体建筑群类型的情况下,所述目标建筑物包括多个位于不同高度的单体建筑物;获取多个所述单体建筑物之间的高度关系;根据所述多个所述单体建筑物之间的高度关系确定第二轮廓信息;根据所述第二轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
应理解的是,本申请实施例中,输入单元604可以包括图形处理器(Graphics Processing Unit,GPU)6041和麦克风6042,图形处理器6041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元606可包括显示面板6061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板6061。用户输入单元607包括触控面板6071以及其他输入设备6072。触控面板6071,也称为触摸屏。触控面板7071可包括触摸检测装置和触摸控制器两个部分。其他输入设备6072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器609可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器610可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器610中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述壁纸生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟 或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述壁纸生成方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求 所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (14)

  1. 一种壁纸生成方法,所述方法包括:
    获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定;
    根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生成包含三维重建后的所述目标建筑物的目标图像;
    将所述目标图像设为壁纸。
  2. 根据权利要求1所述的方法,其中,所述根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生成包含三维重建后的所述目标建筑物的目标图像,包括:
    根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述目标建筑物进行三维重建,得到包含三维重建后的所述目标建筑物的第二图像;
    对所述第二图像进行预设处理,获得包含三维重建后的所述目标建筑物的目标图像;
    其中,所述预设处理包括效果处理和/或材质处理。
  3. 根据权利要求2所述的方法,其中,所述根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述目标建筑物进行三维重建,得到包含三维重建后的所述目标建筑物的第二图像,包括:
    在所述类型为单体建筑类型的情况下,基于所述轮廓信息、目标视觉数据和目标占比参数,对所述目标建筑物进行三维重建;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数;
    对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像。
  4. 根据权利要求2所述的方法,其中,所述根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述目标建筑物进行三维重建, 得到包含三维重建后的所述目标建筑物的第二图像,包括:
    在所述类型为建筑群类型的情况下,根据所述轮廓信息和目标视觉数据,确定所述目标建筑物的主体区域;
    获取所述主体区域的轮廓信息作为第一轮廓信息;
    根据所述第一轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
  5. 根据权利要求2所述的方法,其中,所述根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述目标建筑物进行三维重建,得到包含三维重建后的所述目标建筑物的第二图像,包括:
    在所述类型为山体建筑群类型的情况下,所述目标建筑物包括多个位于不同高度的单体建筑物;
    获取多个所述单体建筑物之间的高度关系;
    根据所述多个所述单体建筑物之间的高度关系确定第二轮廓信息;
    根据所述第二轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
  6. 一种壁纸生成装置,所述装置包括:
    获取模块,用于获取目标建筑物的轮廓信息,所述目标建筑物通过电子设备定位或所述电子设备获取的图像确定;
    重建模块,用于根据所述目标建筑物的轮廓信息,对所述目标建筑物进行三维重建,生成包含三维重建后的所述目标建筑物的目标图像;
    设置模块,用于将所述目标图像设为壁纸。
  7. 根据权利要求6所述的装置,其中,所述重建模块,具体用于:
    根据所述目标建筑物的轮廓信息和所述目标建筑物的类型,对所述 目标建筑物进行三维重建,得到包含三维重建后的所述目标建筑物的第二图像;
    对所述第二图像进行预设处理,获得包含三维重建后的所述目标建筑物的目标图像;
    其中;所述预设处理包括效果处理和/或材质处理。
  8. 根据权利要求7所述的装置,其中,所述重建模块,具体用于:
    在所述类型为单体建筑类型的情况下,基于所述轮廓信息、目标视觉数据和目标占比参数,对所述目标建筑物进行三维重建;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数;
    对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像。
  9. 根据权利要求7所述的装置,其中,所述重建模块,具体用于:
    在所述类型为建筑群类型的情况下,根据所述轮廓信息和目标视觉数据,确定所述目标建筑物的主体区域;
    获取所述主体区域的轮廓信息作为第一轮廓信息;
    根据所述第一轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维重建后的所述目标建筑物的第二图像;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
  10. 根据权利要求7所述的装置,其中,所述重建模块,具体用于:
    在所述类型为山体建筑群类型的情况下,所述目标建筑物包括多个位于不同高度的单体建筑物;
    获取多个所述单体建筑物之间的高度关系;
    根据所述多个所述单体建筑物之间的高度关系确定第二轮廓信息;
    根据所述第二轮廓信息和目标占比参数,对所述目标建筑物进行三维重建,并对所述目标建筑物之外的背景进行虚化处理,获得包含三维 重建后的所述目标建筑物的第二图像;其中,所述目标占比参数为所述目标建筑物在所述目标图像中的画面占比参数。
  11. 一种电子设备,其中,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5中任一项所述的壁纸生成方法的步骤。
  12. 一种可读存储介质,其中,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5中任一项所述的壁纸生成方法的步骤。
  13. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5中任一项所述的壁纸生成方法的步骤。
  14. 一种计算机程序产品,其特征在于,所述程序产品被存储在非瞬态存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-5中任一项所述的壁纸生成方法的步骤。
PCT/CN2022/108455 2021-07-29 2022-07-28 壁纸生成方法、装置及电子设备 WO2023006011A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110868977.5 2021-07-29
CN202110868977.5A CN113674396A (zh) 2021-07-29 2021-07-29 壁纸生成方法、装置及电子设备

Publications (1)

Publication Number Publication Date
WO2023006011A1 true WO2023006011A1 (zh) 2023-02-02

Family

ID=78540961

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/108455 WO2023006011A1 (zh) 2021-07-29 2022-07-28 壁纸生成方法、装置及电子设备

Country Status (2)

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

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113674396A (zh) * 2021-07-29 2021-11-19 维沃移动通信有限公司 壁纸生成方法、装置及电子设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100171656A1 (en) * 2009-01-06 2010-07-08 Mitac International Corp. Electronic apparatus and image display method
CN103003847A (zh) * 2010-05-16 2013-03-27 诺基亚公司 用于渲染基于位置的用户界面的方法和装置
CN103473259A (zh) * 2013-06-18 2013-12-25 展讯通信(上海)有限公司 一种显示界面变换系统及变换方法
US20150029206A1 (en) * 2013-07-23 2015-01-29 Samsung Electronics Co., Ltd. Method and electronic device for displaying wallpaper, and computer readable recording medium
CN108320323A (zh) * 2017-01-18 2018-07-24 华为技术有限公司 一种建筑物三维建模方法及装置
CN113674396A (zh) * 2021-07-29 2021-11-19 维沃移动通信有限公司 壁纸生成方法、装置及电子设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100171656A1 (en) * 2009-01-06 2010-07-08 Mitac International Corp. Electronic apparatus and image display method
CN103003847A (zh) * 2010-05-16 2013-03-27 诺基亚公司 用于渲染基于位置的用户界面的方法和装置
CN103473259A (zh) * 2013-06-18 2013-12-25 展讯通信(上海)有限公司 一种显示界面变换系统及变换方法
US20150029206A1 (en) * 2013-07-23 2015-01-29 Samsung Electronics Co., Ltd. Method and electronic device for displaying wallpaper, and computer readable recording medium
CN108320323A (zh) * 2017-01-18 2018-07-24 华为技术有限公司 一种建筑物三维建模方法及装置
CN113674396A (zh) * 2021-07-29 2021-11-19 维沃移动通信有限公司 壁纸生成方法、装置及电子设备

Also Published As

Publication number Publication date
CN113674396A (zh) 2021-11-19

Similar Documents

Publication Publication Date Title
Little et al. Innovative methods for heritage tourism experiences: Creating windows into the past
CN110276840B (zh) 多虚拟角色的控制方法、装置、设备及存储介质
CN103797443B (zh) 模拟三维特征
CN105339987B (zh) 针对陆地、空中和/或众包可视化的流形的图像提取和基于图像的渲染
US9149309B2 (en) Systems and methods for sketching designs in context
DE112013002803B4 (de) Verfahren, System und Einrichtung zum Liefern einer dreidimensionalen Übergangsanimation für eine Änderung einer Kartenansicht
King et al. ARVino-outdoor augmented reality visualisation of viticulture GIS data
CN107018336A (zh) 图像处理的方法和装置及视频处理的方法和装置
JP2014525089A5 (zh)
WO2019059992A1 (en) RENDERING VIRTUAL OBJECTS BASED ON LOCATION DATA AND IMAGE DATA
CN109146954A (zh) 用于与所显示的地图进行交互的增强现实界面
CN107545788A (zh) 基于增强现实显示的作战推演电子沙盘系统
CN101198989A (zh) 用于邻近区域和建筑物内的可视化、规划、监视和探察的系统和设备
CN108352086A (zh) 确定并呈现太阳能通量信息
Li et al. Key technology of virtual roaming system in the museum of ancient high-imitative calligraphy and paintings
CN114730464A (zh) 世界空间分割
WO2023006011A1 (zh) 壁纸生成方法、装置及电子设备
CA3119609A1 (en) Augmented reality (ar) imprinting methods and systems
CN113018865B (zh) 攀爬线生成方法、装置、计算机设备及存储介质
CN115731370A (zh) 一种大场景元宇宙空间叠加方法和装置
CN114967914A (zh) 一种虚拟显示方法、装置、设备以及存储介质
CN114820980A (zh) 三维重建方法、装置、电子设备和可读存储介质
Piekarski et al. Tinmith-mobile outdoor augmented reality modelling demonstration
Du Fusing multimedia data into dynamic virtual environments
CN112348965A (zh) 成像方法、装置、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22848616

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE