WO2023241209A1 - Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium - Google Patents

Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium Download PDF

Info

Publication number
WO2023241209A1
WO2023241209A1 PCT/CN2023/088946 CN2023088946W WO2023241209A1 WO 2023241209 A1 WO2023241209 A1 WO 2023241209A1 CN 2023088946 W CN2023088946 W CN 2023088946W WO 2023241209 A1 WO2023241209 A1 WO 2023241209A1
Authority
WO
WIPO (PCT)
Prior art keywords
desktop
image
control element
wallpaper
area
Prior art date
Application number
PCT/CN2023/088946
Other languages
French (fr)
Chinese (zh)
Other versions
WO2023241209A9 (en
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 WO2023241209A1 publication Critical patent/WO2023241209A1/en
Publication of WO2023241209A9 publication Critical patent/WO2023241209A9/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Definitions

  • the present application relates to the field of terminal technology, and in particular to a desktop wallpaper configuration method, device, electronic device and readable storage medium.
  • the desktop of electronic devices is the home screen area provided for users and is closely related to user experience.
  • the desktop of an electronic device usually provides users with a display of wallpapers and a display of various control elements; the user can choose to set different pictures as desktop wallpapers.
  • the desktop needs to display wallpaper and multiple control elements at the same time.
  • the control elements will partially block the desktop wallpaper, and need to be adjusted manually, making the wallpaper configuration process cumbersome.
  • the present application provides a desktop wallpaper configuration method, device, electronic device and readable storage medium, which solves the problem of cumbersome operations in the desktop wallpaper configuration process in the prior art.
  • the first aspect provides a desktop wallpaper configuration method, which may include:
  • the electronic device In response to the user's operation of setting the first image as the desktop wallpaper, the electronic device identifies the main element in the first image and the first position corresponding to the main element on the desktop; the electronic device obtains the second position of the control element on the desktop, And determine a target area on the desktop that is not blocked by the control element according to the second position; the electronic device scales or moves the first image according to the first position and the target area, and configures it as a desktop wallpaper with the main element located in the target area.
  • the desktop after the electronic device is unlocked may include control elements of multiple applications.
  • the control elements of each application When the control elements of each application are displayed on the desktop, they will block part of the desktop wallpaper, affecting the display of the main elements of the desktop wallpaper. .
  • the electronic device when it detects the operation of setting the first image as the desktop wallpaper, it can identify the main element of the first image and determine the first position of the main element when generating the desktop preview; Through the desktop management module, based on the second position of each application control element on the desktop, the unobstructed target area of the control element on the desktop is determined, and the first image is scaled and moved so that the unobstructed target area is consistent with the first image. Match the position of the main element, and configure the first image as the wallpaper of the current desktop; thus when setting the desktop wallpaper, the main element in the image can automatically avoid the position of the control element.
  • the desktop corresponding to the desktop wallpaper can be multiple desktops, and the determined target area on the desktop can be an unobstructed area of the common corresponding control elements of multiple desktops, or it can also be the corresponding control element of each desktop.
  • the unobstructed area of the control element can be used to determine whether the control element has been modified or not.
  • control elements on the desktop may include application icons, widgets, folders, etc.
  • the main elements of the first image may be portraits, objects and other elements in the picture.
  • the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page;
  • the first image is scaled or moved and configured as a desktop wallpaper with the main element located in the target area, including:
  • the first image is scaled or moved and configured as a desktop wallpaper with the main element located in a common area of the first target sub-area and the second target sub-area.
  • the different desktop display pages include control elements, such as application icons, etc.; therefore, it is necessary to determine the corresponding positions of the control elements on the different desktop display pages, so as to The unobstructed area on each desktop display page is calculated, and finally the common area of the unobstructed area on each desktop display page is determined, and the main element of the desktop wallpaper is displayed in the common area.
  • the icons on the switched desktop display page will still not block the main elements of the wallpaper, so that the configured desktop wallpaper can be adapted to the display status of multiple desktop display pages. It makes the wallpaper configuration more intelligent and appropriate, more practical and applicable, and greatly improves the user experience.
  • the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the target area includes the first area or the second area; obtaining the desktop The second position of the control element, and determine the unoccluded target area of the control element on the desktop based on the second position, including:
  • the first image is scaled or moved according to the first position and the target area, and configured as a desktop wallpaper with the main element located in the target area, including:
  • the first image is scaled or moved, and configured as the desktop wallpaper of the main page whose main element is located in the first area; according to the first position and the second area, the first image is scaled Or for mobile processing, configure it as the desktop wallpaper of the second screen with the main element located in the second area.
  • the method further includes:
  • the desktop wallpaper corresponding to the main page is switched to the desktop wallpaper corresponding to the second screen; in response to the desktop switching operation of the user switching from the second screen to the main page, Switch the desktop wallpaper corresponding to the second screen to the desktop wallpaper corresponding to the main page.
  • corresponding wallpapers can also be configured based on different desktop display pages, so that when switching different When the desktop display page is displayed, it can be dynamically adapted to each desktop display page, so that the wallpaper of each desktop display page can display the main element of the wallpaper in the area not blocked by the control elements.
  • the location diversity of wallpaper configuration is increased, and the automatic movement and adaptation of desktop wallpapers during the configuration process are realized, making the operation process of wallpaper configuration simpler, smarter and more efficient, without the need for manual operation by the user.
  • the configuration process is simpler, improving the user experience and the visual effect of the desktop wallpaper.
  • the method further includes:
  • the method further includes:
  • the method further includes:
  • the electronic device when the electronic device detects that a control element on the desktop is moved, deleted, or downloaded to a new control element, such as downloading a new application icon, the electronic device can also identify changes in the layout of the control elements on the desktop and obtain the layout.
  • the position information of the control elements on the desktop after the change is changed, and the size and position of the wallpaper corresponding to the desktop are automatically adjusted based on the position information of the control element layout on the desktop after the change, so that the main elements of the wallpaper are in the target area that is not blocked after the desktop layout is changed. display; thus, when the desktop layout changes, the adaptability of the desktop wallpaper can be continued to be optimized, making the desktop wallpaper more suitable for the display of the desktop layout, making the desktop wallpaper configuration operation easier, and the display method of the wallpaper becoming more diverse.
  • the method further includes:
  • the application scope may include a first application scope and a second application scope; wherein, the first application scope The scope is used to indicate the configured attributes of the first image, such as “set as lock screen”, “set as desktop” and “set simultaneously”; the second application scope is used to indicate the target desktop display page where the first image is configured. .
  • the second application scope may be at least one page among the multiple desktop display pages, such as the home page or the desktop display page corresponding to the second screen; the set The application scope of desktop wallpaper can be one or more pages or all pages.
  • the electronic device can also use different images to be set as wallpapers for different desktop display pages, and scale or move the corresponding images based on the target areas that are not blocked by the control elements in the different desktop display pages, so that each The main elements in the image are located within the unobstructed areas of the control elements of their corresponding desktop display pages. For example, you can set multiple images from a series as wallpapers for multiple desktop display pages.
  • identifying the subject element in the first image includes:
  • the electronic device can detect and extract features of the target in the first image through a neural network, and then determine the type and position of the subject element in the first image based on category recognition and comparison processing.
  • a desktop wallpaper configuration device which device includes:
  • An identification unit configured to identify the main element in the first image and the first position of the desktop corresponding to the main element in response to the user's operation of setting the first image as the desktop wallpaper;
  • An acquisition unit configured to acquire a second position of a control element on the desktop, and determine a target area on the desktop that is not blocked by the control element based on the second position;
  • a configuration unit configured to scale or move the first image according to the first position and the target area, and configure it as a desktop wallpaper with the main element located in the target area.
  • the desktop includes a home page and a second screen
  • the second screen is a desktop display page other than the home page
  • the obtaining unit is further configured to obtain the second position of the control element on the main page, and determine the first target sub-section that is not blocked by the control element on the main page according to the second position of the control element on the main page. area; obtain the second position of the control element on the second screen, and determine the second target sub-area that is not blocked by the control element on the second screen based on the second position of the control element on the second screen; A common area between the first target sub-area and the second target sub-area serves as the target area.
  • the configuration unit is further configured to zoom or move the first image so that the main element is located between the first target sub-region and the first image.
  • the desktop wallpaper within the public area of the second target subarea.
  • the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the target area includes a first area or second area.
  • the obtaining unit is further configured to obtain the second position of the control element on the main page, and determine the first position of the control element on the main page that is not blocked based on the second position of the control element on the main page. area; get The second position of the second on-screen control element is determined based on the second position of the second on-screen control element, and the second area that is not blocked by the second on-screen control element is determined.
  • the configuration unit is further configured to scale or move the first image according to the first position and the first area, and is configured to The desktop wallpaper of the main page whose main element is located in the first area; the first image is scaled or moved according to the first position and the second area, and is configured such that the main element is located The desktop wallpaper of the second screen in the second area.
  • the device further includes:
  • a wallpaper switching unit configured to switch the desktop wallpaper corresponding to the main page to the desktop wallpaper corresponding to the second screen in response to the desktop switching operation of the user switching from the main page to the second screen; in response to The desktop switching operation of the user switching from the second screen to the main page switches the desktop wallpaper corresponding to the second screen to the desktop wallpaper corresponding to the main page.
  • the configuration unit is also configured to obtain the third position of the control element on the desktop after movement when a user's operation of moving the control element on the desktop is detected, And determine the target area on the desktop that is not blocked after the control element is moved according to the third position; and adjust the desktop wallpaper before the movement to a desktop wallpaper in which the main element is located in the target area that is not blocked after the movement.
  • the configuration unit is further configured to obtain the fourth position of the remaining control elements on the desktop when a user's operation of deleting a control element on the desktop is detected, and Determine the unobstructed target area of the remaining control elements on the desktop according to the fourth position; adjust the desktop wallpaper before deletion to a desktop wallpaper in which the main element is located in the unobstructed target area after deletion.
  • the configuration unit is further configured to obtain the fifth downloaded control element of the desktop when detecting a user's operation of downloading a new control element on the desktop. position, and determine the unobstructed target area of the control element on the desktop after downloading based on the fifth position; adjust the desktop wallpaper before downloading to a desktop wallpaper with the main element located in the unobstructed target area after downloading.
  • the device further includes:
  • Generating a preview unit configured to generate a desktop preview of the first image before responding to the user's operation of setting the first image as a desktop wallpaper
  • An application range determining unit configured to determine the application range of the first image in response to the user's operation of setting the desktop preview of the first image as a desktop wallpaper
  • the obtaining unit is further configured to obtain, based on the application scope, the second position of the control element on the desktop corresponding to the application scope.
  • the recognition unit is further configured to perform target detection, feature extraction, and classification recognition processing on the first image, and determine the subject element in the first image.
  • a third aspect of the embodiment of the present application provides an electronic device.
  • the electronic device includes a memory and a processor.
  • the memory stores a computer program that can run on the processor.
  • the processor executes the The computer program implements the steps of the method according to any one of the above first aspects.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which includes: storing a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the above first aspects are implemented.
  • the fifth aspect of the embodiment of the present application provides a computer program product.
  • the computer program product is used in a terminal When running on the device, the terminal device is caused to execute the method described in any one of the above first aspects.
  • Figure 1 is a system architecture diagram of an electronic device provided by an embodiment of the present application.
  • Figure 2 is a schematic diagram of a software architecture provided by an embodiment of the present application.
  • Figure 3 is a schematic flow chart of a desktop wallpaper configuration method provided by an embodiment of the present application.
  • Figure 4 is a schematic interface diagram of a desktop wallpaper configuration process provided by an embodiment of the present application.
  • Figure 5 is a schematic interface diagram of another desktop wallpaper configuration process provided by an embodiment of the present application.
  • Figure 6 is a schematic interface diagram of a public target area provided by an embodiment of the present application.
  • Figure 7 is a schematic interface diagram of the target area of each desktop provided by the embodiment of the present application.
  • Figure 8 is a schematic diagram of the interface when moving control elements provided by the embodiment of the present application.
  • Figure 9 is a schematic diagram of the interface when deleting control elements provided by the embodiment of the present application.
  • Figure 10 is a schematic diagram of the interface when downloading control elements provided by the embodiment of the present application.
  • Figure 11 is a schematic diagram of the interface for configuring a series of desktop wallpapers provided by the embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a desktop wallpaper configuration device provided by an embodiment of the present application.
  • the term “if” may be interpreted as “when” or “once” or “in response to determining” or “in response to detecting” depending on the context. .
  • the phrase “if determined” or “if [the described condition or event] is detected” may be interpreted, depending on the context, to mean “once determined” or “in response to a determination” or “once the [described condition or event] is detected ]” or “in response to detection of [the described condition or event]”.
  • control elements such as application icons and widgets
  • various control elements laid out on the desktop will partially block the wallpaper, thus affecting the display effect of the wallpaper, requiring the user to further manually move the control elements on the desktop, etc.
  • Change the layout of the desktop or it may be necessary to repeatedly set up and test the display to make the display of the desktop wallpaper more suitable for the layout of the desktop. Therefore, the configuration process of desktop wallpaper is cumbersome and the user experience is not good.
  • this application provides a desktop wallpaper configuration method, which can improve the efficiency of desktop wallpaper configuration, make the desktop wallpaper configuration process simple and easy to operate, the wallpaper display effect is also better, and can well improve the user experience.
  • FIG. 1 shows a schematic structural diagram of an electronic device 100 .
  • the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc.
  • a processor 110 an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display
  • the sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently.
  • the components illustrated may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • DSP digital signal processor
  • baseband processor baseband processor
  • neural network processor neural-network processing unit
  • the controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • the processor 110 may also be provided with a memory for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL).
  • processor 110 may include multiple sets of I2C buses.
  • the processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces.
  • the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
  • the I2S interface can be used for audio communication.
  • processor 110 may include multiple sets of I2S buses.
  • the processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications to sample, quantize and encode analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is generally used to connect the processor 110 and the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 .
  • the processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
  • the GPIO interface can be configured through software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc.
  • the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc.
  • the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
  • the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 .
  • the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 Wireless charging input may be received through a wireless charging coil of electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like.
  • the power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters.
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
  • the mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation.
  • at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
  • a modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal.
  • the demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194.
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites.
  • WLAN wireless local area networks
  • System global navigation satellite system, GNSS
  • frequency modulation frequency modulation, FM
  • near field communication technology near field communication, NFC
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
  • the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the mobile communication module 150.
  • the wire communication module 160 is coupled so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • the display screen 194 is used to display images, videos, etc.
  • Display 194 includes a display panel.
  • the display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Miniled MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc.
  • the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
  • the electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
  • Camera 193 is used to capture still images or video.
  • the object passes through the lens to produce an optical image that is projected onto the photosensitive element.
  • the photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other format image signals.
  • the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
  • Video codecs are used to compress or decompress digital video.
  • Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, etc.
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a program storage area and a data storage area.
  • the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.).
  • the storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.).
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
  • the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
  • Receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
  • the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • the headphone interface 170D is used to connect wired headphones.
  • the headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA Cellular Telecommunications Industry Association of the USA
  • the pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be disposed on the display screen 194 .
  • pressure sensors 180A such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc.
  • a capacitive pressure sensor may include at least two parallel plates of conductive material.
  • the electronic device 100 determines the intensity of the pressure based on the change in capacitance.
  • the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion posture of the electronic device 100 .
  • the angular velocity of electronic device 100 about three axes ie, x, y, and z axes
  • the gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
  • Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
  • Magnetic sensor 180D includes a Hall sensor.
  • the electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster.
  • the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
  • Distance sensor 180F for measuring distance.
  • Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the electronic device 100 emits infrared light outwardly through the light emitting diode.
  • Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 .
  • the electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power.
  • the proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
  • Fingerprint sensor 180H is used to collect fingerprints.
  • the electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
  • Temperature sensor 180J is used to detect temperature.
  • the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also known as "touch device”.
  • the touch sensor 180K can be disposed on the display screen 194.
  • the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K.
  • the touch sensor can pass the detected touch operation to the application processor to determine the touch event type.
  • Visual output related to the touch operation may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
  • Bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part.
  • the bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals.
  • the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
  • the buttons 190 include a power button, a volume button, etc.
  • Key 190 may be a mechanical key. It can also be a touch button.
  • the electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
  • the motor 191 can generate vibration prompts.
  • the motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback.
  • touch operations for different applications can correspond to different vibration feedback effects.
  • the motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 .
  • Different application scenarios such as time reminders, receiving information, alarm clocks, games, etc.
  • the touch vibration feedback effect can also be customized.
  • the indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 .
  • the electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 is also compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications.
  • the electronic device 100 uses an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
  • embodiments of the present application also provide a software architecture of the electronic device.
  • the following embodiments of the present application further introduce the software architecture.
  • the software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
  • FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
  • the system architecture of the Android operating system can include an application (APP) layer, a framework (Framework) layer, a native (Native) layer, a core (Kernel) layer, and a hardware (Hardware) layer.
  • APP application
  • framework Framework
  • Native Native
  • Kernel core
  • Hardware hardware
  • the application layer can include at least one application (Application), which can be a system application or a third-party application; for example, gallery, desktop management module launcher, camera, calendar, call, map, navigation, WLAN, Bluetooth , music, video, short message and other applications.
  • Application can be a system application or a third-party application; for example, gallery, desktop management module launcher, camera, calendar, call, map, navigation, WLAN, Bluetooth , music, video, short message and other applications.
  • the Framework layer is equipped with a Window Management Service (Window Manager Service, WMS) module, an Activity Management Service (Activity Manager Service, AMS) module, a Window Adaptation Service (Display Manager Srevice, DMS) module and an Input Manager (Input Manager) module.
  • WMS Window Management Service
  • AMS Activity Management Service
  • DMS Window Adaptation Service
  • Input Manager Input Manager
  • the WMS module is responsible for allocating windows (surfaces) to applications and managing surface properties (such as surface size, display position, display area, and hidden area).
  • the AMS module is responsible for managing the life cycle of the application and processing matters.
  • the DMS module is responsible for managing the screen display status of the current display screen of the system.
  • the Input Manager module is responsible for passing data.
  • the Native layer is equipped with a hardware graphics composer (Hardware composer, HWC) and a display channel (Display).
  • HWC hardware graphics composer
  • Display Display channel
  • the hardware graphics producer is responsible for displaying the screen display data on the screen; the hardware graphics producer can also be the hardware abstraction layer (Hardware Abstraction Layer, HAL) module for window synthesis and display in the Android system.
  • HAL hardware abstraction layer
  • Display is responsible for passing the screen display data corresponding to the configured desktop wallpaper.
  • the Sensor Driver module is responsible for receiving and transmitting sensor data collected by the sensor.
  • the touch sensor collects the touch signal input by the user.
  • the touch signal is used to instruct the desktop management module to generate trigger information for the corresponding wallpaper configuration event based on the touch signal.
  • the trigger information is used
  • the display state of the corresponding desktop wallpaper is adjusted in the instruction gallery based on the control elements on the desktop and the touch signals input by the user.
  • the Hardware layer is provided with a display screen and a touch sensor.
  • Screen is responsible for displaying the adjusted desktop wallpaper.
  • the touch sensor is responsible for collecting touch signals input by the user.
  • the following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with the scenario of configuring the desktop wallpaper.
  • the corresponding hardware interrupt is sent to the kernel layer.
  • the sensor driver module at the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level.
  • the input management module of the application framework layer obtains the original input event from the kernel layer and identifies the source of the input event. Corresponding controls, such as the setting wallpaper control in the settings control or the setting wallpaper control in the gallery; the input event can also be a triggering event for moving or deleting control elements on the desktop.
  • the input management module can transmit the relevant information of the original input event to the desktop management module launcher based on the original input event and the corresponding control for setting the wallpaper, and the desktop management module launcher transmits it to the gallery.
  • the gallery is based on the original input event and the interface of the window management service module of the application framework layer and the window adaptation service module.
  • the interface generates the wallpaper of the corresponding desktop, and configures it as the wallpaper of the corresponding desktop through the display channel of the local layer and the hardware image maker and displays it on the desktop through the display screen.
  • the desktop management module launcher obtains the operation instructions (such as moving, deleting, etc.) for each control element generated based on the touch sensor on the display screen, and determines the adjusted desktop layout and the position of each control element on the desktop based on the operation instructions. , and store or send the desktop layout or the position of each control element on the desktop to the gallery; based on the desktop layout or the position of each control element on the desktop, the gallery performs calculation of the unobstructed target area of the control element on the desktop, and recognizes the image The main element in the image and the location of the main element, and configure the image as a wallpaper with the main element located in the target area.
  • the operation instructions such as moving, deleting, etc.
  • the desktop management module launcher directly calculates the unobstructed target area of the control elements on the desktop based on the desktop layout or the position of each control element on the desktop and sends it to the gallery, which then identifies the main element of the image and the location of the main element. position and configure the image as a wallpaper with the main element located within the target area.
  • the desktop management module launcher directly calculates the unobstructed target area of the control elements on the desktop based on the desktop layout or the position of each control element on the desktop, and the desktop management module launcher identifies the main element of the image in the desktop preview interface. and the location of the main element, and configure the image as a wallpaper with the main element located within the target area.
  • embodiments of the present application provide a desktop wallpaper configuration method, which is applied to the above-mentioned electronic device 100.
  • the electronic device 100 may be but is not limited to a smartphone, a tablet computer, a wearable device, a vehicle-mounted device, or a mobile phone.
  • Devices augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA) , artificial intelligence (Artificial Intelligence, AI) terminals and other terminal equipment.
  • AR augmented reality
  • VR virtual reality
  • UMPC ultra-mobile personal computers
  • PDA personal digital assistants
  • AI artificial intelligence terminals and other terminal equipment.
  • the embodiment of the present application does not place any restrictions on the specific type of the electronic device 100 .
  • Figure 3 is a schematic flowchart of a desktop wallpaper configuration method provided by an embodiment of the present application; as shown in Figure 3, the method may include the following steps:
  • the electronic device In response to the user's operation of setting the first image as the desktop wallpaper, the electronic device identifies the main element in the first image and the main element corresponding to the first position on the desktop.
  • the electronic device can receive instructions input by the user by clicking the "Settings” control or the "Gallery” control on the desktop to enter the process of configuring the desktop wallpaper.
  • the electronic device can also generate a desktop preview of the first image; based on the desktop preview, when receiving the user's operation of setting the desktop wallpaper, the electronic device can preview the desktop
  • the main element contained in the picture is identified, and the initial position of the desktop where the main element is located when previewing the interface is determined, that is, the first position.
  • the following describes the process of configuring an image as a desktop wallpaper through two configuration methods.
  • the display interface 401 can be the main page of the electronic device, and various control elements are arranged on the main page; the control elements can be application icons, such as "Settings”, “Video”, “Sports and Health”, “Gallery”, etc.; the control can also be a widget on the desktop, such as the location, time and date displayed on the display interface 401.
  • the electronic device when the electronic device receives the touch signal from the user clicking on the "Settings” control, it can enter the display interface 402 as shown in (b) of Figure 4.
  • this display interface 402 Includes “Desktop and Wallpaper” controls.
  • the electronic device receives the touch signal of the user clicking on the "Desktop and Wallpaper” control, it can enter the display interface 403 as shown in (c) of Figure 4.
  • the display interface 403 can display a gallery to be previewed, which can include The gallery recommended by the system and the gallery stored by the user through screenshots or camera shots are described in this embodiment by taking the recommended gallery as an example.
  • the electronic device When the electronic device receives the touch signal of the user clicking on the control of the recommended gallery, it can enter the display interface 404 of the recommended gallery list as shown in (d) of Figure 4.
  • the display interface 404 of the recommended gallery list can include multiple images.
  • the electronic device After receiving the touch signal from the user clicking on any image, the electronic device can open the clicked image and generate a desktop preview of the desktop wallpaper, such as the display interface 405 shown in (e) of Figure 4 .
  • the display interface 405 includes an option control for further setting. As shown in (e) of Figure 4, the option control is displayed as “ ⁇ "; the electronic device receives the touch signal of the user clicking on the option control and enters Figure 4
  • the display interface 406 shown in (f) in Figure 4 includes controls for setting ranges, such as “set as lock screen”, “set as desktop” and “simultaneously” shown in (f) of Figure 4 Controls for various options of "Settings".
  • the electronic device receives a touch signal from the user clicking on the "Set as Desktop” control, the electronic device identifies the main element in the selected image and the initial position of the main element in the wallpaper preview interface.
  • FIG. 5 Another implementation process is to configure based on images in the gallery.
  • FIG. 5 another schematic interface diagram of a desktop wallpaper configuration process provided by an embodiment of the present application.
  • the display interface 501 can be the main page of the electronic device, and various control elements are arranged on the main page; the control elements can be application icons, such as "video”, “Sports and Health”, “Gallery”, etc.; the control can also be a widget on the desktop, for example, the location, time and date are displayed on the display interface 501.
  • the electronic device when the electronic device receives the touch signal from the user clicking on the "Gallery” control, it can enter the display interface 502 as shown in (b) of Figure 5.
  • this display interface 502 Includes multiple images.
  • the electronic device When the electronic device receives the touch signal of the user clicking on any image, it can enter the display interface 503 as shown in (c) of Figure 5.
  • the display interface 503 contains various functional controls that can operate on the image, such as Controls such as "Share”, “Collect”, “Edit”, “Delete” and "More”.
  • the electronic device When the electronic device receives the touch signal of the user clicking on the "More” control, it can enter the display interface 504 as shown in (d) of Figure 5; in this display interface 504, a list of other functional controls for processing images can pop up. , such as “Move”, “Copy”, “Hide”, “Rename”, “Rotate”, “Set as” and “Add Note” and other functional controls.
  • the electronic device After receiving the touch signal from the user clicking on the "Set as” control in the function control, the electronic device enters the display interface 505 as shown in (e) of Figure 5, and generates the image application on the display interface 505. Scope controls, such as “Wallpaper”, “Contact Photo” and “Screen Off Display”controls; when the electronic device receives the touch signal from the user clicking on the "Wallpaper” control in the application scope control, it enters (f) in Figure 5
  • the display interface 506 is the preview interface of the desktop wallpaper. At this time, the image is a desktop preview image.
  • the display interface 506 includes an option control for further setting. As shown in (f) of Figure 5, the option control is displayed as “ ⁇ ”; the electronic device receives the touch signal of the user clicking on the option control and enters Figure 5
  • the electronic device receives a touch signal from the user clicking on the "Set as Desktop” control, the electronic device identifies the main element in the selected image and the initial position of the main element in the wallpaper preview interface.
  • the electronic device performs target detection, feature extraction, and classification recognition processing on the first image, and determines the subject elements in the first image.
  • the electronic device can detect and extract features of the target in the first image through a neural network, and then determine the type and position of the subject element in the first image based on category recognition and comparison processing.
  • the type of the subject element can be the user's face part, or when the image is a landscape, the subject element can be the main object, building or plant in the image, such as a house, tree or flower.
  • the electronic device obtains the second position of the control element on the desktop, and determines a target area on the desktop that is not blocked by the control element based on the second position.
  • the electronic device can determine the location of each control element on the desktop through the desktop management module launcher.
  • the desktop management module can create a binding relationship with the desktop and control elements on the desktop, and determine the specific location of each control element on the desktop according to a predetermined division method; for example, the desktop division method can be X ⁇
  • the desktop division method can be X ⁇
  • the application icon in the control element may occupy one cell
  • the widget in the control element may occupy the position of multiple icons. Based on the above method, the position of the widget on the desktop can be determined.
  • the system when an electronic device receives that an icon on the desktop is deleted, moved, or a new control element is downloaded and installed, the system will send out a corresponding broadcast. Based on the broadcast, the launcher will execute the corresponding loader to load each control element on the desktop. Monitor and handle various situations such as movement, addition, deletion, change, availability and unavailability.
  • the launcher can obtain the operation instructions for each control element (such as moving, deleting, etc.) generated based on the touch sensor on the display screen, and based on the operation instructions, determine the adjusted Desktop layout and the position of each control element on the desktop, and store or send the desktop layout and the position of each control element on the desktop to the gallery.
  • each control element such as moving, deleting, etc.
  • the desktop layout in the launcher and the position of each control element on the desktop can be obtained through the gallery unit, and the desktop is determined based on the desktop layout and the position of each control element on the desktop.
  • the trigger The signal may include the adjusted desktop layout and the position of each control element.
  • the trigger signal is used to instruct the gallery to re-determine the target area on the desktop that is not blocked by the control elements based on the obtained adjusted desktop layout and the position of each control element.
  • the calculation of the above target area can also be completed by the launcher module. Based on the binding relationship with the desktop and each control element on the desktop, the position of each control element on the desktop is determined, and the target area where the control element is occluded is calculated. . As shown in (g) of Figure 4, the dotted frame position 4071 on the display interface 407 is the determined target area; and as shown in (h) of Figure 5, the dotted line on the display interface 508 is Frame position 5081 is the determined target area.
  • the electronic device may include multiple desktop display pages, which may be called a home page (first screen), a second screen, a third screen, etc., and the touch sensor on the display screen detects whether the user moves to the left or right. You can switch between different desktop display pages during the sliding operation. Different desktop display pages can contain different control elements and correspond to different desktop layouts.
  • the launcher module can be bound to each desktop display page respectively, and when transmitting the desktop layout or the position of each control element on the corresponding desktop to the gallery, it carries attribute information corresponding to each desktop display page, that is, Distinguish the desktop layout of each desktop display page and the location of each control element.
  • the launcher can send the desktop layout of each desktop display page or the position of each control element to the gallery, and calculate the unoccluded target area of each desktop display page through the gallery; or, the launcher module directly calculates the unobstructed target area of each desktop display page. The unoccluded target area is then sent to the gallery.
  • the electronic device scales or moves the first image and configures it as a desktop wallpaper with the main element located in the target area.
  • the electronic device reduces, enlarges or moves the first image based on the deviation between the initial position of the subject element in the desktop preview image and the unoccluded target area, and configures the first image so that the subject element is located in the unoccluded target area.
  • the desktop wallpaper is displayed in the occluded target area.
  • the desktop wallpaper can shrink the first image and move it to the bottom of the screen, so that the main element (face part) in the first image is located in the unoccluded target area 4071; and As shown in (h) of Figure 5, the desktop wallpaper can shrink the first image and move it to the bottom of the screen, so that the main element (face part) in the first image is located in the unoccluded target area 5081. It is also possible to move without zooming. Specifically, the adaptability can be determined based on the size of the target area, so that the desktop wallpaper can be displayed more appropriately with the desktop.
  • the electronic device when it detects the operation of setting the first image as the desktop wallpaper, it can identify the main element of the first image and determine the first position where the main element is located when generating the desktop preview. position; based on the second position of each application control element on the desktop, the desktop management module determines the unobstructed target area of the control element on the desktop, and scales and moves the first image so that the unobstructed target area is consistent with the third Match the position of the main element of an image, and configure the first image as the wallpaper of the current desktop; thus when setting the desktop wallpaper, the main element in the image can automatically avoid the position of the control element, without the need for the user to manually adjust one by one
  • the position of the corresponding control element or the manual movement of the image position after generating the desktop preview make it easier to configure the desktop wallpaper, the desktop wallpaper display is more in line with user requirements, and the user experience is better.
  • the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the electronic device obtains the second position of the control element on the desktop, and displays the second screen according to the second position.
  • Determine the target area on the desktop that is not obscured by control elements including:
  • the electronic device zooms or moves the first image and configures it as a desktop wallpaper with the main element located in the target area, including:
  • the electronic device zooms or moves the first image, and configures it as a desktop wallpaper whose main element is located in a common area of the first target sub-area and the second target sub-area.
  • FIG. 6 a schematic interface diagram of the public target area provided by the embodiment of the present application.
  • the electronic device includes multiple desktop display pages, such as a main page as shown in (a) of Figure 6 and a second screen page as shown in (b) of Figure 6 .
  • the electronic device can calculate the unoccluded target area of each desktop display page through the gallery or launcher module, and then calculate the unoccluded target area of each desktop display page based on the image gallery or launcher module.
  • the area calculates the common target area.
  • the electronic device calculates a common target area based on the two target areas.
  • the target area is the common target area represented by the dotted box shown in (c) and (d) of Figure 6 respectively.
  • the electronic device configures the desktop wallpaper based on the common target area, and locates the main element of the image in the common target area, such as the desktop wallpaper shown in (c) and (d) of Figure 6 respectively.
  • the main element of the image can be located in the unobstructed target area of each desktop display page, which not only simplifies the desktop wallpaper setting, but also improves the display effect of the desktop wallpaper.
  • the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the target area includes the first area or the second area; and the electronic device obtains the second page of the control elements on the desktop. position, and determine the unobstructed target area of the control element on the desktop based on the second position, including:
  • the electronic device obtains the second position of the control element on the main page, and determines the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page; the electronic device obtains the second position of the control element on the second screen. position, and determine a second area that is not blocked by the control element on the second screen based on the second position of the control element on the second screen.
  • the electronic device scales or moves the first image according to the first position and the target area, and configures it as a desktop wallpaper with the main element located in the target area, including:
  • the electronic device zooms or moves the first image according to the first position and the first area, and configures it as the desktop wallpaper of the main page whose main element is located in the first area; the electronic device according to the first position and the second area, The first image is scaled or moved and configured as the desktop wallpaper of the second screen whose main element is located in the second area.
  • FIG. 7 an interface schematic diagram of the target area of each desktop provided by the embodiment of the present application.
  • the electronic device includes multiple desktop display pages, such as a main page as shown in (a) of Figure 7, a second screen page as shown in (b) of Figure 7, and (c) of Figure 7 The third screen page shown in the figure.
  • the electronic device can separately calculate the unoccluded target area of each desktop display page through the gallery or launcher module.
  • the target area represented by the dotted box shown in (a) of Figure 7 the target area represented by the dotted box shown in (b) of Figure 7, and the target area represented by the dotted box shown in Figure 7 (b).
  • the electronic device scales or moves the image based on the target area corresponding to each desktop display page, and configures the image as a desktop wallpaper whose main elements are respectively located in the target area of each desktop display page, as shown in (a) in Figure 7
  • the desktop wallpapers shown in Figure, (b) and (c) are respectively adapted to different desktop layouts.
  • the set desktop wallpaper can also be dynamically changed as the desktop display page is switched, so that the main elements of the image are located in the target areas corresponding to each desktop display page.
  • the simple desktop wallpaper While configuring, it realizes the diversity of desktop wallpaper display and improves the display effect of desktop wallpaper.
  • the above interface schematic diagram only illustrates the different layouts corresponding to the control elements on each desktop display page, and does not limit the types and layout methods of the control elements on each desktop display page.
  • the image can also be configured to be separate from the common area of each desktop display page. Corresponds to the matching desktop wallpaper.
  • the method further includes:
  • the electronic device When the electronic device detects the user's operation of moving the control element on the desktop, it obtains the third position of the control element on the desktop after the movement, and determines the unobstructed target area of the control element on the desktop after the movement of the control element based on the third position; the desktop before the movement is The wallpaper is adjusted to a desktop wallpaper with the main element located within the unobstructed target area after movement.
  • FIG 8 a schematic diagram of the interface when moving the control element provided by the embodiment of the present application; as shown in (a) of Figure 8, the display state of the desktop wallpaper before the movement of the control element on the desktop and the target area for displaying the main element, Picture (b) in Figure 8 shows that after the "QQ" control and "calculator” control on the desktop are moved, the desktop wallpaper ends with the movement operation, and the desktop wallpaper after automatically adapting to the mobile controls is displayed.
  • the electronic device re-determines the target area for displaying the main element based on the layout after the control elements on the desktop are moved, and adjusts the display position of the main element in the desktop wallpaper. Therefore, based on the operation of the control elements on the mobile desktop detected on the desktop display page, the electronic device can trigger the gallery or launcher module to adjust the display position of the desktop wallpaper or adjust the image set as the desktop wallpaper and reconfigure the desktop wallpaper, so that The desktop wallpaper can be dynamically updated as the control elements on the desktop move, improving the applicability of desktop wallpaper configuration and the compatibility of desktop wallpaper and desktop layout, improving the simplicity of configuring desktop wallpaper and the display effect of desktop wallpaper.
  • the method further includes:
  • the electronic device When the electronic device detects the user's operation of deleting a control element on the desktop, obtain the fourth position of the remaining control elements on the desktop, and determine the unobstructed target area of the remaining control elements on the desktop based on the fourth position; adjust the desktop wallpaper before deletion It is a desktop wallpaper whose main element is located in the deleted and unoccluded target area.
  • FIG. 9 it is a schematic diagram of the interface when deleting control elements provided by the embodiment of the present application; as shown in (a) of Figure 9, the display state of the desktop wallpaper before deletion of the control elements on the desktop and the target area for displaying the main elements .
  • Picture (b) in Figure 9 shows that after the "Weibo" control and "WeChat” control are deleted from the desktop, the desktop wallpaper will be automatically adapted to the desktop wallpaper after the deletion of the controls is completed.
  • the electronic device redefines the display subject based on the layout after the control elements on the desktop are deleted.
  • the target area of the element and adjusts the display position of the main element in the desktop wallpaper. Therefore, based on the operation of deleting control elements on the desktop detected on the desktop display page, the electronic device can trigger the gallery or launcher module to adjust the display position of the desktop wallpaper or adjust the image set as the desktop wallpaper and reconfigure the desktop wallpaper, so that Desktop wallpapers can be dynamically updated as the layout of control elements on the desktop changes, improving the applicability of desktop wallpaper configuration and the compatibility of desktop wallpapers with desktop layout, improving the simplicity of configuring desktop wallpapers and improving the display effect of desktop wallpapers.
  • the method further includes:
  • the electronic device When the electronic device detects the user's operation of downloading a new desktop control element, it obtains the fifth position of the control element on the desktop after downloading, and determines the unobstructed target area of the control element on the desktop after downloading based on the fifth position;
  • the desktop wallpaper is adjusted to a desktop wallpaper whose main element is located in the unobstructed target area after downloading.
  • FIG 10 it is a schematic diagram of the interface when downloading control elements provided by the embodiment of the present application; as shown in (a) of Figure 10, the display state of the desktop wallpaper before downloading new control elements on the desktop and the display state of the main element Target area, (b) in Figure 10 shows that after the "Weibo" control and "WeChat” control are downloaded and installed on the desktop, the desktop wallpaper ends with the download and installation action, showing the automatic adaptation after downloading the new control.
  • Desktop Wallpapers the display state of the desktop wallpaper before downloading new control elements on the desktop and the display state of the main element Target area
  • the electronic device re-determines the target area for displaying the main element based on the layout after installing the new control element on the desktop, and adjusts the display position of the main element in the desktop wallpaper. Therefore, when the electronic device detects the operation of downloading and installing control elements on the desktop on the desktop display page, it can trigger the gallery or launcher module to adjust the display position of the desktop wallpaper or adjust the image set as the desktop wallpaper and reconfigure the desktop wallpaper.
  • the desktop wallpaper can be dynamically updated as the layout of control elements on the desktop changes, improving the applicability of desktop wallpaper configuration and the compatibility of desktop wallpaper and desktop layout, improving the simplicity of configuring desktop wallpaper, and improving the display effect and display of desktop wallpaper. Diversity.
  • the method further includes:
  • the electronic device Before responding to the user's operation of setting the first image as the desktop wallpaper, the electronic device generates a desktop preview of the first image; in response to the user's operation of setting the desktop preview of the first image as the desktop wallpaper, the electronic device determines The application scope of the first image; based on the application scope, obtain the second position of the control element on the desktop corresponding to the application scope.
  • the application scope may include a first application scope and a second application scope; wherein the first application scope is used to indicate the configured attributes of the first image, such as "set as lock screen”, “set as desktop” and Attributes such as “simultaneously set”; the second application scope is used to indicate the target desktop display page where the first image is configured.
  • the second application scope may be at least one page among the multiple desktop display pages, such as the main page or the second page; the application scope of the set desktop wallpaper It can be one or more pages or all pages.
  • the electronic device can also use different images to be set as wallpapers for different desktop display pages, and scale or move the corresponding images based on the target areas that are not blocked by the control elements in the different desktop display pages, so that each image
  • the main elements in are located within the unobstructed areas of the control elements of their corresponding desktop display pages.
  • the user experience is also better.
  • FIG 11 a schematic diagram of the interface for configuring a series of desktop wallpapers provided by the embodiment of the present application; as shown in (a), (d) and (g) of Figure 11, based on different images, when configuring the desktop wallpaper
  • the first desktop preview is generated at the time, and the interface of the first desktop preview includes controls in the first application scope, such as "set as lock screen”, “set as desktop”, and “set simultaneously” and other item controls.
  • the second desktop preview interface shown in the second desktop preview interface may include controls in the second application range, such as "home screen”, "second screen” and "third screen” screen controls.
  • the control also includes a drop-down sliding control on the side. When the electronic device has multiple desktop display pages, different item controls can also be displayed based on the drop-down sliding operation.
  • different desktop display pages correspond to different desktop layouts, thereby determining different target areas; the electronic device identifies the main elements of different images. And determine the initial position, and adjust the corresponding images based on different target areas on the desktop, and configure the main elements of each image to correspond to the desktop wallpaper located in the corresponding target area. In this way, it is possible to configure desktop wallpapers of different images for multiple desktop display pages, making the configuration of desktop wallpapers more diversified, resulting in better display effects of desktop wallpapers and a stronger user experience.
  • the electronic device when it detects the operation of setting the first image as the desktop wallpaper, it can identify the main element of the first image and determine the first position where the main element is located when generating the desktop preview. position; based on the second position of each application control element on the desktop, the desktop management module determines the unobstructed target area of the control element on the desktop, and scales and moves the first image so that the unobstructed target area is consistent with the third Match the position of the main element of an image, and configure the first image as the wallpaper of the current desktop; thus when setting the desktop wallpaper, the main element in the image can automatically avoid the position of the control element, without the need for the user to manually adjust one by one
  • the position of the corresponding control element or the manual movement of the image position after generating the desktop preview make it easier to configure the desktop wallpaper, the desktop wallpaper display is more in line with user requirements, and the user experience is better.
  • sequence number of each step in the above embodiment does not mean the order of execution.
  • the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
  • FIG. 12 shows a structural block diagram of the desktop wallpaper configuration device provided by the embodiment of the present application. For convenience of explanation, only the parts related to the embodiment of the present application are shown.
  • FIG 12 is a structural block diagram of a desktop wallpaper configuration device provided by an embodiment of the present application.
  • the desktop wallpaper configuration device includes:
  • the identification unit 121 is configured to identify the main element in the first image and the first position of the desktop corresponding to the main element in response to the user's operation of setting the first image as the desktop wallpaper;
  • the acquisition unit 122 is configured to obtain the second position of the control element on the desktop, and determine the target area on the desktop that is not blocked by the control element based on the second position;
  • the configuration unit 123 is configured to scale or move the first image according to the first position and the target area, and configure it as a desktop wallpaper with the main element located in the target area.
  • the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the obtaining unit 122 is also used to obtain the main page. the second position of the control element on the main page, and determine the first target sub-area on the main page that is not blocked by the control element on the main page; obtain the second position of the control element on the second screen position, and determine the second target sub-area that is not blocked by the second on-screen control element according to the second position of the second on-screen control element; combine the first target sub-area with the second target sub-area The public area of the area serves as the target area.
  • the configuration unit 123 is further configured to scale or move the first image so that the main element is located between the first target sub-region and the second target sub-region.
  • Desktop wallpapers in public areas are further configured to scale or move the first image so that the main element is located between the first target sub-region and the second target sub-region.
  • the desktop includes a home page and a second screen, and the second screen is a desktop display page other than the home page;
  • the target area includes a first area or a second area;
  • the obtaining unit 122 is also configured to obtain the second position of the control element on the main page, and determine the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page. ; Obtain the second position of the control element on the second screen, and determine the second area that is not blocked by the control element on the second screen based on the second position of the control element on the second screen.
  • the configuration unit 123 is further configured to scale or move the first image according to the first position and the first area, and configure the main body element to be located at the first The desktop wallpaper of the main page in a region; zooming or moving the first image according to the first position and the second region, and configuring the main element to be located in the second region The desktop wallpaper of the second screen.
  • the device further includes:
  • a wallpaper switching unit configured to switch the desktop wallpaper corresponding to the main page to the desktop wallpaper corresponding to the second screen in response to the desktop switching operation of the user switching from the main page to the second screen; in response to The desktop switching operation of the user switching from the second screen to the main page switches the desktop wallpaper corresponding to the second screen to the desktop wallpaper corresponding to the main page.
  • the configuration unit 123 is also configured to obtain the third position of the control element on the desktop after the movement of the control element on the desktop when the user's operation of moving the control element on the desktop is detected, and adjust the position according to the third position.
  • the position determines the unobstructed target area of the control element on the desktop after movement; and adjusts the desktop wallpaper before movement to a desktop wallpaper in which the main element is located in the unobstructed target area after movement.
  • the configuration unit 123 is also configured to obtain the fourth position of the remaining control elements on the desktop when a user's operation of deleting a control element on the desktop is detected, and determine the position of the control element based on the fourth position. Determine the unobstructed target area of the remaining control elements on the desktop; adjust the desktop wallpaper before deletion to a desktop wallpaper in which the main element is located in the unobstructed target area after deletion.
  • the configuration unit 123 is also configured to obtain the fifth position of the downloaded control element on the desktop when a user's operation of downloading a new control element on the desktop is detected, and based on the The fifth position determines the unobstructed target area of the control element on the desktop after downloading; adjusts the desktop wallpaper before downloading to a desktop wallpaper in which the main element is located in the unobstructed target area after downloading.
  • the device further includes:
  • Generating a preview unit configured to generate a desktop preview of the first image before responding to the user's operation of setting the first image as a desktop wallpaper
  • An application range determining unit configured to determine the application range of the first image in response to the user's operation of setting the desktop preview of the first image as a desktop wallpaper
  • the obtaining unit is further configured to obtain, based on the application scope, the second position of the control element on the desktop corresponding to the application scope.
  • the recognition unit 121 is also used to perform target detection, feature extraction, and classification recognition processing on the first image, and determine the subject element in the first image.
  • the electronic device when it detects the operation of setting the first image as the desktop wallpaper, it identifies the main element of the first image and determines the first position of the main element when generating the desktop preview. ; Based on the second position of each application control element on the desktop, the desktop management module determines the unobstructed target area of the control element on the desktop, and scales and moves the first image so that the unobstructed target area is consistent with the first The position of the main element of the image matches, and the first image is configured as the wallpaper of the current desktop; thus, when configuring the desktop wallpaper, the main element in the image automatically avoids the position of the control element, making it easier to configure the desktop wallpaper, and the user The experience is better.
  • Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above.
  • Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit.
  • the above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units.
  • the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application.
  • For the specific working processes of the units and modules in the above system please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores a computer program.
  • the steps in each of the above method embodiments can be implemented.
  • Embodiments of the present application provide a computer program product.
  • the steps in each of the above method embodiments can be implemented when the mobile terminal is executed.
  • the disclosed devices/network devices and methods can be implemented in other ways.
  • the device/network device embodiments described above are only illustrative.
  • the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored. or not executed.
  • the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

