Image processing method and device, electronic equipment and computer program product
By adjusting and filling the wallpaper image, the problem of incomplete wallpaper content and poor display effect between different display interfaces is solved, and the wallpaper content and good display effect of the second display interface is achieved, which improves the user experience.
Patent Information
- Application Number
- CN202410123757.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-29
- Publication Date
- 2025-07-29
AI Technical Summary
When switching wallpapers between different display interfaces of electronic devices, it is difficult to ensure that the wallpaper content of the second display interface is complete and the display effect is good, resulting in poor user experience.
By obtaining the wallpaper image of the first display interface, adjusting it based on the display interface information of the second display interface, a second image with the same content is obtained, and filling is performed under different sizes to obtain a third image, and finally setting it as a wallpaper of the second display interface.
Ensure that the wallpaper content of the second display interface is complete, the display effect is good, and the user experience is enhanced.
Smart Images

Figure CN120386579A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to image processing, but is not limited to the field of image processing. In particular, it relates to an image processing method, apparatus, electronic device, storage medium, and computer program product. Background Art
[0002] In the related art, in the case where an electronic device includes a first display interface and a second display interface with different sizes, the wallpaper of the second display interface can be set based on the wallpaper of the first display interface. However, in the related art, when the wallpaper of the first display interface is set, it is often difficult to ensure that the wallpaper of the second display interface has all the contents of the wallpaper of the first display interface and that the display effect of the wallpaper of the second display interface is good. Thus, when setting the wallpaper of the second display interface based on the wallpaper of the first display interface, it is difficult to ensure that the content of the wallpaper of the second display interface is complete and that the display effect of the wallpaper of the second display interface is good, resulting in a poor user experience. Summary of the Invention
[0003] To overcome the problems existing in the related art, embodiments of the present disclosure disclose an image processing method, apparatus, electronic device, storage medium, and computer program product to solve the problem of how to ensure a good display effect of the wallpaper of the second display interface on the premise of ensuring the integrity of the content of the wallpaper of the second display interface.
[0004] According to a first aspect of an embodiment of the present disclosure, there is provided an image processing method, characterized in that the method includes:
[0005] Obtain a first image set as the wallpaper of the first display interface of an electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different;
[0006] Adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image contents in the first image and the second image are the same;
[0007] In the case where the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image;
[0008] Set the third image as the wallpaper of the second display interface.
[0009] In some embodiments, the display interface information of the second display interface includes: the size of the second display interface;
[0010] Adjusting the first image based on the display interface information of the second display interface to obtain a second image includes:
[0011] Adjust the size and / or resolution of the first image based on the size of the first display interface and the size of the second display interface to obtain a second image.
[0012] In some embodiments, adjusting the first image based on the size of the first display interface and the size of the second display interface to obtain a second image includes:
[0013] When the length of any side of the first display interface is greater than the length of the corresponding side of the second display interface, proportionally reduce the size of the first image to obtain a second image;
[0014] And / or,
[0015] When the lengths of all sides of the first display interface are not greater than the lengths of the corresponding sides of the second display interface, adjust the resolution of the first image based on the resolution of the second display interface to obtain a second image.
[0016] In some embodiments, the method further includes:
[0017] Adjust the obtained fourth image based on the detected adjustment operation for the first display interface to obtain a fifth image;
[0018] When the size of the fifth image is different from the size of the first display interface, perform a filling process on the fifth image based on the image features of the fourth image to obtain the first image;
[0019] Set the first image as the wallpaper of the first display interface.
[0020] In some embodiments, the method further includes:
[0021] When setting the first image as the wallpaper of the first display interface, store the first image according to the first path;
[0022] Obtaining the first image set as the wallpaper of the first display interface of the electronic device includes:
[0023] Obtain the first image based on the first path.
[0024] In some embodiments, the method further includes:
[0025] When setting the first image as the wallpaper of the first display interface, store the fourth image and the operation parameters for converting the fourth image into the first image according to the second path;
[0026] Obtaining the first image set as the wallpaper of the first display interface of the electronic device includes:
[0027] Obtain the fourth image and the operation parameters based on the second path.
[0028] Process the fourth image based on operation parameters to obtain a first image.
[0029] In some embodiments, when the size of the fifth image is different from the size of the first display interface, perform a filling process on the fifth image based on the image features of the fourth image to obtain a first image, including:
[0030] When the size of the fifth image is different from the size of the first display interface, display a first control;
[0031] When a touch operation on the first control is detected, perform a filling process on the fifth image based on the image features of the fourth image to obtain a first image.
[0032] In some embodiments, the method further includes:
[0033] When the size of the fifth image is the same as the size of the first display interface, display a second control;
[0034] When a touch operation on the second control is detected, set the fifth image as the wallpaper of the first display interface.
[0035] According to a second aspect of embodiments of the present disclosure, there is provided an image processing apparatus, the apparatus includes:
[0036] An acquisition module configured to acquire a first image set as the wallpaper of a first display interface of an electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different;
[0037] An adjustment module configured to adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same;
[0038] A processing module configured to, when the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image;
[0039] A setting module configured to set the third image as the wallpaper of the second display interface.
[0040] According to a third aspect of embodiments of the present disclosure, there is provided an electronic device, including:
[0041] A processor;
[0042] A memory for storing computer programs or instructions;
[0043] Among them, the processor executes computer programs or instructions to implement the steps of any one of the image processing methods in the present disclosure.
[0044] According to a fourth aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided. The storage medium stores computer programs or instructions. When the computer programs or instructions in the storage medium are executed by a processor, the steps of any one of the image processing methods in the present disclosure are implemented.
[0045] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, including computer programs or instructions. When the computer programs or instructions are executed by a processor, the steps of any one of the image processing methods in the present disclosure are implemented.
[0046] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
[0047] In the embodiments of the present disclosure, a first image set as the wallpaper of a first display interface of an electronic device is obtained; wherein the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; the first image is adjusted based on the display interface information of the second display interface to obtain a second image; wherein the image content in the first image and the second image is the same; in the case where the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image to obtain a third image; the third image is set as the wallpaper of the second display interface.
[0048] Here, since in the case of obtaining a third image set as the wallpaper of the second display interface based on the first image set as the wallpaper of the first display interface of the electronic device, the first image is adjusted based on the display interface information of the second display interface to obtain a second image with the same image content as the first image, and in the case where the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image and / or the second image to obtain a third image. Therefore, on the one hand, all the image content of the wallpaper of the first display interface can be saved in the wallpaper of the second display interface. In this way, the integrity of the wallpaper of the second display interface can be ensured. On the other hand, in the case where the size of the second image is different from the size of the second display interface, only by filling the second image based on the image features of the first image and / or the second image, without enlarging the second image, the size of the second image can meet the display requirements of the second display interface and ensure that the wallpaper style of the second display interface is highly consistent with the wallpaper style of the first display interface. In this way, the display effect of the wallpaper of the second display interface can be ensured to be good. Description of the Drawings
[0049] The accompanying drawings here are incorporated into the specification and constitute a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0050] Figure 1 It is a schematic flowchart of an image processing method shown according to an exemplary embodiment.
[0051] Figure 2 It is a schematic flowchart of an image processing method shown according to an exemplary embodiment.
[0052] Figure 3 It is a schematic flowchart of an image processing method shown according to an exemplary embodiment.
[0053] Figure 4 It is a schematic structural diagram of an image processing apparatus shown according to an exemplary embodiment.
[0054] Figure 5 It is a schematic structural diagram of an electronic device shown according to an exemplary embodiment. Detailed implementation manners
[0055] In order to make the objectives, technical solutions, and advantages of the present disclosure clearer, the present disclosure will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limitations on the present disclosure. All other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present disclosure.
[0056] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments. However, it can be understood that "some embodiments" can be the same subset or different subsets of all possible embodiments, and can be combined with each other without conflict.
[0057] In the following description, the terms "first / second / third" are used to distinguish similar objects and do not represent a specific order for the objects. It can be understood that "first / second / third" can be interchanged with a specific order or sequence when allowed, so that the embodiments of the present disclosure described here can be implemented in an order other than that illustrated or described here.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this disclosure belongs. The terms used herein are only for the purpose of describing the embodiments of the present disclosure and are not intended to limit the present disclosure.
[0059] To better understand the embodiments of the present disclosure, some application scenarios in the related art are described below:
[0060] In some embodiments, the wallpaper can be set through an application program, which can be configured to provide picture resources to be selected for the user to set the wallpaper. The fourth image obtained from the picture resources can be adjusted based on the adjustment operation of the user on the first display interface of the electronic device to obtain a preview wallpaper. When the user determines to set the preview wallpaper as the wallpaper of the first display interface, the preview wallpaper is processed based on the resolution of the first display interface to obtain the first image set as the wallpaper of the first display interface. Based on the display interface information of the first display interface, first information is generated and stored at the system end of the electronic device; the first information includes at least one of the following information: cropping information for cropping the first image, the first image, the access path for accessing the first image, the size of the first display interface, and the size of the second display interface. A communication connection can be established between the application program and the system end of the electronic device; the first information is obtained from the system end based on the link; if the size of the first display interface of the electronic device is larger than the size of the second display interface, the first image is enlarged until the first image fills the entire second display interface to obtain the wallpaper of the second display interface; or, if the size of the first display interface of the electronic device is larger than the size of the second display interface, the first image is cropped based on the cropping information until the size of the first image is the same as the size of the second display interface to obtain the wallpaper of the second display interface.
[0061] Here, on the one hand, if the size of the first display interface of the electronic device is smaller than the size of the second display interface, the first image is enlarged until the first image fills the entire second display interface to obtain the wallpaper of the second display interface. Here, the obtained wallpaper of the second display interface will be blurred due to the enlargement process, and the display effect of the wallpaper of the second display interface is poor. On the other hand, if the size of the first display interface of the electronic device is larger than the size of the second display interface, the first image is cropped based on the cropping information until the size of the first image is the same as the size of the second display interface to obtain the wallpaper of the second display interface. Here, the obtained wallpaper of the second display interface cannot contain all the content of the first image, and the image content of the wallpaper of the second display interface will be lost due to the cropping of the first image, and the display effect of the wallpaper of the second display interface is poor.
[0062] Based on this, as Figure 1 shown, an embodiment of the present disclosure provides an image processing method, and the method includes:
[0063] Step S11, obtaining a first image set as the wallpaper of the first display interface of the electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different;
[0064] Step S12: Adjust the first image based on the display interface information of the second display interface to obtain a second image. The image content in the first image and the second image is the same.
[0065] Step S13: When the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image.
[0066] Step S14: Set the third image as the wallpaper of the second display interface.
[0067] In some embodiments, any image processing method in the present disclosure can be applied to an electronic device. The electronic device may include, but is not limited to, a mobile communication terminal, a portable entertainment device, a wearable device, a household appliance, and a dedicated device. Among them, the mobile communication terminal may include, but is not limited to, a vehicle-mounted terminal, a mobile phone, a tablet computer, and a smart watch, etc.; the portable entertainment device may include, but is not limited to, an audio player; the wearable device may include, but is not limited to, a smart watch and a smart bracelet; the household appliance may include, but is not limited to, a television, a refrigerator, an air purifier, a humidifier, and a washing machine; the dedicated device includes, but is not limited to, an electronic game console.
[0068] In some embodiments, the first display interface and the second display interface may be the display interfaces of the same screen of the electronic device in the portrait state and the landscape state, respectively. For example, the first display interface may be the display interface of the electronic device in the portrait state, and the second display interface may be the display interface of the electronic device in the landscape state; or, the first display interface may be the display interface of the electronic device in the landscape state, and the second display interface may be the display interface of the electronic device in the portrait state.
[0069] In some embodiments, the electronic device may be a device with two screens. The first display interface and the second display interface may be the display interfaces displayed on different screens of the electronic device. The sizes of different screens may be different.
[0070] Exemplarily, the electronic device may be a vehicle-mounted terminal, and the vehicle-mounted terminal may include two in-vehicle screens. The first display interface and the second display interface may be the display interfaces displayed on different in-vehicle screens of the electronic device. For example, the two in-vehicle screens may be a central control screen and an extended screen respectively. The first display interface may be the display interface on the central control screen, and the second display interface may be the display interface on the extended screen; or, the first display interface may be the display interface on the extended screen, and the second display interface may be the display interface on the central control screen. The sizes of different in-vehicle screens may be different. Any image processing method in the present disclosure can be applied to this vehicle-mounted terminal.
[0071] Exemplarily, the screen of the electronic device may be a foldable screen, which can form two screens with different sizes before and after folding. The first display interface and the second display interface may be the display interfaces on the screen formed before folding of the foldable screen and the screen formed after folding of the foldable screen, respectively. For example, the foldable screen may include a first screen and a second screen. The first screen may be the display screen formed before folding of the foldable screen, that is, the first screen may be the display screen formed after the foldable screen is unfolded; the second screen may be the display screen formed after the foldable screen is folded. Alternatively, the first screen may be the display screen formed after the foldable screen is folded, and the second screen may be the display screen formed after the foldable screen is unfolded. The sizes of the first screen and the second screen may be different. The first display interface and the second display interface may be the display interfaces on the first screen and the second screen, respectively.
[0072] Exemplarily, the electronic device may be a non-foldable screen with two screens. For example, the electronic device may be a double-sided screen, which has two display screens independently arranged on the electronic device.
[0073] In some embodiments, that the sizes of the first display interface and the second display interface are different may mean that at least one side length of the first display interface is different from the corresponding side length of the second display interface. Exemplarily, the length of the first display interface is different from the length of the second display interface, and / or the width of the first display interface is different from the width of the second display interface.
[0074] In the present disclosure, after obtaining the first image of the wallpaper set for the first display interface of the electronic device, the first image may be adjusted based on the display interface information of the second display interface to obtain a second image. It should be noted that the specific manner of adjusting the first image may not be limited in the present disclosure, and it is only necessary to ensure that the second image obtained after adjusting the first image can have all the image contents in the first image.
[0075] In some embodiments, the display interface information of the second display interface may include at least one of the following: the size of the second display interface and the display parameters of the second display interface. The display parameters may include at least one of the following: brightness, color gamut, resolution, contrast, and saturation.
[0076] In some embodiments, adjusting the first image based on the display interface information of the second display interface includes at least one of the following:
[0077] Adjusting the size of the first image based on the display interface information of the second display interface;
[0078] Adjusting the display position of the first image in the second display interface based on the display interface information of the second display interface;
[0079] Adjust the display parameters of the first image based on the display interface information of the second display interface.
[0080] In some embodiments, adjusting the display position of the first image in the second display interface may mean adjusting the display position of the first image to the center position of the second display interface to center the display of the first image in the second display interface. Alternatively, it may mean adjusting the display position of the first image to the boundary of the second display interface to display the first image along the edge in the second display interface. It can be understood that displaying the first image along the edge in the second display interface may mean that at least one side of the first image coincides with at least one side of the second display interface when the first image is displayed in the second display interface.
[0081] In some embodiments, it may be in the case where the display screen of the electronic device is switched from the first display interface to the second display interface, and obtain the first image set as the wallpaper of the first display interface of the electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; based on the display interface information of the second display interface, adjust at least one of the size, display position in the second display interface, and display parameters of the first image to obtain a second image; wherein, the image content in the first image and the second image is the same; in the case where the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image; set the third image as the wallpaper of the second display interface.
[0082] In some embodiments, the third image may be stored according to the third path when the third image is obtained.
[0083] In some embodiments, in the case where the display screen of the electronic device is switched from the first display interface to the second display interface, obtain the third image based on the third path and set the third image as the wallpaper of the second display interface.
[0084] In some embodiments, when the third image is obtained, a first data object may be generated; the first data object encapsulates at least one of the following information: the first image, the third path, the operation parameters for converting the first image into the third image, the display interface information of the first display interface, and the display interface information of the second display interface.
[0085] In some embodiments, in the case where the display screen of the electronic device is switched from the first display interface to the second display interface, the third image may be obtained based on the first data object and the third image may be set as the wallpaper of the second display interface.
[0086] In some embodiments, the first image may be adjusted based on the display parameters of the second display interface to obtain a second image; the display effect parameters of the second image are the same as the display parameters of the second display interface. The display effect parameters of the second image may include at least one of the following: brightness, color gamut, resolution, contrast, and saturation.
[0087] In some embodiments, when the resolution of the first display interface is less than the resolution of the second display interface, the resolution of the first image may be adjusted based on the resolution of the second display interface to obtain a second image; wherein, the resolution of the second image may be greater than the resolution of the first image. In this way, the clarity of the second image can be ensured and the display effect of the second image can be ensured.
[0088] In some embodiments, when the resolution of the first display interface is greater than or equal to the resolution of the second display interface, the resolution of the second image may not be adjusted. In this way, when the resolution of the second image is not less than the resolution of the first image, the adjustment operation of the second image can be simplified and the display effect of the first image can be ensured.
[0089] In some embodiments, when the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image and / or the second image to obtain a third image; the first control and the second control are displayed; when a touch operation on the second control is detected, the third image is set as the wallpaper of the second display interface. Alternatively, when a touch operation on the first control is detected, the image content of the third image is adjusted based on the image features of the first image and / or the second image until a touch operation on the second control is detected, and the updated third image is set as the wallpaper of the second display interface. The first control may be a text control or a button control. The first control may be used to trigger the electronic device to continue to adjust the image content of the third image based on the image features of the first image and / or the second image. The second control may be a text control or a button control. The second control may be used to trigger the electronic device to stop adjusting the content of the third image based on the image features of the first image and / or the second image and set the latest obtained third image as the wallpaper of the second display interface.
[0090] Here, while ensuring that the image style of the third image is the same as that of the first image, it is possible to adapt to the user's needs to not update the third image or continue to update the third image based on the operation of the user on the first control or the second control, so as to obtain a third image that the user is satisfied with and set the third image that the user is satisfied with as the wallpaper of the second display interface. In this way, while ensuring a good display effect of the wallpaper of the second display interface, the user experience is ensured to be good.
[0091] In some embodiments, image features may be extracted from the first image and / or the second image; wherein, the image features are used to characterize the main content and / or the image style of the first image. The second image may be filled based on the main content and / or the image style of the first image to obtain a third image, and the third image may be set as the wallpaper of the second display interface. It can be understood that the main content and / or the image style of the third image may be consistent with the main content and / or the image style of the first image. The third image may include all the content of the first image, and the third image may also include image content other than the first image.
[0092] In some embodiments, when the size of the second image is different from the size of the second display interface, the second image may be filled based on the image features of the first image and / or the second image to obtain a third image; the size of the third image is the same as the size of the second display interface. Exemplarily, the second image may be displayed in the second display interface, and the blank display area in the second display interface other than the second image may be filled based on the image features of the first image and / or the second image to obtain a third image.
[0093] In some embodiments, the first image may be input into a predetermined algorithm model to obtain a third image.
[0094] In some embodiments, the predetermined algorithm model may be a pre-trained algorithm model, and the predetermined algorithm model may be used to adjust the first image based on the display interface information of the second display interface to obtain a second image. When the size of the second image is different from the size of the second display interface, the second image may be filled based on the image features of the first image and / or the second image to obtain a third image. Here, by inputting the first image into the pre-trained predetermined algorithm model, the first image can be processed quickly to obtain the third image. In this way, the efficiency of obtaining the third image can be improved. In some embodiments, the first image is adjusted based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same; when the size of the second image is different from the size of the second display interface, the image features of the first image and / or the second image and the second image may be input into the predetermined algorithm model to obtain a third image.
[0095] In some embodiments, the predetermined algorithm model may fill the image input into the predetermined algorithm model based on the image features of the input image to obtain a processed image.
[0096] In an embodiment of the present disclosure, a first image set as the wallpaper of a first display interface of an electronic device is obtained; wherein the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; the first image is adjusted based on the display interface information of the second display interface to obtain a second image; wherein the image content in the first image and the second image is the same; in the case where the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image and / or the second image to obtain a third image; the third image is set as the wallpaper of the second display interface.
[0097] Here, in the case of obtaining a third image set as the wallpaper of the second display interface based on the first image set as the wallpaper of the first display interface of the electronic device, the first image is adjusted based on the display interface information of the second display interface to obtain a second image with the same image content as the first image, and in the case where the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image and / or the second image to obtain a third image. Therefore, on the one hand, all the image content of the wallpaper of the first display interface can be preserved in the wallpaper of the second display interface. Thus, the integrity of the wallpaper of the second display interface can be ensured. On the other hand, in the case where the size of the second image is different from the size of the second display interface, only the second image needs to be filled based on the image features of the first image and / or the second image, without enlarging the second image, so that the size of the second image can meet the display requirements of the second display interface and ensure that the wallpaper style of the second display interface is highly consistent with the wallpaper style of the first display interface. Thus, the display effect of the wallpaper of the second display interface can be ensured.
[0098] In some embodiments, the display interface information of the second display interface includes: the size of the second display interface;
[0099] Adjusting the first image based on the display interface information of the second display interface to obtain a second image includes:
[0100] Based on the size of the first display interface and the size of the second display interface, the size and / or resolution of the first image is adjusted to obtain a second image.
[0101] In some embodiments, based on the size of the first display interface and the size of the second display interface, the size of the first image is adjusted to obtain a second image. When the size of the second image is the same as the size of the second display interface, the second image can be set as the wallpaper of the second display interface. Alternatively, when the size of the second image is different from the size of the second display interface, a filling process is performed on the second image based on the image features of the first image to obtain a third image. The third image is set as the wallpaper of the second display interface.
[0102] Here, on the one hand, when the size of the second image is the same as the size of the second display interface, there is no need to perform further filling processing on the second image. While ensuring that the display effects of the wallpapers of the second display interface and the first display interface are similar, the processing operation of the first image is simplified. In this way, while ensuring a good display effect of the wallpaper of the second display interface, the efficiency of obtaining the wallpaper of the second display interface can be improved. On the other hand, when the size of the second image is different from the size of the second display interface, the second image can be further filled based on the image features of the first image and / or the second image to obtain a third image, so that the size of the third image can be the same as the size of the second display interface, and the image features of the image set as the wallpaper of the second display interface can adapt to the image features of the first image set as the wallpaper of the first display interface. Compared with the method of directly enlarging the second image so that its size is the same as that of the second display interface, resulting in a poor display effect of the enlarged second image, in the embodiments of the present disclosure, there is no need to enlarge the second image, and only the image content of the second image needs to be supplemented based on the image features of the first image and / or the second image to increase the size of the second image. In this way, a good display effect of the wallpaper of the second display interface can be ensured.
[0103] In some embodiments, the second image can be stored according to a fourth path, and / or the third image can be stored according to a fifth path.
[0104] In some embodiments, when the size of the second image is different from the size of the second display interface, a first control may be displayed; when a touch operation on the first control is detected, the second image is filled based on the image features of the first image and / or the second image to obtain a third image. Here, when the size of the second image does not meet the requirements, it is adapted to the touch operation of the user on the first control, and the second image is filled based on the image features of the first image and / or the second image to obtain a third image, so that both the size and the image features of the third image can meet the user's needs. In this way, when the third image is set as the wallpaper of the second display interface, it can be ensured that the wallpaper of the second display interface is similar in style to the wallpaper of the first display interface, and the display effect of the wallpaper of the second display interface is good, and the user experience is good.
[0105] In some embodiments, when the size of the second image is the same as the size of the second display interface, a second control is displayed; when a touch operation on the second control is detected, the second image is set as the wallpaper of the second display interface.
[0106] In some embodiments, when the second image is obtained, the first control and the second control may be displayed; when a touch operation on the first control is detected, the second image is filled based on the image features of the first image until a touch operation on the second control is detected, to obtain a third image. Here, when a touch operation on the first control is detected, the second image is continuously fine-tuned based on the image features of the first image until the user is satisfied and a touch operation on the second control is performed. In this way, it can be ensured that the finally obtained third image can meet the user's needs and ensure a good user experience.
[0107] In some embodiments, when the size of the first display interface is larger than the size of the second display interface, the first image is scaled down proportionally to obtain a second image; wherein, the size of the scaled-down second image is less than or equal to the size of the second display interface. Here, when the size of the first display interface is larger than the size of the second display interface, that is, when the size of the first image is larger than the size of the second display interface, compared with the method of directly cropping the first image to reduce its size, the embodiments of the present disclosure do not crop the first image, but perform a proportional reduction process on the first image. In this way, it can be ensured that the second image can have all the image contents of the first image and ensure the integrity of the image contents of the first image.
[0108] In some embodiments, when the size of the first display interface is smaller than that of the second display interface, the size of the first image may not be adjusted. Here, when the size of the first display interface is smaller than that of the second display interface, that is, when the size of the first image is smaller than that of the second display interface, the adjustment operation of the first image can be simplified.
[0109] In some embodiments, when the size of the first display interface is smaller than that of the second display interface, the resolution of the first image is adjusted based on the resolution of the second display interface to obtain a second image. Among them, the resolution of the second image is greater than or equal to that of the first image. Here, since the resolution of the second image is greater than or equal to that of the first image, it can be ensured that the clarity of the second image is not lower than that of the first image, and the display effect of the second image can be ensured to be good.
[0110] In the embodiments of the present disclosure, since the size and / or resolution of the first image are adjusted based on the size of the first display interface and the size of the second display interface to obtain a second image, when the size and / or resolution of the first image do not meet the requirements, the size and / or resolution of the first image can be accurately adjusted according to the size of the first display interface and the size of the second display interface to obtain a second image with the size and / or resolution meeting the requirements. In this way, it can be ensured that the adjustment effect of the first image is good.
[0111] In some embodiments, adjusting the first image based on the size of the first display interface and the size of the second display interface to obtain a second image includes:
[0112] When the length of any side of the first display interface is greater than the length of the corresponding side of the second display interface, the size of the first image is reduced proportionally to obtain a second image;
[0113] and / or,
[0114] When the lengths of all sides of the first display interface are not greater than the lengths of the corresponding sides of the second display interface, the resolution of the first image is adjusted based on the resolution of the second display interface to obtain a second image.
[0115] In some embodiments, when the length of any side of the first display interface is greater than the length of the corresponding side of the second display interface, the size of the first image can be reduced proportionally based on the size of the second display interface until the length of any side of the first image is not greater than the length of the corresponding side of the second display interface to obtain a second image. When the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image and / or the second image to obtain a third image; the third image is set as the wallpaper of the second display interface.
[0116] Exemplarily, the first image is a wallpaper image displayed in the first display interface, and the image content of the first image can be Figure 2 the content represented by the smiling face in []. The third image is the smiling face and stars displayed in the second display interface. When any side length of the first display interface is greater than the corresponding side length of the second display interface, the first image can be proportionally reduced based on the size of the second display interface until all the image content of the first image can be displayed in the second display interface. When the size of the second image is different from the size of the second display interface, the second image is filled based on the image features of the first image and / or the second image to obtain the third image; the third image is set as the wallpaper of the second display interface. The image content filled in the second image can be Figure 2 the content represented by the star in [].
[0117] In some embodiments, each side of the first image can be proportionally reduced based on a predetermined ratio to obtain the second image. The predetermined ratio can be a ratio preset by the user, or the predetermined ratio can be a ratio determined based on the ratio of the side length of the first display interface to the corresponding side length of the second display interface.
[0118] In some embodiments, the ratio of all side lengths of the first display interface to the corresponding side lengths of the second display interface can be determined to obtain candidate ratios; the predetermined ratio can be determined based on the largest ratio among the candidate ratios.
[0119] In the embodiments of the present disclosure, when any side length of the first display interface is greater than the corresponding side length of the second display interface, since the size of the first image is proportionally reduced to obtain the second image, compared with the method of directly cropping the first image to reduce its size, the embodiments of the present disclosure do not crop the first image, but perform a proportional reduction process on the first image to obtain the second image. In this way, it can be ensured that the second image can have all the image content of the first image, ensuring the integrity of the image content of the first image, and it can be ensured that the first image will not be deformed during the reduction process, ensuring that the obtained second image has a good display effect.
[0120] In some embodiments, when all side lengths of the first display interface are not greater than the corresponding side lengths of the second display interface, the size of the first image can be not adjusted. In this way, the adjustment operation of the first image can be simplified.
[0121] In some embodiments, when all side lengths of the first display interface are not greater than the corresponding side lengths of the second display interface, the size of the first image can be not adjusted and the second image can be centered and displayed in the second display interface (such asFigure 3 As shown in the figure); in the case where the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image; set the third image as the wallpaper of the second display interface.
[0122] In some embodiments, in the case where the side lengths of all sides of the first display interface are not greater than the corresponding side lengths of the second display interface, and the resolution of the second display interface is greater than the resolution of the first display interface, the resolution of the first image can be adjusted based on the resolution of the second display interface to obtain a second image. Wherein, the resolution of the second image can be greater than or equal to the resolution of the first image.
[0123] In the embodiments of the present disclosure, in the case where the side lengths of all sides of the first display interface are not greater than the corresponding side lengths of the second display interface, only the resolution of the first image can be adjusted to obtain a second image. In this way, there is no need to adjust the size of the first image, which can simplify the adjustment operation of the first image and ensure that the resolution of the obtained second image meets the requirements.
[0124] In some embodiments, the method further includes:
[0125] Adjust the obtained fourth image based on the detected adjustment operation for the first display interface to obtain a fifth image;
[0126] In the case where the size of the fifth image is different from the size of the first display interface, perform a filling process on the fifth image based on the image features of the fourth image to obtain a first image;
[0127] Set the first image as the wallpaper of the first display interface.
[0128] In some embodiments, in the case where the size of the fifth image is different from the size of the first display interface, the fifth image can be input into a predetermined algorithm model to obtain a first image. The predetermined algorithm model can be used to perform a filling process on the fifth image based on the image features of the fourth image to obtain a first image. The predetermined algorithm model here can be any of the predetermined algorithm models in the embodiments of the present disclosure.
[0129] In some embodiments, the image features of the fourth image and the fifth image can be input into a predetermined algorithm model to obtain a first image. The predetermined algorithm model can perform a filling process on the image input into the predetermined algorithm model based on the image features input into the predetermined algorithm model to obtain a processed image.
[0130] In some embodiments, the adjustment operation for the first display interface may refer to an operation on the fourth image, and the adjustment operation includes a moving operation for moving the fourth image and / or a scaling operation for scaling the fourth image. The display position of the fourth image in the first display interface may be adjusted based on the detected moving operation; and / or, the size of the fourth image may be adjusted based on the detected scaling operation.
[0131] In some embodiments, when the fifth image is obtained, the fifth image may be displayed in the first display interface; whether to set the fifth image as the wallpaper of the first display interface may be determined based on a touch operation by the user on a predetermined control. The predetermined control includes a first control and a second control. When a touch operation on the first control is detected, the fifth image is not set as the wallpaper of the first display interface. Alternatively, when a touch operation on the second control is detected, the fifth image is set as the wallpaper of the first display interface. At this time, the first image set as the wallpaper of the first display interface may refer to the fifth image.
[0132] In some embodiments, when the fifth image is obtained, the first control and the second control may be displayed simultaneously.
[0133] In some embodiments, when a touch operation on the first control is detected, the fifth image may be filled based on the image features of the fourth image to obtain a first image. The size of the first image may be the same as the size of the first display interface.
[0134] In some embodiments, the fourth image is an image pre-stored in the electronic device. The fourth image may be selected from the images stored in the electronic device. Exemplarily, the fourth image may be selected from the images stored in the electronic device based on a detected touch operation on the stored image. Here, the fourth image that meets the user's needs may be selected from the images stored in the electronic device based on the user's operation, and the wallpaper of the first display interface may be obtained using the fourth image.
[0135] In some embodiments, when the fifth image is obtained, the fifth image may be displayed in the first display interface; when the size of the fifth image is different from the size of the first display interface, the blank display area in the first display interface is filled based on the image features of the fourth image to obtain a first image.
[0136] In some embodiments, when the size of the fifth image is different from the size of the first display interface, the size and / or resolution of the fifth image is adjusted.
[0137] In some embodiments, when the size of the fifth image is larger than the size of the first display interface, the size of the fifth image may be proportionally reduced based on the size of the first display interface until all the content of the fifth image can be displayed in the first display interface, obtaining the adjusted fifth image; when the size of the adjusted fifth image is different from the size of the first display interface, the adjusted fifth image is filled based on the image features of the fourth image, obtaining the first image.
[0138] In some embodiments, the resolution of the fifth image is adjusted based on the resolution of the first display interface until the resolution of the fifth image is greater than or equal to the resolution of the first display interface, obtaining the adjusted fifth image; when the size of the adjusted fifth image is different from the size of the first display interface, the adjusted fifth image is filled based on the image features of the fourth image, obtaining the first image.
[0139] In the embodiments of the present disclosure, since when the size of the fifth image is different from the size of the first display interface, the fifth image is filled based on the image features of the fourth image, obtaining the first image; and the first image is set as the wallpaper of the first display interface. Therefore, when the size of the adjusted fifth image by the user does not meet the requirements, the fifth image can be automatically filled based on the image features required by the user to obtain the first image that meets the user's requirements. In this way, when the first image is set as the wallpaper of the first display interface, it can be ensured that the image features and image content of the first image meet the user's requirements, and the size of the first image can meet the display requirements of the first display interface, ensuring a good display effect of the wallpaper of the first display interface.
[0140] In some embodiments, the method further includes:
[0141] When the first image is set as the wallpaper of the first display interface, the first image is stored according to the first path;
[0142] Obtaining the first image set as the wallpaper of the first display interface of the electronic device includes:
[0143] Based on the first path, obtain the first image.
[0144] In some embodiments, the first path may be a storage path automatically generated by the electronic device; or, the first path may be a storage path set by the user.
[0145] In some embodiments, the first image may be stored according to the first path when the first image is set as the wallpaper of the first display interface and the memory margin of the electronic device is greater than the first threshold.
[0146] In the embodiments of the present disclosure, since the first image is stored according to the first path when the first image is set as the wallpaper of the first display interface, in the process of obtaining the first image, the first image can be quickly obtained directly according to the first path. In this way, the operation of obtaining the first image can be simplified, and the efficiency of obtaining the first image can be improved. In the process of obtaining the wallpaper of the second display interface based on the first image, the wallpaper of the second display interface can be quickly obtained based on the quickly obtained first image, and the efficiency of obtaining the wallpaper of the second display interface can be improved.
[0147] In some embodiments, the method further includes:
[0148] When the first image is set as the wallpaper of the first display interface, store the fourth image and the operation parameters for converting the fourth image into the first image according to the second path;
[0149] Obtaining the first image set as the wallpaper of the first display interface of the electronic device includes:
[0150] Based on the second path, obtain the fourth image and the operation parameters;
[0151] Process the fourth image based on the operation parameters to obtain the first image.
[0152] In some embodiments, before the first image is set as the wallpaper of the first display interface, the fourth image can be stored in advance according to the second path; the obtained fourth image can be adjusted based on the detected adjustment operation for the first display interface to obtain the fifth image; when the size of the fifth image is different from the size of the first display interface, perform a filling process on the fifth image based on the image features of the fourth image to obtain the first image; set the first image as the wallpaper of the first display interface. When the first image is set as the wallpaper of the first display interface, the operation parameters for converting the fourth image into the first image can be stored according to the second path where the fourth image is stored; obtaining the first image set as the wallpaper of the first display interface of the electronic device includes: based on the second path, obtaining the fourth image and the operation parameters; processing the fourth image based on the operation parameters to obtain the first image.
[0153] In the embodiments of the present disclosure, when setting the first image as the wallpaper of the first display interface, instead of consuming a large amount of storage resources to store the obtained first image, only a small amount of storage resources can be consumed to store the operation parameters for converting the fourth image into the first image at the storage location where the fourth image is stored according to the second path. Moreover, during the process of obtaining the first image, the fourth image and the operation parameters for converting the fourth image into the first image can be quickly obtained based on the second path, so as to process the fourth image based on the quickly obtained operation parameters to quickly obtain the first image. In this way, while reducing the waste of storage resources, the efficiency of obtaining the first image can be improved.
[0154] In some embodiments, when setting the first image as the wallpaper of the first display interface and the memory margin of the electronic device is less than the first threshold, the fourth image and the operation parameters for converting the fourth image into the first image can be stored according to the second path. Here, when the memory margin is small, the memory occupancy can be reduced, and the waste of storage resources can be decreased.
[0155] In some embodiments, when setting the first image as the wallpaper of the first display interface, the memory margin of the electronic device is less than the first threshold and the computing power resources of the electronic device are greater than the second threshold, the fourth image and the operation parameters for converting the fourth image into the first image can be stored according to the second path. Obtaining the first image set as the wallpaper of the first display interface of the electronic device includes: based on the second path, obtaining the fourth image and the operation parameters; using the computing power resources of the electronic device, processing the fourth image based on the operation parameters to obtain the first image. Here, when the computing power resources are sufficient but the memory margin of the electronic device is small, the memory occupancy can be reduced, the waste of storage resources can be decreased, and it can be ensured that the fourth image can be quickly converted into the first image using sufficient computing power resources, improving the efficiency of obtaining the first image.
[0156] In some embodiments, the operation parameters may include any adjustment operation in the embodiments of the present disclosure and / or a processing operation for filling the fifth image based on the image features of the fourth image. The adjustment operation is used to convert the fourth image into the fifth image.
[0157] In some embodiments, obtaining the first image set as the wallpaper of the first display interface of the electronic device includes: based on the second path, obtaining the fourth image and the operation parameters; the operation parameters include an adjustment operation and / or a processing operation for filling the fifth image based on the image features of the fourth image; the adjustment operation is used to convert the fourth image into the fifth image. Adjusting the fourth image based on the adjustment operation to obtain the fifth image; performing a filling process on the fifth image based on the processing operation to obtain the first image.
[0158] In some embodiments, a second data object may be generated when the first image is set as the wallpaper of the first display interface; wherein, the second data object encapsulates information of at least one of the following: a fourth image, a second path, operation parameters for converting the fourth image into the first image, display interface information of the first display interface, and display interface information of the second display interface. The second data object is stored according to the second path.
[0159] In some embodiments, obtaining the first image set as the wallpaper of the first display interface of an electronic device includes: obtaining a first data object based on the second path; and processing the fourth image in the first data object based on the operation parameters in the first data object to obtain the first image.
[0160] In some embodiments, when the size of the fifth image is different from the size of the first display interface, performing a filling process on the fifth image based on the image features of the fourth image to obtain the first image includes:
[0161] When the size of the fifth image is different from the size of the first display interface, display a first control.
[0162] When a touch operation on the first control is detected, perform a filling process on the fifth image based on the image features of the fourth image to obtain the first image.
[0163] In some embodiments, when the size of the fifth image is different from the size of the first display interface, a second control may not be displayed. The second control is used to set the fifth image as the wallpaper of the first display interface. Here, the situation where the user accidentally touches the second control and accidentally sets the fifth image with an inappropriate size as the wallpaper of the first display interface can be reduced.
[0164] In some embodiments, in the first control, a first text content may be displayed. The first text content is used to prompt the user to determine whether to continue adjusting the fifth image to obtain the first image. Exemplarily, the first text content is used to prompt the user to determine whether to perform a filling process on the fifth image based on the image features of the fourth image to obtain the first image. For example, the first text content may be "Set".
[0165] In some embodiments, after the first image is obtained, a third control may be displayed; when a touch operation on the third control is detected, update the first image. The text content of the third control is used to prompt the user to determine whether to update the first image. The text content of the third control may be "Regenerate".
[0166] In some embodiments, when the size of the fifth image is different from the size of the first display interface, the first control is displayed; when a touch operation on the first control is detected, the fifth image is filled based on the image features of the fourth image to obtain the first image; the third control is displayed; when a touch operation on the third control is detected, the image features of the fourth image and the first image can be input into any of the predetermined algorithm models in the embodiments of the present disclosure to obtain an updated first image.
[0167] In the embodiments of the present disclosure, when the size of the fifth image adjusted according to the user's adjustment operation is different from the size of the first display interface, it is possible to fill the fifth image based on the detected touch operation on the first control and adapt to the image features of the fourth image, so as to obtain the first image with the same image style as the fourth image and the image size meeting the requirements. In this way, the display effect of the first image can be ensured to be good.
[0168] In some embodiments, the method further includes:
[0169] When the size of the fifth image is the same as the size of the first display interface, the second control is displayed;
[0170] When a touch operation on the second control is detected, the fifth image is set as the wallpaper of the first display interface.
[0171] In some embodiments, when the size of the fifth image is the same as the size of the first display interface, the first control may not be displayed. The fifth image can be automatically set as the wallpaper of the first display interface. At this time, any of the first images set as the wallpaper of the first display interface in the embodiments of the present disclosure can be the fifth image. Here, the user's operation can be simplified, and the automation degree of setting the wallpaper of the first display interface can be improved.
[0172] In some embodiments, in the second control, second text content can be displayed, and the second text content is used to prompt the user to determine whether to set the obtained first image or the fifth image as the screen wallpaper of the first display interface. Exemplarily, the second text content can be "Generate Wallpaper".
[0173] In the embodiments of the present disclosure, since the second control is displayed when the size of the fifth image is the same as the size of the first display interface, and the fifth image is set as the wallpaper of the first display interface when a touch operation on the second control is detected, therefore, when the size of the fifth image meets the user's requirements, there is no need to perform complex adjustment operations on the fifth image, and the image processing operation can be simplified to quickly obtain the wallpaper of the first display interface. In this way, the efficiency of obtaining the wallpaper of the first display interface can be improved.
[0174] To better understand the technical solutions in the embodiments of the present disclosure, the following describes any one of the methods in the embodiments of the present disclosure through some exemplary embodiments:
[0175] In some embodiments, an electronic device may include a wallpaper client, an image generation module, and a system side. Among them, the wallpaper client can be used for interaction between the electronic device and the user, and the image generation module can be configured to convert a first image into a third image, and / or convert a fourth image into a first image. The system side is at least used to store the images generated by the image generation module.
[0176] In some embodiments, a link can be established between the wallpaper client and the system side, and through the link, the wallpaper client can access the images stored on the system side; the wallpaper client is configured to: select a fourth image from the pictures stored on the system side based on the detected user selection operation; adjust the obtained fourth image based on the detected adjustment operation for the first display interface to obtain a fifth image; in the case where the size of the fifth image is different from the size of the first display interface, the image generation module is configured to: perform a filling process on the fifth image based on the image features of the fourth image to obtain a first image; the wallpaper client is further configured to set the first image as the wallpaper of the first display interface.
[0177] In some embodiments, the wallpaper client can be configured to: display the fifth image in the first display interface; display a first control in the case where the size of the fifth image is different from the size of the first display interface; in the case where a touch operation acting on the first control is detected, the image generation module is configured to perform a filling process on the fifth image based on the image features of the fourth image to obtain a first image.
[0178] In some embodiments, any one of the predetermined algorithm models in the embodiments of the present disclosure can be built in the image generation module.
[0179] In some embodiments, the wallpaper client can be configured to: display a second control in the case where the size of the fifth image is the same as the size of the first display interface; in the case where a touch operation acting on the second control is detected, set the fifth image as the wallpaper of the first display interface.
[0180] In some embodiments, the wallpaper client can further be configured to: generate any one of the second data objects in the embodiments of the present disclosure in the case of setting the first image as the wallpaper of the first display interface. The system side can be configured to store the second data object. A link can be established between the image generation module and the system side, and the image generation module can be configured to obtain the second data object from the system side and generate any one of the first data objects in the embodiments of the present disclosure based on the second data object.
[0181] In some embodiments, the image generation module may be configured to: obtain a first image set as the wallpaper of the first display interface of the electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same; in the case where the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image.
[0182] In some embodiments, the image generation module may be configured to: obtain a first image set as the wallpaper of the first display interface of the electronic device based on a second data object; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same; in the case where the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image by using a predetermined algorithm model built in the image generation module to obtain a third image; generate a first data object based on the third image; transmit the first data object to the system side. The system side may be configured to store the first data object. The wallpaper client may be configured to obtain the first data object from the system side and render the third image in the first data object to display the third image in the second display interface.
[0183] It should be noted that the first data object here may be any first data object in the embodiments of the present disclosure, and the second data object here may be any second data object in the embodiments of the present disclosure, and no redundant description will be given here.
[0184] As Figure 4 shown, an image processing apparatus is provided in an embodiment of the present disclosure. The apparatus includes:
[0185] An acquisition module 41, configured to obtain a first image set as the wallpaper of the first display interface of the electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different;
[0186] An adjustment module 42, configured to adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same;
[0187] The processing module 43 is configured to perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image when the size of the second image is different from the size of the second display interface;
[0188] The setting module 44 is configured to set the third image as the wallpaper of the second display interface.
[0189] In some embodiments, the present disclosure provides a computer-readable storage medium storing an executable program, wherein the executable program, when executed by a processor, implements the method according to any one of the embodiments of the present disclosure.
[0190] Figure 5 FIG. is a block diagram of an electronic device 500 shown according to an exemplary embodiment. The method of the present disclosure can be applied to this electronic device.
[0191] For example, the electronic device 500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, or a personal digital assistant, etc.
[0192] Refer to Figure 5 , the electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0193] The processing component 502 generally controls the overall operation of the electronic device 500, such as operations associated with at least one of display, telephone call, data communication, camera operation, and recording operation. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0194] The memory 504 is configured to store various types of data to support the operation of the electronic device 500. Examples of such data include at least one of the following: instructions for any application or method operating on the electronic device 500, contact data, phone book data, messages, pictures, and videos. The memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0195] The power supply component 506 provides power to various components of the electronic device 500. The power supply component 506 can include at least one of the following: a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 500.
[0196] The multimedia component 508 includes a screen that provides an output interface between the electronic device 500 and the user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can not only sense the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the electronic device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0197] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC). When the electronic device 500 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signals can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker for outputting audio signals.
[0198] The I / O interface 512 provides an interface between the processing component 502 and a peripheral interface module, and the peripheral interface module may be a keyboard, a click wheel, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a power button, and a lock button.
[0199] The sensor component 514 includes one or more sensors for providing an assessment of various aspects of the state of the electronic device 500. For example, the sensor component 514 can detect the on / off state of the electronic device 500, the relative positioning of components, such as the display and keypad of the electronic device 500. The sensor component 514 can also detect a change in the position of the electronic device 500 or a component of the electronic device 500, the presence or absence of user contact with the electronic device 500, the orientation or acceleration / deceleration of the electronic device 500, and a change in the temperature of the electronic device 500. The sensor component 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 514 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 can further include at least one of the following: an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, and a temperature sensor.
[0200] The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices in a wired or wireless manner. The electronic device 500 can access a communication standard-based wireless network, such as Wi-Fi, 4G, 5G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0201] In an exemplary embodiment, the electronic device 500 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.
[0202] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including executable instructions or a computer program, and the above instructions or computer program can be executed by a processor 520 of the electronic device 500 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a Random Access Memory (RAM), a Compact Disc Read-Only Memory (CD-ROM), a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0203] A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute any one of the above image processing methods in the embodiments of the present disclosure. For example, the method includes:
[0204] Obtain a first image that is set as the wallpaper of a first display interface of an electronic device; wherein, the electronic device includes a first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different;
[0205] Adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same;
[0206] In the case where the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image;
[0207] Set the third image as the wallpaper of the second display interface.
[0208] Embodiments of the present disclosure provide a computer program product, which includes: a computer program or executable instructions, and the computer program or executable instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or executable instructions from the computer-readable storage medium, and the processor executes the computer program or executable instructions, so that the computer device executes any one of the above image processing methods of the embodiments of the present disclosure.
[0209] Those skilled in the art will readily think of other implementations of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure, which follow the general principles of the present disclosure and include known common knowledge or conventional technical means in the technical field not disclosed in the present disclosure.
[0210] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope.
Claims
1. An image processing method, characterized in that, The method includes: Obtaining a first image that is set as the wallpaper of a first display interface of an electronic device; wherein, the electronic device includes the first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; Adjusting the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same; In the case where the size of the second image is different from the size of the second display interface, performing a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image; Setting the third image as the wallpaper of the second display interface.
2. The image processing method according to claim 1, wherein The display interface information of the second display interface includes: the size of the second display interface; The adjusting the first image based on the display interface information of the second display interface to obtain a second image includes: Adjusting the size and / or resolution of the first image based on the size of the first display interface and the size of the second display interface to obtain the second image.
3. The image processing method according to claim 2, characterized in that, The adjusting the first image based on the size of the first display interface and the size of the second display interface to obtain the second image includes: In the case where the length of any side of the first display interface is greater than the length of the corresponding side of the second display interface, proportionally reducing the size of the first image to obtain the second image; And / or, In the case where the lengths of all sides of the first display interface are not greater than the lengths of the corresponding sides of the second display interface, adjusting the resolution of the first image based on the resolution of the second display interface to obtain the second image.
4. The method according to claim 1, wherein The method further includes: Adjusting a fourth image obtained based on a detected adjustment operation on the first display interface to obtain a fifth image; In the case where the size of the fifth image is different from the size of the first display interface, performing a filling process on the fifth image based on the image features of the fourth image to obtain the first image; Setting the first image as the wallpaper of the first display interface.
5. The image processing method according to any one of claims 1 to 4, characterized in that, The method further includes: When setting the first image as the wallpaper of the first display interface, storing the first image according to a first path; The obtaining the first image that is set as the wallpaper of the first display interface of the electronic device includes: Obtaining the first image based on the first path.
6. The image processing method according to any one of claims 1 to 4, characterized in that, The method further includes: When setting the first image as the wallpaper of the first display interface, storing the fourth image and the operation parameters for converting the fourth image into the first image according to a second path; The obtaining the first image that is set as the wallpaper of the first display interface of the electronic device includes: Obtaining the fourth image and the operation parameters based on the second path; Processing the fourth image based on the operation parameters to obtain the first image.
7. The method according to claim 4, wherein When the size of the fifth image is different from the size of the first display interface, performing a filling process on the fifth image based on the image features of the fourth image to obtain the first image, including: When the size of the fifth image is different from the size of the first display interface, displaying a first control; When a touch operation on the first control is detected, performing a filling process on the fifth image based on the image features of the fourth image to obtain the first image.
8. The method according to claim 4, characterized in that The method further includes: When the size of the fifth image is the same as the size of the first display interface, displaying a second control; When a touch operation on the second control is detected, setting the fifth image as the wallpaper of the first display interface.
9. An image processing apparatus, characterized in that, The device includes: An acquisition module configured to acquire a first image set as the wallpaper of a first display interface of an electronic device; wherein, the electronic device includes the first display interface and a second display interface, and the sizes of the first display interface and the second display interface are different; An adjustment module configured to adjust the first image based on the display interface information of the second display interface to obtain a second image; wherein, the image content in the first image and the second image is the same; A processing module configured to, when the size of the second image is different from the size of the second display interface, perform a filling process on the second image based on the image features of the first image and / or the second image to obtain a third image; A setting module configured to set the third image as the wallpaper of the second display interface.
10. An electronic device, characterized in that, Including: A processor; A memory for storing computer programs or instructions; Wherein, the processor executes the computer programs or instructions to implement the steps of the image processing method according to any one of claims 1 to 8.
11. A non-transitory computer-readable storage medium storing a computer program or instructions, characterized in that, When the computer programs or instructions in the storage medium are executed by the processor, the steps of the image processing method according to any one of claims 1 to 8 are implemented.
12. A computer program product comprising a computer program or instructions, characterized in that, When the computer programs or instructions are executed by the processor, the steps of the image processing method according to any one of claims 1 to 8 are implemented.