Processing method and electronic equipment

By detecting the position change conditions of the electronic device and adjusting the position of the target display object, the problem of fixed position of the display object in the prior art is solved, and the visual effect of the target display object moving with the position change of the electronic device is achieved.

CN119544856APending Publication Date: 2025-02-28LENOVO (BEIJING) LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411691062.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-22
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

In the prior art, when the electronic device displays an image in the target area, the position of the display object is fixed, which cannot meet the user's use needs in some scenarios.

Method used

By detecting whether the electronic device meets the position change condition, if satisfied, the second position is determined based on the first position and the position change condition, and the target display object is displayed in the target area.

Benefits of technology

When the electronic device meets the position change conditions, the position of the target display object is adjusted, presenting the visual effect of the target display object moving with the position change of the electronic device, meeting the usage needs of some users.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119544856A_ABST
    Figure CN119544856A_ABST
Patent Text Reader

Abstract

The invention discloses a processing method and electronic equipment. The method comprises the steps of obtaining a first position, displayed in a target area, of at least one target display object; if the electronic equipment meets the first condition, a second position of at least one target display object in the target area is determined based on the first condition and a first position, the first position is different from the second position, and the first condition at least comprises a pose change condition; and displaying at least one target display object based on the target area and the second position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing, and in particular to a processing method and electronic equipment. Background Art

[0002] An electronic device can display various display objects in any area of ​​a display screen. For example, a mobile phone can use the entire display area of ​​the display screen to display photos containing people or other objects.

[0003] In the related art, when an electronic device displays a frame of an image in a target area, the display object in the image is always displayed at a specific position in the target area. This display method cannot meet the usage requirements of some users. Summary of the invention

[0004] To this end, this application discloses the following technical solutions:

[0005] The first aspect of the present application provides a processing method, which is applied to an electronic device, comprising:

[0006] Obtaining a first position of at least one target display object displayed in a target area;

[0007] If the electronic device satisfies a first condition, determining a second position of the at least one target display object in the target area based on the first condition and the first position, the first position being different from the second position, and the first condition at least including a posture change condition;

[0008] The at least one target display object is displayed based on the target area and the second position.

[0009] Optionally, determining a second position of the at least one target display object in the target area based on the first condition and the first position includes:

[0010] In the case where the first condition includes a posture change condition, determining a displacement parameter of the at least one target display object according to a first posture of the electronic device before the change and a second posture of the electronic device after the change;

[0011] A second position of the at least one target display object in the target area is determined according to the displacement parameter and the first position.

[0012] Optionally, displaying the at least one target display object based on the target area and the second position includes:

[0013] cropping a first image for display in the target area to obtain at least one target display object contained in the first image and a background image in the first image except the at least one target display object;

[0014] Processing the at least one target display object and the background image according to the second position to obtain a second image including the at least one target display object;

[0015] The second image is displayed in the target area.

[0016] Optionally, the processing the at least one target display object and the background image according to the second position to obtain a second image including the at least one target display object includes:

[0017] Processing the at least one target display object and the background image according to the intelligent engine and the second position to obtain a second image including the at least one target display object;

[0018] In which, the intelligent engine is used to determine the output image based on the first part of the input image, the first part includes at least the pixel content of the background image, and the input image of the intelligent engine is the background image, or a fused image obtained by fusing the at least one target display object and the background image according to the second position.

[0019] Optionally, determining a second position of the at least one target display object in the target area based on the first condition and the first position includes:

[0020] Obtaining properties of the at least one target display object;

[0021] Based on the first condition, the first position, and the attribute of the at least one target display object, a second position of the at least one target display object in the target area is determined.

[0022] Optionally, at least one of the following is also included:

[0023] Determine a display object of a target type among a plurality of display objects contained in the target area as a target display object;

[0024] According to the selection operation, a display object selected from a plurality of display objects contained in the target area is determined as a target display object;

[0025] According to the areas occupied by the multiple display objects contained in the target area, a target display object is determined from the multiple display objects.

[0026] Optionally, the first position includes a first position of the at least one target display object in the target area in a plurality of consecutive moments, and the moment when the electronic device meets the first condition is taken as the target moment;

[0027] The displaying the at least one target display object based on the target area and the second position includes:

[0028] Displaying the at least one target display object based on a second position corresponding to the target area and the target time, wherein the second position corresponding to the target time is obtained according to the first position at the target time;

[0029] The method further comprises:

[0030] The at least one target display object is displayed based on the target area and a first position corresponding to a non-target time.

[0031] Optionally, the first position includes a first position of the at least one target display object in the target area at a plurality of consecutive moments;

[0032] The displaying the at least one target display object based on the target area and the second position includes:

[0033] At each of the moments, the at least one target display object is displayed based on the target area and a second position corresponding to the moment, where the second position corresponding to the moment is obtained according to the first position at the moment.

