PROCESSING METHOD AND ELECTRONIC EQUIPMENT
The electronic device dynamically adjusts display object positions based on detected changes, improving visual effects by moving objects relative to the background, addressing the limitations of static display methods.
Patent Information
- Application Number
- DE102025147359
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-11-22
- Filing Date
- 2025-11-17
- Publication Date
- 2026-05-28
Smart Images

Figure 00000018_0000 
Figure 00000019_0000 
Figure 00000019_0001
Abstract
Description
REFERENCE TO RELATED REGISTRATION
[0001] This application claims priority over Chinese patent application No. 202411691062.1, filed on November 22, 2024, the entire contents of which are hereby incorporated by reference. TECHNICAL AREA
[0002] The present disclosure relates generally to the field of data processing technology and in particular to a processing method and an electronic device. TECHNICAL BACKGROUND
[0003] An electronic device can display various objects in any area of its screen. For example, a mobile phone can use its entire display area to show a photograph containing a person or another object.
[0004] When an electronic device displays a single image within a target area, an object in the image is always displayed at a specific position within that area. This display method may not meet the needs of some users. OVERVIEW OF THE INVENTION
[0005] According to the disclosure, a processing method is provided which includes obtaining a first position of a target display object displayed within a target area and determining, in response to an electronic device fulfilling a condition, a second position of the target display object within the target area based on the condition and the first position. The first position is different from the second position, and the condition includes a position change condition. The method further includes displaying the target display object based on the target area and the second position.
[0006] Also according to the disclosure, an electronic device is provided which includes a detection module, a processing module, and a display screen. The detection module is configured to recognize whether the electronic device fulfills a condition. The processing module is configured to obtain a first position of a target display object that is shown within a target area of the display screen and, in response to the electronic device fulfilling a condition, to determine a second position of the target display object within the target area based on the condition and the first position. The first position is different from the second position, and the condition includes a position change condition. The processing module is further configured to display the target display object based on the target area and the second position.
[0007] Also according to the disclosure, a non-volatile, computer-readable storage medium is provided on which program instructions are stored. When executed by a processor, these instructions cause an electronic device containing the processor to obtain a first position of a target display object displayed within a target area. In response to the electronic device fulfilling a condition, the device determines a second position of the target display object within the target area based on the condition and the first position. The first position is different from the second position, and the condition includes a position change condition. The program instructions further cause the electronic device to display the target display object based on the target area and the second position. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] To more clearly illustrate the technical solutions of the embodiments of this disclosure, the drawings required for use in the description of the embodiments are briefly presented below. The drawings described below are embodiments of this disclosure. A person skilled in the art can derive other drawings from these drawings without any creative effort. In all drawings, identical or similar reference numerals represent identical or similar elements. It is understood that the drawings are schematic and that the originals and elements are not necessarily shown to scale. Fig. Figure 1 is a flowchart of a processing method according to embodiments of the present disclosure. Fig. Figure 2 is a schematic diagram showing a display interface according to embodiments of the present disclosure. Fig. Figure 3 is a schematic diagram showing another display interface according to embodiments of the present disclosure. Fig. Figure 4 is a schematic diagram showing the obtaining of a second image according to embodiments of the present disclosure. Fig. Figure 5 is another schematic diagram showing the obtaining of a second image according to embodiments of the present disclosure. Fig. Figure 6 is a schematic diagram showing the processing of a target display object at several successive time points according to embodiments of the present disclosure. Fig. Figure 7 is a schematic structure diagram of an electronic device according to embodiments of the present disclosure. DETAILED DESCRIPTION OF THE EXECUTION FORMS
[0009] Various schemes and features of the present disclosure are described below with reference to the accompanying drawings. The terms used in the present disclosure are employed solely to explain the specific embodiments of the present disclosure and are not intended to limit the scope of the present disclosure. It is understandable to those skilled in the art that, with technical progress and the emergence of new scenarios, the technical solutions provided in the embodiments of the present disclosure may also be applicable to similar technical problems.
[0010] The terms “first”, “second”, and “third” appearing in this disclosure are used merely to distinguish similar objects and do not represent a specific order of the objects. It is understood that, where permitted, the objects described by “first”, “second”, or “third” may exist in a different order or sequence, so that the embodiments of this disclosure described herein may be implemented in a different order than that illustrated or described herein.The terms "comprise" and "have" and all variations thereof are intended to cover a non-exclusive scope, so that a process, method, system, product, or device having a number of elements is not necessarily limited to those elements but may also have other elements not expressly listed or inherent in such process, method, product, or device. Unless otherwise defined, all technical and scientific terms used in this disclosure have the meanings commonly understood by those skilled in the art. The terms used in this disclosure serve only descriptive purposes and are not intended to limit the scope of this disclosure.
[0011] The present disclosure provides a processing method applicable to an electronic device. As stated in Fig. As shown in 1, the method comprises embodiments S101 to S103.
[0012] In S101, a first position of at least one target display object that is displayed in a target area is obtained.
[0013] In the present embodiment, the target area can be an entire display area or a part of the display area of a display screen in the electronic device.
[0014] In one example, as in Fig. As shown in 2, the target area can be, as in part (1) of Fig. 2 shown, the entire display area of the display screen or, as shown in part (2) of Fig. 2 shown, only including the display area within a rectangular frame on the display screen.
[0015] The electronic device can continuously display an image in the target area or display multiple images sequentially at several successive times in the target area. The latter can correspond to a scene in which the electronic device plays a video or displays a dynamic image in the target area.
[0016] For each image displayed by the electronic device in the target area, the at least one target display object can comprise one or more display objects contained in the image. In combination with the examples above, the at least one target display object can be the one described in part (1) of Fig. 2 depicted figure objects comprise.
[0017] In this embodiment, an image displayed in the target area before it is determined that the electronic device satisfies a first condition can be referred to as the first image.
[0018] The first position can include the position of at least one target object in the target area at the current time (i.e., when S101 is executed).
[0019] In this embodiment, the electronic device can execute S101 each time it displays an image within the target area in order to obtain the first position of the at least one target object within the image.
[0020] In one example, the display screen cannot show any image content when the electronic device is in a screen-off state. At a specific time, the electronic device can switch from the screen-off state to the screen-on state in response to a specific wake-up condition (for example, pressing the screen lock button or the user tapping the display screen). At this time, the electronic device can display a background image across the entire display area of the screen. While this image is displayed, the electronic device can execute S101 to obtain the first position of the at least one target display object within the display area of the background image.
[0021] In another example, when a video application is running, the electronic device can display a playback window in a specific area of the display screen and play video content within that window. In this case, the electronic device can use the playback window area as the target area. Each time a video frame is displayed within the playback window, the electronic device can determine the positions of one or more display objects within the playback window area as the first position.
[0022] In S102, if the electronic device satisfies the first condition, a second position of the at least one target display object within the target area is determined based on the first condition and the first position, wherein the first position and the second position are different and the first condition includes at least one position change condition.
[0023] In this embodiment, after displaying an image in the target area, the electronic device can periodically detect in real time whether the first condition is met. If the first condition is met, S102 can be executed. If not, the electronic device can continue to display the image in the target area in its original display mode.
[0024] In some embodiments, the electronic device can first display the image in the target area and then detect in real time whether the first condition is met. Only after it has been detected that the first condition is met can S101 and S102 be executed sequentially to obtain the first position and determine the second position based on the first condition and the first position.
[0025] The first condition can include at least the position change condition. That is, the electronic device can acquire its own position parameters in each detection cycle. S102 only needs to be performed if, based on the position parameters, it is determined that the current position has changed compared to the position of the previous detection cycle and the change fulfills a specific condition.
[0026] In some examples, the position change condition may include the requirement that a position change magnitude exceeds a certain threshold. For example, the position change condition may include the rotation angle of the electronic device exceeding a specific angular threshold, or the displacement distance of the electronic device exceeding a specific distance threshold.
[0027] In other examples, the position change condition might specify that a position change direction is a particular direction. For instance, the position change condition might specify that the electronic device rotates clockwise around the vertical axis of symmetry of the display screen, or moves horizontally to the right or left.
[0028] If the electronic device satisfies the first condition, it can determine the second position based on at least the position change condition and the first position. For example, the second position can be determined based on at least the position change magnitude and the first condition, or based on the position change direction and the first position, or based on the position change magnitude, the position change direction, and the first position.
[0029] In S103, at least one target display object is shown based on the target area and the second position.
[0030] In S103, the electronic device can adjust the image displayed in the target area and then display the adjusted image. In the adjusted image, at least one target display object can be located in the second position in the target area.
[0031] In one example, the electronic device can determine that the first condition is met, as described in part (1) of Fig. 2. Display the image shown in the display area of the display screen, with the at least one target display object at the first position shown in the figure. After determining that the first condition is met, the electronic device can display the image shown in the figure. Fig. 2(3) The adapted image shown is displayed in the display area of the display screen. It is evident that the at least one target display object in Fig. 2(3) in the second position, which is different from that in part (1) of Fig. 2 is.
[0032] In the present embodiment, the electronic device can adjust the position of the at least one target display object shown in the target area, at least when the electronic device undergoes a change in position and a specific position change condition is met. If at least the position change condition is met, the at least one target display object can be displayed based on the adjusted position. Therefore, when the position change condition is met, the electronic device can present a visual effect of the at least one target display object moving within the target area in conjunction with the change in position of the electronic device, thus fulfilling the usage requirements of some users in certain scenarios.
[0033] In some optional embodiments, when the electronic device adjusts the at least one target display object from the first position to the second position, the position of a background image of the target area within the target area can remain unchanged. This allows the first relative position and the second relative position of the at least one target display object to be different, thereby creating a visual effect of a displacement of the at least one target display object relative to the background image of the target area, provided the electronic device satisfies at least the position change condition.
[0034] Before determining that the electronic device satisfies the first condition, the image displayed by the electronic device within the target area can be considered the first image, and the first image can contain the at least one target display object. The background image of the target area can include the background image that does not contain the at least one target display object in the first image.
[0035] Accordingly, the first relative position of the at least one target display object can be the relative position of the at least one target display object relative to the background image that does not contain the at least one target display object in the first image, if the electronic device displays the at least one target display object based on the first position (equivalent to before determining that the first condition is satisfied).
[0036] The second relative position of the at least one target display object can be the relative position of the at least one target display object relative to the background image if the electronic device displays the at least one target display object based on the second position (equivalent to after determining that the first condition is met).
[0037] In one example, before determining that the first condition is met, the first image displayed by the electronic device in the target area, as described in part (1) of Fig. 3 shown image, wherein the at least one target display object is the one shown in part (2) of Fig. 3 shown can be and the background image without the at least one target display object that is in part (3) of Fig. 3 shown may be.
[0038] In some optional embodiments, after determining that the first condition is satisfied, the electronic device can adjust the at least one target display object from the first position to the second position, or adjust the position of the background image of the target area and then display the background image at the adjusted position and the at least one target display object at the second position in the target area, wherein the amplitude of the position adjustment of the background image and the amplitude of the position adjustment of the at least one target display object are different, thus providing the visual effect of the at least one target display object moving to the left relative to the background. In one example, this can be done in part (4) of Fig. The image shown is based on the background image and the at least one target display object shown after position adjustment. When comparing part (1) of Fig. 3 and part (4) of Fig. 3 shows that the at least one target display object moves horizontally to the left by a certain distance relative to the background image, thus providing the visual effect that the at least one target display object moves to the left relative to the background.
[0039] In one example, the horizontal distance between the first position and the second position of the at least one target display object can be x1, and the horizontal distance between the third position of the background image before adjustment in the target area and the fourth position of the background image after adjustment can be x2, where x2 can be greater than 0 and less than x1.
[0040] Using the above method, the first relative position and the second relative position of the at least one target display object can be adjusted so that they are different from each other, creating a visual effect in which the at least one target display object is moved relative to the background image.
[0041] In some embodiments, the electronic device cannot change the position of the background image after determining that the first condition is met. This means that the electronic device can display the at least one target display object based on its second position within the target area and simultaneously display the background image based on its original position before the first condition was met.
[0042] Alternatively, the first condition can include only the change of position condition, or it can include the change of position condition and other additional conditions.
[0043] In some examples, the first condition can include both a position change condition and a brightness condition. Accordingly, after determining that the position change condition is satisfied, the electronic device can determine the second position of the at least one target display object based on the position change condition and the first position, and determine the target brightness of the at least one target display object and the background image based on the brightness condition. The at least one target display object can then be displayed within the target area based on the second position and the target brightness.
[0044] The brightness condition can include the brightness of the environment surrounding the electronic device. In this example, a higher target brightness can be set when the ambient brightness is high, and a lower target brightness can be set when the ambient brightness is low.
[0045] In some examples, the first condition can include both the position change condition and the temperature condition. Accordingly, after determining that the position change condition is satisfied, the electronic device can determine the second position of the at least one target display object based on the position change condition and the first position, determine a target color temperature for the at least one target display object and the background image based on the temperature condition, and display the at least one target display object within the target area based on the second position and the target color temperature.
[0046] The temperature condition can include the ambient temperature of the electronic device. In this example, a higher target color temperature can be set at a high ambient temperature, and a lower target color temperature can be set at a low ambient temperature.
[0047] In some examples, the first condition may include a position change condition and a humidity condition. Accordingly, after determining that the position change condition is satisfied, the electronic device may determine the second position of the at least one target display object based on the position change condition and the first position, determine a target blur for the at least one target display object and the background image based on the humidity condition, and display the at least one target display object within the target area based on the second position and the target blur.
[0048] The humidity condition can include the humidity of the environment surrounding the electronic device. In this example, a higher target blur can be set at high ambient humidity, resulting in a blurrier display of the one or more target display objects and the background image, while a lower target blur can be set at low ambient humidity, resulting in a clearer display of the one or more target display objects and the background image.
[0049] In some optional embodiments, the second position can be determined by:
[0050] if the first condition includes the position change condition, determining a displacement parameter of the at least one target display object based on a first position of the electronic device before the change and a second position of the electronic device after the change; and
[0051] Determining the second position of the at least one target display object within the target area based on the displacement parameter and the first position.
[0052] The displacement parameter of the at least one target display object can include the displacement direction and the displacement amplitude of the at least one target display object.
[0053] The displacement direction of the at least one target display object can be determined based on the direction of change of position of the electronic device. The direction of change of position of the electronic device and the displacement direction of the at least one target display object can be the same or opposite to each other.
[0054] Assuming, by way of example, that the electronic device changes from a first position to a second position by moving horizontally a certain distance to the left, i.e., that the direction of the change of position is a horizontal movement to the left, it can be determined that the direction of displacement of the at least one target display object is a horizontal movement to the right.
[0055] In another example, if the electronic device changes from the first to the second position by pivoting at a certain angle to the left around an axis perpendicular to the display screen, the direction of displacement can be a horizontal movement to the right. Conversely, if the direction of the position change is a pivot to the right at a certain angle around an axis perpendicular to the display screen, the direction of displacement can be a horizontal movement to the left.
[0056] In another example, if the electronic device changes from the first to the second position by rotating the upper part of the display screen towards the user, the direction of movement can be a vertical downward movement. If the direction of the position change is a rotation of the lower part of the display screen towards the user, the direction of movement can be a vertical upward movement.
[0057] The displacement amplitude of the at least one target display object can be determined based on the position change amplitude of the electronic device or set to a fixed value.
[0058] In one embodiment, if the displacement amplitude of the at least one target display object is determined based on the position change amplitude of the electronic device, several non-overlapping change amplitude intervals can be defined, each corresponding to a displacement amplitude of the at least one target display object. A change amplitude interval with a higher upper limit can correspond to a larger displacement amplitude. After the position change amplitude of the electronic device has been obtained, a displacement amplitude corresponding to the change amplitude interval within which the position change amplitude lies can be determined as the displacement amplitude of the at least one target display object.
[0059] In another embodiment, if the displacement amplitude of the at least one target display object is determined based on the position change amplitude of the electronic device, the position change amplitude of the electronic device can be calculated according to a specific proportional relationship or other functional relationship, and the calculated result can be used as the displacement amplitude of the at least one target display object. For example, a ratio of 6:1 can be specified. It can be determined that for every 3 cm movement of the electronic device, the displacement amplitude of the at least one target display object is 0.5 cm, and for every 30-degree rotation of the electronic device, the rotation amplitude of the at least one target display object is 5 degrees.
[0060] In another embodiment, if the displacement amplitude of the at least one target display object is set to a fixed value, a fixed target movement distance and / or a fixed target rotation angle can be defined. After determining the displacement direction, if movement is required, the target movement distance and the displacement direction can be determined as the displacement parameter of the at least one target display object. If rotation is required, the target rotation angle and the displacement direction can be determined as the displacement parameter of the at least one target display object. The target movement distance and / or the target rotation angle can be preset by the manufacturer or individually configured by the user of the electronic device.
[0061] The target area can contain one or more target display objects. In some embodiments, the target area can contain multiple target display objects, and the electronic device can determine the second position of each target display object in the manner described above.
[0062] In one embodiment, after determining the second position, the electronic device can display the at least one target display object based on the target area and the second position by:
[0063] Cropping the first image to be displayed in the target area to obtain the at least one target display object contained in the first image and the background image that the at least one target display object in the first image does not contain;
[0064] Processing the at least one target display object and the background image based on the second position to obtain a second image that contains the at least one target display object; and
[0065] Displaying the second image in the target area.
[0066] Using Fig. 4. For example, the electronic device can do the work described in Part (1) of Fig. Crop the first image shown in part (2) of Fig. 4 to obtain at least one target display object shown (which can also be considered the foreground of the first image) and that shown in part (3) of Fig. To obtain the 4th background image shown of the first image, which does not contain at least one target display object.
[0067] Then the electronic device can insert the at least one target display object at the second position into the background image and use the resulting image as the second image. For example, the at least one target display object at the second position of the image in part (3) of Fig. 4 background image shown, that is, the dotted triangle area shown in the figure, is inserted and is located in part (4) of Fig. The fourth image shown is obtained as the second image. The dotted triangular frame is then... Fig. 4(3) is only used to indicate the second position; the actual background image does not need to include this frame.
[0068] The outlines of the first image and the background image can coincide with the outline of the target area. Therefore, the second position of the target area can be equivalent to the second position of the background image. By inserting the one or more target display objects at the second position of the background image and displaying the inserted image in the target area, the visual effect of displaying the one or more target display objects at the second position of the target area can be achieved.
[0069] Alternatively, as in part (4) of Fig. As can be seen in Figure 4, the image obtained by directly inserting the at least one target display object in the second position will have a certain empty section. Displaying the image with this empty section can result in a poor visual effect. Therefore, processing the at least one target display object and the background image according to the second position can include:
[0070] Processing at least one target display object and the background image according to an intelligent machine and the second position to obtain the second image containing the at least one target display object.
[0071] The intelligent machine can be used to determine the output image based on the first section of the input image, where the first section can include at least the pixel contents of the background image, and the input image of the intelligent machine can be the background image or a merged image obtained by merging the at least one target display object and the background image according to the second position.
[0072] The first section can also be referred to as the non-empty part of the input image. For any image, the empty part of the image can be understood as the part of the image that contains no pixel content, or as the part of the image where the pixel transparency is 100% (fully transparent). The part of the image that is not the empty part can be referred to as the non-empty part of the image. For example, the white part in part (3) of Fig. 4 and part (4) of Fig. 4 can be considered the empty part, and the part that is not the empty part can be considered the non-empty part.
[0073] In this embodiment, the intelligent machine can use one or more processing models based on machine learning, neural network, or other image processing techniques to process the input image, generate pixel content to fill the empty part of the input image based on the non-empty part of the input image, fill this content into the empty part of the input image, and output the filled image as the output image.
[0074] In this embodiment, obtaining the second image based on the intelligent machine can include:
[0075] Processing the at least one target display object and the background image based on the second position; obtaining a merged image that includes the at least one target display object and the background image, with the at least one target display object located in the second position in the merged image; inputting the merged image to the intelligent machine as the input image of the intelligent machine; and processing the merged image using the intelligent machine. During processing by the intelligent machine, the empty portion of the merged image can be filled based on the non-empty portion of the merged image. The output image of the intelligent machine can be obtained as the second image.
[0076] In one example, the merged image in the above procedure can be the one in part (4) of Fig. The image shown in section 4 and the output image after processing by the intelligent machine can be the one shown in part (6) of Fig. The fourth image shown is...
[0077] The advantage of obtaining the second image in this way is that the non-empty portion of the merged image contains the pixel content of the background image and the at least one target display object. Therefore, when filling the empty portion, the intelligent machine can combine the pixel content of the background image and the at least one target display object for filling, resulting in a smooth transition between the filled content, the original background image, and the pixel content of the at least one target display object, thus achieving a better visual effect.
[0078] In another embodiment, obtaining the second image based on the intelligent machine can include:
[0079] First, the background image is entered as an input image into the intelligent machine. Then, the intelligent machine processes the background image and fills the empty part according to the pixel contents of the non-empty part of the background image to obtain an output image. The output image is used as the filled background image. The at least one target display object is inserted at the second position of the filled background image, and the obtained image is used as the second image.
[0080] In one example, the background image entered into the intelligent machine according to the above procedure can be the one described in part (3) of Fig. 4 shown, the obtained filled background image can be the one shown in part (5) of Fig. 4 shown and can the obtained second image be the one in part (6) of Fig. 4 shown.
[0081] The process of processing the image by the intelligent machine is lengthy. The advantage of obtaining the second image in this way is that the second image can be obtained by the intelligent machine processing only the pixel content contained in the background image, thus reducing the amount of data to be processed and consequently shortening the processing time to some extent.
[0082] In other embodiments, filling the background image or the merged image can be achieved without the intelligent machine. For example, the pixel content of the non-empty part of the background image or the merged image can be directly copied and pasted into the empty part of the background image or the merged image to achieve the filling.
[0083] The advantages of using a smart filling machine can include: The intelligent machine may be able to analyze the change patterns of pixel content in non-empty areas of an image and fill the empty areas based on the analysis results, creating a smoother and more natural transition between the filled pixel content and the original non-empty pixel content, resulting in a better visual effect for the filled image.
[0084] In some embodiments, when inserting the at least one target display object at the second position into the background image or the filled background image, a portion of the at least one 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 so that only the portion within the edge of the background image or the filled background image remains in the second image.
[0085] In the embodiments mentioned above, the position of the background image can also be adjusted to a certain extent. In this case, the empty space that may appear after adjusting the position of the background image can also be filled in the same way as described above and will not be described further.
[0086] In some optional embodiments, the electronic device can determine the second position by: Obtaining attributes of at least one target display object; and Determining the second position of the at least one target display object in the target area based on the first condition, the first position, and the attributes of the at least one target display object.
[0087] The electronic device can determine the displacement parameter of the at least one target display object based on the first position and the second position before and after the change in combination with the attributes of the at least one target display object, and then determine the second position of the at least one target display object based on the first position of the at least one target display object and the displacement parameter of the at least one target display object.
[0088] Assuming that the influence of the first and second layers before and after the change is ignored, the displacement parameter of the at least one target display object can differ depending on the attributes of that target display object. In general, different displacement amplitudes can be determined depending on the attributes.
[0089] In some examples, different displacement parameters can be determined depending on whether the at least one target display object is a person. If the at least one target display object, as in part (1) of Fig. As shown in Figure 3, if the target object is a person, a larger displacement amplitude can be determined for the at least one target display object. If the at least one target display object is an object, a smaller displacement amplitude can be determined for the at least one target display object.
[0090] In other examples, different displacement parameters can be determined based on the size of the at least one target display object within the target area. A larger displacement amplitude can be determined for a larger target display object within the target area, while a smaller displacement amplitude can be determined for a smaller target display object.
[0091] In other examples, different shift parameters can be determined based on the color difference between the at least one target display object and the background image. A smaller shift amplitude can be determined for a target display object with colors similar to the background image, while a larger shift amplitude can be determined for a target display object with colors significantly different from the background image.
[0092] After determining the displacement parameters, determining the second position based on the displacement parameter and the first position can be similar to the previous embodiments and will not be described further.
[0093] In one example, the electronic device, as in Fig. 5 shown and described in S101, which is in part (1) of Fig. Display the 5 shown image in the display area of the display screen.
[0094] The electronic device can be shaken by the user. If, as described in S102, the electronic device determines after shaking that the first condition is met, the first image can be cropped to show the at least one target display object specified in part (2) of Fig. 5 is shown, and the background image shown in part (3) of Fig. 5 is shown. The electronic device can process the background image using an intelligent machine to obtain the filled background image shown in part (4) of Fig. 5 is shown.
[0095] If the user shakes the electronic device by rotating the upper section of the display screen towards the user, the electronic device can determine the second position below the original first position and then the second image shown in part (5) of Fig. 5 shown, obtain and display in the display area of the display screen in the manner of the embodiments mentioned above. Compared with part (1) of Fig. 5 the at least one target display object moves, as in part (5) of Fig. 5 are visible, from the first position downwards.
[0096] If the user shakes the electronic device by swiveling the display screen to the right, the electronic device can determine the second position to the left of the original first position and then the second image shown in part (6) of Fig. 5 shown, obtain and display in the display area of the display screen in the manner of the embodiments mentioned above. When comparing part (1) of Fig. 5 and part (6) of Fig. As can be seen in 5, at least one target display object moves to the left from the first position.
[0097] If the user shakes the electronic device by swiveling the display screen to the left, the electronic device can determine the second position to the right of the original first position and then the second image shown in part (7) of Fig. 5 shown, obtain and display in the display area of the display screen in the manner of the embodiments mentioned above. When comparing part (1) of Fig. 5 and part (7) of Fig. As can be seen in 5, at least one target display object moves to the right from the first position.
[0098] After the electronic device has displayed the at least one target display object based on the target area and the second position, in some embodiments the display of the at least one target display object based on the target area and the first position can be restored after a certain period of time.
[0099] In combination with the examples above, if the electronic device determines that the first condition is met, it can display the second image, which is described in part (7) of Fig. 5 is shown. After 5 seconds of display, the electronic device can resume displaying the first image shown in part (1) of Fig. 5 is shown.
[0100] In some embodiments, after displaying the at least one target display object based on the target area and the second position, the electronic device can continue to display the at least one target display object based on the second position until the electronic device is returned to the state prior to the fulfillment of the first condition, for example, until the electronic device is returned to the state prior to the fulfillment of the first condition.
[0101] In some optional embodiments, the target area can have multiple display objects. In this case, the electronic device can determine the at least one target display object from the multiple display objects using at least one of the following determination methods.
[0102] In a determination procedure 1, a display object of a target type can be determined as the at least one target display object among several display objects contained in the target area.
[0103] In a determination procedure 2, a selected display object can be determined as the at least one target display object among the several display objects contained in the target area according to the selection process.
[0104] In a determination procedure 3, the at least one target display object can be determined among the several display objects according to the areas that the several display objects contained in the target area each occupy.
[0105] For example, in determination procedure 1, the electronic device can determine that display objects of type "person" within the target area are the at least one target display object, and display objects of type "no person" are not target display objects. In another example, the electronic device can determine display objects of type "moving" within the target area, such as display objects of vehicles, people, or animals, as the at least one target display object, and not determine display objects of type "immobile," such as display objects of trees or buildings, as target display objects.
[0106] In determination procedure 2, the electronic device can prompt the user to select from the multiple display objects and then, based on the user's selection, determine the selected display object as the at least one target display object.
[0107] In determination procedure 3, the electronic device can select as the at least one target display object any display object in the target area whose area is greater than a certain threshold, or a number of display objects with the largest areas. The electronic device can also select as the at least one target display object any display object in the target area whose area is less than a certain threshold, or a number of display objects with the smallest areas. The electronic device can also select as the at least one target display object any display object whose area in the target area lies within a specific range.
[0108] In some other embodiments, the electronic device can display several frames of the first image in the target area sequentially at several successive times at a specific display frequency (e.g., a video frame rate). Each frame of the first image can contain at least one target display object. Accordingly, the first position can comprise the first position of the at least one target display object in the target area at several successive times. In this case, the target time can be defined as the time at which the electronic device fulfills the first condition.
[0109] In one example, the electronic device can play a video within a target time range. Each frame of the video can be considered a first frame. If the electronic device determines at time T0 that the first condition is met, time T0 can be set as the target time, and a frame of the video played back at T0 can be set as the first frame corresponding to the target time. The time after T0 can be set as non-target times, and frames of the video scheduled for playback at non-target times can be set as the first frames corresponding to non-target times.
[0110] In a first image corresponding to one of the non-target time points, the position of the at least one target display object can be set as the first position corresponding to a non-target time point.
[0111] For the scenario in which the electronic device displays several consecutive frames of the first image, a display method may include the following:
[0112] the electronic device that can display at least one target display object based on the target area and a second position corresponding to the target time, wherein the second position corresponding to the target time is obtained based on the first position at the target time.
[0113] The display method may comprise the following: The electronic device obtains the first image at the target time, processes the first image according to the embodiments mentioned above to obtain the second image at the target time, and then displays the second image at the target time. In the second image at the target time, the at least one target display object may be located at the second position corresponding to the target time. The method for obtaining the second position corresponding to the target time, based on the first position at the target time, can be taken from the embodiments mentioned above for obtaining the second position based on the first position and is not described further.
[0114] After displaying the second image at the target time, the electronic device can display at least one target display object based on the target area and the first position corresponding to a non-target time.
[0115] In the above embodiments, the electronic device can continuously display the second image for a certain duration, for example one second, two seconds or another duration, and then begin to display the first images individually at the non-target times at the original display frequency.
[0116] Alternatively, in another embodiment, the electronic device can continue to display the second image, pause the display of the first images at subsequent non-target times, and then – after receiving relevant user input – begin to display the first images individually at the non-target times at the original display frequency.
[0117] Based on the display method described above, when continuously displaying multiple individual frames of the first images, the electronic device only needs to adjust the position of the at least one target display object in the displayed first image if it is determined that the first condition is met, and can then display the adjusted second image. Subsequent first images may not require adjustment, and the at least one target display object in the subsequent first images may continue to be displayed in its original position.
[0118] For the scenario described above, in which the electronic device displays several consecutive individual frames of the first image, another display method may include:
[0119] At any given time, the electronic device displays at least one target display object based on the second position of the target area corresponding to that time, the second position corresponding to that time being obtained based on the first position at that time.
[0120] In this display method, the electronic device can process the first images at the target time and every non-target time after the target time in the manner described in the previous embodiments to obtain the second images at the target time and all non-target times after the target time. Then, starting at the target time, the electronic device can continuously display each frame of the second image at the previous display frequency.
[0121] In one example, if the first condition is not met, the electronic device may not process the three individual images of the first images that are in part (1) of Fig. 6, Part (2) of Fig. 6 and part (3) of Fig. Figure 6 shows the images sequentially at times T0, T1, and T2. Assuming the electronic device determines that the first condition is met at time T0, then the three frames of the first images can be processed according to the method of the embodiments mentioned above to adjust the position of the at least one target display object in each frame of the first image to the second position at the corresponding time. For example, the at least one target display object in each frame of the first image can be moved to the right from its original first position to the second position. Then the electronic device can display the three frames of the first images shown in part (4) of Figure 6. Fig. 6, Part (5) of Fig. 6 and part (6) of Fig. 6 are shown. Part (4) of Fig. 6 can be achieved by adjusting the position of part (1) of Fig. 6 to be obtained, part (5) of Fig. 6 can be achieved by adjusting the position of part (2) of Fig. 6 are obtained and part (6) of Fig. 6 can be achieved by adjusting the position of part (3) of Fig. 6 can be obtained.
[0122] If the first image at a given time does not contain at least one target display object, the first image cannot be adjusted at that time.
[0123] The present disclosure also provides an electronic facility. As in Fig. As shown in Figure 7, in one embodiment the electronic device may comprise a recognition module 701, a processing module 702 and a display screen 703.
[0124] The detection module 701 can be configured to detect whether the electronic device meets a first condition.
[0125] The processing module 702 can be configured to: obtain a first position of at least one target display object within a target area of the display screen 703; if the detection module determines that the electronic device satisfies the first condition, determine a second position of the at least one target display object within the target area based on the first condition and the first position, wherein the first position and the second position are different and the first condition includes at least one position change condition; and display the at least one target display object on the display screen 703 based on the target area and the second position.
[0126] The detection module can include at least one or more modules capable of detecting the position of the electronic device, for example, a gyroscope, a velocity sensor, or an accelerometer. It can also include, among other things, a light sensor for detecting ambient brightness, a humidity sensor for detecting ambient humidity, a temperature sensor for detecting ambient temperature, and the like.
[0127] For the operating principle of the electronic device provided in this embodiment, reference can be made to the relevant steps of the processing procedure provided in exemplary embodiments of the present disclosure - it will not be discussed further.
[0128] It should also be noted that the device embodiments described above are for illustrative purposes only. Units described as separate components may or may not be physically separate. Components depicted as units may or may not be physical units; that is, they may be located in a single location or distributed across multiple network units. Some or all modules may be selected based on actual requirements to achieve the objectives of these embodiments. Furthermore, in the device embodiment drawings provided herein, the connections between modules indicate a communication link between them, which may be implemented as one or more communication buses or signal lines.
[0129] From the above description of the embodiments, it is clear to the person skilled in the art that the present disclosure can be implemented using software plus the necessary general-purpose hardware. Of course, it can also be implemented using specialized hardware, including application-specific integrated circuits, dedicated CPUs, dedicated memory, and dedicated components. In general terms, any function performed by a computer program can be easily implemented using the appropriate hardware. Furthermore, the specific hardware structures used to implement the same function can be diverse, for example, analog circuits, digital circuits, or dedicated circuits. In some embodiments, the preferred implementation method is software implementation.Based on this understanding, the technical solution of the present disclosure, or the section that contributes to the prior art, may be embodied in the form of a software product. This computer software product may be stored on a readable storage medium, for example, a computer floppy disk, a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, and may include instructions for enabling a computer device (which may be a personal computer, a training device, or a network device, etc.) to execute the methods provided by an embodiment of the present disclosure.
[0130] In the embodiments described above, the methods can be implemented wholly or partly using software, hardware, firmware, or any combination thereof. When implemented using software, the methods can be implemented wholly or partly in the form of a computer program product. The various embodiments of this disclosure are described progressively or in parallel, with each embodiment emphasizing its differences from other embodiments. Similar or identical sections of different embodiments may be referred to separately. The description of the devices and electronic devices disclosed in the embodiments is relatively simple, as they correspond to the methods disclosed in the embodiments. For relevant details, reference may be made to the method embodiments.
[0131] In this disclosure, relational terms such as "first," "second," "third," or "fourth" are used only to distinguish one entity or process from another and do not require or necessarily imply any actual relationship or sequence between those entities or processes. Furthermore, the terms "have," "include," and all variations thereof are intended to cover non-exclusive inclusion, such that a process, procedure, article, or device having a set of elements includes not only those elements but also other elements not explicitly listed or elements inherent in such a process, procedure, article, or device. In the absence of further restrictions, an element that is "includes a set of elements" by the expression "includes a set of elements" includes...“defined does not exclude the presence of additional identical elements in the process, procedure, article or apparatus that comprise the element.
[0132] The foregoing describes in detail several embodiments of the present disclosure; however, the present disclosure is not limited to these specific embodiments. Based on the concept of the present disclosure, a person skilled in the art may make various variations and modifications, and these variations and modifications are within the scope of the present disclosure. QUOTES INCLUDED IN THE DESCRIPTION
[0000] This list of documents cited by the applicant was automatically generated and is included solely for the reader's convenience. The list is not part of the German patent or utility model application. The DPMA accepts no liability for any errors or omissions. Cited patent literature
[0000] CN 202411691062.1
[0001]
Claims
[1] Processing operations, including: Obtaining an initial position of a target display object that is displayed within a target area; Determine, in response to an electronic device fulfilling a condition, a second position of the target display object within the target area based on the condition and the first position, wherein the first position is different from the second position and the condition includes a position change condition; and Displaying the target display object based on the target area and the second position. [2] The method of claim 1, wherein determining the second position comprises: Determining a displacement parameter of the target display object based on a first position of the electronic device before a change in position and a second position of the electronic device after the change in position; and Determining the second position based on the displacement parameter and the first position. [3] Method according to claim 1, wherein displaying the target display object comprises: Cropping a first image to obtain the target display object contained in the first image and a background image of the first image that does not contain the target display object; Processing the target display object and the background image according to the second position to obtain a second image containing the target display object; and Displaying the second image in the target area. [4] Method according to claim 3, wherein: The processing of the target display object and the background image according to an intelligent machine and the second position to obtain the second image includes; the intelligent machine is configured to determine an output image based on a portion of an input image, wherein the portion comprises at least pixel content of the background image; and The input image is the background image or a merged image obtained by merging the target display object and the background image according to the second position. [5] Method according to claim 1, wherein determining the second position comprises: Obtaining an attribute of the target display object; and Determining the second position based on the condition, the first position, and the attribute. [6] Method according to claim 1, further comprising: Identifying one display object of a target type from among several display objects contained in the target area as the target display object. [7] Method according to claim 1, further comprising: Determine, based on a selection process, one display object selected from multiple display objects contained in the target area as the target display object. [8] Method according to claim 1, further comprising: Determining the target display object from multiple display objects based on the area each of the multiple display objects contained in the target area occupies. [9] Method according to claim 1, wherein: the first position is a target first position from several first positions of the target display object in the target area at several successive times, wherein the target first position is a position of the target display object at a target time at which the electronic device satisfies the condition; the second position is a second position serving as a target, corresponding to the target time, and is achieved based on the first position serving as a target; and Displaying the target display object includes displaying the target display object based on the target area and the second position serving as the target. [10] Procedures, further comprising: Displaying the target display object based on the target area and one of the first several positions that corresponds to one of the consecutive time points that is not the target time point. [11] Method according to claim 1, wherein: the first position is one of several first positions of the target display object in the target area during several successive points in time; and Displaying the target display object includes: at each of the multiple consecutive time points, displaying the target display object based on the target area and the second position corresponding to the time point, and based on the first position obtained corresponding to the time point. [12] Method according to claim 1, wherein: The target display object, when displayed based on the first position, is located in a first relative position relative to a background image that does not contain the target display object, in an image displayed in the target area; The target display object, when displayed based on the second position, is located in a second relative position relative to the background image; and the first relative position and the second relative position are different from each other. [13] Method according to claim 1, further comprising: Adjusting, in response to the electronic device fulfilling the condition, a position of a background image of the first image that does not contain the target display object, to an adjusted position; where: an amplitude of a position adjustment of the background image differs from an amplitude of a position adjustment of the target display object; and Displaying the target display object includes displaying the target area, the target display object in the second position, and the background image in the adjusted position. [14] Electronic device comprising: a display screen; a detection module designed to recognize whether the electronic device meets a condition; and a processing module that is set up for this purpose: to obtain an initial position of a target display object that is displayed within a target area of the display screen; in response to the electronic device fulfilling a condition, to determine a second position of the target display object within the target area based on the condition and the first position, wherein the first position is different from the second position and the condition includes a position change condition; and to display the target display object based on the target area and the second position. [15] Electronic device according to claim 14, wherein the processing module is further configured to determine the second position: to determine a displacement parameter of the target display object based on a first position of the electronic device before a change in position and a second position of the electronic device after the change in position; and to determine the second position based on the displacement parameter and the first position. [16] Electronic device according to claim 14, wherein the processing module is further configured to: when displaying the target display object to crop a first image to obtain the target display object contained in the first image and a background image of the first image that does not contain the target display object; to process the target display object and the background image according to the second position in order to obtain a second image containing the target display object; and to display the second image in the target area. [17] Electronic device according to claim 16, wherein: The processing module is further configured to process the target display object and the background image according to an intelligent machine and the second position when processing the target display object and the background image in order to obtain the second image; the intelligent machine is configured to determine an output image based on a portion of an input image, wherein the portion comprises at least pixel content of the background image; and The input image is the background image or a merged image obtained by merging the target display object and the background image according to the second position. [18] Electronic device according to claim 14, wherein the processing module is further configured to determine the second position: to obtain an attribute of the target display object; and to determine the second position based on the condition, the first position, and the attribute. [19] Electronic device according to claim 14, wherein the processing module is further configured to: To determine a display object of a target type from among several display objects contained in the target area as the target display object. [20] Non-volatile, computer-readable storage medium on which program instructions are stored which, when executed by a processor, cause an electronic device comprising the processor to: to obtain a first position of a target display object that is displayed within a target area; in response to the electronic device fulfilling a condition, to determine a second position of the target display object within the target area based on the condition and the first position, wherein the first position is different from the second position and the condition includes a position change condition; and to display the target display object based on the target area and the second position.
Citation Information
Patent Citations
Processing method and electronic equipment
CN119544856A
202411691062.1