Abstract

The present application is applicable to the technical field of terminals, and provides a desktop wallpaper configuration method and apparatus, an electronic device and a readable storage medium. The desktop wallpaper configuration method of the present application comprises: upon detecting an operation of configuring a first image as a desktop wallpaper, an electronic device recognizing a main body element of the first image, and determining a first position where the main body element is located when a desktop preview is generated; and on the basis of a second position where a control element of each application on the desktop is located, determining, by means of a desktop management module, a target area which is not shielded by the control element on the desktop, and zooming or moving the first image, so that the unshielded target area matches the position of the main body element of the first image, and configuring the first image as the wallpaper of the current desktop. Hence, when the desktop wallpaper is configured, the position of the main body element in the image automatically avoids the position where the control element is located, so that the desktop wallpaper is configured more conveniently.

Description

桌面壁纸配置方法、装置、电子设备及可读存储介质Desktop wallpaper configuration method, device, electronic device and readable storage medium
本申请要求于2022年06月14日在国家知识产权局提交的、申请号为202210669583.1、申请名称为“桌面壁纸配置方法、装置、电子设备及可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requests the priority of the Chinese patent application filed with the State Intellectual Property Office on June 14, 2022, with the application number 202210669583.1 and the application name "Desktop wallpaper configuration method, device, electronic device and readable storage medium", The entire contents of which are incorporated herein by reference.
技术领域Technical field
本申请涉及终端技术领域,尤其涉及一种桌面壁纸配置方法、装置、电子设备及可读存储介质。The present application relates to the field of terminal technology, and in particular to a desktop wallpaper configuration method, device, electronic device and readable storage medium.
背景技术Background technique
随着移动通信技术的发展,诸如手机等电子设备越来越普及,给人们的日常生活带来极大的便利。With the development of mobile communication technology, electronic devices such as mobile phones have become more and more popular, bringing great convenience to people's daily lives.
目前,电子设备的桌面是为用户提供的主屏幕区域,与用户体验息息相关。电子设备的桌面上通常为用户提供了壁纸的展示以及各种控件元素的展示;用户可以选择将不同的图片设置为桌面的壁纸。Currently, the desktop of electronic devices is the home screen area provided for users and is closely related to user experience. The desktop of an electronic device usually provides users with a display of wallpapers and a display of various control elements; the user can choose to set different pictures as desktop wallpapers.
然而,在大多数情况下,桌面需同时显示壁纸和多个控件元素,控件元素会对桌面壁纸进行部分遮挡,需通过手动进行调整等,从而使得壁纸配置过程操作繁琐。However, in most cases, the desktop needs to display wallpaper and multiple control elements at the same time. The control elements will partially block the desktop wallpaper, and need to be adjusted manually, making the wallpaper configuration process cumbersome.
发明内容Contents of the invention
本申请提供一种桌面壁纸配置方法、装置、电子设备及可读存储介质,解决了现有技术中桌面壁纸配置过程中操作繁琐的问题。The present application provides a desktop wallpaper configuration method, device, electronic device and readable storage medium, which solves the problem of cumbersome operations in the desktop wallpaper configuration process in the prior art.
为达到上述目的,本申请采用如下技术方案:In order to achieve the above purpose, this application adopts the following technical solutions:
第一方面,提供一种桌面壁纸配置方法,该方法可以包括:The first aspect provides a desktop wallpaper configuration method, which may include:
响应于用户将第一图像设定为桌面壁纸的操作,电子设备识别该第一图像中的主体元素以及该主体元素对应在桌面的第一位置;电子设备获取桌面上控件元素的第二位置,并根据第二位置确定在桌面上控件元素未遮挡的目标区域;电子设备根据第一位置和目标区域,将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸。In response to the user's operation of setting the first image as the desktop wallpaper, the electronic device identifies the main element in the first image and the first position corresponding to the main element on the desktop; the electronic device obtains the second position of the control element on the desktop, And determine a target area on the desktop that is not blocked by the control element according to the second position; the electronic device scales or moves the first image according to the first position and the target area, and configures it as a desktop wallpaper with the main element located in the target area.
示例性的,电子设备解锁后的桌面上可以包括多个应用程序的控件元素,每个应用程序的控件元素在桌面上显示时,会遮挡桌面壁纸的部分区域,影响桌面壁纸主体元素部分的显示。For example, the desktop after the electronic device is unlocked may include control elements of multiple applications. When the control elements of each application are displayed on the desktop, they will block part of the desktop wallpaper, affecting the display of the main elements of the desktop wallpaper. .
通过上述方式,电子设备在检测到将第一图像设定为桌面壁纸的操作时,可以通过对第一图像的主体元素进行识别,并确定主体元素在生成桌面预览图时所在的第一位置;通过桌面管理模块基于桌面上各个应用程序控件元素所在的第二位置,确定出桌面上控件元素未遮挡的目标区域,将第一图像进行缩放和移动处理,使得未遮挡的目标区域与第一图像的主体元素的位置相匹配,将第一图像配置为当前桌面的壁纸;从而在设置桌面壁纸时,可以使得图像中的主体元素自动避开控件元素所在的位置, 无需用户一一手动调整相应的控件元素的位置或者在生成桌面预览图后手动移动图像位置等操作,使得配置桌面壁纸更加简便,桌面壁纸显示更加符合用户要求,用户体验更好;具有较强的易用性与实用性。In the above manner, when the electronic device detects the operation of setting the first image as the desktop wallpaper, it can identify the main element of the first image and determine the first position of the main element when generating the desktop preview; Through the desktop management module, based on the second position of each application control element on the desktop, the unobstructed target area of the control element on the desktop is determined, and the first image is scaled and moved so that the unobstructed target area is consistent with the first image. Match the position of the main element, and configure the first image as the wallpaper of the current desktop; thus when setting the desktop wallpaper, the main element in the image can automatically avoid the position of the control element. There is no need for the user to manually adjust the position of the corresponding control elements one by one or manually move the image position after generating the desktop preview, making it easier to configure the desktop wallpaper, the desktop wallpaper display is more in line with user requirements, and the user experience is better; it has a strong Ease of use and practicality.
示例性的,对应设置桌面壁纸的桌面可以是多个桌面,所确定的桌面上的目标区域可以是多个桌面的共同对应的控件元素未遮挡的区域,还可以是每个桌面各自分别对应的控件元素未遮挡的区域。For example, the desktop corresponding to the desktop wallpaper can be multiple desktops, and the determined target area on the desktop can be an unobstructed area of the common corresponding control elements of multiple desktops, or it can also be the corresponding control element of each desktop. The unobstructed area of the control element.
示例性的,上述桌面上的控件元素可以包括应用程序图标、小部件widget或者文件夹等。第一图像的主体元素可以为画面中的人像、物像等元素。For example, the control elements on the desktop may include application icons, widgets, folders, etc. The main elements of the first image may be portraits, objects and other elements in the picture.
在第一方面的一种可能的实现方式中,桌面包括主页面和第二屏,第二屏为除主页面以外的其他桌面显示页面;In a possible implementation of the first aspect, the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page;
获取桌面上控件元素的第二位置,并根据第二位置确定在桌面上控件元素未遮挡的目标区域,包括:Obtain the second position of the control element on the desktop, and determine the unobstructed target area of the control element on the desktop based on the second position, including:
获取主页面上控件元素的第二位置,并根据主页面上控件元素的第二位置确定在主页面上控件元素未遮挡的第一目标子区域;获取第二屏上控件元素的第二位置,并根据第二屏上控件元素的第二位置确定在第二屏上控件元素未遮挡的第二目标子区域;将第一目标子区域与第二目标子区域的公共区域作为目标区域。Obtain the second position of the control element on the main page, and determine the first target sub-area on the main page that is not blocked by the control element based on the second position of the control element on the main page; obtain the second position of the control element on the second screen, And determine the second target sub-area that is not blocked by the control element on the second screen according to the second position of the control element on the second screen; use the common area between the first target sub-area and the second target sub-area as the target area.
在第一方面的一种可能的实现方式中,将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸,包括:In a possible implementation of the first aspect, the first image is scaled or moved and configured as a desktop wallpaper with the main element located in the target area, including:
将第一图像进行缩放或移动处理,配置为主体元素位于第一目标子区域与第二目标子区域的公共区域内的桌面壁纸。The first image is scaled or moved and configured as a desktop wallpaper with the main element located in a common area of the first target sub-area and the second target sub-area.
示例性的,当电子设备具备多个桌面显示页面时,在不同的桌面显示页面均包括控件元素,例如应用程序图标等;因此需要确定控件元素在不同的桌面显示页面上分别对应的位置,从而计算得到各个桌面显示页面上的未遮挡区域,最后确定出各个桌面显示页面的未遮挡区域的公共区域,将桌面壁纸的主体元素在该公共区域内显示。For example, when the electronic device has multiple desktop display pages, the different desktop display pages include control elements, such as application icons, etc.; therefore, it is necessary to determine the corresponding positions of the control elements on the different desktop display pages, so as to The unobstructed area on each desktop display page is calculated, and finally the common area of the unobstructed area on each desktop display page is determined, and the main element of the desktop wallpaper is displayed in the common area.
从而在电子设备接收到切换桌面的滑动指令时,切换后的桌面显示页面上的图标依然不会遮挡壁纸的主体元素部分,使得配置的桌面壁纸可以适配于多个桌面显示页面的显示状态,使得壁纸配置更加智能与贴切,实用与适用性更强,大大提升了用户的使用体验感。Therefore, when the electronic device receives a sliding instruction to switch desktops, the icons on the switched desktop display page will still not block the main elements of the wallpaper, so that the configured desktop wallpaper can be adapted to the display status of multiple desktop display pages. It makes the wallpaper configuration more intelligent and appropriate, more practical and applicable, and greatly improves the user experience.
在第一方面的一种可能的实现方式中,桌面包括主页面和第二屏,第二屏为除主页面以外的其他桌面显示页面;目标区域包括第一区域或第二区域;获取桌面上控件元素的第二位置,并根据第二位置确定在桌面上控件元素未遮挡的目标区域,包括:In a possible implementation of the first aspect, the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the target area includes the first area or the second area; obtaining the desktop The second position of the control element, and determine the unoccluded target area of the control element on the desktop based on the second position, including:
获取主页面上控件元素的第二位置,并根据主页面上控件元素的第二位置确定在主页面上控件元素未遮挡的第一区域;获取第二屏上控件元素的第二位置,并根据第二屏上控件元素的第二位置确定在第二屏上控件元素未遮挡的第二区域。Obtain the second position of the control element on the main page, and determine the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page; obtain the second position of the control element on the second screen, and determine based on the second position of the control element on the main page; The second position of the control element on the second screen is determined in a second area on the second screen that is not blocked by the control element.
在第一方面的一种可能的实现方式中,根据第一位置和目标区域,将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸,包括:In a possible implementation of the first aspect, the first image is scaled or moved according to the first position and the target area, and configured as a desktop wallpaper with the main element located in the target area, including:
根据第一位置和第一区域,将第一图像进行缩放或移动处理,配置为主体元素位于第一区域内的主页面的桌面壁纸;根据第一位置和第二区域,将第一图像进行缩放或移动处理,配置为主体元素位于第二区域内的第二屏的桌面壁纸。 According to the first position and the first area, the first image is scaled or moved, and configured as the desktop wallpaper of the main page whose main element is located in the first area; according to the first position and the second area, the first image is scaled Or for mobile processing, configure it as the desktop wallpaper of the second screen with the main element located in the second area.
在第一方面的一种可能的实现方式中,在将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,该方法还包括:In a possible implementation of the first aspect, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, the method further includes:
响应于用户从主页面切换至第二屏的桌面切换操作,将主页面对应的桌面壁纸切换为第二屏对应的桌面壁纸;响应于用户从第二屏切换至主页面的桌面切换操作,将第二屏对应的桌面壁纸切换为主页面对应的桌面壁纸。In response to the desktop switching operation of the user switching from the main page to the second screen, the desktop wallpaper corresponding to the main page is switched to the desktop wallpaper corresponding to the second screen; in response to the desktop switching operation of the user switching from the second screen to the main page, Switch the desktop wallpaper corresponding to the second screen to the desktop wallpaper corresponding to the main page.
示例性的,当电子设备具有多个桌面显示页面时,不同的桌面显示页面上的控件元素的布局可能不同,因此还可以基于不同的桌面显示页面,配置以相应的壁纸,使得在切换不同的桌面显示页面时,可以动态的适配于每一个桌面显示页面,使得每个桌面显示页面的壁纸均可以在控件元素未遮挡区域显示壁纸的主体元素。For example, when an electronic device has multiple desktop display pages, the layout of control elements on different desktop display pages may be different. Therefore, corresponding wallpapers can also be configured based on different desktop display pages, so that when switching different When the desktop display page is displayed, it can be dynamically adapted to each desktop display page, so that the wallpaper of each desktop display page can display the main element of the wallpaper in the area not blocked by the control elements.
从而基于动态的适配,增加壁纸配置的位置多样性,实现桌面壁纸在配置过程中的自动移动及适配,使得壁纸配置的操作过程更加简便、智能以及配置的效率更高,无需用户手动操作,配置过程更加简单,提高用户体验以及桌面壁纸的视觉效果。Therefore, based on dynamic adaptation, the location diversity of wallpaper configuration is increased, and the automatic movement and adaptation of desktop wallpapers during the configuration process are realized, making the operation process of wallpaper configuration simpler, smarter and more efficient, without the need for manual operation by the user. , the configuration process is simpler, improving the user experience and the visual effect of the desktop wallpaper.
在第一方面的一种可能的实现方式中,在将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,该方法还包括:In a possible implementation of the first aspect, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, the method further includes:
在检测到用户移动桌面上控件元素的操作时,获取桌面上控件元素移动后的第三位置,并根据第三位置确定桌面上控件元素移动后未遮挡的目标区域;将移动前的桌面壁纸调整为主体元素位于移动后未遮挡的目标区域内的桌面壁纸。When detecting the user's operation of moving a control element on the desktop, obtain the third position of the control element on the desktop after the movement, and determine the unoccluded target area of the control element on the desktop after the movement of the control element based on the third position; adjust the desktop wallpaper before the movement It is a desktop wallpaper whose main element is located in the unobstructed target area after movement.
在第一方面的一种可能的实现方式中,在将所述第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,该方法还包括:In a possible implementation of the first aspect, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, the method further includes:
在检测到用户删除桌面上控件元素的操作时,获取桌面上剩余控件元素的第四位置,并根据第四位置确定桌面上剩余控件元素未遮挡的目标区域;将删除前的桌面壁纸调整为主体元素位于删除后的未遮挡的目标区域内的桌面壁纸。When detecting the user's operation of deleting a control element on the desktop, obtain the fourth position of the remaining control elements on the desktop, and determine the unobstructed target area of the remaining control elements on the desktop based on the fourth position; adjust the desktop wallpaper before deletion as the main body Desktop wallpaper with elements located within the removed, unoccluded target area.
在第一方面的一种可能的实现方式中,在将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,方法还包括:In a possible implementation of the first aspect, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, the method further includes:
在检测到用户下载新的桌面上控件元素的操作时,获取下载后桌面上控件元素的第五位置,并根据第五位置确定下载后桌面上控件元素未遮挡的目标区域;将下载前的桌面壁纸调整为主体元素位于下载后的未遮挡的目标区域内的桌面壁纸。When detecting the user's operation of downloading a new control element on the desktop, obtain the fifth position of the control element on the desktop after downloading, and determine the unobstructed target area of the control element on the desktop after downloading based on the fifth position; the desktop before downloading The wallpaper is adjusted to a desktop wallpaper with the main element located within the unobstructed target area after downloading.
示例性的,当电子设备检测到桌面上的控件元素被移动、删除或者下载到新的控件元素时,例如下载新的应用程序图标,电子设备还可以识别桌面上控件元素布局的变化,获取布局变化后桌面上控件元素的位置信息,并基于桌面上控件元素布局变化后的位置信息自动调整该桌面对应的壁纸的大小及位置,使得壁纸的主体元素在桌面布局变化后未遮挡的目标区域进行显示;从而在桌面布局发生变化时可以继续优化桌面壁纸的适配度,使得桌面壁纸更加适配桌面布局的显示,使桌面壁纸配置操作也更加简便,壁纸的显示方式也更加多样化。For example, when the electronic device detects that a control element on the desktop is moved, deleted, or downloaded to a new control element, such as downloading a new application icon, the electronic device can also identify changes in the layout of the control elements on the desktop and obtain the layout. The position information of the control elements on the desktop after the change is changed, and the size and position of the wallpaper corresponding to the desktop are automatically adjusted based on the position information of the control element layout on the desktop after the change, so that the main elements of the wallpaper are in the target area that is not blocked after the desktop layout is changed. display; thus, when the desktop layout changes, the adaptability of the desktop wallpaper can be continued to be optimized, making the desktop wallpaper more suitable for the display of the desktop layout, making the desktop wallpaper configuration operation easier, and the display method of the wallpaper becoming more diverse.
在第一方面的一种可能的实现方式中,该方法还包括:In a possible implementation of the first aspect, the method further includes:
在响应于用户将第一图像设定为桌面壁纸的操作之前,生成第一图像的桌面预览图;响应于用户将第一图像的桌面预览图设定为桌面壁纸的操作,确定第一图像的应用范围;基于该应用范围,获取与应用范围对应的桌面上控件元素的第二位置。Before responding to the user's operation of setting the first image as the desktop wallpaper, generating a desktop preview of the first image; in response to the user's operation of setting the desktop preview of the first image as the desktop wallpaper, determining the first image Application scope; based on the application scope, obtain the second position of the control element on the desktop corresponding to the application scope.
示例性的,该应用范围可以包括第一应用范围和第二应用范围;其中,第一应用 范围用于指示第一图像被配置的属性,例如“设为锁屏”、“设为桌面”以及“同时设置”等属性;第二应用范围用于指示第一图像被配置的目标桌面显示页面。Exemplarily, the application scope may include a first application scope and a second application scope; wherein, the first application scope The scope is used to indicate the configured attributes of the first image, such as "set as lock screen", "set as desktop" and "set simultaneously"; the second application scope is used to indicate the target desktop display page where the first image is configured. .
示例性的,当电子设备包括多个桌面显示页面时,该第二应用范围可以为多个桌面显示页面中的至少一个页面,例如主页面或第二屏对应的桌面显示页面;所设定的桌面壁纸的应用范围可以是其中的一个或多个页面也可以是所有页面。For example, when the electronic device includes multiple desktop display pages, the second application scope may be at least one page among the multiple desktop display pages, such as the home page or the desktop display page corresponding to the second screen; the set The application scope of desktop wallpaper can be one or more pages or all pages.
示例性的,电子设备还可以使用不同的图像分别对应设置为不同桌面显示页面的壁纸,并基于不同桌面显示页面中控件元素未遮挡的目标区域,将相应的图像进行缩放或移动处理,使得各图像中的主体元素分别位于各自对应的桌面显示页面的控件元素未遮挡区域内。例如,可以将一个系列的多张图像分别设置为多个桌面显示页面的壁纸。For example, the electronic device can also use different images to be set as wallpapers for different desktop display pages, and scale or move the corresponding images based on the target areas that are not blocked by the control elements in the different desktop display pages, so that each The main elements in the image are located within the unobstructed areas of the control elements of their corresponding desktop display pages. For example, you can set multiple images from a series as wallpapers for multiple desktop display pages.
从而在检测到用户切换桌面的滑动操作时,可以基于不同的桌面显示页面显示一个系列的不同效果及类型的壁纸,使得壁纸配置更加多样化,壁纸显示效果更好,用户的体验感也更好。Therefore, when the user's sliding operation to switch desktops is detected, a series of wallpapers with different effects and types can be displayed based on different desktop display pages, making the wallpaper configuration more diverse, the wallpaper display effect better, and the user's experience better. .
在第一方面的一种可能的实现方式中,识别第一图像中的主体元素包括:In a possible implementation of the first aspect, identifying the subject element in the first image includes:
对第一图像进行目标检测、特征提取以及分类识别处理,确定第一图像中的主体元素。Perform target detection, feature extraction and classification recognition processing on the first image to determine the subject elements in the first image.
示例性的,电子设备可以通过神经网络对第一图像中的目标进行检测及特征提取,然后基于类别的识别与对比处理,确定第一图像中的主体元素的类型与位置。For example, the electronic device can detect and extract features of the target in the first image through a neural network, and then determine the type and position of the subject element in the first image based on category recognition and comparison processing.
第二方面,提供一种桌面壁纸配置装置,该装置包括:In a second aspect, a desktop wallpaper configuration device is provided, which device includes:
识别单元,用于响应于用户将第一图像设定为桌面壁纸的操作,识别所述第一图像中的主体元素以及所述主体元素对应在所述桌面的第一位置;An identification unit configured to identify the main element in the first image and the first position of the desktop corresponding to the main element in response to the user's operation of setting the first image as the desktop wallpaper;
获取单元,用于获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域;An acquisition unit configured to acquire a second position of a control element on the desktop, and determine a target area on the desktop that is not blocked by the control element based on the second position;
配置单元,用于根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸。A configuration unit configured to scale or move the first image according to the first position and the target area, and configure it as a desktop wallpaper with the main element located in the target area.
在第二方面的一种可能的实现方式中,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面。In a possible implementation of the second aspect, the desktop includes a home page and a second screen, and the second screen is a desktop display page other than the home page.
所述获取单元,还用于获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的第一目标子区域;获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的第二目标子区域;将所述第一目标子区域与所述第二目标子区域的公共区域作为所述目标区域。The obtaining unit is further configured to obtain the second position of the control element on the main page, and determine the first target sub-section that is not blocked by the control element on the main page according to the second position of the control element on the main page. area; obtain the second position of the control element on the second screen, and determine the second target sub-area that is not blocked by the control element on the second screen based on the second position of the control element on the second screen; A common area between the first target sub-area and the second target sub-area serves as the target area.
在第二方面的一种可能的实现方式中,所述配置单元,还用于将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一目标子区域与所述第二目标子区域的公共区域内的桌面壁纸。In a possible implementation of the second aspect, the configuration unit is further configured to zoom or move the first image so that the main element is located between the first target sub-region and the first image. The desktop wallpaper within the public area of the second target subarea.
在第二方面的一种可能的实现方式中,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;所述目标区域包括第一区域或第二区域。In a possible implementation of the second aspect, the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the target area includes a first area or second area.
所述获取单元,还用于获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的所述第一区域;获取 所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的所述第二区域。The obtaining unit is further configured to obtain the second position of the control element on the main page, and determine the first position of the control element on the main page that is not blocked based on the second position of the control element on the main page. area; get The second position of the second on-screen control element is determined based on the second position of the second on-screen control element, and the second area that is not blocked by the second on-screen control element is determined.
在第二方面的一种可能的实现方式中,所述配置单元,还用于根据所述第一位置和所述第一区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一区域内的所述主页面的桌面壁纸;根据所述第一位置和所述第二区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第二区域内的所述第二屏的桌面壁纸。In a possible implementation of the second aspect, the configuration unit is further configured to scale or move the first image according to the first position and the first area, and is configured to The desktop wallpaper of the main page whose main element is located in the first area; the first image is scaled or moved according to the first position and the second area, and is configured such that the main element is located The desktop wallpaper of the second screen in the second area.
在第二方面的一种可能的实现方式中,该装置还包括:In a possible implementation of the second aspect, the device further includes:
壁纸切换单元,用于响应于用户从所述主页面切换至所述第二屏的桌面切换操作,将所述主页面对应的桌面壁纸切换为所述第二屏对应的桌面壁纸;响应于用户从所述第二屏切换至所述主页面的桌面切换操作,将所述第二屏对应的桌面壁纸切换为所述主页面对应的桌面壁纸。A wallpaper switching unit configured to switch the desktop wallpaper corresponding to the main page to the desktop wallpaper corresponding to the second screen in response to the desktop switching operation of the user switching from the main page to the second screen; in response to The desktop switching operation of the user switching from the second screen to the main page switches the desktop wallpaper corresponding to the second screen to the desktop wallpaper corresponding to the main page.
在第二方面的一种可能的实现方式中,所述配置单元,还用于在检测到用户移动所述桌面上控件元素的操作时,获取所述桌面上控件元素移动后的第三位置,并根据所述第三位置确定所述桌面上控件元素移动后未遮挡的目标区域;将移动前的桌面壁纸调整为主体元素位于移动后未遮挡的目标区域内的桌面壁纸。In a possible implementation of the second aspect, the configuration unit is also configured to obtain the third position of the control element on the desktop after movement when a user's operation of moving the control element on the desktop is detected, And determine the target area on the desktop that is not blocked after the control element is moved according to the third position; and adjust the desktop wallpaper before the movement to a desktop wallpaper in which the main element is located in the target area that is not blocked after the movement.
在第二方面的一种可能的实现方式中,所述配置单元,还用于在检测到用户删除所述桌面上控件元素的操作时,获取所述桌面上剩余控件元素的第四位置,并根据所述第四位置确定所述桌面上剩余控件元素未遮挡的目标区域;将删除前的桌面壁纸调整为主体元素位于删除后的未遮挡的目标区域内的桌面壁纸。In a possible implementation of the second aspect, the configuration unit is further configured to obtain the fourth position of the remaining control elements on the desktop when a user's operation of deleting a control element on the desktop is detected, and Determine the unobstructed target area of the remaining control elements on the desktop according to the fourth position; adjust the desktop wallpaper before deletion to a desktop wallpaper in which the main element is located in the unobstructed target area after deletion.
在第二方面的一种可能的实现方式中,所述配置单元,还用于在检测到用户下载新的所述桌面上控件元素的操作时,获取下载后所述桌面上控件元素的第五位置,并根据所述第五位置确定下载后所述桌面上控件元素未遮挡的目标区域;将下载前的桌面壁纸调整为主体元素位于下载后的未遮挡的目标区域内的桌面壁纸。In a possible implementation of the second aspect, the configuration unit is further configured to obtain the fifth downloaded control element of the desktop when detecting a user's operation of downloading a new control element on the desktop. position, and determine the unobstructed target area of the control element on the desktop after downloading based on the fifth position; adjust the desktop wallpaper before downloading to a desktop wallpaper with the main element located in the unobstructed target area after downloading.
在第二方面的一种可能的实现方式中,该装置还包括:In a possible implementation of the second aspect, the device further includes:
生成预览单元,用于在响应于用户将第一图像设定为桌面壁纸的操作之前,生成所述第一图像的桌面预览图;Generating a preview unit, configured to generate a desktop preview of the first image before responding to the user's operation of setting the first image as a desktop wallpaper;
应用范围确定单元,用于响应于用户将所述第一图像的所述桌面预览图设定为桌面壁纸的操作,确定所述第一图像的应用范围;An application range determining unit configured to determine the application range of the first image in response to the user's operation of setting the desktop preview of the first image as a desktop wallpaper;
所述获取单元,还用于基于所述应用范围,获取与所述应用范围对应的所述桌面上控件元素的所述第二位置。The obtaining unit is further configured to obtain, based on the application scope, the second position of the control element on the desktop corresponding to the application scope.
在第二方面的一种可能的实现方式中,该识别单元还用于对所述第一图像进行目标检测、特征提取以及分类识别处理,确定所述第一图像中的所述主体元素。In a possible implementation of the second aspect, the recognition unit is further configured to perform target detection, feature extraction, and classification recognition processing on the first image, and determine the subject element in the first image.
本申请实施例的第三方面提供了一种电子设备,所述电子设备包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述第一方面中任一项所述方法的步骤。A third aspect of the embodiment of the present application provides an electronic device. The electronic device includes a memory and a processor. The memory stores a computer program that can run on the processor. The processor executes the The computer program implements the steps of the method according to any one of the above first aspects.
本申请实施例的第四方面提供了一种计算机可读存储介质,包括:存储有计算机程序,所述计算机程序被处理器执行时实现如上述第一方面中任一项所述方法的步骤。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, which includes: storing a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of the above first aspects are implemented.
本申请实施例的第五方面提供了一种计算机程序产品,当计算机程序产品在终端 设备上运行时,使得终端设备执行上述第一方面中任一项所述方法。The fifth aspect of the embodiment of the present application provides a computer program product. When the computer program product is used in a terminal When running on the device, the terminal device is caused to execute the method described in any one of the above first aspects.
可以理解的是,上述第二方面至第五方面的有益效果可以参见第一方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the above second to fifth aspects can be referred to the relevant descriptions in the first aspect, and will not be described again here.
附图说明Description of the drawings
图1为本申请实施例提供的一种电子设备的系统架构图;Figure 1 is a system architecture diagram of an electronic device provided by an embodiment of the present application;
图2为本申请实施例提供的一种软件架构的示意图;Figure 2 is a schematic diagram of a software architecture provided by an embodiment of the present application;
图3为本申请实施例提供的一种桌面壁纸配置方法的流程示意图;Figure 3 is a schematic flow chart of a desktop wallpaper configuration method provided by an embodiment of the present application;
图4为本申请实施例提供的一种桌面壁纸配置过程的界面示意图;Figure 4 is a schematic interface diagram of a desktop wallpaper configuration process provided by an embodiment of the present application;
图5为本申请实施例提供的另一种桌面壁纸配置过程的界面示意图;Figure 5 is a schematic interface diagram of another desktop wallpaper configuration process provided by an embodiment of the present application;
图6为本申请实施例提供的公共目标区域的界面示意图;Figure 6 is a schematic interface diagram of a public target area provided by an embodiment of the present application;
图7为本申请实施例提供的各个桌面的目标区域的界面示意图;Figure 7 is a schematic interface diagram of the target area of each desktop provided by the embodiment of the present application;
图8为本申请实施例提供的移动控件元素时的界面示意图;Figure 8 is a schematic diagram of the interface when moving control elements provided by the embodiment of the present application;
图9为本申请实施例提供的删除控件元素时的界面示意图;Figure 9 is a schematic diagram of the interface when deleting control elements provided by the embodiment of the present application;
图10为本申请实施例提供的下载控件元素时的界面示意图;Figure 10 is a schematic diagram of the interface when downloading control elements provided by the embodiment of the present application;
图11为本申请实施例提供的配置系列桌面壁纸的界面示意图;Figure 11 is a schematic diagram of the interface for configuring a series of desktop wallpapers provided by the embodiment of the present application;
图12为本申请实施例提供的一种桌面壁纸配置装置的结构示意图。Figure 12 is a schematic structural diagram of a desktop wallpaper configuration device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。In the following description, for the purpose of explanation rather than limitation, specific details such as specific system structures and technologies are provided to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
为了说明本申请所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solutions described in this application, specific examples are provided below.
应当理解,当在本说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。It will be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and/or components but does not exclude one or more other features , the presence or addition of a whole, a step, an operation, an element, a component, and/or a collection thereof.
还应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should also be understood that the terminology used in the specification of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise.
还应当进一步理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items. .
如在本说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "once" or "in response to determining" or "in response to detecting" depending on the context. . Similarly, the phrase "if determined" or "if [the described condition or event] is detected" may be interpreted, depending on the context, to mean "once determined" or "in response to a determination" or "once the [described condition or event] is detected ]" or "in response to detection of [the described condition or event]".
目前,电子设备的主屏幕区域的桌面上可以布局各种控件元素,例如应用程序的图标以及小部件等。在设置桌面壁纸时,桌面上布局的各种控件元素会对壁纸进行部分遮挡,从而影响壁纸的显示效果,需要用户进一步手动移动桌面上控件元素等操作, 改变桌面上的布局;或者需要反复设置测试,才能使桌面壁纸的显示更加适配桌面上布局。因此,桌面壁纸的配置过程繁琐且用户体验不好。Currently, various control elements, such as application icons and widgets, can be laid out on the desktop of the home screen area of the electronic device. When setting the desktop wallpaper, various control elements laid out on the desktop will partially block the wallpaper, thus affecting the display effect of the wallpaper, requiring the user to further manually move the control elements on the desktop, etc. Change the layout of the desktop; or it may be necessary to repeatedly set up and test the display to make the display of the desktop wallpaper more suitable for the layout of the desktop. Therefore, the configuration process of desktop wallpaper is cumbersome and the user experience is not good.
针对上述缺陷,本申请提供了一种桌面壁纸配置方法,可以提高桌面壁纸配置的效率,使得桌面壁纸配置过程简便易操作,壁纸的显示效果也更好,并且可以很好的提高用户体验。In view of the above defects, this application provides a desktop wallpaper configuration method, which can improve the efficiency of desktop wallpaper configuration, make the desktop wallpaper configuration process simple and easy to operate, the wallpaper display effect is also better, and can well improve the user experience.
下面介绍本申请实施例所涉及的电子设备的硬件结构。The hardware structure of the electronic device involved in the embodiment of the present application is introduced below.
图1示出了电子设备100的结构示意图。FIG. 1 shows a schematic structural diagram of an electronic device 100 .
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone interface 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。 In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (derail clock line, SCL). In some embodiments, processor 110 may include multiple sets of I2C buses. The processor 110 can separately couple the touch sensor 180K, charger, flash, camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface to implement the touch function of the electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, processor 110 may include multiple sets of I2S buses. The processor 110 can be coupled with the audio module 170 through the I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface to implement the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications to sample, quantize and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface to implement the function of answering calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is generally used to connect the processor 110 and the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the electronic device 100 . The processor 110 and the display screen 194 communicate through the DSI interface to implement the display function of the electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 with the camera 193, display screen 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that complies with the USB standard specification, and may be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transmit data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through them. This interface can also be used to connect other electronic devices, such as AR devices, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationships between the modules illustrated in the embodiments of the present application are only schematic illustrations and do not constitute a structural limitation of the electronic device 100 . In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140 可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 Wireless charging input may be received through a wireless charging coil of electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。A modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs sound signals through audio devices (not limited to speaker 170A, receiver 170B, etc.), or displays images or videos through display screen 194. In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110 and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无 线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the mobile communication module 150. The wire communication module 160 is coupled so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, videos, etc. Display 194 includes a display panel. The display panel can use a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light emitting diode or an active matrix organic light emitting diode (active-matrix organic light emitting diode). emitting diode (AMOLED), flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The electronic device 100 can implement the shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193. For example, when taking a photo, the shutter is opened, the light is transmitted to the camera sensor through the lens, the optical signal is converted into an electrical signal, and the camera sensor passes the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object passes through the lens to produce an optical image that is projected onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. DSP converts digital image signals into standard RGB, YUV and other format image signals. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。 Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement the data storage function. Such as saving music, videos, etc. files in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行电子设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the stored program area can store an operating system, at least one application program required for a function (such as a sound playback function, an image playback function, etc.). The storage data area may store data created during use of the electronic device 100 (such as audio data, phone book, etc.). In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The headphone interface 170D is used to connect wired headphones. The headphone interface 170D may be a USB interface 130, or may be a 3.5mm open mobile terminal platform (OMTP) standard interface, or a Cellular Telecommunications Industry Association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施 例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,电子设备100根据压力传感器180A检测所述触摸操作强度。电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals and can convert the pressure signals into electrical signals. In some implementations For example, the pressure sensor 180A may be disposed on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. A capacitive pressure sensor may include at least two parallel plates of conductive material. When a force is applied to pressure sensor 180A, the capacitance between the electrodes changes. The electronic device 100 determines the intensity of the pressure based on the change in capacitance. When a touch operation is performed on the display screen 194, the electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The electronic device 100 may also calculate the touched position based on the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch location but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold is applied to the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。Air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。Magnetic sensor 180D includes a Hall sensor. The electronic device 100 may utilize the magnetic sensor 180D to detect opening and closing of the flip holster. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. Then, based on the detected opening and closing status of the leather case or the opening and closing status of the flip cover, features such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。电子设备100通过发光二极管向外发射红外光。电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定电子设备100附近有物体。当检测到不充分的反射光时,电子设备100可以确定电子设备100附近没有物体。电子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outwardly through the light emitting diode. Electronic device 100 uses photodiodes to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100 . When insufficient reflected light is detected, the electronic device 100 may determine that there is no object near the electronic device 100 . The electronic device 100 can use the proximity light sensor 180G to detect when the user holds the electronic device 100 close to the ear for talking, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in holster mode, and pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。 The ambient light sensor 180L is used to sense ambient light brightness. The electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touching.
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。Fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access to application locks, fingerprint photography, fingerprint answering of incoming calls, etc.
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,电子设备100对电池142加热,以避免低温导致电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。Temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 utilizes the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of a processor located near the temperature sensor 180J in order to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the low temperature from causing the electronic device 100 to shut down abnormally. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 performs boosting on the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。Bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human body's vocal part. The bone conduction sensor 180M can also contact the human body's pulse and receive blood pressure beating signals. In some embodiments, the bone conduction sensor 180M can also be provided in an earphone and combined into a bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibrating bone obtained by the bone conduction sensor 180M to implement the voice function. The application processor can analyze the heart rate information based on the blood pressure beating signal acquired by the bone conduction sensor 180M to implement the heart rate detection function.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。The motor 191 can generate vibration prompts. The motor 191 can be used for vibration prompts for incoming calls and can also be used for touch vibration feedback. For example, touch operations for different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. The motor 191 can also respond to different vibration feedback effects for touch operations in different areas of the display screen 194 . Different application scenarios (such as time reminders, receiving information, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, or may be used to indicate messages, missed calls, notifications, etc.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在电子设备100中,不能和电子设备100分离。 The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195 . The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card, etc. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100 .
基于上述电子设备100的硬件结构,本申请实施例还提供了电子设备的软件架构,下面本申请实施例进一步介绍软件架构。Based on the above hardware structure of the electronic device 100, embodiments of the present application also provide a software architecture of the electronic device. The following embodiments of the present application further introduce the software architecture.
电子设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备100的软件结构。The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of this application takes the Android system with a layered architecture as an example to illustrate the software structure of the electronic device 100 .
图2是本申请实施例的电子设备100的软件结构框图。FIG. 2 is a software structure block diagram of the electronic device 100 according to the embodiment of the present application.
请参阅图2,安卓操作系统的系统架构可以包括应用(Application,APP)层、框架(Framework)层、本地(Native)层、核心(Kernel)层、硬件(Hardware)层。Please refer to Figure 2. The system architecture of the Android operating system can include an application (APP) layer, a framework (Framework) layer, a native (Native) layer, a core (Kernel) layer, and a hardware (Hardware) layer.
应用层可以包括至少一个应用程序(Application),应用程序可以是系统应用程序,也可以是第三方的应用程序;例如图库,桌面管理模块launcher,相机,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。The application layer can include at least one application (Application), which can be a system application or a third-party application; for example, gallery, desktop management module launcher, camera, calendar, call, map, navigation, WLAN, Bluetooth , music, video, short message and other applications.
在Framework层设置有窗口管理服务(Window Manager Service,WMS)模块、活动管理服务(Activity Manager Service,AMS)模块、窗口适配服务(Display Manager Srevice,DMS)模块以及输入管理(Input Manager)模块。The Framework layer is equipped with a Window Management Service (Window Manager Service, WMS) module, an Activity Management Service (Activity Manager Service, AMS) module, a Window Adaptation Service (Display Manager Srevice, DMS) module and an Input Manager (Input Manager) module.
WMS模块负责为应用程序分配窗口(surface)以及管理surface的属性(例如surface的大小、显示位置、显示区域以及隐藏区域)。The WMS module is responsible for allocating windows (surfaces) to applications and managing surface properties (such as surface size, display position, display area, and hidden area).
AMS模块负责管理应用程序的生命周期以及处理事项。The AMS module is responsible for managing the life cycle of the application and processing matters.
DMS模块负责管理系统当前显示屏的屏幕显示状态。The DMS module is responsible for managing the screen display status of the current display screen of the system.
Input Manager模块负责传递数据。The Input Manager module is responsible for passing data.
在Native层设置有硬件图形制作器(Hardware composer,HWC)以及送显通道(Display)。The Native layer is equipped with a hardware graphics composer (Hardware composer, HWC) and a display channel (Display).
硬件图形制作器负责将屏幕显示数据上屏显示;硬件图形制作器还可以为安卓系统中进行窗口合成和显示的硬件抽象层(Hardware Abstraction Layer,HAL)模块。The hardware graphics producer is responsible for displaying the screen display data on the screen; the hardware graphics producer can also be the hardware abstraction layer (Hardware Abstraction Layer, HAL) module for window synthesis and display in the Android system.
Display负责传递配置的桌面壁纸对应的屏幕显示数据。Display is responsible for passing the screen display data corresponding to the configured desktop wallpaper.
在Kernel层设置有传感器驱动(Sensor Driver)模块。There is a sensor driver (Sensor Driver) module in the Kernel layer.
Sensor Driver模块负责接收和传递传感器采集的传感器数据,例如触摸传感器采集用户输入的触摸信号,该触摸信号用于指示桌面管理模块基于该触摸信号生成相应的壁纸配置事件的触发信息,该触发信息用于指示图库对相应的桌面壁纸的显示状态基于桌面上的控件元素及用户输入的触摸信号进行调整。The Sensor Driver module is responsible for receiving and transmitting sensor data collected by the sensor. For example, the touch sensor collects the touch signal input by the user. The touch signal is used to instruct the desktop management module to generate trigger information for the corresponding wallpaper configuration event based on the touch signal. The trigger information is used The display state of the corresponding desktop wallpaper is adjusted in the instruction gallery based on the control elements on the desktop and the touch signals input by the user.
在Hardware层设置有显示屏(Screen)和触摸传感器。The Hardware layer is provided with a display screen and a touch sensor.
Screen负责显示调整后的桌面壁纸。Screen is responsible for displaying the adjusted desktop wallpaper.
触摸传感器负责采集用户输入的触摸信号。The touch sensor is responsible for collecting touch signals input by the user.
下面结合配置桌面壁纸的场景,示例性说明电子设备100软件以及硬件的工作流程。The following exemplifies the workflow of the software and hardware of the electronic device 100 in conjunction with the scenario of configuring the desktop wallpaper.
当触摸传感器180K接收到触摸操作,相应的硬件中断被发给内核层。内核层的传感器驱动模块将触摸操作加工成原始输入事件(包括触摸坐标,触摸操作的时间戳等信息)。原始输入事件被存储在内核层。When the touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The sensor driver module at the kernel layer processes touch operations into raw input events (including touch coordinates, timestamps of touch operations, and other information). Raw input events are stored at the kernel level.
应用程序框架层的输入管理模块从内核层获取原始输入事件,识别该输入事件所 对应的控件,例如针对设置控件中的设置壁纸控件或者图库中的设置壁纸的控件;该输入事件还可以是移动或删除桌面上控件元素的触发事件。输入管理模块可以基于原始输入事件以及对应的设置壁纸的控件,将原始输入事件的相关信息传输给桌面管理模块launcher,由桌面管理模块launcher传输给图库。The input management module of the application framework layer obtains the original input event from the kernel layer and identifies the source of the input event. Corresponding controls, such as the setting wallpaper control in the settings control or the setting wallpaper control in the gallery; the input event can also be a triggering event for moving or deleting control elements on the desktop. The input management module can transmit the relevant information of the original input event to the desktop management module launcher based on the original input event and the corresponding control for setting the wallpaper, and the desktop management module launcher transmits it to the gallery.
以该触摸操作是触摸单击操作,该单击操作所对应的控件为图库的应用图标的控件为例,图库基于原始输入事件以及调用应用框架层窗口管理服务模块的接口以及窗口适配服务模块的接口,生成相应桌面的壁纸,通过本地层的送显通道以及硬件图像制作器,配置为相应的桌面的壁纸并通过显示屏在桌面上显示。Taking the touch operation as a touch click operation and the control corresponding to the click operation as the application icon control of the gallery as an example, the gallery is based on the original input event and the interface of the window management service module of the application framework layer and the window adaptation service module. The interface generates the wallpaper of the corresponding desktop, and configures it as the wallpaper of the corresponding desktop through the display channel of the local layer and the hardware image maker and displays it on the desktop through the display screen.
其中,桌面管理模块launcher获取基于显示屏上的触摸传感器产生的对各个控件元素的操作指令(例如移动、删除等),基于该操作指令,确定调整后的桌面布局以及桌面上各控件元素的位置,并将该桌面布局或桌面上各个控件元素的位置进行存储或发送给图库;由图库基于该桌面布局或桌面上各个控件元素的位置,执行计算桌面上控件元素未遮挡的目标区域、识别图像中的主体元素及主体元素所在的位置,并将图像配置为主体元素位于目标区域内的壁纸。Among them, the desktop management module launcher obtains the operation instructions (such as moving, deleting, etc.) for each control element generated based on the touch sensor on the display screen, and determines the adjusted desktop layout and the position of each control element on the desktop based on the operation instructions. , and store or send the desktop layout or the position of each control element on the desktop to the gallery; based on the desktop layout or the position of each control element on the desktop, the gallery performs calculation of the unobstructed target area of the control element on the desktop, and recognizes the image The main element in the image and the location of the main element, and configure the image as a wallpaper with the main element located in the target area.
或者,由桌面管理模块launcher基于该桌面布局或桌面上各个控件元素的位置,直接计算出桌面上控件元素未遮挡的目标区域并发送给图库,由图库在识别出图像的主体元素及主体元素所在的位置,并将图像配置为主体元素位于目标区域内的壁纸。Alternatively, the desktop management module launcher directly calculates the unobstructed target area of the control elements on the desktop based on the desktop layout or the position of each control element on the desktop and sends it to the gallery, which then identifies the main element of the image and the location of the main element. position and configure the image as a wallpaper with the main element located within the target area.
或者,由桌面管理模块launcher基于该桌面布局或桌面上各个控件元素的位置,直接计算出桌面上控件元素未遮挡的目标区域,并由桌面管理模块launcher在桌面预览图界面识别出图像的主体元素及主体元素所在的位置,并将图像配置为主体元素位于目标区域内的壁纸。Alternatively, the desktop management module launcher directly calculates the unobstructed target area of the control elements on the desktop based on the desktop layout or the position of each control element on the desktop, and the desktop management module launcher identifies the main element of the image in the desktop preview interface. and the location of the main element, and configure the image as a wallpaper with the main element located within the target area.
基于上述电子设备的硬件与软件架构,本申请实施例提供了一种桌面壁纸配置方法,应用于上述电子设备100,该电子设备100可以是但不限于智能手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、人工智能(Artificial Intelligence,AI)终端等终端设备。本申请实施例对电子设备100的具体类型不作任何限制。Based on the hardware and software architecture of the above-mentioned electronic device, embodiments of the present application provide a desktop wallpaper configuration method, which is applied to the above-mentioned electronic device 100. The electronic device 100 may be but is not limited to a smartphone, a tablet computer, a wearable device, a vehicle-mounted device, or a mobile phone. Devices, augmented reality (AR)/virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA) , artificial intelligence (Artificial Intelligence, AI) terminals and other terminal equipment. The embodiment of the present application does not place any restrictions on the specific type of the electronic device 100 .
下面通过实施例介绍桌面壁纸配置方法的具体实施过程。The specific implementation process of the desktop wallpaper configuration method is introduced below through embodiments.
参见图3,图3是本申请实施例提供的一种桌面壁纸配置方法的流程示意图;如图3所示,该方法可以包括以下步骤:Referring to Figure 3, Figure 3 is a schematic flowchart of a desktop wallpaper configuration method provided by an embodiment of the present application; as shown in Figure 3, the method may include the following steps:
S301,响应于用户将第一图像设定为桌面壁纸的操作,电子设备识别第一图像中的主体元素以及主体元素对应在桌面的第一位置。S301. In response to the user's operation of setting the first image as the desktop wallpaper, the electronic device identifies the main element in the first image and the main element corresponding to the first position on the desktop.
在一些实施例中,电子设备可以接收用户通过点击桌面上的“设置”控件或“图库”控件输入的指令,进入桌面壁纸配置的流程。在基于第一图像设置桌面壁纸的过程中,电子设备还可以生成该第一图像的桌面预览图;基于该桌面预览图,电子设备在接收到用户设为桌面壁纸的操作时,可以对桌面预览图中所包含的主体元素进行识别,并确定该主体元素在预览界面时所在桌面的初始位置,即第一位置。In some embodiments, the electronic device can receive instructions input by the user by clicking the "Settings" control or the "Gallery" control on the desktop to enter the process of configuring the desktop wallpaper. In the process of setting the desktop wallpaper based on the first image, the electronic device can also generate a desktop preview of the first image; based on the desktop preview, when receiving the user's operation of setting the desktop wallpaper, the electronic device can preview the desktop The main element contained in the picture is identified, and the initial position of the desktop where the main element is located when previewing the interface is determined, that is, the first position.
下面通过两种配置方式介绍将图像配置为桌面壁纸的过程。 The following describes the process of configuring an image as a desktop wallpaper through two configuration methods.
如图4所示,本申请实施例提供的一种桌面壁纸配置过程的界面示意图。如图4中的(a)图所示,该显示界面401可以为电子设备的主页面,在该主页面上布局有各种控件元素;该控件元素可以为应用程序图标,例如“设置”、“视频”、“运动健康”以及“图库”等;该控件还可以为桌面上的小部件等,例如显示界面401上显示地点、时间及日期等。As shown in Figure 4, an interface diagram of a desktop wallpaper configuration process provided by an embodiment of the present application is shown. As shown in (a) of Figure 4, the display interface 401 can be the main page of the electronic device, and various control elements are arranged on the main page; the control elements can be application icons, such as "Settings", "Video", "Sports and Health", "Gallery", etc.; the control can also be a widget on the desktop, such as the location, time and date displayed on the display interface 401.
如图4中的(a)图所示,电子设备接收用户点击“设置”控件的触摸信号时,可以进入到如图4中的(b)图所示的显示界面402,在该显示界面402包括“桌面和壁纸”控件。电子设备接收到用户点击该“桌面与壁纸”控件的触摸信号时,可以进入如图4中的(c)图所示的显示界面403,该显示界面403为可以显示待预览的图库,可以包括系统推荐的图库和用户通过截图或照相机拍摄存储的图库,本实施例中以推荐的图库为例进行说明。As shown in (a) of Figure 4, when the electronic device receives the touch signal from the user clicking on the "Settings" control, it can enter the display interface 402 as shown in (b) of Figure 4. In this display interface 402 Includes "Desktop and Wallpaper" controls. When the electronic device receives the touch signal of the user clicking on the "Desktop and Wallpaper" control, it can enter the display interface 403 as shown in (c) of Figure 4. The display interface 403 can display a gallery to be previewed, which can include The gallery recommended by the system and the gallery stored by the user through screenshots or camera shots are described in this embodiment by taking the recommended gallery as an example.
电子设备接收到用户点击推荐图库的控件的触摸信号时,可以进入如图4中的(d)图所示的推荐图库列表的显示界面404,在该推荐图库列表的显示界面404中可以包括多个图像。电子设备在接收到用户点击任一张图像的触摸信号后,可以打开该被点击的图像,并生成桌面壁纸的桌面预览图,如图4中的(e)图所示的显示界面405。When the electronic device receives the touch signal of the user clicking on the control of the recommended gallery, it can enter the display interface 404 of the recommended gallery list as shown in (d) of Figure 4. The display interface 404 of the recommended gallery list can include multiple images. After receiving the touch signal from the user clicking on any image, the electronic device can open the clicked image and generate a desktop preview of the desktop wallpaper, such as the display interface 405 shown in (e) of Figure 4 .
在该显示界面405包括进一步进行设置的选项控件,如图4中的(e)图所示,该选项控件显示为“√”;电子设备接收用户点击该选项控件的触摸信号,进入如图4中的(f)图所示的显示界面406,在显示界面406包括设置范围的控件,例如图4中的(f)图所示的“设为锁屏”、“设为桌面”以及“同时设置”的各个选项的控件。当电子设备接收到用户点击该“设为桌面”控件的触摸信号时,电子设备识别被选中的图像中的主体元素,以及主体元素在壁纸预览界面时所在的初始位置。The display interface 405 includes an option control for further setting. As shown in (e) of Figure 4, the option control is displayed as "√"; the electronic device receives the touch signal of the user clicking on the option control and enters Figure 4 The display interface 406 shown in (f) in Figure 4 includes controls for setting ranges, such as "set as lock screen", "set as desktop" and "simultaneously" shown in (f) of Figure 4 Controls for various options of "Settings". When the electronic device receives a touch signal from the user clicking on the "Set as Desktop" control, the electronic device identifies the main element in the selected image and the initial position of the main element in the wallpaper preview interface.
另一种实现过程则是基于图库中的图像进行配置。如图5所示,本申请实施例提供的另一种桌面壁纸配置过程的界面示意图。如图5中的(a)图所示,该显示界面501可以为电子设备的主页面,在该主页面上布局有各种控件元素;该控件元素可以为应用程序图标,例如“视频”、“运动健康”、以及“图库”等;该控件还可以为桌面上的小部件等,例如显示界面501上显示地点、时间及日期等。Another implementation process is to configure based on images in the gallery. As shown in FIG. 5 , another schematic interface diagram of a desktop wallpaper configuration process provided by an embodiment of the present application. As shown in (a) of Figure 5 , the display interface 501 can be the main page of the electronic device, and various control elements are arranged on the main page; the control elements can be application icons, such as "video", "Sports and Health", "Gallery", etc.; the control can also be a widget on the desktop, for example, the location, time and date are displayed on the display interface 501.
如图5中的(a)图所示,电子设备接收用户点击“图库”控件的触摸信号时,可以进入到如图5中的(b)图所示的显示界面502,在该显示界面502包括多张图像。As shown in (a) of Figure 5, when the electronic device receives the touch signal from the user clicking on the "Gallery" control, it can enter the display interface 502 as shown in (b) of Figure 5. In this display interface 502 Includes multiple images.
电子设备接收到用户点击任一张图像的触摸信号时,可以进入如图5中的(c)图所示的显示界面503,该显示界面503为可以对该图像进行操作的各个功能控件,例如“分享”、“收藏”、“编辑”、“删除”以及“更多”等控件。When the electronic device receives the touch signal of the user clicking on any image, it can enter the display interface 503 as shown in (c) of Figure 5. The display interface 503 contains various functional controls that can operate on the image, such as Controls such as "Share", "Collect", "Edit", "Delete" and "More".
电子设备接收到用户点击“更多”控件的触摸信号时,可以进入如图5中的(d)图所示的显示界面504;在该显示界面504可以弹出其他对图像进行处理的功能控件列表,例如“移动”、“复制”、“隐藏”、“重命名”、“旋转”、“设置为”以及“添加备注”等功能控件。When the electronic device receives the touch signal of the user clicking on the "More" control, it can enter the display interface 504 as shown in (d) of Figure 5; in this display interface 504, a list of other functional controls for processing images can pop up. , such as "Move", "Copy", "Hide", "Rename", "Rotate", "Set as" and "Add Note" and other functional controls.
电子设备在接收到用户点击该功能控件中的“设置为”控件的触摸信号后,进入如图5中的(e)图所示的显示界面505,并在该显示界面505上生成该图像应用范围控件,例如“壁纸”、“联系人照片”以及“熄屏显示”等控件;电子设备接收用户点击该应用范围控件中“壁纸”控件的触摸信号时,进入如图5中的(f)图所示的显 示界面506,即桌面壁纸的预览界面,此时图像为桌面预览图。After receiving the touch signal from the user clicking on the "Set as" control in the function control, the electronic device enters the display interface 505 as shown in (e) of Figure 5, and generates the image application on the display interface 505. Scope controls, such as "Wallpaper", "Contact Photo" and "Screen Off Display"controls; when the electronic device receives the touch signal from the user clicking on the "Wallpaper" control in the application scope control, it enters (f) in Figure 5 The display shown in the figure The display interface 506 is the preview interface of the desktop wallpaper. At this time, the image is a desktop preview image.
在该显示界面506包括进一步进行设置的选项控件,如图5中的(f)图所示,该选项控件显示为“√”;电子设备接收用户点击该选项控件的触摸信号,进入如图5中的(g)图所示的显示界面507;在显示界面507包括设置范围的控件,例如图5中的(g)图所示的“设为锁屏”、“设为桌面”以及“同时设置”的各个选项的控件。当电子设备接收到用户点击该“设为桌面”控件的触摸信号时,电子设备识别被选中的图像中的主体元素,以及主体元素在壁纸预览界面时所在的初始位置。The display interface 506 includes an option control for further setting. As shown in (f) of Figure 5, the option control is displayed as "√"; the electronic device receives the touch signal of the user clicking on the option control and enters Figure 5 The display interface 507 shown in (g) in Figure 5; the display interface 507 includes controls for setting ranges, such as "set as lock screen", "set as desktop" and "simultaneously" shown in (g) of Figure 5 Controls for various options of "Settings". When the electronic device receives a touch signal from the user clicking on the "Set as Desktop" control, the electronic device identifies the main element in the selected image and the initial position of the main element in the wallpaper preview interface.
示例性的,电子设备对第一图像进行目标检测、特征提取以及分类识别处理,确定出第一图像中的主体元素。For example, the electronic device performs target detection, feature extraction, and classification recognition processing on the first image, and determines the subject elements in the first image.
示例性的,电子设备可以通过神经网络对第一图像中的目标进行检测及特征提取,然后基于类别的识别与对比处理,确定第一图像中的主体元素的类型与位置。该主体元素的类型可以为用户的人脸部位,或者当图像为风景图时,主体元素可以是图像中的主要物体、建筑物或植物等,例如房屋、树木或者花朵等。For example, the electronic device can detect and extract features of the target in the first image through a neural network, and then determine the type and position of the subject element in the first image based on category recognition and comparison processing. The type of the subject element can be the user's face part, or when the image is a landscape, the subject element can be the main object, building or plant in the image, such as a house, tree or flower.
S302,电子设备获取桌面上控件元素的第二位置,并根据第二位置确定在桌面上控件元素未遮挡的目标区域。S302. The electronic device obtains the second position of the control element on the desktop, and determines a target area on the desktop that is not blocked by the control element based on the second position.
在一些实施例中,电子设备可以通过桌面管理模块launcher确定各个控件元素在桌面上的位置。In some embodiments, the electronic device can determine the location of each control element on the desktop through the desktop management module launcher.
示例性的,桌面管理模块可以与桌面以及桌面上的控件元素产生绑定关系,通过对桌面上按照预定的划分方式,确定每个控件元素的具体位置;例如,桌面的划分方式可以是X×Y矩阵形式的单元格(如4×4或者4×5的单元格),通过确定控件元素在横向X以及纵向Y所占用的单元格数量以及控件元素的起始位置,即可确定控件元素在桌面上的位置。其中,为便于确定控件元素中的应用程序图标可能会占用一个单元格,而控件元素中的小部件则可能占用多个图标的位置,基于上述方式可以确定小部件在桌面上的位置。For example, the desktop management module can create a binding relationship with the desktop and control elements on the desktop, and determine the specific location of each control element on the desktop according to a predetermined division method; for example, the desktop division method can be X× For cells in the form of Y matrix (such as 4×4 or 4×5 cells), by determining the number of cells occupied by the control element in the horizontal X and vertical Y and the starting position of the control element, you can determine the position of the control element. position on the desktop. Among them, in order to facilitate the determination, the application icon in the control element may occupy one cell, and the widget in the control element may occupy the position of multiple icons. Based on the above method, the position of the widget on the desktop can be determined.
示例性的,电子设备在接收到桌面上的图标被删除、移动或下载安装新的控件元素时,系统会发出对应的广播,基于该广播launcher会执行相应的加载程序,对桌面上各个控件元素的移动、添加、删除、改变以及可用和不可用等各种情况进行监听及处理。For example, when an electronic device receives that an icon on the desktop is deleted, moved, or a new control element is downloaded and installed, the system will send out a corresponding broadcast. Based on the broadcast, the launcher will execute the corresponding loader to load each control element on the desktop. Monitor and handle various situations such as movement, addition, deletion, change, availability and unavailability.
因此,如图2所示的电子设备的软件架构,launcher可以获取基于显示屏上的触摸传感器产生的对各个控件元素的操作指令(例如移动、删除等),基于该操作指令,确定调整后的桌面布局以及桌面上各控件元素的位置,并将该桌面布局和桌面上各个控件元素的位置进行存储或发送给图库。Therefore, according to the software architecture of the electronic device shown in Figure 2, the launcher can obtain the operation instructions for each control element (such as moving, deleting, etc.) generated based on the touch sensor on the display screen, and based on the operation instructions, determine the adjusted Desktop layout and the position of each control element on the desktop, and store or send the desktop layout and the position of each control element on the desktop to the gallery.
在电子设备基于图库中的图像对桌面壁纸进行配置时,通过图库单元可以获取launcher中的桌面布局以及桌面上各个控件元素的位置,并基于该桌面布局和桌面上各个控件元素的位置确定出桌面上控件元素未遮挡的目标区域;或者,launcher在检测到桌面布局发生改变或者桌面上各控件元素的位置发生调整,则基于调整后的桌面布局及控件元素的位置向图库发送触发信号,该触发信号可以包括调整后的桌面布局以及各控件元素的位置,该触发信号用于指示图库基于获取到的调整后的桌面布局以及各控件元素的位置,重新确定桌面上控件元素未遮挡的目标区域。 When the electronic device configures the desktop wallpaper based on the image in the gallery, the desktop layout in the launcher and the position of each control element on the desktop can be obtained through the gallery unit, and the desktop is determined based on the desktop layout and the position of each control element on the desktop. The target area that is not blocked by the control elements; or, when the launcher detects that the desktop layout has changed or the position of each control element on the desktop has been adjusted, it will send a trigger signal to the gallery based on the adjusted desktop layout and the position of the control elements. The trigger The signal may include the adjusted desktop layout and the position of each control element. The trigger signal is used to instruct the gallery to re-determine the target area on the desktop that is not blocked by the control elements based on the obtained adjusted desktop layout and the position of each control element.
示例性的,上述目标区域的计算还可以由launcher模块完成,基于与桌面以及桌面上各控件元素的绑定关系,确定出桌面上各控件元素的位置,并计算出控件元素为遮挡的目标区域。如图4中的(g)图所示,在显示界面407上的虚线框位置4071则为确定出的目标区域;再如图5中的(h)图所示,再显示界面508上的虚线框位置5081为确定出的目标区域。For example, the calculation of the above target area can also be completed by the launcher module. Based on the binding relationship with the desktop and each control element on the desktop, the position of each control element on the desktop is determined, and the target area where the control element is occluded is calculated. . As shown in (g) of Figure 4, the dotted frame position 4071 on the display interface 407 is the determined target area; and as shown in (h) of Figure 5, the dotted line on the display interface 508 is Frame position 5081 is the determined target area.
示例性的,电子设备可以包含多个桌面显示页面,分别可以称为主页面(第一屏)、第二屏、第三屏等,通过显示屏上的触摸传感器检测到用户向左或向右的滑动操作时,可以切换不同的桌面显示页面。在不同的桌面显示页面上,可以包含不同的控件元素以及对应不同的桌面布局。For example, the electronic device may include multiple desktop display pages, which may be called a home page (first screen), a second screen, a third screen, etc., and the touch sensor on the display screen detects whether the user moves to the left or right. You can switch between different desktop display pages during the sliding operation. Different desktop display pages can contain different control elements and correspond to different desktop layouts.
因此,launcher模块可以分别与每个桌面显示页面进行绑定,并在向图库传送桌面布局或各控件元素在对应桌面上的位置时,分别携带有与各个桌面显示页面相对应的属性信息,即区分出每个桌面显示页面的桌面布局及各控件元素的位置。launcher可以将每个桌面显示页面的桌面布局或各控件元素的位置发送给图库,通过图库对各个桌面显示页面的未遮挡的目标区域进行计算;或者,launcher模块直接计算出每个桌面显示页面的未遮挡的目标区域,然后发送给图库。Therefore, the launcher module can be bound to each desktop display page respectively, and when transmitting the desktop layout or the position of each control element on the corresponding desktop to the gallery, it carries attribute information corresponding to each desktop display page, that is, Distinguish the desktop layout of each desktop display page and the location of each control element. The launcher can send the desktop layout of each desktop display page or the position of each control element to the gallery, and calculate the unoccluded target area of each desktop display page through the gallery; or, the launcher module directly calculates the unobstructed target area of each desktop display page. The unoccluded target area is then sent to the gallery.
S303,根据第一位置和目标区域,电子设备将第一图像进行缩放或移动处理,并配置为主体元素位于目标区域内的桌面壁纸。S303: According to the first position and the target area, the electronic device scales or moves the first image and configures it as a desktop wallpaper with the main element located in the target area.
在一些实施例中,电子设备基于桌面预览图中主体元素所在的初始位置与未遮挡的目标区域的偏差,对第一图像进行缩小、放大或移动处理,将第一图像配置为主体元素位于未遮挡的目标区域中显示的桌面壁纸。In some embodiments, the electronic device reduces, enlarges or moves the first image based on the deviation between the initial position of the subject element in the desktop preview image and the unoccluded target area, and configures the first image so that the subject element is located in the unoccluded target area. The desktop wallpaper is displayed in the occluded target area.
如图4中的(g)图所示的桌面壁纸,可以对第一图像缩小并向屏幕下方移动,使得第一图像中的主体元素(人脸部位)位于未遮挡的目标区域4071;又如图5中的(h)图所示的桌面壁纸,可以对第一图像缩小并向屏幕下方移动,使得第一图像中的主体元素(人脸部位)位于未遮挡的目标区域5081。也可以不进行缩放,只进行移动,具体可以基于目标区域的大小进行适应性确定,使得桌面壁纸与桌面更加适配的显示。As shown in (g) of Figure 4, the desktop wallpaper can shrink the first image and move it to the bottom of the screen, so that the main element (face part) in the first image is located in the unoccluded target area 4071; and As shown in (h) of Figure 5, the desktop wallpaper can shrink the first image and move it to the bottom of the screen, so that the main element (face part) in the first image is located in the unoccluded target area 5081. It is also possible to move without zooming. Specifically, the adaptability can be determined based on the size of the target area, so that the desktop wallpaper can be displayed more appropriately with the desktop.
通过本申请实施例,电子设备在检测到将第一图像设定为桌面壁纸的操作时,可以通过对第一图像的主体元素进行识别,并确定主体元素在生成桌面预览图时所在的第一位置;通过桌面管理模块基于桌面上各个应用程序控件元素所在的第二位置,确定出桌面上控件元素未遮挡的目标区域,将第一图像进行缩放和移动处理,使得未遮挡的目标区域与第一图像的主体元素的位置相匹配,将第一图像配置为当前桌面的壁纸;从而在设置桌面壁纸时,可以使得图像中的主体元素自动避开控件元素所在的位置,无需用户一一手动调整相应的控件元素的位置或者在生成桌面预览图后手动移动图像位置等操作,使得配置桌面壁纸更加简便,桌面壁纸显示更加符合用户要求,用户体验更好。Through the embodiments of the present application, when the electronic device detects the operation of setting the first image as the desktop wallpaper, it can identify the main element of the first image and determine the first position where the main element is located when generating the desktop preview. position; based on the second position of each application control element on the desktop, the desktop management module determines the unobstructed target area of the control element on the desktop, and scales and moves the first image so that the unobstructed target area is consistent with the third Match the position of the main element of an image, and configure the first image as the wallpaper of the current desktop; thus when setting the desktop wallpaper, the main element in the image can automatically avoid the position of the control element, without the need for the user to manually adjust one by one The position of the corresponding control element or the manual movement of the image position after generating the desktop preview make it easier to configure the desktop wallpaper, the desktop wallpaper display is more in line with user requirements, and the user experience is better.
在一些实施例中,桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;电子设备获取桌面上控件元素的第二位置,并根据第二位置确定在桌面上控件元素未遮挡的目标区域,包括:In some embodiments, the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the electronic device obtains the second position of the control element on the desktop, and displays the second screen according to the second position. Determine the target area on the desktop that is not obscured by control elements, including:
获取主页面上控件元素的第二位置,并根据主页面上控件元素的第二位置确定在主页面上控件元素未遮挡的第一目标子区域;获取第二屏上控件元素的第二位置,并 根据第二屏上控件元素的第二位置确定在第二屏上控件元素未遮挡的第二目标子区域;将第一目标子区域与第二目标子区域的公共区域作为目标区域。Obtain the second position of the control element on the main page, and determine the first target sub-area on the main page that is not blocked by the control element based on the second position of the control element on the main page; obtain the second position of the control element on the second screen, and Determine a second target sub-area that is not blocked by the control element on the second screen according to the second position of the control element on the second screen; use a common area between the first target sub-area and the second target sub-area as the target area.
在一些实施例中,电子设备将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸,包括:In some embodiments, the electronic device zooms or moves the first image and configures it as a desktop wallpaper with the main element located in the target area, including:
电子设备将第一图像进行缩放或移动处理,配置为主体元素位于第一目标子区域与第二目标子区域的公共区域内的桌面壁纸。The electronic device zooms or moves the first image, and configures it as a desktop wallpaper whose main element is located in a common area of the first target sub-area and the second target sub-area.
如图6所示,本申请实施例提供的公共目标区域的界面示意图。电子设备包括多个桌面显示页面,如图6中的(a)图所示的主页面和如图6中的(b)图所示的第二屏的页面。As shown in FIG. 6 , a schematic interface diagram of the public target area provided by the embodiment of the present application. The electronic device includes multiple desktop display pages, such as a main page as shown in (a) of Figure 6 and a second screen page as shown in (b) of Figure 6 .
示例性的,当电子设备具备多个桌面显示页面时,电子设备通过图库或launcher模块可以分别计算出每个桌面显示页面的未遮挡的目标区域,然后基于每个桌面显示页面的未遮挡的目标区域计算出公共的目标区域。For example, when an electronic device has multiple desktop display pages, the electronic device can calculate the unoccluded target area of each desktop display page through the gallery or launcher module, and then calculate the unoccluded target area of each desktop display page based on the image gallery or launcher module. The area calculates the common target area.
如图6中的(a)图所示的虚线框表示的目标区域,以及图6中的(b)图所示的虚线框表示的目标区域,电子设备基于两者的目标区域,计算出公共的目标区域,如图6中的(c)图和(d)图分别所示的虚线框表示的公共的目标区域。电子设备基于该公共的目标区域配置桌面壁纸,将图像的主体元素位于该公共的目标区域内,如图6中的(c)图和(d)图分别所示的桌面壁纸。For example, the target area represented by the dotted box shown in (a) of Figure 6, and the target area represented by the dotted box shown in (b) of Figure 6, the electronic device calculates a common target area based on the two target areas. The target area is the common target area represented by the dotted box shown in (c) and (d) of Figure 6 respectively. The electronic device configures the desktop wallpaper based on the common target area, and locates the main element of the image in the common target area, such as the desktop wallpaper shown in (c) and (d) of Figure 6 respectively.
相应的,在切换到不同的桌面显示页面时,均可以使图像的主体元素位于各桌面显示页面的未遮挡的目标区域,在简便桌面壁纸设置的同时,提升桌面壁纸的显示效果。Correspondingly, when switching to different desktop display pages, the main element of the image can be located in the unobstructed target area of each desktop display page, which not only simplifies the desktop wallpaper setting, but also improves the display effect of the desktop wallpaper.
在一些实施例中,桌面包括主页面和第二屏,第二屏为除主页面以外的其他桌面显示页面;目标区域包括第一区域或第二区域;电子设备获取桌面上控件元素的第二位置,并根据第二位置确定在桌面上控件元素未遮挡的目标区域,包括:In some embodiments, the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the target area includes the first area or the second area; and the electronic device obtains the second page of the control elements on the desktop. position, and determine the unobstructed target area of the control element on the desktop based on the second position, including:
电子设备获取主页面上控件元素的第二位置,并根据主页面上控件元素的第二位置确定在主页面上控件元素未遮挡的第一区域;电子设备获取第二屏上控件元素的第二位置,并根据第二屏上控件元素的第二位置确定在第二屏上控件元素未遮挡的第二区域。The electronic device obtains the second position of the control element on the main page, and determines the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page; the electronic device obtains the second position of the control element on the second screen. position, and determine a second area that is not blocked by the control element on the second screen based on the second position of the control element on the second screen.
在一些实施例中,电子设备根据第一位置和目标区域,将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸,包括:In some embodiments, the electronic device scales or moves the first image according to the first position and the target area, and configures it as a desktop wallpaper with the main element located in the target area, including:
电子设备根据第一位置和第一区域,将第一图像进行缩放或移动处理,配置为主体元素位于第一区域内的所述主页面的桌面壁纸;电子设备根据第一位置和第二区域,将第一图像进行缩放或移动处理,配置为主体元素位于第二区域内的第二屏的桌面壁纸。The electronic device zooms or moves the first image according to the first position and the first area, and configures it as the desktop wallpaper of the main page whose main element is located in the first area; the electronic device according to the first position and the second area, The first image is scaled or moved and configured as the desktop wallpaper of the second screen whose main element is located in the second area.
如图7所示,本申请实施例提供的各个桌面的目标区域的界面示意图。电子设备包括多个桌面显示页面,如图7中的(a)图所示的主页面、如图7中的(b)图所示的第二屏的页面以及如图7中的(c)图所示的第三屏的页面。As shown in FIG. 7 , an interface schematic diagram of the target area of each desktop provided by the embodiment of the present application. The electronic device includes multiple desktop display pages, such as a main page as shown in (a) of Figure 7, a second screen page as shown in (b) of Figure 7, and (c) of Figure 7 The third screen page shown in the figure.
示例性的,当电子设备具备多个桌面显示页面时,电子设备通过图库或launcher模块可以分别计算出每个桌面显示页面的未遮挡的目标区域。如图7中的(a)图所示的虚线框表示的目标区域、图7中的(b)图所示的虚线框表示的目标区域以及图7中 的(c)图所示的虚线框表示的目标区域。For example, when the electronic device has multiple desktop display pages, the electronic device can separately calculate the unoccluded target area of each desktop display page through the gallery or launcher module. The target area represented by the dotted box shown in (a) of Figure 7, the target area represented by the dotted box shown in (b) of Figure 7, and the target area represented by the dotted box shown in Figure 7 (b). The target area represented by the dotted box shown in (c).
电子设备基于各个桌面显示页面分别对应的目标区域,对图像进行缩放或移动处理,将图像配置为的主体元素分别位于各个桌面显示页面的目标区域内的桌面壁纸,如图7中的(a)图、(b)图和(c)图所示的分别适配于不同桌面布局的桌面壁纸。The electronic device scales or moves the image based on the target area corresponding to each desktop display page, and configures the image as a desktop wallpaper whose main elements are respectively located in the target area of each desktop display page, as shown in (a) in Figure 7 The desktop wallpapers shown in Figure, (b) and (c) are respectively adapted to different desktop layouts.
相应的,在切换到不同的桌面显示页面时,所设置的桌面壁纸还可以随桌面显示页面的切换而动态改变,使图像的主体元素位于各桌面显示页面分别对应的目标区域,在简便桌面壁纸配置的同时,实现了桌面壁纸显示的多样性,提升桌面壁纸的显示效果。Correspondingly, when switching to different desktop display pages, the set desktop wallpaper can also be dynamically changed as the desktop display page is switched, so that the main elements of the image are located in the target areas corresponding to each desktop display page. In the simple desktop wallpaper While configuring, it realizes the diversity of desktop wallpaper display and improves the display effect of desktop wallpaper.
需要说明的是,上述界面示意图仅示例性说明各个桌面显示页面上的控件元素分别对应的不同的布局,并不对各个桌面显示页面上的控件元素的类型以及布局方式进行限定。当基于每个桌面显示页面确定出的公共的未遮挡目标区域小于预设阈值,或者无法确定出公共的未遮挡的目标区域时,还可以将图像配置成与每个桌面显示页面的公共区域分别对应匹配的桌面壁纸。It should be noted that the above interface schematic diagram only illustrates the different layouts corresponding to the control elements on each desktop display page, and does not limit the types and layout methods of the control elements on each desktop display page. When the common unoccluded target area determined based on each desktop display page is less than the preset threshold, or the common unoccluded target area cannot be determined, the image can also be configured to be separate from the common area of each desktop display page. Corresponds to the matching desktop wallpaper.
在一些实施例中,在电子设备将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,该方法还包括:In some embodiments, after the electronic device zooms or moves the first image and configures it as a desktop wallpaper with the main element located in the target area, the method further includes:
电子设备在检测到用户移动桌面上控件元素的操作时,获取桌面上控件元素移动后的第三位置,并根据第三位置确定桌面上控件元素移动后未遮挡的目标区域;将移动前的桌面壁纸调整为主体元素位于移动后未遮挡的目标区域内的桌面壁纸。When the electronic device detects the user's operation of moving the control element on the desktop, it obtains the third position of the control element on the desktop after the movement, and determines the unobstructed target area of the control element on the desktop after the movement of the control element based on the third position; the desktop before the movement is The wallpaper is adjusted to a desktop wallpaper with the main element located within the unobstructed target area after movement.
如图8所示,本申请实施例提供的移动控件元素时的界面示意图;如图8中的(a)图所示的桌面上控件元素移动之前桌面壁纸显示状态以及显示主体元素的目标区域,图8中的(b)图则为将桌面上的“QQ”控件和“计算器”控件移动位置后,桌面壁纸随移动操作的结束,显示自动适配移动控件后的桌面壁纸。As shown in Figure 8, a schematic diagram of the interface when moving the control element provided by the embodiment of the present application; as shown in (a) of Figure 8, the display state of the desktop wallpaper before the movement of the control element on the desktop and the target area for displaying the main element, Picture (b) in Figure 8 shows that after the "QQ" control and "calculator" control on the desktop are moved, the desktop wallpaper ends with the movement operation, and the desktop wallpaper after automatically adapting to the mobile controls is displayed.
可以看出,电子设备基于桌面上的控件元素被移动后的布局重新确定了显示主体元素的目标区域,并调整了桌面壁纸中主体元素的显示位置。从而电子设备可以基于在桌面显示页面检测到的移动桌面上控件元素的操作时,触发图库或launcher模块对桌面壁纸显示位置的调整或者对设置为桌面壁纸的图像进行调整并重新配置桌面壁纸,使得桌面壁纸可以随桌面上控件元素的移动而动态的更新,提高桌面壁纸配置的适用性以及桌面壁纸与桌面布局的适配性,提高配置桌面壁纸简便性以及桌面壁纸的显示效果。It can be seen that the electronic device re-determines the target area for displaying the main element based on the layout after the control elements on the desktop are moved, and adjusts the display position of the main element in the desktop wallpaper. Therefore, based on the operation of the control elements on the mobile desktop detected on the desktop display page, the electronic device can trigger the gallery or launcher module to adjust the display position of the desktop wallpaper or adjust the image set as the desktop wallpaper and reconfigure the desktop wallpaper, so that The desktop wallpaper can be dynamically updated as the control elements on the desktop move, improving the applicability of desktop wallpaper configuration and the compatibility of desktop wallpaper and desktop layout, improving the simplicity of configuring desktop wallpaper and the display effect of desktop wallpaper.
在一些实施例中,在电子设备将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,该方法还包括:In some embodiments, after the electronic device zooms or moves the first image and configures it as a desktop wallpaper with the main element located in the target area, the method further includes:
在电子设备检测到用户删除桌面上控件元素的操作时,获取桌面上剩余控件元素的第四位置,并根据第四位置确定桌面上剩余控件元素未遮挡的目标区域;将删除前的桌面壁纸调整为主体元素位于删除后的未遮挡的目标区域内的桌面壁纸。When the electronic device detects the user's operation of deleting a control element on the desktop, obtain the fourth position of the remaining control elements on the desktop, and determine the unobstructed target area of the remaining control elements on the desktop based on the fourth position; adjust the desktop wallpaper before deletion It is a desktop wallpaper whose main element is located in the deleted and unoccluded target area.
如图9所示,为本申请实施例提供的删除控件元素时的界面示意图;如图9中的(a)图所示的桌面上控件元素删除之前桌面壁纸显示状态以及显示主体元素的目标区域,图9中的(b)图则为将桌面上的“微博”控件和“微信”控件删除后,桌面壁纸随删除操作的结束,显示自动适配删除控件后的桌面壁纸。As shown in Figure 9, it is a schematic diagram of the interface when deleting control elements provided by the embodiment of the present application; as shown in (a) of Figure 9, the display state of the desktop wallpaper before deletion of the control elements on the desktop and the target area for displaying the main elements , Picture (b) in Figure 9 shows that after the "Weibo" control and "WeChat" control are deleted from the desktop, the desktop wallpaper will be automatically adapted to the desktop wallpaper after the deletion of the controls is completed.
可以看出,电子设备基于桌面上的控件元素被删除后的布局重新确定了显示主体 元素的目标区域,并调整了桌面壁纸中主体元素的显示位置。从而电子设备可以基于在桌面显示页面检测到的删除桌面上控件元素的操作时,触发图库或launcher模块对桌面壁纸显示位置的调整或者对设置为桌面壁纸的图像进行调整并重新配置桌面壁纸,使得桌面壁纸可以随桌面上控件元素的布局变化而动态的更新,提高桌面壁纸配置的适用性以及桌面壁纸与桌面布局的适配性,提高配置桌面壁纸简便性以及桌面壁纸的显示效果。It can be seen that the electronic device redefines the display subject based on the layout after the control elements on the desktop are deleted. The target area of the element and adjusts the display position of the main element in the desktop wallpaper. Therefore, based on the operation of deleting control elements on the desktop detected on the desktop display page, the electronic device can trigger the gallery or launcher module to adjust the display position of the desktop wallpaper or adjust the image set as the desktop wallpaper and reconfigure the desktop wallpaper, so that Desktop wallpapers can be dynamically updated as the layout of control elements on the desktop changes, improving the applicability of desktop wallpaper configuration and the compatibility of desktop wallpapers with desktop layout, improving the simplicity of configuring desktop wallpapers and improving the display effect of desktop wallpapers.
在一些实施例中,在电子设备将第一图像进行缩放或移动处理,配置为主体元素位于目标区域内的桌面壁纸之后,该方法还包括:In some embodiments, after the electronic device zooms or moves the first image and configures it as a desktop wallpaper with the main element located in the target area, the method further includes:
在电子设备检测到用户下载新的桌面上控件元素的操作时,获取下载后桌面上控件元素的第五位置,并根据第五位置确定下载后桌面上控件元素未遮挡的目标区域;将下载前的桌面壁纸调整为主体元素位于下载后的未遮挡的目标区域内的桌面壁纸。When the electronic device detects the user's operation of downloading a new desktop control element, it obtains the fifth position of the control element on the desktop after downloading, and determines the unobstructed target area of the control element on the desktop after downloading based on the fifth position; The desktop wallpaper is adjusted to a desktop wallpaper whose main element is located in the unobstructed target area after downloading.
如图10所示,为本申请实施例提供的下载控件元素时的界面示意图;如图10中的(a)图所示的桌面上下载新的控件元素之前桌面壁纸显示状态以及显示主体元素的目标区域,图10中的(b)图则为该桌面上下载并安装“微博”控件和“微信”控件后,桌面壁纸随下载并安装的动作结束,显示自动适配下载新控件后的桌面壁纸。As shown in Figure 10, it is a schematic diagram of the interface when downloading control elements provided by the embodiment of the present application; as shown in (a) of Figure 10, the display state of the desktop wallpaper before downloading new control elements on the desktop and the display state of the main element Target area, (b) in Figure 10 shows that after the "Weibo" control and "WeChat" control are downloaded and installed on the desktop, the desktop wallpaper ends with the download and installation action, showing the automatic adaptation after downloading the new control. Desktop Wallpapers.
可以看出,电子设备基于桌面上安装新的控件元素后的布局重新确定了显示主体元素的目标区域,并调整了桌面壁纸中主体元素的显示位置。从而电子设备可以基于在桌面显示页面检测到桌面上下载并安装控件元素的操作时,触发图库或launcher模块对桌面壁纸显示位置的调整或者对设置为桌面壁纸的图像进行调整并重新配置桌面壁纸,使得桌面壁纸可以随桌面上控件元素的布局变化而动态的更新,提高桌面壁纸配置的适用性以及桌面壁纸与桌面布局的适配性,提高配置桌面壁纸简便性,提高桌面壁纸的显示效果及显示多样性。It can be seen that the electronic device re-determines the target area for displaying the main element based on the layout after installing the new control element on the desktop, and adjusts the display position of the main element in the desktop wallpaper. Therefore, when the electronic device detects the operation of downloading and installing control elements on the desktop on the desktop display page, it can trigger the gallery or launcher module to adjust the display position of the desktop wallpaper or adjust the image set as the desktop wallpaper and reconfigure the desktop wallpaper. The desktop wallpaper can be dynamically updated as the layout of control elements on the desktop changes, improving the applicability of desktop wallpaper configuration and the compatibility of desktop wallpaper and desktop layout, improving the simplicity of configuring desktop wallpaper, and improving the display effect and display of desktop wallpaper. Diversity.
在一些实施例中,该方法还包括:In some embodiments, the method further includes:
在响应于用户将第一图像设定为桌面壁纸的操作之前,电子设备生成第一图像的桌面预览图;响应于用户将第一图像的桌面预览图设定为桌面壁纸的操作,电子设备确定第一图像的应用范围;基于应用范围,获取与应用范围对应的桌面上控件元素的第二位置。Before responding to the user's operation of setting the first image as the desktop wallpaper, the electronic device generates a desktop preview of the first image; in response to the user's operation of setting the desktop preview of the first image as the desktop wallpaper, the electronic device determines The application scope of the first image; based on the application scope, obtain the second position of the control element on the desktop corresponding to the application scope.
示例性的,该应用范围可以包括第一应用范围和第二应用范围;其中,第一应用范围用于指示第一图像被配置的属性,例如“设为锁屏”、“设为桌面”以及“同时设置”等属性;第二应用范围用于指示第一图像被配置的目标桌面显示页面。Exemplarily, the application scope may include a first application scope and a second application scope; wherein the first application scope is used to indicate the configured attributes of the first image, such as "set as lock screen", "set as desktop" and Attributes such as "simultaneously set"; the second application scope is used to indicate the target desktop display page where the first image is configured.
示例性的,当电子设备包括多个桌面显示页面时,该第二应用范围可以为多个桌面显示页面中的至少一个页面,例如主页面或第二页面;所设定的桌面壁纸的应用范围可以是其中的一个或多个页面也可以是所有页面。For example, when the electronic device includes multiple desktop display pages, the second application scope may be at least one page among the multiple desktop display pages, such as the main page or the second page; the application scope of the set desktop wallpaper It can be one or more pages or all pages.
示例性的,电子设备还可以使用不同的图像分别对应设置为不同桌面显示页面的壁纸,并基于不同桌面显示页面中控件元素未遮挡的目标区域,将对应图像进行缩放或移动处理,使得各图像中的主体元素分别位于各自对应的桌面显示页面的控件元素未遮挡区域内。例如,可以将一个系列的多张图像分别设置为多个桌面显示页面的壁纸。从而在检测到用户切换桌面的滑动操作时,可以基于不同的桌面显示页面显示一个系列的不同效果及类型的壁纸,使得壁纸配置更加多样化,壁纸显示效果更好,用 户的体验感也更好。For example, the electronic device can also use different images to be set as wallpapers for different desktop display pages, and scale or move the corresponding images based on the target areas that are not blocked by the control elements in the different desktop display pages, so that each image The main elements in are located within the unobstructed areas of the control elements of their corresponding desktop display pages. For example, you can set multiple images from a series as wallpapers for multiple desktop display pages. Therefore, when the user's sliding operation to switch desktops is detected, a series of wallpapers with different effects and types can be displayed based on different desktop display pages, making the wallpaper configuration more diverse and the wallpaper display effect better. The user experience is also better.
如图11所示,本申请实施例提供的配置系列桌面壁纸的界面示意图;如图11中的(a)图、(d)图以及(g)所示的基于不同的图像,在配置桌面壁纸时生成的第一桌面预览图,在该第一桌面预览图的界面包括第一应用范围的控件,例如“设为锁屏”、“设为桌面”以及“同时设置”等项目控件。As shown in Figure 11, a schematic diagram of the interface for configuring a series of desktop wallpapers provided by the embodiment of the present application; as shown in (a), (d) and (g) of Figure 11, based on different images, when configuring the desktop wallpaper The first desktop preview is generated at the time, and the interface of the first desktop preview includes controls in the first application scope, such as "set as lock screen", "set as desktop", and "set simultaneously" and other item controls.
在该第一桌面预览图的界面,电子设备接收到用户点击“设为桌面”控件的触摸信号时,分别对应进入如图11中的(b)图、(e)图以及(h)图所示的第二桌面预览图的界面,在该第二桌面预览图的界面可以包括第二应用范围的控件,例如“主屏幕”、“第二屏”以及“第三屏”等屏幕控件,该控件还包括侧边的下拉滑动控件,当电子设备的桌面显示页面具有多个时,还可以基于下拉的滑动操作,显示不同的项目控件。In the interface of the first desktop preview image, when the electronic device receives the touch signal of the user clicking on the "Set as Desktop" control, the electronic device enters the interface shown in Figure 11 (b), (e) and (h) respectively. The second desktop preview interface shown in the second desktop preview interface may include controls in the second application range, such as "home screen", "second screen" and "third screen" screen controls. The control also includes a drop-down sliding control on the side. When the electronic device has multiple desktop display pages, different item controls can also be displayed based on the drop-down sliding operation.
如图11中的(c)图、(f)图以及(i)图,不同的桌面显示页面对应不同的桌面布局,从而确定出不同的目标区域;电子设备对不同的图像进行主体元素的识别及初始位置的确定,并基于桌面上不同的目标区域,对相应的图像进行调整,分别配置为各图像的主体元素对应位于相应的目标区域的桌面壁纸。从而可以实现对多个桌面显示页面配置不同图像的桌面壁纸,使得桌面壁纸的配置更加多样化,桌面壁纸显示的效果更好,用户的体验感更强。As shown in (c), (f) and (i) in Figure 11, different desktop display pages correspond to different desktop layouts, thereby determining different target areas; the electronic device identifies the main elements of different images. And determine the initial position, and adjust the corresponding images based on different target areas on the desktop, and configure the main elements of each image to correspond to the desktop wallpaper located in the corresponding target area. In this way, it is possible to configure desktop wallpapers of different images for multiple desktop display pages, making the configuration of desktop wallpapers more diversified, resulting in better display effects of desktop wallpapers and a stronger user experience.
通过本申请实施例,电子设备在检测到将第一图像设定为桌面壁纸的操作时,可以通过对第一图像的主体元素进行识别,并确定主体元素在生成桌面预览图时所在的第一位置;通过桌面管理模块基于桌面上各个应用程序控件元素所在的第二位置,确定出桌面上控件元素未遮挡的目标区域,将第一图像进行缩放和移动处理,使得未遮挡的目标区域与第一图像的主体元素的位置相匹配,将第一图像配置为当前桌面的壁纸;从而在设置桌面壁纸时,可以使得图像中的主体元素自动避开控件元素所在的位置,无需用户一一手动调整相应的控件元素的位置或者在生成桌面预览图后手动移动图像位置等操作,使得配置桌面壁纸更加简便,桌面壁纸显示更加符合用户要求,用户体验更好。Through the embodiments of the present application, when the electronic device detects the operation of setting the first image as the desktop wallpaper, it can identify the main element of the first image and determine the first position where the main element is located when generating the desktop preview. position; based on the second position of each application control element on the desktop, the desktop management module determines the unobstructed target area of the control element on the desktop, and scales and moves the first image so that the unobstructed target area is consistent with the third Match the position of the main element of an image, and configure the first image as the wallpaper of the current desktop; thus when setting the desktop wallpaper, the main element in the image can automatically avoid the position of the control element, without the need for the user to manually adjust one by one The position of the corresponding control element or the manual movement of the image position after generating the desktop preview make it easier to configure the desktop wallpaper, the desktop wallpaper display is more in line with user requirements, and the user experience is better.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the sequence number of each step in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
对应于上文实施例所述的桌面壁纸配置方法,图12示出了本申请实施例提供的桌面壁纸配置装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。Corresponding to the desktop wallpaper configuration method described in the above embodiment, FIG. 12 shows a structural block diagram of the desktop wallpaper configuration device provided by the embodiment of the present application. For convenience of explanation, only the parts related to the embodiment of the present application are shown.
请参见图12,本申请实施例提供的桌面壁纸配置装置的结构框图。如图12所示,该桌面壁纸配置装置包括:Please refer to Figure 12, which is a structural block diagram of a desktop wallpaper configuration device provided by an embodiment of the present application. As shown in Figure 12, the desktop wallpaper configuration device includes:
识别单元121,用于响应于用户将第一图像设定为桌面壁纸的操作,识别所述第一图像中的主体元素以及所述主体元素对应在所述桌面的第一位置;The identification unit 121 is configured to identify the main element in the first image and the first position of the desktop corresponding to the main element in response to the user's operation of setting the first image as the desktop wallpaper;
获取单元122,用于获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域;The acquisition unit 122 is configured to obtain the second position of the control element on the desktop, and determine the target area on the desktop that is not blocked by the control element based on the second position;
配置单元123,用于根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸。 The configuration unit 123 is configured to scale or move the first image according to the first position and the target area, and configure it as a desktop wallpaper with the main element located in the target area.
在一些实施例中,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;所述获取单元122,还用于获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的第一目标子区域;获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的第二目标子区域;将所述第一目标子区域与所述第二目标子区域的公共区域作为所述目标区域。In some embodiments, the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; the obtaining unit 122 is also used to obtain the main page. the second position of the control element on the main page, and determine the first target sub-area on the main page that is not blocked by the control element on the main page; obtain the second position of the control element on the second screen position, and determine the second target sub-area that is not blocked by the second on-screen control element according to the second position of the second on-screen control element; combine the first target sub-area with the second target sub-area The public area of the area serves as the target area.
在一些实施例中,所述配置单元123,还用于将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一目标子区域与所述第二目标子区域的公共区域内的桌面壁纸。In some embodiments, the configuration unit 123 is further configured to scale or move the first image so that the main element is located between the first target sub-region and the second target sub-region. Desktop wallpapers in public areas.
在一些实施例中,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;所述目标区域包括第一区域或第二区域;所述获取单元122,还用于获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的所述第一区域;获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的所述第二区域。In some embodiments, the desktop includes a home page and a second screen, and the second screen is a desktop display page other than the home page; the target area includes a first area or a second area; The obtaining unit 122 is also configured to obtain the second position of the control element on the main page, and determine the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page. ; Obtain the second position of the control element on the second screen, and determine the second area that is not blocked by the control element on the second screen based on the second position of the control element on the second screen.
在一些实施例中,所述配置单元123,还用于根据所述第一位置和所述第一区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一区域内的所述主页面的桌面壁纸;根据所述第一位置和所述第二区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第二区域内的所述第二屏的桌面壁纸。In some embodiments, the configuration unit 123 is further configured to scale or move the first image according to the first position and the first area, and configure the main body element to be located at the first The desktop wallpaper of the main page in a region; zooming or moving the first image according to the first position and the second region, and configuring the main element to be located in the second region The desktop wallpaper of the second screen.
在一些实施例中,该装置还包括:In some embodiments, the device further includes:
壁纸切换单元,用于响应于用户从所述主页面切换至所述第二屏的桌面切换操作,将所述主页面对应的桌面壁纸切换为所述第二屏对应的桌面壁纸;响应于用户从所述第二屏切换至所述主页面的桌面切换操作,将所述第二屏对应的桌面壁纸切换为所述主页面对应的桌面壁纸。A wallpaper switching unit configured to switch the desktop wallpaper corresponding to the main page to the desktop wallpaper corresponding to the second screen in response to the desktop switching operation of the user switching from the main page to the second screen; in response to The desktop switching operation of the user switching from the second screen to the main page switches the desktop wallpaper corresponding to the second screen to the desktop wallpaper corresponding to the main page.
在一些实施例中,所述配置单元123,还用于在检测到用户移动所述桌面上控件元素的操作时,获取所述桌面上控件元素移动后的第三位置,并根据所述第三位置确定所述桌面上控件元素移动后未遮挡的目标区域;将移动前的桌面壁纸调整为主体元素位于移动后未遮挡的目标区域内的桌面壁纸。In some embodiments, the configuration unit 123 is also configured to obtain the third position of the control element on the desktop after the movement of the control element on the desktop when the user's operation of moving the control element on the desktop is detected, and adjust the position according to the third position. The position determines the unobstructed target area of the control element on the desktop after movement; and adjusts the desktop wallpaper before movement to a desktop wallpaper in which the main element is located in the unobstructed target area after movement.
在一些实施例中,所述配置单元123,还用于在检测到用户删除所述桌面上控件元素的操作时,获取所述桌面上剩余控件元素的第四位置,并根据所述第四位置确定所述桌面上剩余控件元素未遮挡的目标区域;将删除前的桌面壁纸调整为主体元素位于删除后的未遮挡的目标区域内的桌面壁纸。In some embodiments, the configuration unit 123 is also configured to obtain the fourth position of the remaining control elements on the desktop when a user's operation of deleting a control element on the desktop is detected, and determine the position of the control element based on the fourth position. Determine the unobstructed target area of the remaining control elements on the desktop; adjust the desktop wallpaper before deletion to a desktop wallpaper in which the main element is located in the unobstructed target area after deletion.
在一些实施例中,所述配置单元123,还用于在检测到用户下载新的所述桌面上控件元素的操作时,获取下载后所述桌面上控件元素的第五位置,并根据所述第五位置确定下载后所述桌面上控件元素未遮挡的目标区域;将下载前的桌面壁纸调整为主体元素位于下载后的未遮挡的目标区域内的桌面壁纸。In some embodiments, the configuration unit 123 is also configured to obtain the fifth position of the downloaded control element on the desktop when a user's operation of downloading a new control element on the desktop is detected, and based on the The fifth position determines the unobstructed target area of the control element on the desktop after downloading; adjusts the desktop wallpaper before downloading to a desktop wallpaper in which the main element is located in the unobstructed target area after downloading.
在一些实施例中,该装置还包括:In some embodiments, the device further includes:
生成预览单元,用于在响应于用户将第一图像设定为桌面壁纸的操作之前,生成所述第一图像的桌面预览图; Generating a preview unit, configured to generate a desktop preview of the first image before responding to the user's operation of setting the first image as a desktop wallpaper;
应用范围确定单元,用于响应于用户将所述第一图像的所述桌面预览图设定为桌面壁纸的操作,确定所述第一图像的应用范围;An application range determining unit configured to determine the application range of the first image in response to the user's operation of setting the desktop preview of the first image as a desktop wallpaper;
所述获取单元,还用于基于所述应用范围,获取与所述应用范围对应的所述桌面上控件元素的所述第二位置。The obtaining unit is further configured to obtain, based on the application scope, the second position of the control element on the desktop corresponding to the application scope.
在一些实施例中,该识别单元121还用于对所述第一图像进行目标检测、特征提取以及分类识别处理,确定所述第一图像中的所述主体元素。In some embodiments, the recognition unit 121 is also used to perform target detection, feature extraction, and classification recognition processing on the first image, and determine the subject element in the first image.
通过本申请实施例,电子设备在检测到将第一图像设定为桌面壁纸的操作时,通过对第一图像的主体元素进行识别,并确定主体元素在生成桌面预览图时所在的第一位置;通过桌面管理模块基于桌面上各个应用程序控件元素所在的第二位置,确定出桌面上控件元素未遮挡的目标区域,将第一图像进行缩放和移动处理,使得未遮挡的目标区域与第一图像的主体元素的位置相匹配,将第一图像配置为当前桌面的壁纸;从而在配置桌面壁纸时,使得图像中的主体元素自动避开控件元素所在的位置,使得配置桌面壁纸更加简便,用户体验更好。Through the embodiments of the present application, when the electronic device detects the operation of setting the first image as the desktop wallpaper, it identifies the main element of the first image and determines the first position of the main element when generating the desktop preview. ; Based on the second position of each application control element on the desktop, the desktop management module determines the unobstructed target area of the control element on the desktop, and scales and moves the first image so that the unobstructed target area is consistent with the first The position of the main element of the image matches, and the first image is configured as the wallpaper of the current desktop; thus, when configuring the desktop wallpaper, the main element in the image automatically avoids the position of the control element, making it easier to configure the desktop wallpaper, and the user The experience is better.
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above-mentioned devices/units are based on the same concept as the method embodiments of the present application. For details of their specific functions and technical effects, please refer to the method embodiments section. No further details will be given.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units and modules according to needs. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. Each functional unit and module in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be hardware-based. It can also be implemented in the form of software functional units. In addition, the specific names of each functional unit and module are only for the convenience of distinguishing each other and are not used to limit the scope of protection of the present application. For the specific working processes of the units and modules in the above system, please refer to the corresponding processes in the foregoing method embodiments, and will not be described again here.
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the steps in each of the above method embodiments can be implemented.
本申请实施例提供了一种计算机程序产品,当计算机程序产品在移动终端上运行时,使得移动终端执行时实现可实现上述各个方法实施例中的步骤。Embodiments of the present application provide a computer program product. When the computer program product is run on a mobile terminal, the steps in each of the above method embodiments can be implemented when the mobile terminal is executed.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not detailed or documented in a certain embodiment, please refer to the relevant descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each specific application, but such implementations should not be considered beyond the scope of this application.
在本申请所提供的实施例中,应该理解到,所揭露的装置/网络设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/网络设备实施例仅仅是示意性的,例 如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices/network devices and methods can be implemented in other ways. For example, the device/network device embodiments described above are only illustrative. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored. or not executed. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
最后应说明的是:以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。 Finally, it should be noted that the above are only specific implementation modes of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be covered by this application. within the scope of protection applied for. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (24)

  1. 一种桌面壁纸配置方法,其特征在于,包括:A method for configuring desktop wallpaper, which is characterized by including:
    响应于用户将第一图像设定为桌面壁纸的操作,识别所述第一图像中的主体元素以及所述主体元素对应在所述桌面的第一位置;In response to the user's operation of setting the first image as the desktop wallpaper, identifying the main element in the first image and the main element corresponding to the first position on the desktop;
    获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域;Obtain the second position of the control element on the desktop, and determine a target area on the desktop that is not blocked by the control element based on the second position;
    根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸。According to the first position and the target area, the first image is scaled or moved, and configured as a desktop wallpaper with the main element located in the target area.
  2. 根据权利要求1所述的方法,其特征在于,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;The method according to claim 1, characterized in that the desktop includes a main page and a second screen, and the second screen is other desktop display pages except the main page;
    所述获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域,包括:Obtaining the second position of the control element on the desktop and determining a target area that is not blocked by the control element on the desktop according to the second position includes:
    获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的第一目标子区域;Obtain the second position of the control element on the main page, and determine the first target sub-area on the main page that is not blocked by the control element based on the second position of the control element on the main page;
    获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的第二目标子区域;Obtaining a second position of the second on-screen control element, and determining a second target sub-area that is not blocked by the second on-screen control element based on the second position of the second on-screen control element;
    将所述第一目标子区域与所述第二目标子区域的公共区域作为所述目标区域。The common area between the first target sub-area and the second target sub-area is used as the target area.
  3. 根据权利要求2所述的方法,其特征在于,所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸,包括:The method according to claim 2, characterized in that, scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area includes:
    将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一目标子区域与所述第二目标子区域的公共区域内的桌面壁纸。The first image is scaled or moved and configured as a desktop wallpaper in which the main element is located in a common area between the first target sub-area and the second target sub-area.
  4. 根据权利要求1所述的方法,其特征在于,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;所述目标区域包括第一区域或第二区域;The method of claim 1, wherein the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; and the target area includes a first area. or second area;
    所述获取桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域,包括:Obtaining the second position of the control element on the desktop and determining a target area that is not blocked by the control element on the desktop according to the second position includes:
    获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的所述第一区域;Obtain the second position of the control element on the main page, and determine the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page;
    获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的所述第二区域。A second position of the second on-screen control element is obtained, and the second area that is not blocked by the second on-screen control element is determined based on the second position of the second on-screen control element.
  5. 根据权利要求4所述的方法,其特征在于,所述根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸,包括:The method of claim 4, wherein the first image is scaled or moved according to the first position and the target area, and is configured such that the main element is located in the target area. Desktop wallpapers included:
    根据所述第一位置和所述第一区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一区域内的所述主页面的桌面壁纸;According to the first position and the first area, the first image is scaled or moved, and configured as the desktop wallpaper of the main page where the main element is located in the first area;
    根据所述第一位置和所述第二区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第二区域内的所述第二屏的桌面壁纸。The first image is scaled or moved according to the first position and the second area, and is configured as a desktop wallpaper of the second screen in which the main element is located in the second area.
  6. 根据权利要求5所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包 括:The method of claim 5, wherein after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, the method further includes: include:
    响应于用户从所述主页面切换至所述第二屏的桌面切换操作,将所述主页面对应的桌面壁纸切换为所述第二屏对应的桌面壁纸;In response to the user's desktop switching operation from the main page to the second screen, switching the desktop wallpaper corresponding to the main page to the desktop wallpaper corresponding to the second screen;
    响应于用户从所述第二屏切换至所述主页面的桌面切换操作,将所述第二屏对应的桌面壁纸切换为所述主页面对应的桌面壁纸。In response to the user's desktop switching operation from the second screen to the main page, the desktop wallpaper corresponding to the second screen is switched to the desktop wallpaper corresponding to the main page.
  7. 根据权利要求1至6任一项所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that after the first image is scaled or moved to configure it as a desktop wallpaper with the main element located in the target area, The method also includes:
    在检测到用户移动所述桌面上控件元素的操作时,获取所述桌面上控件元素移动后的第三位置,并根据所述第三位置确定所述桌面上控件元素移动后未遮挡的目标区域;When a user's operation of moving a control element on the desktop is detected, a third position of the control element on the desktop after movement is obtained, and an unobstructed target area of the control element on the desktop after movement is determined based on the third position. ;
    将移动前的桌面壁纸调整为主体元素位于移动后未遮挡的目标区域内的桌面壁纸。Adjust the desktop wallpaper before moving to a desktop wallpaper in which the main element is located in the unobstructed target area after moving.
  8. 根据权利要求1至6任一项所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that after the first image is scaled or moved to configure it as a desktop wallpaper with the main element located in the target area, The method also includes:
    在检测到用户删除所述桌面上控件元素的操作时,获取所述桌面上剩余控件元素的第四位置,并根据所述第四位置确定所述桌面上剩余控件元素未遮挡的目标区域;When detecting the user's operation of deleting a control element on the desktop, obtain a fourth position of the remaining control elements on the desktop, and determine a target area that is not blocked by the remaining control elements on the desktop based on the fourth position;
    将删除前的桌面壁纸调整为主体元素位于删除后的未遮挡的目标区域内的桌面壁纸。Adjust the desktop wallpaper before deletion to a desktop wallpaper in which the main element is located in the unobstructed target area after deletion.
  9. 根据权利要求1至6任一项所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that after the first image is scaled or moved to configure it as a desktop wallpaper with the main element located in the target area, The method also includes:
    在检测到用户下载新的所述桌面上控件元素的操作时,获取下载后所述桌面上控件元素的第五位置,并根据所述第五位置确定下载后所述桌面上控件元素未遮挡的目标区域;When the user's operation of downloading a new control element on the desktop is detected, the fifth position of the control element on the desktop after downloading is obtained, and the unobstructed position of the control element on the desktop after downloading is determined based on the fifth position. target area;
    将下载前的桌面壁纸调整为主体元素位于下载后的未遮挡的目标区域内的桌面壁纸。Adjust the desktop wallpaper before downloading to a desktop wallpaper in which the main element is located in the unobstructed target area after downloading.
  10. 根据权利要求1至6任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 6, characterized in that the method further includes:
    在响应于用户将第一图像设定为桌面壁纸的操作之前,生成所述第一图像的桌面预览图;Before responding to the user's operation of setting the first image as a desktop wallpaper, generating a desktop preview of the first image;
    响应于用户将所述第一图像的所述桌面预览图设定为桌面壁纸的操作,确定所述第一图像的应用范围;In response to the user's operation of setting the desktop preview of the first image as a desktop wallpaper, determining an application range of the first image;
    基于所述应用范围,获取与所述应用范围对应的所述桌面上控件元素的所述第二位置。Based on the application scope, the second position of the control element on the desktop corresponding to the application scope is obtained.
  11. 根据权利要求1至6任一项所述的方法,其特征在于,所述识别所述第一图像中的主体元素包括:The method according to any one of claims 1 to 6, wherein identifying the subject element in the first image includes:
    对所述第一图像进行目标检测、特征提取以及分类识别处理,确定所述第一图像中的所述主体元素。Perform target detection, feature extraction and classification recognition processing on the first image to determine the subject element in the first image.
  12. 一种桌面壁纸配置装置,其特征在于,所述装置包括: A desktop wallpaper configuration device, characterized in that the device includes:
    识别单元,用于响应于用户将第一图像设定为桌面壁纸的操作,识别所述第一图像中的主体元素以及所述主体元素对应在所述桌面的第一位置;An identification unit configured to identify the main element in the first image and the first position of the desktop corresponding to the main element in response to the user's operation of setting the first image as the desktop wallpaper;
    获取单元,用于获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域;An acquisition unit configured to acquire a second position of a control element on the desktop, and determine a target area on the desktop that is not blocked by the control element based on the second position;
    配置单元,用于根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸。A configuration unit configured to scale or move the first image according to the first position and the target area, and configure it as a desktop wallpaper with the main element located in the target area.
  13. 一种电子设备,其特征在于,所述电子设备包括存储器、处理器,所述存储器上存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至11任一项所述方法的步骤。An electronic device, characterized in that the electronic device includes a memory and a processor, the memory stores a computer program that can run on the processor, and when the processor executes the computer program, it implements the following rights: The steps of the method according to any one of claims 1 to 11.
  14. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至11任一项所述方法的步骤。A computer-readable storage medium stores a computer program, characterized in that when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.
  15. 一种桌面壁纸配置方法,其特征在于,包括:A method for configuring desktop wallpaper, which is characterized by including:
    响应于用户将第一图像设定为桌面壁纸的操作,识别所述第一图像中的主体元素以及所述主体元素对应在所述桌面的第一位置;In response to the user's operation of setting the first image as the desktop wallpaper, identifying the main element in the first image and the main element corresponding to the first position on the desktop;
    获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域;Obtain the second position of the control element on the desktop, and determine a target area on the desktop that is not blocked by the control element based on the second position;
    根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸;According to the first position and the target area, the first image is scaled or moved and configured as a desktop wallpaper with the main element located in the target area;
    所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;The desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page;
    所述获取所述桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域,包括:Obtaining the second position of the control element on the desktop and determining a target area that is not blocked by the control element on the desktop according to the second position includes:
    获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的第一目标子区域;Obtain the second position of the control element on the main page, and determine the first target sub-area on the main page that is not blocked by the control element based on the second position of the control element on the main page;
    获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的第二目标子区域;Obtaining a second position of the second on-screen control element, and determining a second target sub-area that is not blocked by the second on-screen control element based on the second position of the second on-screen control element;
    将所述第一目标子区域与所述第二目标子区域的公共区域作为所述目标区域。The common area between the first target sub-area and the second target sub-area is used as the target area.
  16. 根据权利要求15所述的方法,其特征在于,所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸,包括:The method of claim 15, wherein scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area includes:
    将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一目标子区域与所述第二目标子区域的公共区域内的桌面壁纸。The first image is scaled or moved and configured as a desktop wallpaper in which the main element is located in a common area between the first target sub-area and the second target sub-area.
  17. 根据权利要求15所述的方法,其特征在于,所述桌面包括主页面和第二屏,所述第二屏为除所述主页面以外的其他桌面显示页面;所述目标区域包括第一区域或第二区域;The method of claim 15, wherein the desktop includes a main page and a second screen, and the second screen is a desktop display page other than the main page; and the target area includes a first area. or second area;
    所述获取桌面上控件元素的第二位置,并根据所述第二位置确定在所述桌面上控件元素未遮挡的目标区域,包括:Obtaining the second position of the control element on the desktop and determining a target area that is not blocked by the control element on the desktop according to the second position includes:
    获取所述主页面上控件元素的第二位置,并根据所述主页面上控件元素的第二位置确定在所述主页面上控件元素未遮挡的所述第一区域; Obtain the second position of the control element on the main page, and determine the first area on the main page that is not blocked by the control element based on the second position of the control element on the main page;
    获取所述第二屏上控件元素的第二位置,并根据所述第二屏上控件元素的第二位置确定在所述第二屏上控件元素未遮挡的所述第二区域。A second position of the second on-screen control element is obtained, and the second area that is not blocked by the second on-screen control element is determined based on the second position of the second on-screen control element.
  18. 根据权利要求17所述的方法,其特征在于,所述根据所述第一位置和所述目标区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸,包括:The method of claim 17, wherein the first image is scaled or moved according to the first position and the target area, and is configured such that the main element is located in the target area. Desktop wallpapers included:
    根据所述第一位置和所述第一区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第一区域内的所述主页面的桌面壁纸;According to the first position and the first area, the first image is scaled or moved, and configured as the desktop wallpaper of the main page where the main element is located in the first area;
    根据所述第一位置和所述第二区域,将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述第二区域内的所述第二屏的桌面壁纸。The first image is scaled or moved according to the first position and the second area, and is configured as a desktop wallpaper of the second screen in which the main element is located in the second area.
  19. 根据权利要求18所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method of claim 18, wherein after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located within the target area, the method further includes :
    响应于用户从所述主页面切换至所述第二屏的桌面切换操作,将所述主页面对应的桌面壁纸切换为所述第二屏对应的桌面壁纸;In response to the user's desktop switching operation from the main page to the second screen, switching the desktop wallpaper corresponding to the main page to the desktop wallpaper corresponding to the second screen;
    响应于用户从所述第二屏切换至所述主页面的桌面切换操作,将所述第二屏对应的桌面壁纸切换为所述主页面对应的桌面壁纸。In response to the user's desktop switching operation from the second screen to the main page, the desktop wallpaper corresponding to the second screen is switched to the desktop wallpaper corresponding to the main page.
  20. 根据权利要求15至19任一项所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method according to any one of claims 15 to 19, characterized in that, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, The method also includes:
    在检测到用户移动所述桌面上控件元素的操作时,获取所述桌面上控件元素移动后的第三位置,并根据所述第三位置确定所述桌面上控件元素移动后未遮挡的目标区域;When a user's operation of moving a control element on the desktop is detected, a third position of the control element on the desktop after movement is obtained, and an unobstructed target area of the control element on the desktop after movement is determined based on the third position. ;
    将移动前的桌面壁纸调整为主体元素位于移动后未遮挡的目标区域内的桌面壁纸。Adjust the desktop wallpaper before moving to a desktop wallpaper in which the main element is located in the unobstructed target area after moving.
  21. 根据权利要求15至19任一项所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method according to any one of claims 15 to 19, characterized in that, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, The method also includes:
    在检测到用户删除所述桌面上控件元素的操作时,获取所述桌面上剩余控件元素的第四位置,并根据所述第四位置确定所述桌面上剩余控件元素未遮挡的目标区域;When detecting the user's operation of deleting a control element on the desktop, obtain a fourth position of the remaining control elements on the desktop, and determine a target area that is not blocked by the remaining control elements on the desktop based on the fourth position;
    将删除前的桌面壁纸调整为主体元素位于删除后的未遮挡的目标区域内的桌面壁纸。Adjust the desktop wallpaper before deletion to a desktop wallpaper in which the main element is located in the unobstructed target area after deletion.
  22. 根据权利要求15至19任一项所述的方法,其特征在于,在所述将所述第一图像进行缩放或移动处理,配置为所述主体元素位于所述目标区域内的桌面壁纸之后,所述方法还包括:The method according to any one of claims 15 to 19, characterized in that, after scaling or moving the first image and configuring it as a desktop wallpaper with the main element located in the target area, The method also includes:
    在检测到用户下载新的所述桌面上控件元素的操作时,获取下载后所述桌面上控件元素的第五位置,并根据所述第五位置确定下载后所述桌面上控件元素未遮挡的目标区域;When the user's operation of downloading a new control element on the desktop is detected, the fifth position of the control element on the desktop after downloading is obtained, and the unobstructed position of the control element on the desktop after downloading is determined based on the fifth position. target area;
    将下载前的桌面壁纸调整为主体元素位于下载后的未遮挡的目标区域内的桌面壁纸。Adjust the desktop wallpaper before downloading to a desktop wallpaper in which the main element is located in the unobstructed target area after downloading.
  23. 根据权利要求15至19任一项所述的方法,其特征在于,所述方法还包括: The method according to any one of claims 15 to 19, characterized in that the method further includes:
    在响应于用户将第一图像设定为桌面壁纸的操作之前,生成所述第一图像的桌面预览图;Before responding to the user's operation of setting the first image as a desktop wallpaper, generating a desktop preview of the first image;
    响应于用户将所述第一图像的所述桌面预览图设定为桌面壁纸的操作,确定所述第一图像的应用范围;In response to the user's operation of setting the desktop preview of the first image as a desktop wallpaper, determining an application range of the first image;
    基于所述应用范围,获取与所述应用范围对应的所述桌面上控件元素的所述第二位置。Based on the application scope, the second position of the control element on the desktop corresponding to the application scope is obtained.
  24. 根据权利要求15至19任一项所述的方法,其特征在于,所述识别所述第一图像中的主体元素包括:The method according to any one of claims 15 to 19, wherein identifying the subject element in the first image includes:
    对所述第一图像进行目标检测、特征提取以及分类识别处理,确定所述第一图像中的所述主体元素。 Perform target detection, feature extraction and classification recognition processing on the first image to determine the subject element in the first image.