[0034] Optionally, the first relative position and the second relative position of the at least one target display object are different;

[0035] The first relative position is a relative position of the at least one target display object relative to a background image other than the at least one target display object in a first image when displayed based on the first position, and the first image is used to be displayed in the target area;

[0036] The second relative position is a relative position of the at least one target display object relative to the background image when displayed based on the second position.

[0037] A second aspect of the present application provides an electronic device, including a detection module, a processing module and a display screen;

[0038] The detection module is used to detect whether the electronic device meets the first condition;

[0039] The processing module is used for:

[0040] Obtaining a first position of at least one target display object displayed in a target area of ​​the display screen;

[0041] When it is determined by the detection module that the electronic device satisfies a first condition, a second position of the at least one target display object in the target area is determined based on the first condition and the first position, the first position is different from the second position, and the first condition at least includes a posture change condition;

[0042] The at least one target display object is displayed on the display screen based on the target area and the second position. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0044] Figure 1 is a flowchart of a processing method provided in an embodiment of the present application;

[0045] Figure 2 is a schematic diagram of a display interface provided in an embodiment of the present application;

[0046] Figure 3 is a schematic diagram of another display interface provided in an embodiment of the present application;

[0047] Figure 4 is a schematic diagram of obtaining a second image provided by an embodiment of the present application;

[0048] Figure 5 is another flow chart for obtaining a second image provided by an embodiment of the present application;

[0049] Figure 6 is a schematic diagram of processing a target display object at multiple consecutive moments provided by an embodiment of the present application;

[0050] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] This embodiment provides a processing method, which can be applied to electronic devices. Figure 1 , the method may include the following steps.

[0053] S101: Obtain a first position of at least one target display object displayed in a target area.

[0054] The target area in this embodiment may be the entire display area of ​​the display screen in the electronic device, or may be a part of the display area.

[0055] As an example, see Figure 2 , the target area can include Figure 2 The entire display area of ​​the display screen shown in (1) may also include only Figure 2 The display area within the rectangular frame above the display screen shown in (2).

[0056] The electronic device may continuously display a frame of image in the target area, or may display several frames of image one by one in the target area at multiple consecutive moments. The latter corresponds to a scenario in which the electronic device plays a video or displays a dynamic image in the target area.

[0057] For any frame of an image displayed by an electronic device in a target area, the target display object may include any one or more display objects contained in the frame of the image. Figure 2 The character object shown in (1).

[0058] In this embodiment, the image displayed in the target area before it is determined that the electronic device meets the first condition can be referred to as the first image.

[0059] The first position may include the position of the target object in the target area at the current moment (ie, when step S101 is executed).

[0060] In this embodiment, each time the electronic device displays a frame of image in the target area, step S101 may be executed to obtain the first position of the target object in the frame of image.

[0061] As an example, when the electronic device is in the screen-off state, the display screen does not display image content. At a certain moment, the electronic device switches from the screen-off state to the screen-on state in response to a specific wake-up condition (for example, the user taps the display screen or presses the lock screen key). At this time, the electronic device can display a frame of wallpaper image in the entire display area of ​​the display screen. When displaying the frame of image, the electronic device can execute step S101 to obtain the first position of the target display object in the frame of wallpaper image in the display area of ​​the display screen.

[0062] As another example, when an electronic device runs a video application, it can display a playback window in a specific area of ​​the display screen and play the video content in the playback window. At this time, the electronic device can use the area of ​​the playback window as the target area, and each time a video frame is displayed in the playback window, the position of the display object contained in the video frame in the area of ​​the playback window can be obtained as the first position.

[0063] S102: If the electronic device satisfies a first condition, a second position of at least one target display object in a target area is determined based on the first condition and the first position, the first position is different from the second position, and the first condition at least includes a posture change condition.

[0064] In this embodiment, after the electronic device displays the image in the target area, it can detect in real time whether it meets the first condition according to a certain detection period. If the first condition is met, S102 is executed. If the first condition is not met, the electronic device continues to display the image in the target area in the original display mode.

[0065] In some embodiments, the electronic device may first display an image in the target area, and then detect in real time whether it satisfies the first condition. When it is detected that it satisfies the first condition, it executes steps S101 and S102 in sequence to obtain the first position, and determines the second position based on the first condition and the first position.

[0066] The first condition includes at least a posture change condition, that is, the electronic device can obtain its own posture parameters once every detection cycle, and execute step S102 only when it is determined based on the posture parameters that the current posture has changed relative to the posture one detection cycle ago, and the change meets specific conditions.

[0067] As some examples, the posture change condition may include a posture change amplitude greater than a certain threshold, for example, the posture change condition may include the electronic device rotation angle greater than a specific angle threshold, or may include the electronic device displacement distance greater than a specific distance threshold.

