Wallpaper setting method of folding screen equipment and folding screen equipment
By identifying the subject object in the image and cropping according to the screen size information, the problem of wallpaper cropping in the prior art affects integrity and aesthetics is solved, and a more adaptable and beautiful wallpaper setting is achieved.
Patent Information
- Application Number
- CN202311446419.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-01
- Publication Date
- 2025-05-06
AI Technical Summary
In the prior art, when setting up the inner and outer screen wallpaper of the folding screen device, the same way cropping affects the integrity and aesthetics of the wallpaper.
By identifying the subject in the image, and cropping the image to obtain multiple wallpaper images that are suitable for each screen according to the position of the subject in the image and the size information of each screen of the folding screen device.
Ensure that the cropped wallpaper image contains the subject object in the original image, and make the resolution of each wallpaper image match the size of the corresponding screen to improve the aesthetics and unity of the wallpaper.
Smart Images

Figure CN119946170A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular, to a wallpaper setting method for a folding screen device and a folding screen device. Background Art
[0002] With the development of technology, foldable screen devices are becoming more and more the focus of industry research. As the name implies, a foldable screen device is an electronic device with a foldable screen. By folding the screen, the size of the device can be reduced and the portability of the device can be improved. When the screen is unfolded, the originally folded screen can form a larger screen area, which is convenient for users to use; or, users can also fold the screen to a certain angle to form different split-screen forms to enrich the functions of the device.
[0003] Typically, the screen of a folding screen device includes an outer screen and an inner screen, and the size of the outer screen is often smaller than the inner screen. When in use, the inner and outer screens of different sizes can be used to display different information respectively. Similar to ordinary electronic devices, users can also set wallpapers for the inner and outer screens of folding screen devices. Taking a folding mobile phone as an example, when a user sets the screen wallpaper on a folding mobile phone, it is necessary to set it separately on the outer screen and inner screen of different sizes. Due to the different sizes of the inner and outer screens, if the folding screen device cuts the wallpaper in the same way, the integrity and aesthetics of the wallpaper cannot be guaranteed. After the wallpaper is set, the final effect on the inner and outer screens may also be quite different. Summary of the invention
[0004] The embodiments of the present application provide a wallpaper setting method for a folding screen device and a folding screen device, which are used to solve the problem in the prior art that when setting the wallpaper of the inner and outer screens of the folding screen device, they are cut in the same way, which affects the integrity and aesthetics of the wallpaper.
[0005] In order to achieve the above objectives, this application adopts the following technical solutions:
[0006] In a first aspect, a method for setting wallpaper for a folding screen device is provided, comprising: identifying a main object in an image; cropping the image to obtain multiple wallpaper images adapted to the respective screens according to the position of the main object in the image and the size information of the respective screens of the folding screen device; wherein the sizes of the respective screens are different, and the main object is included in any wallpaper image; and setting each wallpaper image as the wallpaper of the adapted screen.
[0007] By applying the wallpaper setting method provided in the embodiment of the present application, when setting wallpaper for each screen of a folding screen device, the main object in the image can be first identified, and then the image can be cropped according to the position of the main object in the image and the size information of each screen of the folding screen device to obtain multiple wallpaper images. Since each wallpaper image is obtained by cropping the main object in the image according to the size information of a certain screen, it can not only ensure that the cropped wallpaper image contains the main object in the original image, but also make the resolution of each wallpaper image match the size of the corresponding screen. After setting each wallpaper image as the wallpaper of the corresponding screen, the main features of the original image can be retained to the maximum extent. The wallpaper setting method provided in the embodiment of the present application can solve the problem in the prior art that cropping along the middle of the image for screens of any size can easily destroy the integrity of the main object in the image, reduce the possibility of large differences in the final effects of the wallpaper image on the inner and outer screens, and improve the aesthetics and uniformity of the screen wallpaper of the folding screen device.
[0008] It should be understood that the above-mentioned size information may refer to the size, aspect ratio or resolution of the screen or wallpaper image.
[0009] In a possible implementation of the first aspect, according to the position of the subject in the image and the size information of each screen of the folding screen device, the image is cropped to obtain multiple wallpaper images adapted to each screen, including: according to the position of the subject in the image, determining the image area containing the subject; according to the size information of each screen of the folding screen device, cropping the image to obtain multiple wallpaper images adapted to each screen. By determining the area where the subject is located and using it as the image area to be retained, it can be ensured that the image is accurately cropped during the wallpaper setting process, and the subject in the image is retained.
[0010] In a possible implementation of the first aspect, an image is cropped according to size information of each screen of a folding screen device to obtain multiple wallpaper images adapted to each screen, including: determining a folding method of the folding screen device, the folding method including horizontal folding or vertical folding, and any folding method corresponds to a cropping direction; the image is cropped according to the cropping direction corresponding to the folding method to obtain multiple wallpaper images, wherein each wallpaper image obtained by cropping has the same aspect ratio as the adapted screen.
[0011] It should be understood that different types of folding screen devices have different folding methods. For folding screen devices with different folding methods, different solutions can be used when cutting wallpaper.
[0012] For example, if the folding mode of the folding screen device is horizontal folding, a wallpaper image having the same aspect ratio as the adapted screen is cut out from the image in a vertical cutting mode; if the folding mode of the folding screen device is vertical folding, a wallpaper image having the same aspect ratio as the adapted screen is cut out from the image in a horizontal cutting mode. In this way, the adaptability of the cut wallpaper image to the corresponding screen can be improved.
[0013] In a possible implementation manner of the first aspect, the image is cropped according to a cropping direction corresponding to the folding manner to obtain multiple wallpaper images, including:
[0014] In a possible implementation of the first aspect, each screen of the folding screen device includes a first screen whose size information is smaller than a preset value. The image is cropped according to the position of the subject in the image and the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen, further comprising: determining the position of the main part of the subject in the image; cropping the image according to the size information of the first screen to obtain a first wallpaper image including the main part of the subject and adapted to the first screen.
[0015] Exemplarily, the first screen may be an outer screen of a foldable screen device. When cropping a wallpaper image for the outer screen, if an image containing target features of a subject cannot be cropped from the image according to the size of the outer screen, the foldable screen device may crop only the main part of the subject in the image.
[0016] It should be understood that the main object may include multiple parts, and the priorities of different parts may be different. The main part of the main object may have the highest priority. For the smaller external screen of the folding screen device, the main part of the main object in the image may be retained by cropping the image to retain the main part of the main object in the image, so that the main features of the main object can be retained in the wallpaper image to the greatest extent.
[0017] In a possible implementation of the first aspect, after identifying the main object in the image, it also includes: determining the center point of the main object; based on the center point, determining the area in the image containing the target features of the main object as the image area that needs to be retained.
[0018] In a possible implementation of the first aspect, after determining the region containing the target features of the subject in the image as the image region to be retained, the method further includes: displaying prompt box information for the image region to be retained on any screen of the folding screen device, and the prompt box information can be used to prompt the user to adjust the image region to be retained. When receiving an operation on the prompt box information, the folding screen device can adjust the size and / or position of the image region to be retained according to the operation.
[0019] Here, the target features of the subject object may be all features representing the entire subject object (also called the complete features of the subject object), or features identifying some protruding parts of the subject object (also called the complete features of some parts of the subject object), etc.
[0020] It should be understood that the image area that needs to be retained determined by the folding screen device according to the algorithm may not be the image area that the user actually wants to retain. By displaying a prompt box on the screen, the user can be prompted to adjust the image area that needs to be retained. For example, enlarge or reduce the image area that needs to be retained, or adjust the position of the image area that needs to be retained. In this way, the user adjusts the image area that needs to be retained, so that the wallpaper finally set on each screen can better meet the user's expectations.
[0021] In a possible implementation of the first aspect, the subject may include a first subject and a second subject, and the folding screen device may include a first screen and a second screen, wherein the size of the first screen is smaller than the size of the second screen. According to the position of the subject in the image and the size information of each screen of the folding screen device, the image is cropped to obtain multiple wallpaper images adapted to each screen, including: respectively determining the priority of the first subject and the second subject; when the priority of the first subject is higher than the priority of the second subject, according to the position of the first subject in the image and the size information of each screen of the folding screen device, the image is cropped to obtain a first wallpaper image adapted to the first screen, and the image is cropped to obtain a second wallpaper image adapted to the second screen; wherein the first wallpaper image includes the first subject.
[0022] For example, the first screen may be an outer screen of a foldable screen device, and the second screen may be an inner screen of the foldable screen device. In the case where the image includes multiple subjects, the foldable screen device may crop the image according to the priorities of the multiple subjects, so that each cropped wallpaper image includes the first subject with the highest priority among the subjects.
[0023] In a possible implementation of the first aspect, according to the position of the first main object in the image and the size information of each screen of the folding screen device, the image is cropped to obtain a first wallpaper image adapted to the first screen, including: determining a first image area containing the first main object according to the position of the first main object in the image; and cropping the image according to the size information of the first screen to obtain a first wallpaper image containing the first image area, wherein the first wallpaper image has the same aspect ratio as the first screen.
[0024] In another possible implementation of the first aspect, the image is cropped to obtain a second wallpaper image adapted to the second screen, including: determining a second image area according to positions of the first subject and the second subject in the image, the second image area including the first subject and the second subject; and cropping the image according to size information of the second screen to obtain a second wallpaper image including the second image area, wherein the second wallpaper image has the same aspect ratio as the second screen.
[0025] In this way, when there are multiple subjects, the image can be cropped according to the priority of the subjects, so that when the screen size is small, the cropped wallpaper can be guaranteed to include the subjects with high priority. For a larger screen, more other subjects can be included on this basis, and more image features in the original image can be retained as much as possible.
[0026] In a possible implementation of the first aspect, the image is cropped according to the size information of the first screen to obtain a first wallpaper image including the first image area, including: determining the proportional deviation between the size of the first screen and the size of the first image area; if the proportional deviation is greater than a preset deviation value, determining the position of the main part of the first subject in the first image area; and the first image area is cropped according to the size information of the first screen to obtain the first wallpaper image including the main part of the first subject.
[0027] It should be understood that the above-mentioned proportional deviation can be used to characterize the degree of adaptation between the size of the first screen and the size of the first image area, and the proportional deviation can be determined by the aspect ratio of the first screen or the first image area. When the proportional deviation is small, the degree of adaptation between the size of the first screen and the size of the first image area is high; when the proportional deviation is large, the degree of adaptation between the size of the first screen and the size of the first image area is low. Exemplarily, if the proportional deviation between the first screen and the first image area is small, it means that the aspect ratio of the two is close, and the first image area is cropped according to the size of the first screen, and the cropped wallpaper image can include more features in the first image area. If the proportional deviation between the first screen and the first image area is large, it means that the aspect ratio of the two is large, and it is difficult to include all the features in the first image area in the cropped wallpaper image when the first image area is cropped according to the size of the first screen.
[0028] When the ratio of the size of the first screen to the size of the first image area deviates greatly, the folding screen device may crop the first image area to retain only the main part of the first subject. In this way, the first wallpaper image used as the first screen of smaller size may include the main features of the first subject.
[0029] In a possible implementation manner of the first aspect, the number of the first subject objects may include multiple, and according to the position of the first subject object in the image, a first image area containing the first subject object is determined, including: according to the folding method of the folding screen device, determining a first target subject object from multiple first subject objects; according to the position of the first target subject object in the image, determining an area in the image containing a target feature of the first target subject object as the first image area.
[0030] The first subject is the subject with the highest priority in the image. When there are multiple subjects with the highest priority in the image, the folding screen device can determine the first target subject from the multiple first subjects, so that when cutting wallpaper for the smaller external screen, the image can be cut to retain the area containing the first target subject in the image, ensuring that the features of the first target subject are included in the first wallpaper image as much as possible.
[0031] In a possible implementation of the first aspect, each wallpaper image is set as the wallpaper of the corresponding screen, including: previewing each wallpaper image on the corresponding screen; when receiving an interactive instruction for any previewed wallpaper image, adjusting the previewed wallpaper image according to the interactive instruction; setting each adjusted wallpaper image as the wallpaper of the corresponding screen. By previewing each cropped wallpaper image, it is convenient for the user to view the effect after the wallpaper is set, and it is convenient for the user to adjust the wallpaper according to the actual display effect, so that the wallpaper finally set meets the user's expectations and satisfies the user's needs.
[0032] In a second aspect, a wallpaper setting device for a folding screen device is provided, comprising:
[0033] The recognition module is used to recognize the main object in the image.
[0034] The cropping module is used to crop the image according to the position of the main object in the image and the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen; wherein the sizes of each screen are different, and the main object is included in any wallpaper image.
[0035] The setting module is used to set each wallpaper image as the wallpaper of the corresponding screen.
[0036] In a possible implementation of the second aspect, the cropping module can be specifically used to: determine the image area containing the main object in the image according to the position of the main object in the image; crop the image according to the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen, and any wallpaper image at least includes the main object in the image area.
[0037] In a possible implementation of the second aspect, the cropping module can also be used to: determine a folding method of the folding screen device, the folding method including horizontal folding or vertical folding, and any folding method corresponds to a cropping direction; crop the image according to the cropping direction corresponding to the folding method to obtain multiple wallpaper images, wherein each wallpaper image obtained by cropping has the same aspect ratio as the corresponding screen.
[0038] In a possible implementation of the second aspect, the cropping module can also be used for: if the folding mode of the folding screen device is horizontal folding, then a wallpaper image with the same aspect ratio as the corresponding screen is cropped from the image in a vertical cropping manner; if the folding mode of the folding screen device is vertical folding, then a wallpaper image with the same aspect ratio as the corresponding screen is cropped from the image in a horizontal cropping manner.
[0039] In a possible implementation of the second aspect, the screens of the folding screen device include a first screen whose size information is smaller than a preset value, and the cropping module can also be used to: determine the position of the main part of the main object in the image; crop the image according to the size information of the first screen to obtain a first wallpaper image that includes the main part of the main object and is compatible with the first screen. The main object includes multiple parts, and different parts have different priorities, and the main part has the highest priority.
[0040] In a possible implementation manner of the second aspect, the cropping module may also be used to: determine a center point of the main object; and based on the center point, determine a region in the image that contains target features of the main object as an image region that needs to be retained.
[0041] In another possible implementation of the second aspect, the main object includes a first main object and a second main object, the folding screen device includes a first screen and a second screen, the size of the first screen is smaller than the size of the second screen, and the cropping module can also be used to: respectively determine the priority of the first main object and the second main object; when the priority of the first main object is higher than the priority of the second main object, according to the position of the first main object in the image and the size information of each screen of the folding screen device, crop the image to obtain a first wallpaper image adapted to the first screen, and crop the image to obtain a second wallpaper image adapted to the second screen; wherein the first wallpaper image includes the first main object.
[0042] In a possible implementation of the second aspect, the cropping module can also be used to: determine a first image area containing the first main object based on the position of the first main object in the image; crop the image according to the size information of the first screen to obtain a first wallpaper image containing the first image area, wherein the first wallpaper image has the same aspect ratio as the first screen.
[0043] In a possible implementation of the second aspect, the cropping module can also be used to: determine the proportional deviation between the size of the first screen and the size of the first image area; if the proportional deviation is greater than a preset deviation value, determine the position of the main part of the first subject in the first image area; according to the size information of the first screen, crop the first image area to obtain a first wallpaper image containing the main part of the first subject.
[0044] In another possible implementation of the second aspect, the number of first main objects includes multiple, and the cropping module can also be used to: determine the first target main object from the multiple first main objects according to the folding method of the folding screen device; and determine the area in the image containing the target features of the first target main object as the first image area according to the position of the first target main object in the image.
[0045] In a possible implementation of the second aspect, the cropping module can also be used to: determine a second image area based on the positions of the first subject and the second subject in the image, wherein the second image area includes the first subject and the second subject; and crop the image according to the size information of the second screen to obtain a second wallpaper image including the second image area, wherein the second wallpaper image has the same aspect ratio as the second screen.
[0046] In a possible implementation of the second aspect, the setting module can be specifically used to: preview each wallpaper image on a corresponding screen; when an interactive instruction for any previewed wallpaper image is received, adjust the previewed wallpaper image according to the interactive instruction; and set the adjusted wallpaper images as wallpapers of the corresponding screen.
[0047] In a third aspect, a folding screen device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the wallpaper setting method of the folding screen device as described in any one of the first aspects above can be implemented.
[0048] In a fourth aspect, a computer-readable storage medium is provided, which stores computer instructions. When the computer instructions are executed on a folding screen device, the folding screen device executes the above-mentioned related method steps to implement the wallpaper setting method of the folding screen device described in any one of the above-mentioned first aspects.
[0049] In a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the wallpaper setting method of the folding screen device described in any one of the above-mentioned first aspects.
[0050] In a sixth aspect, a chip is provided, the chip comprising a memory and a processor. The processor executes a computer program stored in the memory to implement the wallpaper setting method of the folding screen device as described in any one of the first aspects above.
[0051] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Figure 1 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0053] Figure 2 is a schematic diagram of a wallpaper setting effect provided in an embodiment of the present application;
[0054] Figure 3 is a schematic diagram of another wallpaper setting effect provided in an embodiment of the present application;
[0055] Figure 4 It is a schematic diagram of the overall framework of a wallpaper setting method for a folding screen device provided in an embodiment of the present application;
[0056] Figure 5 is a schematic diagram of a process of cutting an image provided by an embodiment of the present application;
[0057] Figure 6 is a schematic diagram of another process of cropping an image provided by an embodiment of the present application;
[0058] Figure 7 is a schematic diagram of another process of cropping an image provided by an embodiment of the present application;
[0059] Figure 8 is a schematic diagram of another process of cropping an image provided by an embodiment of the present application;
[0060] Fig. 9 is a schematic diagram of interface interaction in a wallpaper setting method provided in an embodiment of the present application;
[0061] Fig.10 It is a flowchart of a wallpaper setting method for a folding screen device provided in an embodiment of the present application;
[0062] Fig.11 is a comparative schematic diagram of a wallpaper setting effect provided in an embodiment of the present application;
[0063] Fig.12 is a comparative schematic diagram of another wallpaper setting effect provided in an embodiment of the present application;
[0064] Fig.13is a schematic diagram of a wallpaper setting method for a folding screen device provided in an embodiment of the present application;
[0065] Fig.14 This is a schematic diagram of a wallpaper setting device for a folding screen device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0066] In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first image area, the second image area, etc. are only used to distinguish different image areas in the image and are not otherwise limited.
[0067] It should be noted that, in the embodiments of the present application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
[0068] The business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0069] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0070] The steps involved in the wallpaper setting method for a folding screen device provided in the embodiment of the present application are only examples. Not all steps are required to be performed, or not all contents in each step are optional. They can be increased or decreased as needed during use. The same step or steps or contents with the same function in the embodiment of the present application can be referenced and learned from each other in different embodiments.
[0071] The wallpaper setting method of the folding screen device provided in the embodiment of the present application can be applied to the folding screen device. Generally, the folding screen device includes an outer screen and an inner screen. Among them, the size information of the outer screen and the inner screen is not the same, and the size information of the outer screen and the inner screen may refer to the size of the screen, the aspect ratio or the resolution of the screen.
[0072] For example, Figure 1 1 shows a schematic diagram of the structure of an electronic device 100. The structure of the above-mentioned folding screen device can refer to the structure of the electronic device 100.
[0073] 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, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope 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, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0074] It is understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device 100. In some embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0075] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0076] Among them, the controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and execution.
[0077] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments of the present application, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0078] In some embodiments of the present application, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0079] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments of the present application, the processor 110 may include multiple groups of I2C buses. The processor 110 can be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example, the processor 110 can be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface to realize the touch function of the electronic device 100.
[0080] The I2S interface can be used for audio communication. In some embodiments of the present application, the processor 110 may include multiple groups of I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to achieve communication between the processor 110 and the audio module 170. In some embodiments of the present application, the audio module 170 can transmit an audio signal to the wireless communication module 160 via the I2S interface to achieve the function of answering a call through a Bluetooth headset.
[0081] The PCM interface can also be used for audio communication, sampling, quantizing and encoding analog signals. In some embodiments of the present application, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments of the present application, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface to realize the function of answering calls through a Bluetooth headset.
[0082] The UART interface is a universal serial data bus 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 of the present application, the 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 of the present application, the audio module 170 can transmit an audio signal to the wireless communication module 160 through the UART interface to implement the function of playing music through a Bluetooth headset.
[0083] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), and the like.
[0084] In some embodiments of the present application, the processor 110 and the camera 193 communicate via a CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via a DSI interface to implement the display function of the electronic device 100.
[0085] The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments of the present application, the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0086] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can 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 transfer data between the electronic device 100 and a peripheral device. The USB interface 130 can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0087] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on 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.
[0088] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0089] 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, etc. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, and battery health status (leakage, impedance).
[0090] In some other embodiments, the power management module 141 may also be disposed in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 may also be disposed in the same device.
[0091] 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, the baseband processor, and the like.
[0092] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0093] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1.
[0094] In some embodiments of the present application, at least some functional modules of the mobile communication module 150 may be set in the processor 110. In some embodiments of the present application, at least some functional modules of the mobile communication module 150 may be set in the same device as at least some modules of the processor 110.
[0095] The 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. Subsequently, the demodulator 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 a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194.
[0096] In some embodiments of the present application, the modem processor may be an independent 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.
[0097] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, 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, modulate and amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0098] In some embodiments of the present application, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, 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), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation system (SBAS).
[0099] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0100] The display screen 194 is also referred to as the screen of the electronic device 100. The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be 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 (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In an embodiment of the present application, the electronic device 100 may include 2 or N display screens 194, where N is a positive integer greater than 2. At least one display screen 194 of the electronic device 100 is a foldable screen. Exemplarily, the electronic device includes two display screens 194, namely an outer screen and an inner screen. Among them, the inner screen can be a foldable display screen.
[0101] The electronic device 100 can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor.
[0102] ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments of the present application, ISP can be set in camera 193.
[0103] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it 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 for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments of the present application, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0104] The digital signal processor is used to process digital signals, and can process not only digital image signals but also other digital signals. For example, when the electronic device 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0105] Video codecs are used to compress or decompress digital videos. The electronic device 100 may support one or more video codecs. Thus, the electronic device 100 may play or record videos in a variety of coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0106] 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 also continuously self-learn. Through NPU, applications such as intelligent cognition of electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0107] 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 a data storage function, such as storing music, video and other files in the external memory card.
[0108] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc.
[0109] In addition, the internal memory 121 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
[0110] The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0111] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0112] 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. The audio module 170 can also be used to encode and decode audio signals. In some embodiments of the present application, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110.
[0113] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The electronic device 100 can listen to music or listen to a hands-free call through the speaker 170A.
[0114] The receiver 170B, also called a "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or voice message, the voice can be received by placing the receiver 170B close to the human ear.
[0115] 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 make a sound by putting his mouth close to microphone 170C to input the sound signal into microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to realize the collection of sound signals, noise reduction, identification of sound sources, and realization of directional recording function, etc.
[0116] The earphone interface 170D is used to connect a wired earphone and can be a USB interface 130, or a 3.5 mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0117] The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A can be set 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 can be a parallel plate including at least two conductive materials. When a force acts on the 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 acts on the display screen 194, the electronic device 100 detects the intensity of the touch operation based on the pressure sensor 180A. The electronic device 100 can also calculate the position of the touch based on the detection signal of the pressure sensor 180A.
[0118] In some embodiments of the present application, touch operations acting on the same touch position but with different touch operation strengths may correspond to different operation instructions. For example, when a touch operation with a touch operation strength less than a first pressure threshold acts on a short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation strength greater than or equal to the first pressure threshold acts on a short message application icon, an instruction to create a new short message is executed.
[0119] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments of the present application, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0120] The air pressure sensor 180C is used to measure air pressure. In some embodiments of the present application, the electronic device 100 calculates the altitude, assists positioning and navigation through the air pressure value measured by the air pressure sensor 180C.
[0121] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip leather case. In some embodiments of the present application, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover according to the magnetic sensor 180D, and then set the flip cover automatic unlocking and other features according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover.
[0122] The acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in all 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 the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.
[0123] The distance sensor 180F is used to measure the distance. The electronic device 100 can measure the distance by infrared or laser. In some embodiments of the present application, for example, in a shooting scene, the electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
[0124] The 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 outward through the light emitting diode. The electronic device 100 uses a photodiode 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 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0125] The ambient light sensor 180L is used to sense the 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 a pocket to prevent accidental touches.
[0126] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to achieve fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0127] The temperature sensor 180J is used to detect temperature. In some embodiments of the present application, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a 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 the processor located near the temperature sensor 180J 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 avoid abnormal shutdown of the electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
[0128] The touch sensor 180K is also called a "touch control device". The touch sensor 180K can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.
[0129] The bone conduction sensor 180M can obtain vibration signals. In some embodiments of the present application, the bone conduction sensor 180M can obtain vibration signals of vibrating bones of the human body. The bone conduction sensor 180M can also contact the human body's pulse to receive blood pressure beating signals.
[0130] In some embodiments of the present application, the bone conduction sensor 180M may also be disposed in the earphone to form a bone conduction earphone. The audio module 170 may parse out a voice signal based on the vibration signal of the vocal bone obtained by the bone conduction sensor 180M to implement a voice function. The application processor may parse out the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M to implement a heart rate detection function.
[0131] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.
[0132] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example, time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0133] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power changes, messages, missed calls, notifications, etc.
[0134] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and 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. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be 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 of the present application, the electronic device 100 uses an eSIM (i.e., an embedded SIM card). The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
[0135] The wallpaper setting method provided in the embodiment of the present application can be implemented on an electronic device having the above-mentioned hardware structure.
[0136] As mentioned above, the screen of a foldable screen device includes an outer screen and an inner screen. When users set wallpapers for the screen of a foldable screen device, they need to set wallpapers for the outer screen and the inner screen respectively. Due to the difference in size information between the outer screen and the inner screen, if the same image is cropped in the same way, the resulting screen wallpaper will have a large difference in effect on the outer screen and the inner screen.
[0137] In response to the above problems, an embodiment of the present application provides a wallpaper setting method for a folding screen device. By identifying the main object in the image used as the screen wallpaper, the image can be cropped using different cropping methods according to the position of the main object in the image and the size information of each screen of the folding screen device, thereby obtaining multiple wallpaper images. Each of the multiple wallpaper images can be used as the wallpaper of a screen of the folding screen device. Exemplarily, for the external screen and the internal screen of different sizes of the folding screen device, two different cropping methods can be used to crop the image. For example, cropping method one and cropping method two. Among them, the folding screen device can crop the wallpaper for the external screen according to cropping method one to obtain a wallpaper image (for example, wallpaper image one); and crop the wallpaper for the internal screen according to cropping method two to obtain another wallpaper image (for example, wallpaper image two). Then, the folding screen device can use wallpaper image one as the wallpaper of the external screen and wallpaper image two as the wallpaper of the internal screen, so as to ensure that each wallpaper image obtained by cropping can be adapted to the size of the corresponding screen.
[0138] In an embodiment of the present application, when the folding screen device crops an image according to the above-mentioned cropping method one or cropping method two, the cropping can be performed according to the position of the main object in the identified image to ensure that the cropped wallpaper includes the above-mentioned main object or a main part of the main object. When cropping, the folding screen device can determine whether to crop the image to retain the complete main object in the image or only retain a main part of the main object in the image according to the size of the screen. Usually, for a larger screen, the folding screen device can crop the image to retain the complete main object in the image; for a smaller screen, the folding screen device can only retain a main part of the main object in the image after cropping the image. Among them, the main part can be a part that reflects the main features of the main object. For example, if the main object in the identified image is a person, then the main part of the main object can be a face part.
[0139] like Figure 2 , which is a schematic diagram of a wallpaper setting effect provided by an embodiment of the present application. Figure 2 In the figure, image 201 is an image planned to be used as a screen wallpaper for a folding screen device. Image 201 includes a person, who is also the main object in image 201. Figure 2 A folding screen device 202 is also shown in FIG. 1 , and the folding screen device 202 is a vertically foldable electronic device. The outer screen of the folding screen device 202 in the folded state is as follows: Figure 2 As shown in 2021, the inner screen of the folding screen device 202 in the unfolded state is as shown in Figure 2 2022. Figure 2It can be seen that the size of the outer screen 2021 is smaller than that of the inner screen 2022. When the folding screen device 202 sets wallpaper for the above-mentioned outer screen 2021 and inner screen 2022, different cropping methods can be adopted according to the position of the main object in the image 201 and the size of the outer screen 2021 and the inner screen 2022. Specifically, since the size of the outer screen 2021 is small and cannot completely accommodate the main object in the image 201, the folding screen device 202 can retain the main part of the main object when cropping, that is, crop the image 201, retain the facial part of the person in the image 201, and obtain a wallpaper image 2021a. After the wallpaper image 2021a is set as the wallpaper of the outer screen 2021, the effect in the folded state of the folding screen device 202 can be as follows. Figure 2 On the other hand, the size of the inner screen 2022 of the folding screen device 202 in the unfolded state is relatively large, and can completely accommodate the main object in the image 201. Therefore, the folding screen device 202 can crop the image 201, retain the complete main object in the image 201, and obtain a wallpaper image 222a. After the wallpaper image 2022a is set as the wallpaper of the inner screen 2022, the effect can be as follows: Figure 2 As shown in 2022b.
[0140] Compare Figure 2 As can be seen from the screens 2021b and 2022b in the figure, by using the wallpaper setting method provided in the embodiment of the present application, the image can be cropped in a targeted manner according to the different size information of the inner and outer screens of the folding screen device, so as to obtain a wallpaper image that matches the actual size information of each screen. In this way, it can not only ensure that the wallpaper images used as the outer and inner screens contain the main object or the main part of the main object in the original image, so that the wallpaper images of the inner and outer screens will not be violently cropped due to the morphological changes of the inner and outer screens of the folding screen device, but also ensure that the style of the wallpaper images of the inner and outer screens is unified.
[0141] In a possible implementation of an embodiment of the present application, the number of main objects contained in the image used as wallpaper for each screen of a folding screen device may be more than one. Exemplarily, the image includes two or more main objects. For an image including two or more main objects, the wallpaper setting method provided in an embodiment of the present application may also be used to crop the image to obtain multiple wallpaper images that are respectively adapted to each screen.
[0142] like Figure 3 , which is a schematic diagram of another wallpaper setting effect provided by an embodiment of the present application. Figure 3 In the figure, image 301 is an image planned to be used as a screen wallpaper for a folding screen device, and image 301 includes two main objects, namely person 3011 and person 3012 in image 301. Figure 3A folding screen device 302 is also shown in FIG. 3 , and the folding screen device 302 is an electronic device that folds horizontally. The outer screen of the folding screen device 302 in the folded state is as follows: Figure 3 As shown in 3021 in FIG. 1 , the inner screen of the folding screen device 302 in the unfolded state is as shown in FIG. Figure 3 As shown in 3022. Figure 3 It can be seen that the size of the outer screen 3021 is smaller than that of the inner screen 3022. When the folding screen device 302 sets wallpaper for the above-mentioned outer screen 3021 and inner screen 3022, different cropping methods can be adopted according to the position of the main object in the image 301 and the size information of the outer screen 3021 and the inner screen 3022. Specifically, since the size of the outer screen 3021 is small and cannot completely accommodate multiple main objects in the image 301, the folding screen device 302 can crop the image 301 to obtain a wallpaper image 3021a that only contains one main object in the image 301. The wallpaper image 3021a is also the wallpaper image obtained by cropping the image 301 and retaining the person 3011 in the image 301. After the wallpaper image 3021a is set as the wallpaper of the outer screen 3021, the effect in the folded state of the folding screen device 302 can be as follows. Figure 3 On the other hand, the size of the inner screen 3022 of the folding screen device 302 in the unfolded state is relatively large, and can completely accommodate multiple main objects in the image 301. Therefore, when the folding screen device 302 is cropped, the multiple main objects in the image 301 can be retained, so that the cropped wallpaper image 3022a also includes multiple main objects in the image 301. For example, Figure 3 The wallpaper image 3022a includes the characters 3011 and 3012 in the original image 301. After the wallpaper image 3022a is set as the wallpaper of the inner screen 3022, the effect can be as follows: Figure 3 As shown in 3022b.
[0143] Compare Figure 3As can be seen from the screens 3021b and 3022b in the figure, when the image used as the screen wallpaper contains multiple main objects, the wallpaper setting method provided in the embodiment of the present application can be used to crop the image in a targeted manner according to the different sizes of the inner screen and the outer screen of the folding screen device, so that the wallpaper image used as the screen with a smaller size only contains part of the main objects in the original image, and for the screen with a larger size, the wallpaper image adapted to the screen obtained by cropping can contain all the main objects in the original image. In this way, the wallpaper images set as the inner screen and the outer screen of the folding screen device can contain different main objects, which increases the user's fun of use during the unfolding or folding process of the folding screen device. For example, when the image planned to be used as the screen wallpaper is a photo of a couple, the wallpaper image set as the outer screen with a smaller size can be a single image of one of the couple, while the wallpaper image set as the inner screen with a larger size can be a photo of the two people, thereby increasing the user's fun in the process of folding or unfolding the folding screen device.
[0144] Combination Figure 2 and Figure 3 An example of the wallpaper setting effect shown is Figure 4 As shown, a schematic diagram of the overall framework of a wallpaper setting method for a folding screen device provided in an embodiment of the present application is shown. The implementation of the method may include the following parts S401-S405:
[0145] S401. Information input.
[0146] In an embodiment of the present application, the input information may refer to relevant information that the folding screen device needs to determine before setting the wallpaper of each screen. Among them, the input information may include an image used as the screen wallpaper of the folding screen device and related information of the image. The image can be any image selected by the user from multiple images stored in the folding screen device, or it can be an image taken in real time by the user using the camera of the folding screen device, or it can be an image received by the folding screen device from other devices. Exemplarily, the folding screen device can receive images from other devices through short-range communication technologies such as Bluetooth, or through wireless communication technologies such as 4G / 5G, and use the received images as wallpaper images for each screen of the device. Figure 4 As shown, the relevant information of the image used as screen wallpaper may include the size information of the image, for example, the maximum size of the image, that is, the length and width information of the image.
[0147] In addition to the image used as screen wallpaper, the input information may also include device information of the folding screen device itself. Figure 4 As shown, the device information may include the size information of each screen of the folding screen device. For example, the size of the inner screen and the size of the outer screen of the folding screen device.
[0148] In one example, in the unfolded state, the size of the outer screen of the folding screen device is smaller than the size of the inner screen. Therefore, the outer screen of the folding screen device can also be called a small screen, and the inner screen of the folding screen device can also be called a large screen. Based on the above image and the device information of the folding screen device itself, the size information of the wallpaper used as the inner screen and outer screen of the folding screen device can also be determined, that is, the large screen wallpaper size and the small screen wallpaper size. The above large screen wallpaper size and small screen wallpaper size can also be used as input information and play a role in the subsequent wallpaper setting process.
[0149] S402: Image enhancement.
[0150] In the embodiment of the present application, for the image to be used as the screen wallpaper, the folding screen device can use image enhancement technology to process the image. Figure 4 As shown, the image enhancement technologies that can be used by foldable screen devices may include image resolution enhancement technology and image intelligent expansion technology. Based on the above image enhancement technology, foldable screen devices can use artificial intelligence or use large models and other technical means to enhance image resolution, expand image edges, and improve image clarity.
[0151] S403: Identify the main object in the image.
[0152] In the embodiment of the present application, image subject recognition may refer to the recognition of information or content contained in an image used as a screen wallpaper, and the calculation of image features. For example, through image subject recognition, the subject such as a person, animal or plant contained in the image may be identified.
[0153] In a possible implementation of the embodiment of the present application, the image may contain only a single subject. Exemplarily, the image contains only one person, or one animal, or one plant. In another possible implementation of the embodiment of the present application, the image may also contain multiple subjects. Among them, the multiple subjects may be the same subject. Exemplarily, the image may contain multiple people, or multiple animals, or multiple plants. In another possible implementation of the embodiment of the present application, the multiple subjects may be different types of subjects, and the number of each type of subject may be more than one. Exemplarily, the image may contain both people and animals. Among them, the number of people may be one or more, and the number of animals may also be one or more.
[0154] In a possible implementation of an embodiment of the present application, when an image includes multiple different types of subjects, the folding screen device may also determine the priority of each identified subject during the process of identifying the subject of the image. Compared with subjects with low priorities, subjects with high priorities can be preferentially guaranteed to exist in the cropped wallpaper images when they are cropped as wallpaper images for each screen. Exemplarily, when a folding screen device crops an image that contains both a person and an animal, if the priority of the person is higher than that of the animal, the folding screen device may preferentially crop the person in the image, and preferentially ensure that the cropped wallpaper image contains the image of the person.
[0155] As an example of an embodiment of the present application, Figure 4 As shown, the priority relationship between different types of subjects can be as follows:
[0156] People > Animals > Plants or flowers > Buildings > Starry sky, moon, sun, earth, etc. > Objects with dense textures > Two-dimensional subjects > Objects with prominent brightness or saturation > Other subjects
[0157] The symbol “>” in the above example indicates that the priority of the subject on the left side of the symbol is “higher” than the priority of the subject on the right side of the symbol. For example, in the above example, the priority of people is higher than that of animals, and the priority of animals is higher than that of plants or flowers, buildings, the starry sky, the moon, the sun, the earth and other subjects.
[0158] S404: Generate cutting model.
[0159] In an embodiment of the present application, the generation of a cropping model may refer to the process of generating different schemes for cropping images by a folding screen device, including image cropping parameter calculation and wallpaper image generation. The image cropping parameter calculation may refer to the process of calculating the parameters required to crop the wallpaper image for each screen based on the position of the identified subject in the image and the size information of each screen of the folding screen device. On this basis, the folding screen device can crop the image according to the calculated parameters by executing the wallpaper image generation step to obtain screen wallpapers that are adapted to each screen.
[0160] In the process of generating the wallpaper image, the computer device can generate different cropping solutions according to different folding modes of the folding screen device and the number of main objects in the image. Figure 4As shown, for the case where the image contains only a single subject, the folding screen device can generate a large-screen vertical folding and cutting scheme, a small-screen horizontal folding and cutting scheme, etc.; correspondingly, for the case where the image contains multiple subjects, the folding screen device can also generate a large-screen vertical folding and cutting scheme, a small-screen horizontal folding and cutting scheme, etc. Wherein, when the number of subjects is different, the actual cutting method of the same type of cutting scheme is different. Exemplarily, the large-screen vertical folding and cutting scheme for a single subject and the large-screen vertical folding and cutting scheme for multiple subjects belong to different cutting schemes. When different cutting schemes are used to crop an image, the image information contained in the cropped image is different. That is, when different cutting schemes are used to crop an image, the content or image area of the original image retained in the wallpaper image after cropping is different.
[0161] Below, with specific examples, the process of generating cropping models for different numbers of main objects in the image on folding screen devices with different folding methods is introduced.
[0162] a. Vertical folding device + single main object
[0163] Among them, the vertical folding device may refer to a folding screen device whose folding method is vertical folding.
[0164] like Figure 5 FIG. 1 is a schematic diagram of a process of cutting an image provided by an embodiment of the present application. Figure 5 Shown is an example of cropping a wallpaper image for a vertically folded folding screen device when the image contains only a single subject.
[0165] exist Figure 5 In the figure, image 501 contains only a single main object, namely main object 5011, and the folding screen device 502 can identify the main object 5011 through the S403 image main object identification step. Figure 5 The folding screen device 502 is a vertical folding device, and the outer screen and inner screen of the folding screen device 502 in the folded state and the unfolded state can be respectively as follows Figure 5 As shown in the figure, screens 5021 and 5022 are shown in the figure. Screen 5021 is the outer screen of the folding screen device 502 in the folded state, and screen 5022 is the inner screen of the folding screen device 502 in the unfolded state. Figure 5 It can be seen that the size of the outer screen in the folded state is smaller than the inner screen in the unfolded state. The folding screen device 502 needs to cut out wallpaper images for screens 5021 and 5022 from the image 501 respectively.
[0166] In the embodiment of the present application, the folding screen device 502 can determine the image area in the image 501 that contains the subject 5011 according to the position of the subject 5011 in the image 501. In a possible implementation, the folding screen device can determine the center point of the subject 5011 according to the position of the subject 5011 in the image 501, and then determine the area in the image 501 that contains the target features of the subject 5011 as the image area that needs to be retained based on the center point. Figure 5 As shown, the image region to be retained may be region 501a in image 501, and region 501a includes relatively complete features of subject 5011, referred to as complete features for short.
[0167] After determining the image area to be retained, the folding screen device 502 can crop the image 501 according to the size information of each screen, and obtain multiple wallpaper images adapted to each screen. That is, the folding screen device 502 can crop the image 501 to obtain an image that can be used as the wallpaper of the screens 5021 and 5022. In an example, the folding screen device 502 can crop the image in different directions according to different folding methods when cropping the image. Exemplarily, the folding method of the folding screen device 502 is vertical folding, so when cropping the image, the folding screen device 502 can crop the wallpaper image with the same aspect ratio as the adapted screen from the image 501 in a horizontal cropping manner. Among them, the cropping scheme used by the folding screen device 502 to crop the image 501 to obtain the wallpaper of the screen 5021 may be different from the cropping scheme used by the folding screen device 502 to crop the image 501 to obtain the wallpaper of the screen 5022.
[0168] like Figure 5 As shown, since the screen 5021 is small in size and cannot completely accommodate the complete features of the subject 5011, after determining the image area that needs to be retained in the image 501, the folding screen device 502 can crop the image 501 according to the size information of the screen 5021 to retain the area where the main part of the subject 5011 in the image 501 is located. Figure 5 In the example, the subject 5011 is a person, and the corresponding subject part can be Figure 5 By cropping the facial part in image 501, wallpaper image 5011a can be obtained. Screen 5022 is large in size and can accommodate the complete features of subject 5011, so folding screen device 502 can crop image 501 horizontally according to the size information of screen 5022 to obtain wallpaper image 5011b including subject 5011. The above wallpaper images 5011a and 5011b can be used as wallpapers of screens 5021 and 5022 of folding screen device 502, respectively.
[0169] b. Vertical folding equipment + multiple main objects
[0170] like Figure 6 FIG. 1 is a schematic diagram of another process of cutting an image provided by an embodiment of the present application. Figure 6 Shown is an example of cropping a wallpaper image for a vertically folded folding screen device when the image contains multiple subjects.
[0171] exist Figure 6 In the figure, image 601 includes multiple main objects, namely main objects 6011 and 6012. Figure 6 The folding screen device 602 in the embodiment may be Figure 5 The folding screen device 502 in the embodiment of the present invention is a vertical folding device of the same type. Accordingly, the outer screen and the inner screen of the folding screen device 602 in the folded state and the unfolded state can be respectively as follows: Figure 6 As shown in the figure, screens 6021 and 6022 are shown in the figure. Screen 6021 is the outer screen of the folding screen device 602 in the folded state, and screen 6022 is the inner screen of the folding screen device 602 in the unfolded state. The size of the outer screen in the folded state is smaller than the inner screen in the unfolded state.
[0172] Since the size of screen 6021 is small and cannot fully accommodate the target features (such as complete features) of multiple main objects 6011 and 6012, when the folding screen device cuts the wallpaper image for screen 6021, it can cut the main parts of one or more of the main objects to obtain the wallpaper image of screen 6021.
[0173] In a possible implementation of the embodiment of the present application, the folding screen device 602 may crop the main body part of one of the main objects as the wallpaper image of the screen 6021. Exemplarily, the folding screen device 602 may determine which main body part of the main object to retain in the cropped image according to the priorities of the multiple main objects in the image 601. In one example, if the priorities of the multiple main objects in the image 601 are not exactly the same, the folding screen device 602 may crop the image and retain the main body part image containing the main object with the highest priority as the wallpaper image of the screen 6021.
[0174] In another possible implementation of the embodiment of the present application, the folding screen device 602 can cut the main body parts of multiple main objects as the wallpaper image of the screen 6021. Exemplarily, the folding screen device 602 can cut the image 601 according to the size of the screen 6021, and retain the main body parts of the main objects 6011 and 6012. In an example, the main objects 6011 and 6012 in the image 601 are both people, and the main body parts of the people can be face parts. The folding screen device 602 can cut the image, retain the face parts of the main objects 6011 and 6012, and obtain image 6021a as the wallpaper image of the screen 6021. In this way, the image to be set as the wallpaper of the screen 6021 can contain the face parts of the main object 6011 and the face parts of the main object 6012 at the same time.
[0175] In a possible implementation of an embodiment of the present application, when the folding screen device 602 crops the image of the main object with the highest priority as the wallpaper image of the screen 6021, it can also perform the cropping in two situations according to the size of the screen 6021.
[0176] Case 1: assuming that the subject with the highest priority in image 601 is subject 6011, if the deviation between the aspect ratio of screen 6021 and the aspect ratio of the image area where subject 6011 is located is small, screen 6021 can accommodate the complete features of subject 6011, or the image area where subject 6011 is located is scaled so that screen 6021 can accommodate the complete features of subject 6011, then the folding screen device 602 can crop image 601 to obtain a wallpaper image containing the complete features of subject 6011, as the image to be set as the wallpaper of screen 6021.
[0177] Case 2: Assuming that the subject with the highest priority in image 601 is subject 6011, if the aspect ratio of screen 6021 deviates greatly from the aspect ratio of the image area where subject 6011 is located, screen 6021 cannot accommodate the complete features of subject 6011, or even if the image area where subject 6011 is located is scaled, screen 6021 cannot accommodate the complete features of subject 6011, then folding screen device 602 can crop image 601 to obtain a wallpaper image containing only the main part of subject 6011. For example, if subject 6011 is a person, folding screen device 602 can crop the image to obtain an image containing the facial part of the person as the image to be set as the wallpaper of screen 6021.
[0178] For screen 6022 , due to its large size, the folding screen device 602 can cut out an image 6022a that includes complete features of multiple main objects from image 601 as the wallpaper image of screen 6022 .
[0179] c. Horizontally foldable device + single main object
[0180] Among them, the horizontal folding device may refer to a folding screen device that folds vertically. Figure 7 FIG. 1 is a schematic diagram of another image cropping process provided by an embodiment of the present application. Figure 7 Shown is an example of cropping a wallpaper image for a horizontally folded folding screen device when the image contains only a single subject.
[0181] Figure 7 The image 701 in FIG. 7 only includes a single main object, namely, main object 7011. The folding screen device 702 is a horizontal folding device. The outer screen and the inner screen of the folding screen device 702 in the folded state and the unfolded state can be respectively as follows: Figure 7 As shown in the screens 7021 and 7022 in FIG. Among them, screen 7021 is the outer screen of the folding screen device 702 in the folded state, and screen 7022 is the inner screen of the folding screen device 702 in the unfolded state. Figure 7 It can be seen that the size of the outer screen in the folded state is smaller than the inner screen in the unfolded state. The folding screen device 702 needs to cut out wallpaper images for screens 7021 and 7022 from the image 701 respectively.
[0182] In the embodiment of the present application, the folding screen device 702 can determine the image area containing the main object 7011 in the image 701 according to the position of the main object 7011 in the image 701. Figure 7 As shown, the image region containing the subject 7011 may be region 701a in image 701 , and region 701a includes complete features of the subject 7011 .
[0183] For a horizontally foldable device, when cutting a wallpaper image for each screen, a wallpaper image having the same aspect ratio as the adapted screen may be cut from image 701 in a vertical cutting manner.
[0184] In a possible implementation of the embodiment of the present application, the folding screen device 702 can crop the image 701 in a vertical cropping manner according to the size information of the screen 7021 to obtain the image 7021a to be set as the wallpaper of the screen 7021; on the other hand, the folding screen device can crop the image 701 according to the size information of the screen 7022 to obtain the image 7022a to be set as the wallpaper of the screen 7022. The above-mentioned image 7021a and image 7022a can be set as the wallpaper of the screen 7021 and the screen 7022, respectively.
[0185] d. Horizontally foldable device + multiple main objects
[0186] like Figure 8 FIG. 1 is a schematic diagram of another process of cutting an image provided by an embodiment of the present application. Figure 8 Shown is an example of cropping a wallpaper image for a horizontally folded folding screen device when the image contains multiple subjects.
[0187] exist Figure 8 In the figure, image 801 includes multiple main objects, namely main objects 8011 and 8012. Figure 8 The folding screen device 802 in the embodiment may be Figure 7 The folding screen device 702 is a horizontal folding device of the same type. Accordingly, the outer screen and the inner screen of the folding screen device 802 in the folded state and the unfolded state can be respectively as follows: Figure 8 As shown in the figure, screens 8021 and 8022 are shown in the figure. Screen 8021 is the outer screen of the folding screen device 802 in the folded state, and screen 8022 is the inner screen of the folding screen device 802 in the unfolded state. The size of the outer screen in the folded state is smaller than the inner screen in the unfolded state.
[0188] In a possible implementation of an embodiment of the present application, when the folding screen device 802 cuts the wallpaper image for each screen, it can cut out multiple wallpaper images from the image 801, and the number of main objects contained in each wallpaper image can be different.
[0189] Exemplarily, when the folding screen device 802 crops a wallpaper image for the screen 8021 , an image containing only a single subject object may be cropped from the image 801 .
[0190] In an embodiment of the present application, when the folding screen device 802 crops a single subject, it can determine which subject to crop and retain based on the priorities of multiple subjects in the image 801. In one example, if the priorities of multiple subjects in the image 801 are not exactly the same, the folding screen device 802 can crop the image and retain the image containing the subject with the highest priority as the wallpaper image of the screen 8021. In another example, if the priorities of multiple subjects in the image 801 are the same, for example, subjects 8011 and 8012 in the image 801 are both human images and have the same priority, the folding screen device 802 can randomly crop the image in a vertical cropping manner and retain the image containing any one of the subjects as the wallpaper image of the screen 8021. For example, Figure 8 As shown, the folding screen device can crop image 801 to obtain image 8021a containing the main object 8011 as the wallpaper image of screen 8021.
[0191] On the other hand, when the folding screen device 802 cuts the wallpaper image for the screen 8022, it can cut out an image containing multiple subjects from the image 801. Figure 8 As shown, the folding screen device can crop image 801 in a vertical cropping manner to obtain image 8022a containing main objects 8011 and 8012 as the wallpaper image of screen 8022.
[0192] S405. Interface interaction.
[0193] In an embodiment of the present application, the interface interaction function may refer to a function in which the folding screen device allows the user to adjust each wallpaper image after cropping the wallpaper images of each screen and previewing the wallpaper images on the adapted screens. The interface interaction function provided by the folding screen device may include one-click settings of folded and unfolded wallpapers and previews of folded and unfolded wallpapers. The folded state refers to the device state presented by at least one foldable screen of the folding screen device, such as the inner screen of the folding screen device, after being folded; the unfolded state refers to the device state presented when the inner screen of the folding screen device is not folded, that is, when it is unfolded.
[0194] In a possible implementation of an embodiment of the present application, a folding screen device may provide a one-key setting button. When the user clicks the button, the folding screen device may automatically present the cropped wallpaper images on a screen that matches the wallpaper image, and intelligently adjust the wallpaper image to ensure that the main object or the main part of the main object in the image can be fully presented on the screen. On this basis, the user can continue to adjust the wallpaper image presented on the screen. For example, the user can adjust the wallpaper image by dragging, zooming, and other operations. After the user has finished adjusting the wallpaper image, the folding screen device can set the adjusted image as the wallpaper of the corresponding screen.
[0195] like Fig. 9 , which is a schematic diagram of interface interaction in a wallpaper setting method provided in an embodiment of the present application. Fig. 9 The folding screen device 901 in the embodiment may be a horizontal folding device, and the outer screen of the folding screen device 901 in the folded state may be as shown in FIG. Fig. 9 As shown in screen 9011. Fig. 9 9 shows an example in which the folding screen device 901 cuts out a corresponding wallpaper image for the screen 9011 and previews the wallpaper image on the screen 9011. During the interface interaction process, the folding screen device 901 can display an edit button 903 on the screen 9011, and the user can enter the editing state by clicking the button 903.
[0196] In the editing state, users can adjust the wallpaper image. Fig. 9As shown, the user's adjustment of the wallpaper image may include operations such as moving the image position, scaling the image, or deleting the main object in the image.
[0197] Combination Figures 4 to 9 The wallpaper setting process shown in Fig.10 As shown, a schematic diagram of a method for setting wallpaper for a folding screen device provided in an embodiment of the present application is shown. Fig.10 According to the process shown, the folding screen device can set the screen wallpaper of the inner screen and the outer screen in four different situations according to the number of main objects in the image and the folding method of the folding screen device. The following is a detailed description.
[0198] according to Fig.10 According to the process shown, the user can select an image as the image to be set as the screen wallpaper. For this image, the folding screen device can perform image enhancement processing on it, improve the image resolution, and expand the resolution of the image edge. Then, the folding screen device can identify the main object in the image. The methods used by the folding screen device to identify the main object may include but are not limited to artificial intelligence large models, texture feature analysis, etc. If there is no clear main object in the image, the folding screen device can cut out the corresponding wallpaper image for the inner screen and the outer screen respectively by cutting in the middle. If there is a clear main object in the image, the folding screen device can identify the characteristics of the main object, and further determine the type and quantity of the main object, the position of each main object in the image and other information.
[0199] like Fig.10 As shown, for the case where the image contains only a single main object, the folding screen device can use different cropping models to crop the image according to its own folding method. In one example, if the folding screen device is a horizontal folding device, the folding screen device can crop the image in a vertical cropping manner; if the folding screen device is a vertical folding device, the folding screen device can crop the image in a horizontal cropping manner. The process of the folding screen device cropping the image to obtain a wallpaper image adapted to each screen can be found in the introduction of the aforementioned embodiments, and will not be repeated here.
[0200] Based on the cropped wallpaper images, the foldable screen device can preview the inner and outer screen wallpapers through interface interaction. After the user completes the adjustment of the wallpaper image, the foldable screen device can complete the wallpaper setting for the inner and outer screens with one click under the user's operation.
[0201] like Fig.11 , which is a comparative schematic diagram of a wallpaper setting effect provided in an embodiment of the present application. Fig.11Shown are examples of cropping images for a horizontally folding device and a vertically folding device and setting them as inner and outer screen wallpapers when the image contains only a single main object, as well as a comparison diagram of setting inner and outer screen wallpapers for a horizontally folding device and a vertically folding device in the prior art.
[0202] like Fig.11 As shown in (a) of the figure, a single subject in an image is cropped using the method provided in an embodiment of the present application to obtain an external screen wallpaper image and an internal screen wallpaper image of a horizontally foldable device and complete the wallpaper setting, and an external screen wallpaper image and an internal screen wallpaper image of a vertically foldable device are obtained and complete the wallpaper setting. The external screen and the internal screen of the horizontally foldable device can be as follows Fig.11 As shown in the screen 1111a and the screen 1112a in (a), the outer screen and the inner screen of the vertical folding device can be as shown in FIG. Fig.11 As shown in the screen 1121a and the screen 1122a in (a), when the image 1101 is cropped according to the method provided in the embodiment of the present application, the main object in the image 1101 can be firstly identified, and then the image 1101 can be cropped according to the position of the main object in the image and the size information of each screen to obtain the corresponding wallpaper image. Fig.11 As can be seen in (a), whether it is a horizontally folding device or a vertically folding device, in the folded state and the unfolded state, the outer screen wallpaper image and the inner screen wallpaper image both contain the complete main object in the original image 1101. Fig.11 (b) shows an example of using a cropping method in the prior art to crop an image to obtain an inner screen wallpaper image and an outer screen wallpaper image of a horizontally foldable device, and an example of obtaining an inner screen wallpaper image and an outer screen wallpaper image of a vertically foldable device. The outer screen and inner screen of the horizontally foldable device can be as follows Fig.11 As shown in the screen 1111b and the screen 1112b in (b), the outer screen and the inner screen of the vertical folding device can be as shown in FIG. Fig.11 As shown in screen 1121b and screen 1122b in (b), the above-mentioned screen 1111a and screen 1111b are the same screen, screen 1112a and screen 1112b are the same screen, screen 1121a and screen 1121b are the same screen, and screen 1122a and screen 1122b are the same screen. When image 1101 is cropped according to the prior art, for screen 1111b, the folding screen device crops along the middle of image 1101, that is, area 1101b in image 1101 is cropped to obtain the corresponding wallpaper image. For screen 1121b, the folding screen device also crops along the middle of image 1101, that is, area 1101a in image 1101 is cropped to obtain the corresponding wallpaper image. From Fig.11As can be seen in (b), for the same image, the inner screen wallpaper image in the unfolded state contains the complete main object in the original image, but because the folding screen device in the prior art uses the middle cropping method to crop the image, the main object in the original image is cropped from the middle, and the resulting outer screen wallpaper image of the horizontal folding device in the folded state destroys the integrity of the main object, seriously affecting the setting effect of the outer screen wallpaper. On the other hand, for the vertical folding device, when the same image is cropped, the main objects in both the outer screen wallpaper image of the vertical folding device in the folded state and the inner screen wallpaper image in the unfolded state are destroyed.
[0203] like Fig.12 , which is a comparative schematic diagram of another wallpaper setting effect provided in an embodiment of the present application. Fig.12 Shown are examples of cropping images for a horizontally folding device and a vertically folding device and setting them as inner and outer screen wallpapers when the image contains multiple subjects, as well as a comparison diagram of setting inner and outer screen wallpapers for a horizontally folding device and a vertically folding device in the prior art.
[0204] like Fig.12 As shown in (a), it shows an example of the effect after the image is set by cropping multiple main objects in the image using the method provided in the embodiment of the present application to obtain the outer screen wallpaper image and inner screen wallpaper image of the horizontal folding device and the vertical folding screen device respectively. Among them, the outer screen and inner screen of the horizontal folding device are respectively Fig.12 The screen 1211a and the screen 1212a in (a); the outer screen and the inner screen of the vertical folding device are respectively Fig.12 Screen 1221a and screen 1222a in (a). Fig.12 The image 1201 used in (a) in FIG. 1 includes two subjects, namely subject 1 and subject 2. Subject 1 and subject 2 are arranged side by side horizontally in the image 1201. Fig.12 As can be seen in (a), after the image 1201 is cropped according to the method provided in the embodiment of the present application, and the cropped wallpaper image is set as the wallpaper of the corresponding screen, in the folded state, the outer screen wallpaper image of the horizontally folded device includes the complete image of the subject 1 in the original image; in the unfolded state, the inner screen wallpaper image includes the complete images of the subject 1 and the subject 2 in the original image. On the other hand, in the folded state, the outer screen wallpaper image of the vertically folded device includes the image of the main body of the subject 1 and the subject 2 in the original image, that is, the face part of the subject 1 and the subject 2 in the image 1201; in the unfolded state, the inner screen wallpaper image includes the complete images of the subject 1 and the subject 2 in the original image. Fig.12(b) shows an example of an inner screen wallpaper image and an outer screen wallpaper image of a horizontally folding device obtained by cropping the image using the cropping method in the prior art, as well as an example of an inner screen wallpaper image and an outer screen wallpaper image of a vertically folding device.
[0205] Among them, the outer screen and inner screen of the horizontally folding device can be as follows Fig.12 As shown in the screen 1211b and the screen 1212b in (b), the outer screen and the inner screen of the vertical folding device can be as shown in FIG. Fig.12 As shown in screen 1221b and screen 1222b in (b), the above-mentioned screen 1211a and screen 1211b are the same screen, screen 1212a and screen 1212b are the same screen, screen 1221a and screen 1221b are the same screen, and screen 1222a and screen 1222b are the same screen. When image 1201 is cropped according to the prior art, for screen 1211b, the folding screen device crops along the middle of image 1201, that is, area 1201b in image 1201 is cropped to obtain a corresponding wallpaper image. For screen 1221b, the folding screen device crops along the middle of image 1201 according to the size information of screen 1221b, that is, area 1201a in image 1201 is cropped to obtain a corresponding wallpaper image. From Fig.12 As can be seen in (b), for Fig.12 For the same image 1201 shown in (a), after the wallpaper is cut and set for a horizontally folding device, the inner screen wallpaper image in the unfolded state includes the complete images of the subject 1 and the subject 2 in the original image 1201. However, since the folding screen device in the prior art cuts the image in the middle, when cutting the wallpaper image for the outer screen, the subject 1 and the subject 2 that are arranged side by side horizontally in the original image 1201 are cut from the middle of the image. The resulting outer screen wallpaper image in the folded state only includes a part of the image of the subject 1 and the subject 2. The outer screen wallpaper image destroys the integrity of the subject 1 and the subject 2 in the original image, seriously affecting the setting effect of the outer screen wallpaper. On the other hand, for vertically folding devices, for Fig.12 In the same image 1201 shown in (a) of FIG. 1 , the inner screen wallpaper image in the unfolded state of the vertical folding device and the outer screen wallpaper image in the folded state both only contain partial images of the subject 1 and the subject 2 in the original image. The above images are obtained by cropping the original image in the middle cropping manner. Fig.12 As can be seen in (b), the outer screen wallpaper image and the inner screen wallpaper image obtained by cutting according to the prior art both destroy the integrity of the main object 1 and the main object 2 in the original image.
[0206] Based on the above embodiments, Fig.13, which is a schematic diagram of a wallpaper setting method for a folding screen device provided in an embodiment of the present application, and the method may include the following steps S1301-S1303:
[0207] S1301, identifying the main object in the image.
[0208] The method can be applied to a folding screen device, which can be a device having a Figure 1 An electronic device with the hardware structure shown in FIG. A folding screen device may include multiple screens, at least one of which is foldable. Exemplarily, the folding screen device may include an inner screen and an outer screen, wherein the inner screen may be foldable. Depending on the folding direction, the folding screen device may be divided into a horizontal folding device and a vertical folding device. A vertical folding device may be as follows: Figure 2 As shown in the folding screen device 202 in FIG. 1 , the outer screen of the vertical folding device in the folded state can be as shown in FIG. Figure 2 As shown in the outer screen 21 in the figure, the inner screen in the unfolded state can be as follows Figure 2 As shown in the inner screen 2022 in FIG. A horizontally foldable device can be as follows Figure 3 As shown in the folding screen device 302 in FIG. 1 , the outer screen of the horizontal folding device in the folded state can be as follows Figure 3 As shown in the outer screen 3021 in FIG. 1 , the inner screen in the unfolded state can be as follows Figure 3 As shown in the inner screen 3022.
[0209] The image in the embodiment of the present application may be an image used as wallpaper for each screen of the folding screen device, and the folding screen device may obtain the wallpaper image for each screen by cropping the image. The image may be an image determined from the images stored in the folding screen device, or an image taken by the user in real time using the folding screen device, or an image received from other devices through various communication technologies.
[0210] Before setting the wallpaper of each screen, the folding screen device can identify the main object from the image. Among them, the number of main objects in the image can be only one or multiple. When the number of main objects in the image is multiple, the multiple main objects can be the same type of main objects or different types of main objects. Exemplarily, the image includes two main objects, both of which are people; or, one of the two main objects is a person, and the other is an animal or a plant. Multiple main objects can have corresponding priorities respectively. When the types of main objects in the image are the same, the priorities of multiple main objects can be the same; when the image includes multiple different types of main objects, the priorities between different types of main objects can be different.
[0211] S1302. Crop the image to obtain multiple wallpaper images adapted to the respective screens according to the position of the subject in the image and the size information of the respective screens of the folding screen device; wherein the sizes of the respective screens are different, and the subject is included in any wallpaper image.
[0212] After identifying the main object in the image, the folding screen device can crop the image according to the position of the main object in the image, ensuring that each wallpaper image obtained by cropping includes the main object in the image. In one example, the cropped wallpaper image including the main object can refer to including target features of the main object, such as the complete features of the main object itself, or the complete features of the main part of the main object.
[0213] When a folding screen device crops the main object in an image, it can also crop according to the size information of each of its own screens, so that the size of each cropped wallpaper image can be adapted to one screen, that is, each cropped wallpaper image has the same aspect ratio as the adapted screen.
[0214] In a possible implementation of the embodiment of the present application, the folding screen device can determine the image containing the subject according to the position of the subject in the image. Specifically, the folding screen device can determine the center point of the subject according to the position of the subject in the image, and then determine the area in the image containing the complete features of the subject as the image area to be retained based on the determined center point. For example, Figure 5 As shown, the area where the main object 5011 in the image 501 is located is area 501a, and the area 501a can be used as the image area that needs to be retained when the folding screen device cuts the image 501.
[0215] Then, the folding screen device can crop the image according to the size information of each screen to obtain multiple wallpaper images adapted to each screen. Figure 5 By cropping image 501, wallpaper images 5011a and 5011b can be obtained, wherein wallpaper image 5011a is a wallpaper image adapted to screen 5021 of folding screen device 502, and wallpaper image 5011b is a wallpaper image adapted to screen 5022.
[0216] Generally, different types of folding screen devices have different folding methods. For example, some folding screen devices fold horizontally, while other folding screen devices fold vertically. Different folding methods may correspond to different cutting directions. Among them, the cutting direction corresponding to the horizontal folding may be vertical cutting, and the cutting direction corresponding to the vertical folding may be horizontal cutting.
[0217] Therefore, when cropping an image, the folding screen device can first determine its own folding method, and crop the image according to the cropping direction corresponding to the folding method to obtain multiple wallpaper images. Specifically, if the folding method of the folding screen device is horizontal, a wallpaper image with the same aspect ratio as the compatible screen can be cropped from the image in a vertical cropping manner; if the folding method of the folding screen device is vertical, a wallpaper image with the same aspect ratio as the compatible screen can be cropped from the image in a horizontal cropping manner.
[0218] In a possible implementation of an embodiment of the present application, the screen of a folding screen device includes a first screen and a second screen. For example, the first screen may be the outer screen of the folding screen device, and the second screen may be the inner screen of the folding screen device. The size of the first screen is usually smaller than that of the second screen. When cropping a wallpaper image for the first screen, it may be impossible to completely crop out the complete features of the subject due to the relatively small size of the first screen. Therefore, the folding screen device can determine the position of the main part of the subject in the image area, and then crop the image according to the size information of the first screen to obtain a first wallpaper image that includes the main part of the subject and is compatible with the first screen. Generally, the subject may include multiple parts, different subjects include different parts, and the priorities of different parts may also be different. When cropping the image to retain the main part of the subject, the main part may be the part with the highest priority. Exemplarily, if the subject is a person, then the face part may be the main part of the subject. For example, in Figure 5 In the figure, the main object 5011 is a person, and the corresponding main object part is the face of the person. The folding screen device image can be cropped to obtain a wallpaper image 5011a, which is an image that retains the face of the main object 5011.
[0219] In another possible implementation of the embodiment of the present application, the number of main objects in the image may also include multiple ones. For example, the image includes a first main object and a second main object, and the folding screen device may include a first screen and a second screen, and the size of the first screen is smaller than the size of the second screen. When cropping wallpaper images for each screen of the folding screen device, the folding screen device may respectively determine the priority of the first main object and the second main object. If the priority of the first main object is higher than the priority of the second main object, the folding screen device may crop the image to obtain a first wallpaper image adapted to the first screen and crop the image to obtain a second wallpaper image adapted to the second screen based on the position of the first main object in the image and the size information of each screen of the folding screen device. When cropping according to such a cropping scheme, the cropped first wallpaper image may include the first main object with the highest priority among multiple main objects. Exemplarily, in combination Figure 4The priorities of different subjects shown in , if the image contains both human and plant subjects, since the priority of human is higher than that of plant, when cutting the wallpaper image for the first screen, the first wallpaper image obtained should include the image of human. In one example, if the size of the first screen is small, the folding screen device cannot completely cut out the images of multiple subjects when cutting the image according to the size information of the first screen, for example, it cannot cut out the image containing both human and plant from the image according to the size information of the first screen, the folding screen device can only cut out the subject with the highest priority, the human, to obtain the first wallpaper image containing human. If the folding screen device can completely cut out the image containing multiple subjects when cutting the image according to the size information of the first screen, for example, it can cut out the image containing both human and plant from the image, the folding screen device can cut the human and plant to obtain the first wallpaper image containing human and plant. In this way, no matter which method is used for cutting, the first wallpaper image obtained can contain the first subject with the highest priority.
[0220] In the specific implementation process, the folding screen device can determine the first image area containing the first main object according to the position of the first main object in the image, and then crop the image according to the size information of the first screen to obtain a first wallpaper image containing the first image area, so that the cropped first wallpaper image has the same aspect ratio as the first screen.
[0221] In another possible implementation, the folding screen device can determine the proportional deviation between the size of the first screen and the size of the first image area. The proportional deviation can be used to indicate whether the size of the first screen matches the size of the first image area. If the proportional deviation is greater than the preset deviation value, it means that if the image is cropped according to the size of the first screen, the complete features of the first subject may not be included in the cropped first wallpaper image. At this time, the folding screen device can determine the position of the main part of the first subject in the first image area, and crop the first image area according to the size information of the first screen to obtain a first wallpaper image containing the main part of the first subject. That is, the folding screen device crops the first image area, and only retains the main features of the subject in the cropped first wallpaper image.
[0222] In another possible implementation of the embodiment of the present application, the number of first subjects may also include multiple subjects, that is, the number of subjects with the highest priority in the image includes multiple subjects. Exemplarily, the image contains multiple character images. At this time, the folding screen device can determine the first target subject from multiple first subjects according to the folding method; then, according to the position of the first target subject in the image, the area in the image containing the target feature of the first target subject is determined as the first image area to be retained. The above-mentioned area containing the target feature may be the area where the image that embodies the main features of the first target subject is located. The folding screen device cuts the image to obtain a first wallpaper image containing the above-mentioned target feature and adapted to the first screen. In an example, the folding method of the folding screen device is horizontal folding, and the folding screen device is adjusted from the folded state to the unfolded state from right to left. If multiple first subjects in the image are arranged side by side, the folding screen device can determine the first subject arranged side by side on the right as the first target subject. In this way, the cut first wallpaper image can only contain the subject arranged side by side on the right or the target feature of the subject, and the second wallpaper image can contain multiple subjects at the same time. When a user uses a folding screen device, during the process of adjusting the folding screen device from a folded state to an unfolded state, the main object in the wallpaper can be presented with an effect of changing from a single main object in the outer screen wallpaper to multiple main objects in the inner screen wallpaper, thereby enhancing the user experience.
[0223] For the second screen, the folding screen device can determine the second image area according to the positions of the first main object and the second main object in the image, so that the second image area includes the first main object and the second main object. Then, the folding screen device can crop the image according to the size information of the second screen to obtain a second wallpaper image including the second image area. The second wallpaper image has the same aspect ratio as the second screen.
[0224] S1303: Set each wallpaper image as the wallpaper of the corresponding screen.
[0225] After cropping the wallpaper images that are adapted to each screen, the folding screen device can set each wallpaper image as the wallpaper of the adapted screen. Figure 5 The wallpaper image 5011a is set as the wallpaper of the corresponding screen 5021, and the wallpaper image 5011b is set as the wallpaper of the corresponding screen 5022.
[0226] In a possible implementation of an embodiment of the present application, after the folding screen device cuts out the wallpaper images for each screen, it can also preview each wallpaper image on the corresponding screen, so that the user can view the effect of the wallpaper setting and adjust the wallpaper image. The user's adjustment of the wallpaper image can be achieved through interactive instructions on each screen. When the folding screen device receives an interactive instruction for any previewed wallpaper image, the previewed wallpaper image can be adjusted according to the interactive instruction. These adjustments may include moving the position of the wallpaper image, scaling the size, deleting characters in the wallpaper image, and so on. After the adjustment is completed, the folding screen device can set the adjusted wallpaper images as the wallpaper of the corresponding screen, and complete the setting of wallpapers for multiple screens with one click.
[0227] The embodiment of the present application can obtain multiple wallpaper images by identifying the main object in the image, and then cropping the image according to the position of the main object in the image and the size information of each screen of the folding screen device. Since each wallpaper image is obtained by cropping the main object in the image according to the size information of a certain screen, it can not only ensure that the cropped wallpaper image contains the main object in the original image, but also make the size information of each wallpaper image match the size information of the corresponding screen. The embodiment of the present application can solve the problem in the prior art that it is easy to destroy the integrity of the main object in the image by cropping along the middle of the image for screens of any size information, reduce the possibility of large differences in the final effects of the wallpaper image on the inner and outer screens, and improve the aesthetics and uniformity of the screen wallpaper of the folding screen device.
[0228] The embodiment of the present application can divide the functional modules of the folding screen device according to the above method example. For example, each functional module can be divided corresponding to each function, or one or more functions can be integrated into one functional module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical functional division. There may be other division methods in actual implementation. The following is an example of dividing each functional module corresponding to each function.
[0229] Corresponding to the above embodiments, refer to Fig.14 , shows a structural block diagram of a wallpaper setting device for a folding screen device provided in an embodiment of the present application, the device can be applied to the folding screen devices in the aforementioned embodiments, and the device can specifically include the following modules: an identification module 1401, a cropping module 1402 and a setting module 1403, wherein:
[0230] The recognition module 1401 is used to recognize the main object in the image.
[0231] The cropping module 1402 is used to crop the image according to the position of the main object in the image and the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen; wherein the size information of each screen is different, and the main object is included in any wallpaper image.
[0232] The setting module 1403 is used to set each wallpaper image as the wallpaper of the corresponding screen.
[0233] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0234] An embodiment of the present application also provides a folding screen device, which may be the folding screen device in each embodiment. The folding screen device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the wallpaper setting method of the folding screen device in the aforementioned embodiments may be implemented.
[0235] An embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions. When the computer instructions are executed on a folding screen device, the folding screen device executes the above-mentioned related method steps to implement the wallpaper setting method of the folding screen device in the aforementioned embodiments.
[0236] An embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer executes the above-mentioned related steps to implement the wallpaper setting method of the folding screen device in the aforementioned embodiments.
[0237] The embodiment of the present application further provides a chip, which may be a processor, or the chip includes a processor. The processor may be a general-purpose processor or a dedicated processor; wherein the processor is used to support the folding screen device to execute the above-mentioned related steps to implement the wallpaper setting method of the folding screen device in the above-mentioned embodiments.
[0238] Optionally, the chip also includes a transceiver, which is used to accept the control of the processor and support the folding screen device to execute the above-mentioned related steps to implement the wallpaper setting method of the folding screen device in the aforementioned embodiments.
[0239] Optionally, the chip may also include a storage medium.
[0240] The chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits that can perform the various functions described throughout this application.
[0241] Finally, it should be noted that the above is only a specific implementation method of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A method for setting wallpaper for a folding screen device, characterized in that: include: Identify the subject in the image; According to the position of the subject in the image and the size information of each screen of the folding screen device, the image is cropped to obtain a plurality of wallpaper images adapted to each screen; wherein the size information of each screen is different, and any of the wallpaper images includes the subject; Each of the wallpaper images is set as the wallpaper of the corresponding screen.
2. The method according to claim 1, characterized in that The step of cropping the image to obtain a plurality of wallpaper images adapted to each screen according to the position of the subject in the image and the size information of each screen of the folding screen device includes: Determining, according to the position of the subject in the image, an image region in the image that contains the subject; The image is cropped according to the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen, and any of the wallpaper images at least includes the main object in the image area.
3. The method according to claim 2, characterized in that The step of cropping the image according to the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen includes: Determine a folding mode of the folding screen device, where the folding mode includes horizontal folding or vertical folding, and any of the folding modes corresponds to a cutting direction; The image is cropped according to the cropping direction corresponding to the folding method to obtain a plurality of wallpaper images, wherein each wallpaper image obtained by cropping has the same aspect ratio as the corresponding screen.
4. The method according to claim 3, characterized in that The step of cutting the image according to the cutting direction corresponding to the folding method to obtain a plurality of wallpaper images includes: If the folding mode of the folding screen device is horizontal folding, a wallpaper image having the same aspect ratio as the adapted screen is cut out from the image in a vertical cutting manner; If the folding mode of the folding screen device is vertical folding, a wallpaper image having the same aspect ratio as the corresponding screen is cut out from the image in a horizontal cutting manner.
5. The method according to any one of claims 1 to 4, characterized in that: The screens of the folding screen device include a first screen whose size information is smaller than a preset value, and the image is cropped according to the position of the subject in the image and the size information of the screens of the folding screen device to obtain multiple wallpaper images adapted to the screens, further comprising: Determine the position of the main part of the main object in the image; The image is cropped according to the size information of the first screen to obtain a first wallpaper image that includes the main part of the main object and is compatible with the first screen.
6. The method according to claim 5, characterized in that The main object includes multiple parts, different parts have different priorities, and the main part has the highest priority.
7. The method according to any one of claims 1 to 6, characterized in that: After identifying the subject in the image, it also includes: Determine the center point of the subject; Based on the center point, a region in the image containing the target features of the main object is determined as an image region that needs to be retained.
8. The method according to claim 7, characterized in that After determining, based on the center point, a region in the image containing the target feature of the subject as an image region to be retained, the method further includes: Displaying prompt box information for the image area that needs to be retained on any screen of the folding screen device, wherein the prompt box information is used to prompt adjustment of the image area that needs to be retained; When an operation for the prompt box information is received, the size and / or position of the image area to be retained is adjusted according to the operation.
9. The method according to claim 1, characterized in that: The subject object includes a first subject object and a second subject object, the folding screen device includes a first screen and a second screen, the size of the first screen is smaller than the size of the second screen, and the image is cropped according to the position of the subject object in the image and the size information of each screen of the folding screen device to obtain multiple wallpaper images adapted to each screen, including: respectively determining the priorities of the first subject and the second subject; When the priority of the first subject is higher than that of the second subject, the image is cropped to obtain a first wallpaper image adapted to the first screen according to the position of the first subject in the image and the size information of each screen of the folding screen device, and the image is cropped to obtain a second wallpaper image adapted to the second screen; wherein the first wallpaper image includes the first subject.
10. The method according to claim 9, characterized in that The step of cropping the image to obtain a first wallpaper image adapted to the first screen according to the position of the first main object in the image and the size information of each screen of the folding screen device includes: Determining a first image region including the first subject according to a position of the first subject in the image; The image is cropped according to the size information of the first screen to obtain a first wallpaper image including the first image area, wherein the first wallpaper image has the same aspect ratio as the first screen.
11. The method according to claim 10, characterized in that The step of cutting the image according to the size information of the first screen to obtain a first wallpaper image including the first image area includes: Determining a ratio deviation between a size of the first screen and a size of the first image area; If the proportion deviation is greater than a preset deviation value, the position of the main part of the first subject in the first image area is determined; the first image area is cropped according to the size information of the first screen to obtain a first wallpaper image including the main part of the first subject.
12. The method according to claim 10 or 11, characterized in that: The number of the first subject objects includes a plurality, and determining a first image region including the first subject object according to a position of the first subject object in the image includes: Determining a first target main object from a plurality of first main objects according to a folding manner of the folding screen device; According to the position of the first target main object in the image, a region in the image containing target features of the first target main object is determined as a first image region that needs to be retained.
13. The method according to any one of claims 9 to 12, characterized in that: The step of cutting the image to obtain a second wallpaper image adapted to the second screen includes: Determine a second image region according to positions of the first subject and the second subject in the image, wherein the second image region includes the first subject and the second subject; The image is cropped according to the size information of the second screen to obtain a second wallpaper image including the second image area, wherein the second wallpaper image and the second screen have the same aspect ratio.
14. The method according to any one of claims 1 to 13, characterized in that: The step of setting each of the wallpaper images as wallpaper of a corresponding screen comprises: Previewing each of the wallpaper images on a corresponding screen respectively; When receiving an interaction instruction for any of the previewed wallpaper images, adjusting the previewed wallpaper image according to the interaction instruction; The adjusted wallpaper images are set as wallpapers of the corresponding screens.
15. A folding screen device, comprising a plurality of screens, each of which has a different resolution, and further comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the wallpaper setting method for the folding screen device as described in any one of claims 1 to 14 is implemented.
16. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a memory and a processor, and the processor executes a computer program stored in the memory to implement the wallpaper setting method for a folding screen device as described in any one of claims 1 to 14.
Citation Information
Cited By
Wallpaper setting method for foldable screen device and foldable screen device
EP4746390A1
Wallpaper setting method for foldable screen device and foldable screen device
WO2025092343A1