Image processing method and electronic equipment
By dynamically adjusting the shadow area of the target object according to environmental parameters in mobile wallpaper, the problem of fixing existing wallpaper content is solved, the user experience is improved, and the image content is synchronized with environmental changes.
Patent Information
- Application Number
- CN202510123963.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-05-27
AI Technical Summary
Existing mobile phone wallpapers are usually fixed image content with static or dynamic results, resulting in poor user experience.
By obtaining the environment parameters of the environment in which the display screen is located, the output parameters of the corresponding shadowed area of the target object in the target image are determined, and the shadowed area is presented in the target image according to these parameters.
It realizes dynamic adjustment of image content according to environmental changes, enhances user experience of display screen, and makes image content change with the environment change.
Smart Images

Figure CN120047598A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technologies, and in particular, to an image processing method and an electronic device. Background Art
[0002] Currently, mobile phone wallpapers are usually static images or dynamic images, but they are all fixed image contents, resulting in a poor user experience for using mobile phones. Summary of the Invention
[0003] In view of this, this application provides an image processing method and an electronic device as follows:
[0004] An image processing method includes:
[0005] Obtain environmental parameters of the environment where the display screen is located; wherein, the display screen outputs a target image, and the target image includes at least one target object;
[0006] According to the environmental parameters, determine output parameters of a shadow area corresponding to the target object in the target image;
[0007] Present the shadow area in the target image according to the output parameters.
[0008] In the above method, preferably, determining the output parameters of the shadow area corresponding to the target object in the target image according to the environmental parameters includes:
[0009] According to the environmental parameters, establish a three-dimensional environmental model of the environment where the display screen is located;
[0010] According to the light output direction in the three-dimensional environmental model, determine the output parameters of the shadow area corresponding to the target object in the target image.
[0011] In the above method, preferably, the three-dimensional environmental model includes a virtual object corresponding to the target object;
[0012] Wherein, determining the output parameters of the shadow area corresponding to the target object in the target image according to the light output direction in the three-dimensional environmental model includes:
[0013] According to the object position of the virtual object in the three-dimensional environmental model and the light output direction in the three-dimensional environmental model, determine the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environmental model;
[0014] According to the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environmental model, determine the output parameters of the shadow area corresponding to the target object in the target image.
[0015] In the above method, preferably, the environmental parameters include at least one of the following:
[0016] The environmental light output parameters in the environment where the display screen is located, collected by the first sensor;
[0017] The environmental image data in the environment where the display screen is located, collected by the second sensor.
[0018] In the above method, preferably, determining the output parameters of the shadow area corresponding to the target object in the target image according to the environmental parameters includes:
[0019] Inputting the environmental parameters into a position prediction model to obtain the output parameters of the shadow area corresponding to the target object in the target image output by the position prediction model;
[0020] Wherein, the position prediction model is obtained based on training samples. The input samples in the training samples are the historical environmental parameters in the environment where the display screen is located, and the output samples in the training samples are the output parameters of the shadow area corresponding to the sample object in the historical image. The sample object is the object in the historical image output by the display screen.
[0021] In the above method, preferably, the environmental parameters include at least one of the following:
[0022] The weather condition of the environment where the display screen is located;
[0023] The current time of the environment where the display screen is located.
[0024] In the above method, preferably, the target object is the object in the target image that meets the control conditions;
[0025] Wherein, the output parameters of the shadow area include at least one of the following:
[0026] The output position of the shadow area, the output shape of the shadow area, the output size of the shadow area, the output brightness of the shadow area.
[0027] In the above method, preferably, it further includes:
[0028] Controlling the rotation of the target image according to the attitude of the display screen relative to the user;
[0029] Wherein, the attitude of the display screen relative to the user matches the output direction after the rotation of the target image.
[0030] An electronic device, comprising:
[0031] A display screen; the display screen outputs a target image, and the target image contains at least one target object;
[0032] A processor, configured to obtain environmental parameters of the environment where the display screen is located; determine output parameters of a shadow area corresponding to the target object in the target image according to the environmental parameters; and present the shadow area in the target image according to the output parameters.
[0033] For the above-mentioned electronic device, preferably, the output parameters of the target object in the target image match the target objects included in the environment where the display screen is located. Description of the Drawings
[0034] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings required for the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other accompanying drawings can be obtained based on these drawings without creative efforts.
[0035] Figure 1 It is a flowchart of an implementation of an image processing method provided by an embodiment of the present application;
[0036] Figure 2 It is an example diagram of a target object in an embodiment of the present application;
[0037] Figure 3 It is another example diagram of a target object in an embodiment of the present application;
[0038] Figure 4 It is yet another example diagram of a target object in an embodiment of the present application;
[0039] Figure 5 It is a partial flowchart of an image processing method provided by an embodiment of the present application;
[0040] Figure 6 It is an example diagram of a three-dimensional environment model in an embodiment of the present application;
[0041] Figure 7 It is another example diagram of a three-dimensional environment model in an embodiment of the present application;
[0042] Figure 8 It is an example diagram of a shadow area of a target object in an embodiment of the present application;
[0043] Figure 9 It is an example diagram of rotating a target image in an embodiment of the present application;
[0044] Figure 10 It is a schematic structural diagram of an image processing device provided by an embodiment of the present application;
[0045] Figure 11 Another structural schematic diagram of an image processing apparatus provided by an embodiment of the present application;
[0046] Figure 12 Structural schematic diagram of an electronic device provided by an embodiment of the present application;
[0047] Figure 13 Flowchart applicable to effect reconstruction in a mobile phone wallpaper in the present application;
[0048] Figure 14 Example diagram applicable to effect reconstruction in a mobile phone wallpaper in the present application. Detailed implementation manners
[0049] Next, the technical solutions in the embodiments of the present application will be clearly and completely described with reference to the accompanying drawings in the embodiments of the present application. Apparently, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application.
[0050] Refer to Figure 1 As shown, it is a flowchart for implementing an image processing method provided by an embodiment of the present application. This method can be applicable to electronic devices with a display screen, such as mobile phones, watches, smart glasses, notebooks, and other devices. The technical solutions in this embodiment are mainly used to improve the user experience of using the display screen.
[0051] Specifically, the method in this embodiment may include the following steps:
[0052] Step 101: Obtain environmental parameters of the environment where the display screen is located.
[0053] Among them, a target image is output on the display screen, and the target image may include at least one target object. The target object is an operable object corresponding to the display interface (or display window) in the electronic device, such as an icon, a widget. Of course, the target object may also be an object on the wallpaper that serves as the background pattern of the electronic device; for example, as Figure 2 shown, there is a sundial in the wallpaper image of the mobile phone. For example, as Figure 3 shown, the game object output by the smart glasses is a puppy. For example, as Figure 4 shown, there is a big tree in the wallpaper image output by the watch. The target object may also be an object shown in a photo in the album, such as a photographed puppy; the target object may also be an object shown in a video, such as a running puppy.
[0054] In one implementation, the target object can be an object in the target image that meets the control conditions. For example, the control conditions can be: the target object is a three-dimensional object, such as an object like a sundial or a big tree. Another example is that the control conditions can be: the target object is an object that matches the target type, such as an object like a person or a puppy.
[0055] In one implementation, the environmental parameters can include at least one of the following:
[0056] The environmental light output parameters in the environment where the display screen is located collected by the first sensor;
[0057] The environmental image data in the environment where the display screen is located collected by the second sensor.
[0058] For example, the first sensor can include a photosensitive sensor, a color temperature sensor, etc. The environmental light output parameters can include: the light output direction, light intensity of the environmental light collected by the photosensitive sensor, and the light color temperature parameters collected by the color temperature sensor. The environmental light can be the light provided by a light source such as the sun or a lamp. The second sensor can include an image sensor, such as a camera on a mobile phone or a watch, etc. The environmental image data can include: the physical image in the environment where the display screen is located, and the physical image content such as people, roads, plants, animals, etc. in the environment where the display screen is located is included in the environmental image data.
[0059] In addition, the environmental parameters can also include: the attitude parameters of the display screen collected by the third sensor, and the attitude parameters characterize the real-time attitude of the display screen in the environment where it is located. For example, the third sensor can include a locator, etc., for collecting the attitude parameters of the display screen.
[0060] In another implementation, the environmental parameters can include at least one of the following:
[0061] The weather state of the environment where the display screen is located;
[0062] The current time of the environment where the display screen is located.
[0063] For example, in this embodiment, the current time of the environment where the display screen is located can be obtained through the clock in the display screen, such as the current time at 8 am or 12 noon. Another example is that in this embodiment, the current time sent by the background server can be obtained through the communication module in the electronic device where the display screen is located. Another example is that in this embodiment, the weather state at the current time sent by the background server can be obtained through the communication module in the electronic device, such as cloudy, rainy or sunny.
[0064] Step 102: Determine the output parameters of the shadow area corresponding to the target object in the target image according to the environmental parameters.
[0065] Among them, the shadow area refers to the area of the shadow produced by the target object under the illumination state in the target image. For example, as Figure 2 shown in Figure 3 , the shadow area of the target object is the projection of the gnomon of the sundial; for another example, as Figure 4 shown in
[0066] , the shadow area of the target object is the shadow of the puppy in the sun; for another example, as
[0067] shown in
[0068] , the shadow area of the target object is the shadow of the big tree.
[0069] Step 103: Present the shadow area in the target image according to the output parameters.
[0070] In a specific implementation, in this embodiment, the target image can be re-rendered according to the output parameters. Based on this, the shadow area can be rendered with a presentation effect that matches the output parameters.
[0071] For example, in this embodiment, the shadow area is rendered in the target image according to the output position, output shape, output size, and output brightness of the shadow area in the output parameters.
[0072] It should be noted that if the environmental parameters change, such as any one of the light direction, light intensity, current time, etc. changes, the output parameters of the shadow area corresponding to the target object in the target image also change. Correspondingly, the shadow area rendered in the target image will also change accordingly, such as the output position, output size, etc. of the shadow area change.
[0073] As can be seen from the above technical solution, in an image processing method provided by an embodiment of the present application, the output parameters of the shadow area corresponding to the target object in the target image can be determined according to the environmental parameters of the environment where the display screen with the target image is located. Then, the shadow area can be presented in the target according to the output parameters. It can be seen that in this embodiment, the output parameters of the shadow area corresponding to the target object in the target image can be determined according to the environmental parameters, and a new shadow can be rendered accordingly. In this way, as the environment changes, the shadow area also changes accordingly, thereby bringing a user experience of viewing images that changes with the environment to the user, and thus improving the user experience of using the display screen.
[0074] In one implementation, step 102 can be implemented in the following manner, as Figure 5 shown in:
[0075] Step 501: Establish a three-dimensional environmental model of the environment where the display screen is located according to the environmental parameters.
[0076] For example, as Figure 6 shown in, the mobile phone screen outputs a wallpaper image containing a sundial. In this embodiment, environmental parameters such as environmental light output parameters and environmental image data are collected by using the first sensor, the second sensor, etc. deployed in the mobile phone. Based on this, a three-dimensional environmental model can be established through a three-dimensional modeling tool. The three-dimensional environmental model includes virtual objects such as people, animals, plants, and roads in the environment where the smart glasses are located. Of course, the three-dimensional environmental model is centered on the user object carrying the mobile phone. Moreover, there is a light source in the three-dimensional environmental model to provide environmental light, and the light source has parameters such as light output direction and light color temperature.
[0077] Step 502: Determine the output parameters of the shadow area corresponding to the target object in the target image according to the light output direction in the three-dimensional environmental model.
[0078] In one implementation, in this embodiment, the position of the light source in the three-dimensional environmental model can be determined according to the light output direction. Based on the position of the light source and the object position of the target object, the output parameters of the shadow area generated when the environmental light provided by the light source hits the target object are determined, such as output position, output shape, output size, etc.
[0079] Specifically, in this embodiment, the output parameters of the shadow area generated when the environmental light provided by the light source hits the target object in the display screen can be determined according to the relative position relationship between the position of the display screen (i.e., the object position of the target object) and the position of the light source in the three-dimensional environmental model.
[0080] For example, as Figure 6As shown in the figure, the target object is the gnomon in the mobile phone wallpaper. According to the relative position relationship between the position of the window (the light source that can provide ambient light) in the three-dimensional environment model and the position of the mobile phone, the output position of the projection generated by the light transmitted through the window hitting the gnomon is determined.
[0081] In another implementation, the output parameters of the target object in the target image match the target object included in the environment where the display screen is located. Correspondingly, a virtual object corresponding to the target object is included in the three-dimensional environment model. For example, in the three-dimensional image output by the smart glasses, there is a puppy (target object) output to the road (target object). In the constructed three-dimensional environment model centered on the smart glasses, there is a virtual object corresponding to the target object, such as a virtual puppy. In this embodiment, the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environment model can be determined according to the object position of the virtual object in the three-dimensional environment model and the light output direction in the three-dimensional environment. Then, according to the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environment model, the output parameters of the shadow area corresponding to the target object in the target image are determined.
[0082] For example, as Figure 7 shown in the figure, the smart glasses collect environmental parameters, such as ambient light output parameters, environmental image data, etc., through the deployed first sensor, second sensor, etc. Based on this, a three-dimensional environment model can be established through a three-dimensional modeling tool. The three-dimensional environment model includes virtual objects such as people, puppies, plants, and roads in the environment where the smart glasses are located. Of course, the three-dimensional environment model is centered on the user object wearing the smart glasses. Moreover, there is a light source in the three-dimensional environment model that provides ambient light, and the light source has parameters such as light output direction and light color temperature. Based on this, according to the light output direction in the three-dimensional environment model and the object position of the virtual object in the three-dimensional environment model, the output parameters such as the output position, output size, and output shape of the shadow area generated by the ambient light provided by the light source in the three-dimensional environment model hitting the virtual object such as the virtual puppy can be determined, and this output parameter is determined as the output parameter of the shadow area corresponding to the puppy output by the smart glasses to the road in the target image.
[0083] It can be seen that in this embodiment, by constructing a three-dimensional environment model that matches the real environment and restoring the environment where the display screen is located, the output parameters of the shadow area corresponding to the target object can be determined based on the light output direction in the three-dimensional environment, realizing the rendering of the shadow area and improving the user's viewing experience of the target image.
[0084] In one implementation, in step 102, the environmental parameters can also be input into the position prediction model to obtain the output parameters of the shadow area corresponding to the target object in the target image output by the position prediction model.
[0085] Among them, the position prediction model is obtained based on training samples. The input samples in the training samples are the historical environmental parameters in the environment where the display screen is located, the output samples in the training samples are the output parameters of the shadow area corresponding to the sample object in the historical image, and the sample object is the object in the historical image output by the display screen.
[0086] For example, as Figure 8 shown in, in this embodiment, the current time of 12 noon can be output to the position prediction model. The position prediction model provides output parameters such as the output position and output size of the shadow area, and accordingly, the projection of the gnomon is rendered in the mobile phone wallpaper. At this time, the projection of the gnomon is the shortest and the position is directly below the gnomon to simulate the sunlight shining from directly above.
[0087] It can be seen that in this embodiment, through big data training, the position prediction model can provide the output parameters of the shadow area, thereby realizing the rendering of the shadow area and improving the user's viewing experience of the target image.
[0088] In one implementation, in this embodiment, the rotation of the target image can also be controlled according to the posture of the display screen relative to the user.
[0089] Among them, the posture of the display screen relative to the user matches the output direction after the target image rotates. Thus, when the user views the target image on the display screen, the user can see the target image output in the forward viewing angle, thereby improving the user experience of viewing the display screen.
[0090] Specifically, in this embodiment, the environmental image data can be collected through a second sensor, and the posture of the display screen relative to the user can be detected through face recognition or the like. As Figure 9 shown in, the mobile phone is on the left side of the user, and the side of the mobile phone faces the user. At this time, in this embodiment, the mobile phone wallpaper can be rotated so that the wallpaper seen by the user after turning the head is the wallpaper in the forward viewing angle.
[0091] In one implementation, in this embodiment, the image parameters of the target image can also be adjusted according to environmental parameters such as light intensity and light color temperature.
[0092] Among them, the image parameters include at least one of the following: image hue, image brightness.
[0093] For example, in this embodiment, the image brightness of the target image can be adjusted according to the ambient light intensity of the environment where the display screen is located. The stronger the ambient light intensity, the higher the image brightness of the target image, and the weaker the ambient light intensity, the lower the image brightness of the target image, avoiding the situation that the target image is too bright or too dark to improve the user experience of viewing the target image.
[0094] For another example, in this embodiment, the image tone of the target image can be adjusted according to the ambient color temperature of the environment where the display screen is located, so that the image tone matches the ambient color temperature, such as warm tone or cold tone, to improve the user experience of viewing the target image.
[0095] Reference Figure 10 , which is a schematic structural diagram of an image processing device provided by an embodiment of the present application. The device can be deployed in an electronic device with a display screen, such as devices like mobile phones, watches, smart glasses, notebooks, etc. The technical solution in this embodiment is mainly used to improve the user experience of the display screen.
[0096] Specifically, the device in this embodiment may include the following units:
[0097] A parameter acquisition unit 1001, configured to acquire environmental parameters of the environment where the display screen is located; wherein, the display screen outputs a target image, and the target image contains at least one target object;
[0098] An output determination unit 1002, configured to determine output parameters of a shadow area corresponding to the target object in the target image according to the environmental parameters;
[0099] An image presentation unit 1003, configured to present the shadow area in the target image according to the output parameters.
[0100] It can be seen from the above technical solution that in an image processing device provided by an embodiment of the present application, output parameters of a shadow area corresponding to a target object in a target image can be determined according to environmental parameters of the environment where a display screen that outputs the target image is located, and then the shadow area can be presented in the target according to the output parameters. It can be seen that in this embodiment, output parameters of a shadow area corresponding to a target object in a target image can be determined according to environmental parameters, and based on this, a new shadow can be rendered. In this way, as the environment changes, the shadow area also changes accordingly, thereby bringing a changing image viewing experience to the user as the environment changes, and thus improving the user experience of the display screen.
[0101] In one implementation manner, the output determination unit 1002 is specifically configured to: establish a three-dimensional environment model of the environment where the display screen is located according to the environmental parameters; and determine output parameters of a shadow area corresponding to the target object in the target image according to a light output direction in the three-dimensional environment model.
[0102] Among them, the three-dimensional environment model includes a virtual object corresponding to the target object; when the output determination unit 1002 determines the output parameters of the shadow area corresponding to the target object in the target image according to the light output direction in the three-dimensional environment model, it specifically is used for: determining the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environment model according to the object position of the virtual object in the three-dimensional environment model and the light output direction in the three-dimensional environment model; determining the output parameters of the shadow area corresponding to the target object in the target image according to the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environment model.
[0103] Specifically, the environmental parameters include at least one of the following: the environmental light output parameters in the environment where the display screen is located collected by the first sensor; the environmental image data in the environment where the display screen is located collected by the second sensor.
[0104] In one implementation, the output determination unit 1002 is specifically used for: inputting the environmental parameters into a position prediction model to obtain the output parameters of the shadow area corresponding to the target object in the target image output by the position prediction model; wherein, the position prediction model is obtained based on training samples, the input samples in the training samples are the historical environmental parameters in the environment where the display screen is located, the output samples in the training samples are the output parameters of the shadow area corresponding to the sample object in the historical image, and the sample object is the object in the historical image output by the display screen.
[0105] Specifically, the environmental parameters include at least one of the following: the weather condition of the environment where the display screen is located; the current time of the environment where the display screen is located.
[0106] In one implementation, the target object is the object in the target image that meets the control condition; the output parameters of the shadow area include at least one of the following: the output position of the shadow area, the output shape of the shadow area, the output size of the shadow area, the output brightness of the shadow area.
[0107] In one implementation, the device in this embodiment may further include the following units, as Figure 11 shown in
[0108] An image rotation unit 1004, configured to control the rotation of the target image according to the posture of the display screen relative to the user; wherein, the posture of the display screen relative to the user matches the output direction after the target image rotates.
[0109] It should be noted that the specific implementation manners of the units in this embodiment may refer to the corresponding content in the foregoing, and will not be elaborated herein.
[0110] Reference Figure 12 FIG. 1 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. The electronic device may be a device such as a mobile phone, a notebook, smart glasses, a smart watch, etc. The electronic device in this embodiment may include the following structures:
[0111] A display screen 1201; the display screen 1201 outputs a target image, and the target image includes at least one target object;
[0112] A processor 1202, such as a central processing unit CPU (Central Processing Unit), is configured to obtain environmental parameters of the environment where the display screen 1201 is located; determine output parameters of a shadow area corresponding to the target object in the target image according to the environmental parameters; and present the shadow area in the target image according to the output parameters.
[0113] In one implementation manner, taking the electronic device as smart glasses as an example, the target image is a three-dimensional virtual image, and the output parameters of the target object in the target image match the target objects included in the environment where the display screen is located. For example, as shown in FIG. Figure 3 In FIG., in the target image output by the smart glasses, a puppy is output onto a real road to implement a game interface for simulating walking a dog.
[0114] It can be seen from the above technical solution that in an electronic device provided by an embodiment of the present application, the output parameters of the shadow area corresponding to the target object in the target image can be determined according to the environmental parameters of the environment where the display screen outputting the target image is located, and then the shadow area can be presented in the target according to the output parameters. It can be seen that in this embodiment, the output parameters of the shadow area corresponding to the target object in the target image can be determined according to the environmental parameters, and new shadows can be rendered accordingly. In this way, as the environment changes, the shadow area also changes accordingly, thereby bringing a user an image viewing experience that changes with the environment and improving the user experience of using the display screen.
[0115] Taking the electronic device as a mobile phone as an example, as shown in FIG. Figure 13 In FIG., in this embodiment, environmental parameters can be collected by a photosensitive sensor sensor, a color temperature sensor sensor, and a camera camera, and a model of the environment where the mobile phone is currently located (i.e., the three-dimensional environment model in the foregoing text) can be built through an artificial intelligence AI (Artificial Intelligence) algorithm, thereby restoring the real light environment for the mobile phone wallpaper. Then, according to this model, based on the current wallpaper, the light color, shadow and other effects in the wallpaper are reconstructed, as shown in FIG. Figure 14As shown, as the posture of the mobile phone changes and time elapses, the relative position between the light source and the mobile phone changes. Based on the change in the output direction of the light hitting the mobile phone, the area where the shadow of a specific object such as a building in the wallpaper is updated in real time, giving people a sense of being on the scene.
[0116] In this specification, the various embodiments are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For the devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple. For the relevant parts, reference can be made to the description in the method section.
[0117] Those skilled in the art can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of the examples have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of this application.
[0118] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be directly implemented by hardware, software modules executed by a processor, or a combination of the two. The software modules can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0119] The above description of the disclosed embodiments enables those skilled in the art to implement or use this application. Various modifications to these embodiments will be obvious to those skilled in the art. The general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application will not be limited to the embodiments shown herein, but will be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An image processing method, comprising: Obtaining environmental parameters of an environment in which a display screen is located; wherein the display screen outputs a target image, and the target image includes at least one target object; Determining output parameters of a shadow area corresponding to the target object in the target image according to the environmental parameters; The shadow area is presented in the target image according to the output parameters.
2. The method according to claim 1, determining the output parameter of the shadow area corresponding to the target object in the target image according to the environmental parameter, comprising: According to the environmental parameters, a three-dimensional environmental model of the environment in which the display screen is located is established; According to the light output direction in the three-dimensional environment model, output parameters of the shadow area corresponding to the target object in the target image are determined.
3. The method according to claim 2, wherein the three-dimensional environment model includes a virtual object corresponding to the target object; in, Determining output parameters of a shadow area corresponding to the target object in the target image according to the light output direction in the three-dimensional environment model includes: Determining output parameters of a shadow area corresponding to the virtual object in the three-dimensional environment model according to an object position of the virtual object in the three-dimensional environment model and a light output direction in the three-dimensional environment model; According to the output parameters of the shadow area corresponding to the virtual object in the three-dimensional environment model, the output parameters of the shadow area corresponding to the target object in the target image are determined.
4. The method according to claim 2, wherein the environmental parameters include at least one of the following: Ambient light output parameters of the environment in which the display screen is located, collected by the first sensor; Environmental image data of the environment in which the display screen is located, collected by the second sensor.
5. The method according to claim 1, determining the output parameter of the shadow area corresponding to the target object in the target image according to the environmental parameter, comprising: Inputting the environmental parameters into a position prediction model to obtain output parameters of a shadow area corresponding to the target object in the target image output by the position prediction model; Wherein, the position prediction model is obtained based on training samples, the input samples in the training samples are historical environmental parameters in the environment where the display screen is located, the output samples in the training samples are output parameters of the shadow area corresponding to the sample object in the historical image, and the sample object is the object in the historical image output by the display screen.
6. The method according to claim 5, wherein the environmental parameter comprises at least one of the following: The weather conditions of the environment in which the display screen is located; The current time of the environment in which the display screen is located.
7. The method according to claim 1, wherein the target object is an object in the target image that satisfies a control condition; in, The output parameters of the shadow area include at least one of the following: The output position of the shadow area, the output shape of the shadow area, the output size of the shadow area, and the output brightness of the shadow area.
8. The method according to claim 1, further comprising: Controlling the rotation of the target image according to the posture of the display screen relative to the user; The posture of the display screen relative to the user matches the output direction of the target image after rotation.
9. An electronic device, comprising: Display screen; The display screen outputs a target image, wherein the target image includes at least one target object; The processor is used to obtain environmental parameters of the environment in which the display screen is located; determine output parameters of the shadow area corresponding to the target object in the target image according to the environmental parameters; and present the shadow area in the target image according to the output parameters. 10 . The electronic device according to claim 9 , wherein the output parameters of the target object in the target image match the target object contained in the environment where the display screen is located.