[0068] As other examples, the posture change condition may include the posture change direction being a specific direction, for example, the posture change condition may include the electronic device rotating clockwise around the vertical axis of symmetry of the display screen, or may include the electronic device moving horizontally to the right or left.

[0069] When the electronic device satisfies the first condition, the electronic device can at least determine the second position based on the posture change condition and the first position. For example, the second position can at least be determined based on the posture change amplitude of the electronic device and the first condition, or the second position can be determined based on the posture change direction of the electronic device and the first position, or the second position can be determined based on the posture change amplitude of the electronic device, the posture change direction and the first position.

[0070] S103: Display at least one target display object based on the target area and the second position.

[0071] In step S103, the electronic device may adjust the image displayed in the target area, and then display the adjusted image, in which the target display object is located at the second position of the target area.

[0072] As an example, before determining that the electronic device meets the first condition, the electronic device may display in the display area of ​​the display screen Figure 2 The target display object is at the first position shown in the figure, and after determining that the electronic device meets the second condition, the electronic device can display the following in the display area of ​​the display screen: Figure 2 From the adjusted image shown in (3), we can see that Figure 2 The target display object in (3) is in Figure 2 (1) A different second position.

[0073] The beneficial effects of this embodiment are:

[0074] The electronic device can adjust the position of the target display object displayed in the target area at least when the electronic device changes its posture and satisfies a specific posture change condition, and display the target display object based on the adjusted second position when at least the posture change condition is met. Thus, when the electronic device satisfies the posture change condition, the electronic device can present a visual effect in the target area that the target display object moves as the posture of the electronic device changes, thereby meeting the usage needs of some users in some scenarios.

[0075] In some optional embodiments, when the electronic device adjusts the target display object from a first position to a second position, the position of the background image of the target area in the target area can be kept unchanged, so that the first relative position and the second relative position of at least one target display object can be different, thereby presenting a visual effect of the target display object being displaced relative to the background image of the target area when the electronic device at least meets the posture change condition.

[0076] Among them, before determining that the electronic device meets the first condition, the image displayed by the electronic device in the target area can be regarded as a first image, which contains the above-mentioned at least one target display object, and the background image of the target area can include the background image of the first image except for at least one target display object.

[0077] Correspondingly, the first relative position of the target display object may be, when the electronic device displays the target display object based on the first position (equivalent to before determining that the first condition is met), a relative position of at least one target display object relative to the background image other than the at least one target display object in the first image;

[0078] The second relative position of the target display object may be a relative position of at least one target display object relative to the background image when the electronic device displays the target display object based on the second position (equivalent to after determining that the first condition is satisfied).

[0079] As an example, before determining that the first condition is satisfied, the first image displayed by the electronic device in the target area may be Figure 3 The image shown in (1) in which the target display object can be Figure 3 As shown in (2), the background image other than the target display object can be as follows Figure 3 As shown in (3).

[0080] In some optional embodiments, after the electronic device determines that the first condition is satisfied, the target display object can be adjusted from the first position to the second position, or the position of the background image of the target area can be adjusted, and then the background image at the adjusted position and the target display object at the second position are displayed in the target area, wherein the amplitude of the position adjustment of the background image and the amplitude of the position adjustment of the target display object are different, thereby presenting a visual effect that the target display object moves to the left relative to the background. Exemplarily, the following can be displayed based on the adjusted background image and the target display object: Figure 3 The image shown in (4) is compared Figure 3 It can be seen from (1) and (4) that the target display object moves horizontally to the left by a certain distance relative to the background image, thereby presenting a visual effect that the target display object moves to the left relative to the background.

[0081] For example, the horizontal distance between the first position and the second position of the target display object can be x1, and the horizontal distance between the third position of the background image in the target area before adjustment and the fourth position of the background image after adjustment can be x2, and x2 can be greater than 0 and less than x1.

[0082] By using the above method, the first relative position and the second relative position of the front and rear target display objects can also be adjusted to be different, thereby presenting a visual effect that the target display object is displaced relative to the background image.

[0083] In some embodiments, the electronic device may not change the position of the background image after determining that the first condition is met, that is, the electronic device may display the target display object based on the second position in the target area, and display the background image based on the original position of the background image before the first condition is met.

[0084] Optionally, the first condition may include only the posture change condition, or may include the posture change condition and other additional conditions.

[0085] As some examples, the first condition may include a posture change condition and a brightness condition. In this case, when determining that the posture change condition is met, the electronic device may determine the second position of the target display object based on the posture change condition and the first position, and determine the target brightness of the target display object and the background image based on the brightness condition, and display the target display object in the target area based on the second position and the target brightness.