PCT/CN2023/088946 2022-06-14 2023-04-18 Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium WO2023241209A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210669583.1 2022-06-14
CN202210669583.1A CN115129410B (en) 2022-06-14 2022-06-14 Desktop wallpaper configuration method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
WO2023241209A1 true WO2023241209A1 (en) 2023-12-21
WO2023241209A9 WO2023241209A9 (en) 2024-02-08

Family

ID=83378500

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/088946 WO2023241209A1 (en) 2022-06-14 2023-04-18 Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium

Country Status (2)

Country Link
CN (1) CN115129410B (en)
WO (1) WO2023241209A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115129410B (en) * 2022-06-14 2023-06-23 荣耀终端有限公司 Desktop wallpaper configuration method and device, electronic equipment and readable storage medium
CN117455799A (en) * 2023-12-21 2024-01-26 荣耀终端有限公司 Image processing method, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004112273A (en) * 2002-09-18 2004-04-08 Ricoh Co Ltd Image forming apparatus
US20140232739A1 (en) * 2013-02-21 2014-08-21 Pantech Co., Ltd. Apparatus and method for processing object on screen of terminal
WO2015100594A1 (en) * 2013-12-31 2015-07-09 宇龙计算机通信科技(深圳)有限公司 Display method and terminal
CN105912189A (en) * 2016-03-29 2016-08-31 乐视控股(北京)有限公司 Method and device for arranging desktop icons
CN106201176A (en) * 2016-06-24 2016-12-07 维沃移动通信有限公司 A kind of method for displaying image and mobile terminal
CN115129410A (en) * 2022-06-14 2022-09-30 荣耀终端有限公司 Desktop wallpaper configuration method and device, electronic equipment and readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365639A (en) * 2012-03-29 2013-10-23 宇龙计算机通信科技(深圳)有限公司 Method, device and terminal for adjusting stand-by interface layout
CN106814932A (en) * 2016-11-29 2017-06-09 深圳市金立通信设备有限公司 A kind of desktop wallpaper display methods and terminal
CN108196754B (en) * 2018-01-29 2020-06-23 维沃移动通信有限公司 Method, terminal and server for displaying object

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004112273A (en) * 2002-09-18 2004-04-08 Ricoh Co Ltd Image forming apparatus
US20140232739A1 (en) * 2013-02-21 2014-08-21 Pantech Co., Ltd. Apparatus and method for processing object on screen of terminal
WO2015100594A1 (en) * 2013-12-31 2015-07-09 宇龙计算机通信科技(深圳)有限公司 Display method and terminal
CN105912189A (en) * 2016-03-29 2016-08-31 乐视控股(北京)有限公司 Method and device for arranging desktop icons
CN106201176A (en) * 2016-06-24 2016-12-07 维沃移动通信有限公司 A kind of method for displaying image and mobile terminal
CN115129410A (en) * 2022-06-14 2022-09-30 荣耀终端有限公司 Desktop wallpaper configuration method and device, electronic equipment and readable storage medium