[0086] The brightness condition may include the brightness of the environment in which the electronic device is located. In this example, if the brightness of the environment is high, a higher target brightness may be determined; if the brightness of the environment is low, a lower target brightness may be determined.

[0087] As some examples, the first condition may include a posture change condition and a temperature condition. In this case, when determining that the posture change condition is met, the electronic device may determine the second position of the target display object based on the posture change condition and the first position, determine the target color temperature of the target display object and the background image based on the temperature condition, and display the target display object in the target area based on the second position and the target color temperature.

[0088] The temperature condition may include the temperature of the environment in which the electronic device is located. In this example, if the temperature of the environment is high, a higher target color temperature may be determined; if the temperature of the environment is low, a lower target color temperature may be determined.

[0089] As some examples, the first condition may include a posture change condition and a humidity condition. In this case, when determining that the posture change condition is met, the electronic device may determine the second position of the target display object based on the posture change condition and the first position, determine the target blurriness of the target display object and the background image based on the humidity condition, and display the target display object in the target area based on the second position and the target blurriness.

[0090] The humidity condition may include the humidity of the environment in which the electronic device is located. In this example, if the humidity of the environment is high, a higher target blur can be determined to display a blurrier target display object and background image. If the humidity of the environment is low, a lower target blur can be determined to display a clearer target display object and background image.

[0091] In some optional embodiments, the second position may be determined by:

[0092] In the case where the first condition includes a posture change condition, determining a displacement parameter of at least one target display object according to a first posture of the electronic device before the change and a second posture of the electronic device after the change;

[0093] A second position of at least one target display object in the target area is determined according to the displacement parameter and the first position.

[0094] The displacement parameters of the target display object may include the displacement direction and displacement amplitude of the target display object.

[0095] The displacement direction of the target display object can be determined according to the posture change direction of the electronic device. The posture change direction of the electronic device and the displacement direction of the target display object can be the same or opposite.

[0096] As some examples, assuming that the electronic device is determined to change from the first posture to the second posture by moving horizontally to the left by a certain distance, that is, the posture change direction is horizontal leftward movement, then the displacement direction of the target display object can be determined to be horizontal rightward movement;

[0097] Assuming that the direction in which the electronic device changes from the first posture to the second posture is determined to be a certain angle of swinging to the left around an axis perpendicular to the display screen, the displacement direction may be horizontally moving to the right; if the direction in which the posture changes is a certain angle of swinging to the right around an axis perpendicular to the display screen, the displacement direction may be horizontally moving to the left;

[0098] Assuming that the direction in which the electronic device changes from the first posture to the second posture is that the top of the display screen turns toward the user, the displacement direction can be vertical downward movement; if the direction in which the posture changes is that the bottom of the display screen turns toward the user, the displacement direction can be vertical upward movement.

[0099] The displacement amplitude of the target display object can be determined according to the amplitude of the posture change of the electronic device, or it can be set to a fixed value.

[0100] One implementation method of the former may be to determine multiple non-overlapping change amplitude intervals, each change amplitude interval corresponding to a displacement amplitude of a target display object, and the change amplitude interval with a larger upper limit corresponds to a larger displacement amplitude. After obtaining the posture change amplitude of the electronic device, the displacement amplitude corresponding to the change amplitude interval where the posture change amplitude is located is determined as the displacement amplitude of the target display object.

[0101] Another implementation of the former is to calculate the change amplitude of the electronic device's posture according to a certain proportional relationship or other functional relationship, and obtain the calculated result as the displacement amplitude of the target display object. For example, the proportional relationship can be set to 6:1, and the displacement amplitude of the target display object can be determined to be 0.5 cm for every 3 cm movement of the electronic device, and the rotation amplitude of the target display object can be determined to be 5 degrees for every 30 degrees rotation of the electronic device.

[0102] For the latter case, a fixed target moving distance and / or target rotation angle may be set. After the displacement direction is determined, if movement is required, the target moving distance and displacement direction may be determined as displacement parameters of the target display object. If rotation is required, the target rotation angle and displacement direction may be determined as displacement parameters of the target display object. The target moving distance and / or target rotation angle may be preset by the manufacturer or may be customized by the user of the electronic device.

[0103] There may be one or more target display objects in the target area. In the case of multiple target display objects, the electronic device may determine the second position of each target display object in the above manner.

[0104] In this embodiment, after the electronic device determines the second position, it can display at least one target display object based on the target area and the second position in the following manner:

[0105] Crop the first image for display in the target area to obtain at least one target display object contained in the first image and a background image other than the at least one target display object in the first image;

[0106] Processing at least one target display object and a background image according to the second position to obtain a second image including the at least one target display object;

[0107] The second image is displayed in the target area.

[0108] by Figure 4 For example, electronic devices can Figure 4 The first image shown in (1) is cropped to obtain Figure 4 The target display object shown in (2) (which can also be regarded as the foreground of the first image), and obtaining Figure 4 The background image other than the target display object in the first image shown in (3).

[0109] Then, the electronic device can paste the target display object to the second position in the background image and use the obtained image as the second image. Figure 4 The second position of the background image shown in (3), that is, the dotted triangle area shown in the figure, is obtained. Figure 4 The image shown in (4) is used as the second image. Figure 4 The dotted triangle frame in (3) is only used to indicate the second position, and the actual background image may not include this frame.

[0110] Among them, the outlines of the first image and the background image are consistent with the outline of the target area. Therefore, the second position of the target area is equivalent to the second position of the background image. By pasting the target display object at the second position of the background image and displaying the pasted image in the target area, the visual effect of displaying the target display object at the second position of the target area can be presented.

[0111] Optional, from Figure 4 As can be seen from (4), there is a certain blank portion in the image obtained by directly pasting the target display object to the second position. Displaying the image with the blank portion will cause a poor visual effect. Therefore, when processing at least one target display object and the background image according to the second position, the processing can be performed as follows:

[0112] Processing at least one target display object and a background image according to the intelligent engine and the second position to obtain a second image including the at least one target display object;

[0113] Among them, the intelligent engine is used to determine the output image based on the first part of the input image, the first part at least includes the pixel content of the background image, the input image of the intelligent engine is the background image, or is a fused image obtained by fusing at least one target display object and the background image according to the second position.

[0114] The first part can also be called the non-blank part of the input image. For any frame of an image, the blank part of the image can be understood as the part of the image that does not contain any pixel content, or can be understood as the part of the image where the transparency of the pixel is 100% (completely transparent), and the part of the image other than the blank part can be called the non-blank part of the image. As an example, Figure 4 In (3) and (4), the white parts can be regarded as blank parts, and the parts other than the blank parts can be regarded as non-blank parts.

[0115] In this embodiment, the intelligent engine can use one or more processing models based on machine learning technology, neural network technology or other image processing technology to process the input image, generate pixel content for filling the blank part of the input image based on the non-blank part of the input image, fill these contents into the blank part of the input image, and output the filled image as the output image.

[0116] In this embodiment, the method of obtaining the second image based on the intelligent engine may be:

[0117] The target display object and the background image are processed based on the second position to obtain a fused image including the target display object and the background image, wherein the target display object in the fused image is located at the second position, and then the fused image is input into the intelligent engine as an input image of the intelligent engine, and the fused image is processed by the intelligent engine. When the intelligent engine processes, the blank part of the fused image can be filled based on the non-blank part of the fused image. An output image of the intelligent engine is obtained, and the output image can be determined as the second image.

[0118] As an example, the fused image in the above method can be Figure 4 The image shown in (4) can be the output image after the intelligent engine processes Figure 4 The image shown in (6).

[0119] The advantage of obtaining the second image in this way is that the non-blank part of the fused image contains the pixel content of the background image and the target display object, so when the intelligent engine fills the blank part, it can fill it with the pixel content of the background image and the target display object, so that there can be a smooth transition between the filled content, the original background image and the pixel content of the target display object, thereby obtaining a better visual effect.

[0120] The method of obtaining the second image based on the intelligent engine may also be:

[0121] First, the background image is input as an input image to the intelligent engine, and the background image is processed by the intelligent engine. The intelligent engine fills the blank part according to the pixel content of the non-blank part of the background image to obtain the output image; then the output image is used as the filled background image, and the target display object is pasted to the second position of the filled background image, and the obtained image is used as the second image.

[0122] As an example, the background image input to the intelligent engine in the above method can be as follows: Figure 4 As shown in (3), the obtained filled background image can be Figure 4 As shown in (5), the second image obtained can be Figure 4 As shown in (6).

[0123] The advantage of obtaining the second image in this way is that the process of the intelligent engine processing the image takes a long time. Obtaining the second image in this way allows the intelligent engine to only process the pixel content contained in the background image, reducing the amount of data that the intelligent engine needs to process, thereby shortening the processing time to a certain extent.

[0124] The filling of the background image or the fused image may also be achieved without going through the intelligent engine. For example, the pixel contents of the non-blank part of the background image or the fused image may be directly copied and pasted into the blank part of the background image or the fused image to achieve the filling.

[0125] The benefits of using an intelligent engine for filling are:

[0126] The intelligent engine can analyze the changing patterns of the pixel content in the non-blank part of the image, and fill the blank part based on the analysis results, so that there is a smoother and more natural transition effect between the filled pixel content and the original non-blank pixel content, making the filled image have a better visual effect.