Also Published As

Publication number Publication date
WO2023241209A9 (en) 2024-02-08
CN115129410B (en) 2023-06-23
CN115129410A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
WO2020233553A1 (en) Photographing method and terminal
WO2021213120A1 (en) Screen projection method and apparatus, and electronic device
WO2020134869A1 (en) Electronic device operating method and electronic device
WO2021103981A1 (en) Split-screen display processing method and apparatus, and electronic device
CN113645351B (en) Application interface interaction method, electronic device and computer-readable storage medium
WO2021036771A1 (en) Electronic device having foldable screen, and display method
CN110347269B (en) Empty mouse mode realization method and related equipment
CN113795817A (en) Operation method for split screen display and electronic equipment
CN110633043A (en) Split screen processing method and terminal equipment
WO2023241209A1 (en) Desktop wallpaper configuration method and apparatus, electronic device and readable storage medium
WO2021052407A1 (en) Electronic device control method and electronic device
WO2022001258A1 (en) Multi-screen display method and apparatus, terminal device, and storage medium
WO2020118490A1 (en) Automatic screen-splitting method, graphical user interface, and electronic device
CN113891009B (en) Exposure adjusting method and related equipment
WO2021218429A1 (en) Method for managing application window, and terminal device and computer-readable storage medium
WO2021042878A1 (en) Photography method and electronic device
CN114115770A (en) Display control method and related device
WO2022143180A1 (en) Collaborative display method, terminal device, and computer readable storage medium
CN112150499A (en) Image processing method and related device
WO2021121036A1 (en) Key customization method and device for folding device, and storage medium
CN115967851A (en) Quick photographing method, electronic device and computer readable storage medium
CN114173005B (en) Application layout control method and device, terminal equipment and computer readable storage medium
CN113821129A (en) Display window control method and electronic equipment
CN113934352B (en) Notification message processing method, electronic device and computer-readable storage medium
WO2023207799A1 (en) Message processing method and electronic device

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: 23822780

Country of ref document: EP

Kind code of ref document: A1