[0127] In some embodiments, when the target display object is pasted to a second position of the background image or the filled background image, a portion of the target display object may extend beyond the edge of the background image or the filled background image. In this case, the portion extending beyond the edge can be cropped off, leaving only the portion within the edge of the background image or the filled background image in the second image.

[0128] In the above-mentioned embodiment, the position of the background image may also be adjusted to a certain extent. In this case, the blank part that may appear after the position of the background image is adjusted may also be filled in the above-mentioned manner, which will not be described in detail.

[0129] In some optional embodiments, the electronic device may determine the second position in the following manner:

[0130] Get the properties of at least one target display object;

[0131] Based on the first condition, the first position and the attribute of the at least one target display object, a second position of the at least one target display object in the target area is determined.

[0132] With reference to the foregoing embodiment, the electronic device may determine the displacement parameters of the target display object according to the first and second postures before and after the change and in combination with the properties of the target display object, and then determine the second position of the target display object according to the first position of the target display object and the displacement parameters of the target display object.

[0133] Wherein, under the premise of ignoring the influence of the first and second postures before and after the change, the displacement parameters of the target display object may be different according to different attributes of the target display object. Generally, different displacement amplitudes may be determined according to different attributes.

[0134] As some examples, different displacement parameters may be determined depending on whether the target display object is a person. Figure 3 For a character object as shown in (1), a larger displacement amplitude can be determined for the target display object. If a target display object is an object, a smaller displacement amplitude can be determined for the target display object.

[0135] As some examples, different displacement parameters may be determined according to the size of the target display object in the target area. A larger displacement amplitude may be determined for a larger target display object in the target area, and a smaller displacement amplitude may be determined for a smaller target display object.

[0136] As some examples, different displacement parameters can be determined according to the difference between the color of the target display object and the color of the background image. For a target display object whose color is closer to that of the background image, a smaller displacement amplitude can be determined. For a target display object whose color is significantly different from that of the background image, a larger displacement amplitude can be determined.

[0137] After the displacement parameter is determined, the manner of determining the second position based on the displacement parameter and the first position is as described in the above embodiment and will not be described in detail.

[0138] As an example, see Figure 5 As described in step S101, the electronic device may display in the display area of ​​the display screen Figure 5 The first image shown in (1);

[0139] The electronic device may be shaken by the user. If, as described in step S102, the electronic device determines that the first condition is satisfied after the shaking, the first image is cropped to obtain Figure 5 The target display object shown in (2) and Figure 5 The electronic device can process the background image with an intelligent engine to obtain Figure 5 The filled background image shown in (4);

[0140] If the user shakes the electronic device by rotating the top of the display screen toward the user, the electronic device can determine a second position located below the original first position, and then obtain and display the second position in the display area of ​​the display screen in the manner of the above embodiment. Figure 5 The second image shown in (5) is compared Figure 5 As can be seen from (1) and (5), the target display object moves downward from the first position;

[0141] If the user shakes the electronic device by swinging the display screen to the right, the electronic device can determine the second position located to the left of the original first position, and then obtain and display the following in the display area of ​​the display screen in the manner of the above embodiment: Figure 5 The second image shown in (6) is compared Figure 5 As can be seen from (1) and (6), the target display object moves to the left from the first position;

[0142] If the user shakes the electronic device by swinging the display screen to the left, the electronic device can determine a second position located to the right of the original first position, and then obtain and display the following in the display area of ​​the display screen in the manner of the above embodiment: Figure 5 The second image shown in (7) is compared Figure 5 It can be seen from (1) and (7) that the target display object moves from the first position to the right.

[0143] In some embodiments, after the electronic device displays the target display object based on the target area and the second position, it can restore to displaying the target display object based on the target area and the first position after a certain period of time.

[0144] In combination with the above example, when the electronic device determines that the first condition is met, it can display Figure 5 The second image shown in (7) is displayed for 5 seconds, and then the electronic device returns to displaying Figure 5 The first image shown in (1).

[0145] In some embodiments, after the electronic device displays the target display object based on the target area and the second position, it may continue to display the target display object based on the second position until the electronic device is restored to a state before the first condition is met, for example, restored to a posture before the first condition is met.

[0146] In some optional embodiments, the target area may include multiple display objects. In this case, the electronic device may determine the target display object from the multiple display objects in at least one of the following determination methods:

[0147] Determination method 1: determining a display object of a target type among multiple display objects contained in the target area as a target display object;

[0148] Determination method two: according to the selection operation, determining a display object selected from a plurality of display objects contained in the target area as a target display object;

[0149] Determination method three: determining a target display object from multiple display objects according to the areas occupied by the multiple display objects contained in the target area.

[0150] For example, in determination method one, the electronic device may determine display objects of the human type within the target area as target display objects, and display objects of non-human types not as target display objects; or determine display objects of movable types, such as vehicles, humans, and animals, within the target area as target display objects, and display objects of immovable types, such as trees and buildings, not as target display objects.

[0151] In the second determination method, the electronic device may prompt the user to select from a plurality of display objects, and then based on the user's selection operation, use the selected display object as the target display object.

[0152] In determination method three, the electronic device may select display objects in the target region that occupy an area greater than a certain threshold, or the first few display objects that occupy the largest area as target display objects; it may also select display objects in the target region that occupy an area less than a certain threshold, or the first few display objects that occupy the smallest area as target display objects; it may also select display objects in the target region that occupy an area within a specific range as target display objects.

[0153] Optionally, the electronic device may display multiple frames of first images in sequence in the target area at a certain display frequency (for example, the frame rate of a video) at multiple consecutive moments, and each frame of the first image may include at least one target display object. Correspondingly, the first position may include the first position of at least one target display object in the target area at multiple consecutive moments. In this case, the moment when the electronic device meets the first condition can be used as the target moment.

[0154] For example, the electronic device can play a video in the target area, and each frame of the video can be regarded as a frame of the first image. When the electronic device determines that the first condition is met at time T0, time T0 is the target time, and the video frame played at time T0 is the first image corresponding to the target time. The time after time T0 is the non-target time, and the video frame in the video used to be played at the non-target time is the first image corresponding to the non-target time.

[0155] In the first image corresponding to the non-target moment, the position of the target display object is used as the first position corresponding to the non-target moment.

[0156] For the scenario where the electronic device displays a plurality of consecutive frames of the first image, one display method may be:

[0157] The electronic device may display at least one target display object based on the target area and a second position corresponding to the target time, where the second position corresponding to the target time is obtained according to the first position at the target time;

[0158] The display method may be that the electronic device obtains a first image at the target moment, processes the first image in the manner of the aforementioned embodiment, obtains a second image at the target moment, and then displays the second image at the target moment. In the second image at the target moment, the target display object is located at a second position corresponding to the target moment. The method of obtaining the second position corresponding to the target moment according to the first position at the target moment can refer to the content of obtaining the second position according to the first position in the aforementioned embodiment, and will not be repeated.

[0159] After displaying the second image at the target time, the electronic device may display at least one target display object based on the first position of the target area corresponding to the non-target time.

[0160] In the above embodiment, the electronic device may continuously display the second image for a certain time, such as 1 second, 2 seconds or other time, and then start to display the first images at non-target moments one by one at the original display frequency.

[0161] Alternatively, the electronic device may continue to display the second image, pause displaying the first image at subsequent non-target moments, and after obtaining relevant operations from the user, start to display the first images at non-target moments one by one at the original display frequency.

[0162] Based on the above display method, when the electronic device continuously displays multiple frames of the first image, it can adjust the position of the target display object in the first image displayed at this time only when it is determined that the first condition is met, and display the second image with the adjusted position. The subsequent first images do not need to be adjusted, and the target display objects in the subsequent first images are still displayed at the original position.

[0163] For the scenario where the electronic device displays a plurality of consecutive frames of the first image, another display method may be:

[0164] At each moment, the electronic device displays at least one target display object based on the target area and the second position corresponding to the moment, and the second position corresponding to the moment is obtained according to the first position at the moment.

[0165] In this display mode, the electronic device can process the first image at the target moment and each non-target moment after the target moment in the manner of the aforementioned embodiment to obtain the second image at the target moment and each non-target moment after the target moment, and then continue to display each frame of the second image at the previous display frequency starting from the target moment.

[0166] As an example, when the first condition is not met, the electronic device may sequentially display the following at times T0, T1, and T2: Figure 6 Assume that at time T0, the electronic device determines that the first condition is satisfied, and therefore processes the three first images according to the method of the foregoing embodiment to adjust the position of the target display object in each first image to the second position at the corresponding time. For example, the target display object in each first image is moved rightward from the original first position to the second position. Then, the electronic device can sequentially display the target display object. Figure 6 The three frames of second images shown in (4), (5) and (6) are as follows: Figure 6 of (4) by Figure 6 After adjusting the position of (1), we get Figure 6 of (5) by Figure 6 After adjusting the position of (2), we get: Figure 6 of (6) by Figure 6 (3) is obtained after adjusting the position.

[0167] If the first image at a certain moment does not contain the target display object, the first image at that moment may not be adjusted.

[0168] The present application also provides an electronic device. Figure 7 The electronic device may include a detection module 701, a processing module 702 and a display screen 703.

[0169] The detection module 701 is used to detect whether the electronic device meets the first condition;

[0170] The processing module 702 is used for:

[0171] Obtaining a first position of at least one target display object in a target area of ​​the display screen 703;

[0172] When the detection module determines that the electronic device satisfies the first condition, a second position of at least one target display object in the target area is determined based on the first condition and the first position, the first position is different from the second position, and the first condition at least includes a posture change condition;

[0173] At least one target display object is displayed on the display screen 703 based on the target area and the second position.

[0174] Among them, the detection module can include at least one or more modules such as a gyroscope, a velocity sensor, an acceleration sensor, etc. that can detect the position and posture of the electronic device. It can also include a light sensor for detecting ambient brightness, a humidity sensor for detecting ambient humidity, a temperature sensor for detecting ambient temperature, etc., without limitation.

[0175] The working principle of the electronic device provided in this embodiment can refer to the relevant steps of the processing method provided in any embodiment of the present application, and will not be repeated here.

[0176] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0177] For the convenience of description, the above system or device is described by dividing it into various modules or units according to its functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0178] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application or certain parts of the embodiments.

[0179] Finally, it should be noted that, in this article, relational terms such as first, second, third and fourth are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0180] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A processing method, applied to an electronic device, comprising: Obtaining a first position of at least one target display object displayed in a target area; If the electronic device satisfies a first condition, determining a second position of the at least one target display object in the target area based on the first condition and the first position, the first position being different from the second position, and the first condition at least including a posture change condition; The at least one target display object is displayed based on the target area and the second position.

2. The method according to claim 1, wherein determining the second position of the at least one target display object in the target area based on the first condition and the first position comprises: In the case where the first condition includes a posture change condition, determining a displacement parameter of the at least one target display object according to a first posture of the electronic device before the change and a second posture of the electronic device after the change; A second position of the at least one target display object in the target area is determined according to the displacement parameter and the first position.

3. The method according to claim 1, wherein displaying the at least one target display object based on the target area and the second position comprises: Cropping a first image for display in the target area to obtain at least one target display object contained in the first image and a background image in the first image except the at least one target display object; Processing the at least one target display object and the background image according to the second position to obtain a second image including the at least one target display object; The second image is displayed in the target area.

4. The method according to claim 3, wherein the processing the at least one target display object and the background image according to the second position to obtain a second image containing the at least one target display object comprises: Processing the at least one target display object and the background image according to the intelligent engine and the second position to obtain a second image including the at least one target display object; In which, the intelligent engine is used to determine the output image based on the first part of the input image, the first part includes at least the pixel content of the background image, and the input image of the intelligent engine is the background image, or a fused image obtained by fusing the at least one target display object and the background image according to the second position.

5. The method according to claim 1, wherein determining the second position of the at least one target display object in the target area based on the first condition and the first position comprises: Obtaining properties of the at least one target display object; Based on the first condition, the first position, and the attribute of the at least one target display object, a second position of the at least one target display object in the target area is determined.

6. The method according to claim 1, further comprising at least one of the following: Determine a display object of a target type among a plurality of display objects contained in the target area as a target display object; According to the selection operation, a display object selected from a plurality of display objects contained in the target area is determined as a target display object; According to the areas occupied by the multiple display objects contained in the target area, a target display object is determined from the multiple display objects.

7. The method according to claim 1, wherein the first position comprises a first position of the at least one target display object in the target area in a plurality of consecutive moments, and the moment when the electronic device meets the first condition is taken as the target moment; The displaying the at least one target display object based on the target area and the second position includes: Displaying the at least one target display object based on a second position corresponding to the target area and the target time, wherein the second position corresponding to the target time is obtained according to the first position at the target time; The method further comprises: The at least one target display object is displayed based on the target area and a first position corresponding to a non-target time.

8. The method according to claim 1, wherein the first position comprises a first position of the at least one target display object in the target area at a plurality of consecutive moments; The displaying the at least one target display object based on the target area and the second position includes: At each of the moments, the at least one target display object is displayed based on the target area and a second position corresponding to the moment, where the second position corresponding to the moment is obtained according to the first position at the moment.

9. The method according to claim 1, wherein the first relative position and the second relative position of the at least one target display object are different; The first relative position is a relative position of the at least one target display object relative to a background image other than the at least one target display object in a first image when displayed based on the first position, and the first image is used to be displayed in the target area; The second relative position is a relative position of the at least one target display object relative to the background image when displayed based on the second position.

10. An electronic device comprising a detection module, a processing module and a display screen; The detection module is used to detect whether the electronic device meets the first condition; The processing module is used for: Obtaining a first position of at least one target display object displayed in a target area of ​​the display screen; When it is determined based on the detection module that the electronic device satisfies a first condition, a second position of the at least one target display object in the target area is determined based on the first condition and the first position, the first position is different from the second position, and the first condition at least includes a posture change condition; The at least one target display object is displayed on the display screen based on the target area and the second position.

Citation Information

Cited By

  • PROCESSING METHOD AND ELECTRONIC EQUIPMENT

    DE102025147359A1