Screen anti-shake method, device, equipment and storage medium

By moving and extending the screen along the first direction when the electronic device shakes, the problem of incomplete displayed content after anti-shake compensation is solved, and the complete display of the displayed content and the improvement of the user experience are achieved.

CN113485665BActive Publication Date: 2025-09-09VIVO MOBILE COMM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110806487.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2025-09-09
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

When an electronic device shakes, the displayed content may be incomplete after anti-shake compensation and cannot be fully displayed, affecting the user's viewing experience.

Method used

When the electronic device shakes, the displayed content on the screen is moved along the first direction, and the target extension length is determined based on the target information, and the screen is extended along the first direction to increase the distance between the displayed content and the edge of the screen to avoid incomplete display content.

Benefits of technology

By extending the screen, the problem of the display content not being able to be fully displayed on the screen is avoided, the display effect of the content displayed on the screen is improved, and the user's visual viewing experience is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113485665B_ABST
    Figure CN113485665B_ABST
Patent Text Reader

Abstract

This application discloses a screen stabilization method, apparatus, device, and storage medium, belonging to the field of screen display technology. The screen stabilization method includes: when the electronic device shakes, moving the displayed content on the screen along a first direction; when the displayed content at least partially overlaps with a target area on the screen, determining a target extension length based on target information, wherein the target area is located at both ends of the screen in an extendable direction, and the target information includes the movement distance of the displayed content, or screen extension information within a preset time period; and extending the screen along the first direction based on the target extension length.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of screen display technology, and specifically relates to a screen anti-shake method, device, equipment and storage medium. Background Art

[0002] With the rapid development of mobile internet, electronic devices have become an indispensable tool in people's daily lives. Users often use electronic devices while walking or in public transportation. However, when people are walking or in public transportation, electronic devices will inevitably shake, causing the displayed content to shake. To see the displayed content clearly, users need to constantly adjust the focus, which affects the visual experience.

[0003] In related technologies, when an electronic device shakes, anti-shake compensation can be performed by adjusting the position of the displayed content on the screen. However, the adjusted displayed content may be incomplete and cannot be fully displayed, resulting in poor display effect of the displayed content on the screen, affecting the user's viewing experience. Summary of the Invention

[0004] The purpose of the embodiments of the present application is to provide a screen anti-shake method, device, equipment and storage medium, which can solve the problem in the related art that the displayed content is incomplete and cannot be fully displayed after anti-shake compensation, resulting in poor display effect of the content displayed on the screen.

[0005] In a first aspect, an embodiment of the present application provides a screen stabilization method, which is applied to an electronic device, the method comprising: when the electronic device shakes, moving the displayed content on the screen along a first direction; when the displayed content at least partially overlaps with a target area on the screen, determining a target extension length based on target information, wherein the target area is located at both ends of the screen in an extendable direction, and the target information includes the moving distance of the displayed content, or the extension information of the screen within a preset time period; based on the target extension length, extending the screen along the first direction.

[0006] In a second aspect, an embodiment of the present application provides a screen anti-shake device, which is applied to an electronic device, and the device includes: a moving module, which is used to move the displayed content on the screen along a first direction when the electronic device shakes; a determination module, which is used to determine the target extension length based on target information when the displayed content at least partially overlaps with the target area on the screen, wherein the target area is located at both ends of the screen in the extendable direction, and the target information includes the moving distance of the displayed content, or the extension information of the screen within a preset time period; an extension module, which is used to extend the screen along the first direction based on the target extension length.

[0007] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instruction stored in the memory and executable on the processor. When the program or instruction is executed by the processor, the steps of the screen stabilization method according to the first aspect are implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a readable storage medium, which stores a program or instruction. When the program or instruction is executed by a processor, the steps of the screen anti-shake method of the first aspect are implemented.

[0009] In a fifth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the screen anti-shake method as in the first aspect.

[0010] In an embodiment of the present application, since the target areas are located at both ends of the screen in the extendable direction, after the electronic device shakes and moves the displayed content on the screen along the first direction, if the displayed content at least partially overlaps with the target area on the screen, it means that the displayed content has approached one end of the screen or the edge of the screen. On this basis, if the electronic device shakes again, the displayed content after anti-shake compensation may be displayed incompletely on the screen and cannot be fully displayed. Therefore, when the displayed content at least partially overlaps with the target area on the screen, the electronic device can determine the target extension length based on the movement distance of the displayed content or the extension information of the screen within a preset time period. Then, based on the target extension length, the screen can be extended along the first direction. In this way, by extending the screen, the distance between the displayed content and the edge of the screen can be increased, avoiding the problem that the displayed content cannot be fully displayed on the screen after the electronic device shakes again for anti-shake compensation, thereby effectively improving the display effect of the displayed content on the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 This is a flow chart of a screen anti-shake method provided by an embodiment of the present application;

[0012] Figure 2 is a schematic diagram of an example of a screen anti-shake interface provided in an embodiment of the present application;

[0013] Figure 3 is a schematic diagram of another example of a screen anti-shake interface provided in an embodiment of the present application;

[0014] Figure 4 is a schematic diagram of another example of a screen anti-shake interface provided by an embodiment of the present application;

[0015] Figure 5 This is a flow chart of another screen anti-shake method provided by an embodiment of the present application;

[0016] Figure 6 is a schematic diagram of another example of a screen anti-shake interface provided by an embodiment of the present application;

[0017] Figure 7 is a schematic diagram of another example of a screen anti-shake interface provided by an embodiment of the present application;

[0018] Figure 8 1 is a schematic structural diagram of a screen anti-shake device provided in an embodiment of the present application;

[0019] Figure 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0020] Figure 10 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0021] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are 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 are within the scope of protection of this application.

[0022] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0023] As mentioned in the background art, when an electronic device shakes, anti-shake compensation can be performed by adjusting the position of the displayed content on the screen, but the adjusted displayed content may be incomplete and cannot be fully displayed. Figure 1 As shown, when the electronic device 10 shakes in direction 2, in order to avoid fatigue of the human eyes caused by refocusing adjustment, the display content 101 can be moved along direction 1 on the screen 20. However, after the movement, the display content 101 will be incomplete and cannot be fully displayed, resulting in poor display effect of the content displayed on the screen, affecting the user's viewing experience.

[0024] To address the problems encountered in the related art, embodiments of the present application provide a screen stabilization method. Since the target areas are located at both ends of the screen in an extendable direction, if the displayed content at least partially overlaps with the target areas after the electronic device shakes and moves the displayed content on the screen in a first direction, it indicates that the displayed content has approached one end or edge of the screen. Based on this, if the electronic device shakes again, the displayed content after stabilization compensation may be incomplete and incomplete on the screen. Therefore, if the displayed content at least partially overlaps with the target area on the screen, the electronic device can determine a target extension length based on the distance the displayed content has moved or information about the screen extension within a preset time period. The screen can then be extended in the first direction based on this target extension length. This increases the distance between the displayed content and the screen edge by extending the screen, preventing the display content from being completely displayed after the electronic device shakes again and performing stabilization compensation. This effectively improves the display quality of the displayed content on the screen and addresses the problem in the related art of incomplete or incomplete display of displayed content after stabilization compensation, resulting in poor display quality.

[0025] The screen anti-shake method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0026] Figure 2 1 is a flow chart of a screen anti-shake method provided in an embodiment of the present application. The screen anti-shake method may be performed by an electronic device including a retractable screen. It should be noted that the above-mentioned performing entity does not constitute a limitation on the present application.

[0027] like Figure 2 As shown, the screen anti-shake method provided in the embodiment of the present application may include steps 210 to 230.

[0028] Step 210: When the electronic device is shaken, move the displayed content on the screen along a first direction.

[0029] The first direction may be opposite to the shaking direction of the electronic device.

[0030] For example, Figure 1 If the electronic device 10 is shaken in direction 2, the first direction may be direction 1 opposite to direction 2.

[0031] Step 220 : When the displayed content at least partially overlaps with the target area on the screen, determine the target extension length based on the target information.

[0032] Among them, the retractable screen of the electronic device can only be extended in two opposite directions, the target area is located at both ends of the screen in the extendable direction, and the target information may include the moving distance of the displayed content, or the extension information of the screen within a preset time period.

[0033] For example, Figure 3 The screen 30 shown is a retractable screen. Direction 1 and direction 2 are the extendable directions of the screen 30 . Area 301 is the target area of ​​the screen 30 in direction 1 , and area 302 is the target area of ​​the screen 30 in direction 2 .

[0034] In some embodiments of the present application, the target area may be a preset area set by default by the electronic device or a user-defined area, etc.

[0035] In other embodiments of the present application, the electronic device may determine the target area based on the distance between the displayed content and two ends of the screen.

[0036] Step 230: Extend the screen along a first direction based on the target extension length.

[0037] For example, the target extension length may be 3 cm, Figure 3 The direction 2 in the figure may be the shaking direction of the electronic device, and the direction 1 may be the first direction. After the display content 303 on the screen 30 is moved along the direction 1, as shown in FIG. Figure 3 As shown, displayed content 303 has approached the edge of screen 30, and displayed content 303 partially overlaps with area 301. Based on this, if the electronic device continues to shake in direction 2 the next time, and displayed content 303 continues to move in direction 1, there is a high probability that displayed content 303 will not be fully displayed on screen 30. Therefore, if displayed content 303 partially overlaps with area 301, the electronic device can extend screen 30 in direction 1 by 3 cm to avoid the situation where displayed content 303 is incomplete after moving in direction 1 the next time the electronic device is shaken.

[0038] It should be noted that when the screen is extended along the first direction, the target area in the screen will move as the screen is extended, and the target area will always be located at both ends of the screen, but the display content in the screen will not move as the screen is extended.

[0039] In the screen stabilization method provided in the embodiments of the present application, since the target areas are located at both ends of the screen in the extendable direction, if the displayed content at least partially overlaps with the target area after the electronic device shakes and moves the displayed content on the screen in a first direction, it indicates that the displayed content has approached one end or edge of the screen. Based on this, if the electronic device shakes again, the displayed content after stabilization compensation may appear incomplete on the screen and not be fully displayed. Therefore, when the displayed content at least partially overlaps with the target area on the screen, the electronic device can determine a target extension length based on the distance the displayed content has moved or the screen extension information within a preset time period. The screen can then be extended in the first direction based on this target extension length. In this way, by extending the screen, the distance between the displayed content and the screen edge can be increased, avoiding the problem of the displayed content not being fully displayed on the screen after the electronic device shakes again and performs stabilization compensation, effectively improving the display quality of the displayed content on the screen.

[0040] In some embodiments of the present application, the first direction may be opposite to the shaking direction of the electronic device, and step 210 may specifically include: when the shaking displacement of the electronic device is within a preset displacement range, determining the moving distance of the displayed content based on the shaking displacement; and moving the displayed content along the first direction based on the moving distance.

[0041] Among them, the preset displacement range can be set according to specific needs.

[0042] In the embodiment of the present application, only when the electronic device's jitter displacement is within a preset displacement range is the movement distance of the displayed content determined, and based on the movement distance, the displayed content is moved along the first direction. This prevents movement of the displayed content caused by human movement of the electronic device or slight jitter of the electronic device, and performs anti-shake compensation only when it is needed, thereby improving the user experience.

[0043] Exemplarily, the user can customize the two displacement ranges in the length and width directions to be (Sl-min, Sl-max) and (Sw-min, Sw-max), respectively. If the jitter displacement S1 ≥ Sl-max of the electronic device in the long side direction, it means that the electronic device is moved artificially rather than jittered; if the jitter displacement S1 ≤ Sl-min, it means that the electronic device has undergone slight movement, which can be ignored; if Sl-min<S1<Sl-max, it is determined that the electronic device is jittering. Similarly, if the jitter displacement S2 of the electronic device in the width direction satisfies Sw-min<S2<Sw-max, it is determined that the electronic device is jittering.

[0044] In one example, the difference between the screen length value and the screen width value of the electronic device may be calculated, and Sl-max may be half of the difference.

[0045] In some embodiments of the present application, determining the movement distance of the displayed content based on the shaking displacement may include: determining the shaking displacement as the movement distance.

[0046] In some other embodiments of the present application, determining the movement distance of the displayed content based on the shaking displacement may include: determining a difference between the shaking displacement and a preset distance as the movement distance.

[0047] The preset distance can be set according to specific needs, and this application does not make any specific limitations here.

[0048] For example, the shaking displacement is S1, the preset distance is S0, and the moving distance can be S1-S0.

[0049] In one example, the preset distance may be a minimum jitter amount that causes damage to human eyes.

[0050] In some embodiments of the present application, the target extension length may be a moving distance, or a sum of the moving distance and a preset distance threshold.

[0051] Among them, the preset distance threshold can be set according to specific needs, for example, it can be set to 0.8 cm by the user, or the electronic device defaults to 1 cm, and this application does not make specific limitations here.

[0052] In one example, the preset distance threshold may be the same as the preset distance amount.

[0053] In an embodiment of the present application, after the displayed content is moved into the target area, the screen of the electronic device can be extended by a target extension length. Since the target extension length is the distance the displayed content has moved, or the sum of the distance moved and a preset distance threshold, the distance between the displayed content and the target area after the extension is guaranteed to be equal to or greater than the distance before the displayed content was moved. This prevents the displayed content from overlapping the target area. While compensating for the displacement of the displayed content, the screen is also compensated, ensuring that the displayed content remains intact and unchanged in size after the next movement of the displayed content.

[0054] For example, the moving distance is 2 cm. Figure 4 As shown, after determining that the electronic device is shaking in Direction 2, the electronic device moves the displayed content 2 cm in Direction 1. After the movement, displayed content 303 partially overlaps with area 301. Then, screen 30 is further extended in Direction 1 to a target extension length of 2 cm, increasing the distance between displayed content 303 and the screen edge so that displayed content 303 no longer overlaps with target area 301. In this way, if the electronic device is shaken in Direction 2 again, even if displayed content 303 is moved in Direction 1 again, displayed content 303 can still be fully displayed.

[0055] In some embodiments of the present application, the preset time period may be from a preset moment to the first moment of the most recent movement of the displayed content, and the extension information may include the number of extensions and the extension length. Step 220 may specifically include the following steps: when the displayed content at least partially overlaps with the target area in the screen, obtaining the number of extensions and the extension length of the screen within the preset time period; calculating the target extension length based on the first ratio and the second ratio, wherein the first ratio is the ratio of the extension length to the preset time period, and the second ratio is the ratio of the preset time period to the number of extensions.

[0056] The preset time may be a time before the first time, and may be set according to specific needs.

[0057] For example, the preset time can be the time before the first time when the displayed content was last moved or the screen was retracted. For example, if the first time when the electronic device last moved the displayed content is 8:02, the preset time can be 8:01, the time before 8:02 when the displayed content was last moved.

[0058] Referring to the above example, the preset time period may be 60 seconds, the screen may be extended 2 times within 60 seconds, and the extended length may be 4.8 cm. The first ratio is 0.08, the second ratio is 30, and the target extended length is 2.4 cm.

[0059] In this embodiment of the present application, a target extension length can be calculated based on the number of extensions and the extension length of the retractable screen. After performing anti-shake compensation on the displayed content, the screen is extended based on the target extension length. This alleviates user eye fatigue while ensuring the display integrity of the displayed content, thereby improving the user's visual viewing experience.

[0060] In some embodiments of the present application, in order to avoid the problem that the displayed content is incomplete or cannot be fully displayed after anti-shake compensation, resulting in poor display effect of the content displayed on the screen, Figure 5 This is a flow chart of another screen anti-shake method provided in an embodiment of the present application.

[0061] like Figure 5 As shown, before step 210, the method may further include steps 510 to 530.

[0062] Step 510: When the screen displays content, receive a first input.

[0063] Among them, the first input is used to trigger the electronic device to enter the anti-shake mode and extend the screen. The first input can be a user's click input, sliding input, long press input, double-click input, etc., and this application does not make specific limitations here.

[0064] For example, when a user is about to board a vehicle and the electronic device is about to enter a shaking state, the electronic device may receive a first input. In response to the first input, the electronic device enters an anti-shake mode. In this anti-shake mode, the electronic device may extend the screen and move the displayed content on the screen when the electronic device shakes.

[0065] In one example, the screen may display a target control, which is used to turn on the anti-shake mode of the electronic device and extend the screen in the anti-shake mode. The first input may be a user click input on the target control.

[0066] Step 520 : In response to the first input, extend the screen based on a preset extension length.

[0067] Among them, the preset extension length can be set according to specific needs, and this application does not make any specific limitations here.

[0068] In some embodiments of the present application, the preset extension length may be related to the size of the displayed content.

[0069] Step 530: Move the displayed content on the extended screen so that the center of the extended screen coincides with the center of the displayed content.

[0070] In some embodiments of the present application, moving the displayed content in the extended screen may include any one of the following: translating the displayed content in the extended screen; translating and turning the displayed content in the extended screen.

[0071] In one example, if Figure 6 As shown, while the screen 60 moves along direction 1, the center of the screen 60 also moves along direction 1. Therefore, the electronic device can translate the display content 601 along direction 1 so that the center of the display content 601 coincides with the center of the screen 60, thereby making the display 601 located in the center of the screen 60.

[0072] In another example, Figure 7 As shown, when the screen 70 moves along direction 3, the electronic device can turn 90 degrees clockwise with point A at the lower left corner of the display content 701 as the reference point, and then translate the display content 701 along direction 2 and the opposite direction of direction 3, so that the center of the display content 701 coincides with the center of the screen 70, thereby placing the display 701 in the center of the screen 70.

[0073] In an embodiment of the present application, before the electronic device experiences jitter, user input can be received to trigger the electronic device to extend the screen and move the displayed content to the center of the extended screen. This reduces the probability of display content being incomplete or incomplete after the electronic device subsequently experiences jitter and performs jitter compensation.

[0074] In some embodiments of the present application, the preset time period may be the moment when the first input is received to the first moment when the displayed content was most recently moved, and the extension information includes the number of extensions and the extension length. Step 220 may include: when the displayed content at least partially overlaps with the target area in the screen, obtaining the number of extensions and the extension length of the screen within the preset time period; calculating the target extension length based on the first ratio and the second ratio, wherein the first ratio is the ratio of the extension length to the preset time period, and the second ratio is the ratio of the preset time period to the number of extensions.

[0075] For example, when the electronic device receives the first input that triggers the electronic device to extend the screen at 7:55, 7:55 to the first moment of the most recent movement of the displayed content (for example, 8:02) can be used as the preset time period, and the preset time period is 420s.

[0076] In the embodiment of the present application, since the first input can trigger the electronic device to extend the screen, the electronic device can determine a target extension length suitable for the current electronic device screen based on the number of times and the extended length of the screen between the time the first input was received and the time the displayed content was most recently moved, thereby making the resulting extension length more reasonable. On this basis, extending the screen based on this extension length can effectively increase the distance between the displayed content and the edge of the screen, improving the display quality of the content displayed on the screen the next time the electronic device is shaken.

[0077] It should be noted that the screen stabilization method provided in the embodiments of the present application can be executed by a screen stabilization device, or by a control module in the screen stabilization device that is used to execute the screen stabilization method. In the embodiments of the present application, the screen stabilization device executing the screen stabilization method is used as an example to illustrate the screen stabilization device provided in the embodiments of the present application. The screen stabilization device is described in detail below.

[0078] Figure 8 This is a structural diagram of a screen anti-shake device provided in this application.

[0079] like Figure 8 As shown, an embodiment of the present application provides a screen anti-shake device 800 , which is applied to an electronic device. The screen anti-shake device 800 includes: a moving module 810 , a determining module 820 , and an extending module 830 .

[0080] Among them, the moving module 810 is used to move the displayed content on the screen along the first direction when the electronic device shakes; the determining module 820 is used to determine the target extension length based on the target information when the displayed content at least partially overlaps with the target area on the screen, wherein the target area is located at both ends of the screen in the extendable direction, and the target information includes the moving distance of the displayed content, or the extension information of the screen within a preset time period; the extending module 830 is used to extend the screen along the first direction based on the target extension length.

[0081] In the screen stabilization device provided in the embodiments of the present application, since the target areas are located at both ends of the screen in the extendable direction, if the displayed content at least partially overlaps with the target area after the electronic device shakes and moves the displayed content on the screen in a first direction, it indicates that the displayed content has approached one end or edge of the screen. Based on this, if the electronic device shakes again, the displayed content after stabilization compensation may appear incomplete on the screen and not fully displayed. Therefore, when the displayed content at least partially overlaps with the target area on the screen, the electronic device can determine a target extension length based on the distance the displayed content has moved or the screen extension information within a preset time period. The screen can then be extended in the first direction based on this target extension length. By extending the screen, the distance between the displayed content and the screen edge can be increased, avoiding the problem of the displayed content not being fully displayed on the screen after the electronic device shakes again and performs stabilization compensation, effectively improving the display quality of the displayed content.

[0082] In some embodiments of the present application, the preset time period is from a preset moment to the first moment of the most recent movement of the displayed content, and the extension information includes the number of extensions and the extension length. The determination module 820 includes: an acquisition unit for acquiring the number of extensions and the extension length of the screen within the preset time period when the displayed content at least partially overlaps with the target area in the screen; and a calculation unit for calculating the target extension length based on a first ratio and a second ratio, wherein the first ratio is the ratio of the extension length to the preset time period, and the second ratio is the ratio of the preset time period to the number of extensions.

[0083] In this embodiment of the present application, a target extension length can be calculated based on the number of extensions and the extension length of the retractable screen. After performing anti-shake compensation on the displayed content, the screen is extended based on the target extension length. This alleviates user eye fatigue while ensuring the display integrity of the displayed content, thereby improving the user's visual viewing experience.

[0084] In some embodiments of the present application, the device also includes: a receiving module for receiving a first input when the screen displays the display content before moving the display content in the screen along the first direction; an extension module 830 for extending the screen based on a preset extension length in response to the first input; and a moving module 810 for moving the display content in the extended screen so that the center of the extended screen coincides with the center of the display content.

[0085] In an embodiment of the present application, before the electronic device experiences jitter, user input can be received to trigger the electronic device to extend the screen and move the displayed content to the center of the extended screen. This reduces the probability of display content being incomplete or incomplete after the electronic device subsequently experiences jitter and performs jitter compensation.

[0086] In some embodiments of the present application, the first direction is opposite to the shaking direction of the electronic device, and the moving module 810 includes: a determination unit, used to determine the moving distance of the displayed content based on the shaking displacement when the shaking displacement of the electronic device is within a preset displacement range; and a moving unit, used to move the displayed content along the first direction based on the moving distance.

[0087] In the embodiment of the present application, only when the electronic device's jitter displacement is within a preset displacement range is the movement distance of the displayed content determined, and based on the movement distance, the displayed content is moved along the first direction. This prevents movement of the displayed content caused by human movement of the electronic device or slight jitter of the electronic device, and performs anti-shake compensation only when it is needed, thereby improving the user experience.

[0088] In some embodiments of the present application, the target extension length is the moving distance, or the sum of the moving distance and a preset distance threshold.

[0089] In an embodiment of the present application, after the displayed content is moved into the target area, the screen of the electronic device can be extended by a target extension length. Since the target extension length is the distance the displayed content has moved, or the sum of the distance moved and a preset distance threshold, the distance between the displayed content and the target area after the extension is guaranteed to be equal to or greater than the distance before the displayed content was moved. This prevents the displayed content from overlapping the target area. While compensating for the displacement of the displayed content, the screen is also compensated, ensuring that the displayed content remains intact and unchanged in size after the next movement of the displayed content.

[0090] The screen anti-shake device provided in the embodiment of the present application can achieve Figure 1-Figure 7 To avoid repetition, the various processes implemented by the electronic device in the method embodiment are not described here.

[0091] The screen anti-shake device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an ATM, or an kiosks, etc., which are not specifically limited in the embodiment of the present application.

[0092] The screen anti-shake device in the embodiment of the present application can be a device having an operating system. The operating system can be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0093] Alternatively, as Figure 9 As shown, an embodiment of the present application further provides an electronic device 900, including a processor 901, a memory 902, and a program or instruction stored in the memory 902 and executable on the processor 901. When the program or instruction is executed by the processor 901, each process of the above-mentioned screen anti-shake method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0094] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0095] Figure 10 A schematic diagram of the hardware structure of an electronic device according to an embodiment of the present application.

[0096] The electronic device 1000 includes but is not limited to components such as a radio frequency unit 1001 , a network module 1002 , an audio output unit 1003 , an input unit 1004 , a sensor 1005 , a display unit 1006 , a user input unit 1007 , an interface unit 1008 , a memory 1009 , and a processor 1010 .

[0097] Those skilled in the art will understand that the electronic device 1000 may also include a power source (such as a battery) to power each component, and the power source may be logically connected to the processor 1010 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system. Figure 10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be repeated here.

[0098] Among them, the processor 1010 is used to move the displayed content on the screen along the first direction when the electronic device is shaken; the processor 1010 is also used to determine the target extension length based on the target information when the displayed content at least partially overlaps with the target area on the screen, wherein the target area is located at both ends of the screen in the extendable direction, and the target information includes the moving distance of the displayed content, or the extension information of the screen within a preset time period; the processor 1010 is also used to extend the screen along the first direction based on the target extension length.

[0099] In an embodiment of the present application, since the target areas are located at both ends of the screen in the extendable direction, after the electronic device shakes and moves the displayed content on the screen along the first direction, if the displayed content at least partially overlaps with the target area on the screen, it means that the displayed content has approached one end of the screen or the edge of the screen. On this basis, if the electronic device shakes again, the displayed content after anti-shake compensation may be displayed incompletely on the screen and cannot be fully displayed. Therefore, when the displayed content at least partially overlaps with the target area on the screen, the electronic device can determine the target extension length based on the movement distance of the displayed content or the extension information of the screen within a preset time period. Then, based on the target extension length, the screen can be extended along the first direction. In this way, by extending the screen, the distance between the displayed content and the edge of the screen can be increased, avoiding the problem that the displayed content cannot be fully displayed on the screen after the electronic device shakes again for anti-shake compensation, thereby effectively improving the display effect of the displayed content on the screen.

[0100] In some embodiments of the present application, the preset time period is from a preset moment to the first moment of the most recent movement of the displayed content, and the extension information includes the number of extensions and the extension length. The processor 1010 is specifically used to: when the displayed content at least partially overlaps with the target area in the screen, obtain the number of extensions and the extension length of the screen within the preset time period; calculate the target extension length based on the first ratio and the second ratio, wherein the first ratio is the ratio of the extension length to the preset time period, and the second ratio is the ratio of the preset time period to the number of extensions.

[0101] In this embodiment of the present application, a target extension length can be calculated based on the number of extensions and the extension length of the retractable screen. After performing anti-shake compensation on the displayed content, the screen is extended based on the target extension length. This alleviates user eye fatigue while ensuring the display integrity of the displayed content, thereby improving the user's visual viewing experience.

[0102] In some embodiments of the present application, the user input unit 1007 is used to receive a first input when the screen displays the display content before moving the display content on the screen along a first direction; the processor 1010 is used to extend the screen based on a preset extension length in response to the first input; the processor 1010 is also used to move the display content in the extended screen so that the center of the extended screen coincides with the center of the display content.

[0103] In an embodiment of the present application, before the electronic device experiences jitter, user input can be received to trigger the electronic device to extend the screen and move the displayed content to the center of the extended screen. This reduces the probability of display content being incomplete or incomplete after the electronic device subsequently experiences jitter and performs jitter compensation.

[0104] In some embodiments of the present application, the first direction is opposite to the shaking direction of the electronic device, and the processor 1010 is specifically used to: determine the moving distance of the displayed content based on the shaking displacement when the shaking displacement of the electronic device is within a preset displacement range; and move the displayed content along the first direction based on the moving distance.

[0105] In the embodiment of the present application, only when the electronic device's jitter displacement is within a preset displacement range is the movement distance of the displayed content determined, and based on the movement distance, the displayed content is moved along the first direction. This prevents movement of the displayed content caused by human movement of the electronic device or slight jitter of the electronic device, and performs anti-shake compensation only when it is needed, thereby improving the user experience.

[0106] In some embodiments of the present application, the target extension length is the moving distance, or the sum of the moving distance and a preset distance threshold.

[0107] In an embodiment of the present application, after the displayed content is moved into the target area, the screen of the electronic device can be extended by a target extension length. Since the target extension length is the distance the displayed content has moved, or the sum of the distance moved and a preset distance threshold, the distance between the displayed content and the target area after the extension is guaranteed to be equal to or greater than the distance before the displayed content was moved. This prevents the displayed content from overlapping the target area. While compensating for the displacement of the displayed content, the screen is also compensated, ensuring that the displayed content remains intact and unchanged in size after the next movement of the displayed content.

[0108] It should be understood that in an embodiment of the present application, the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also called a touch screen. The touch panel 10071 may include two parts: a touch detection device and a touch controller. Other input devices 10072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an operating stick, which will not be repeated here. The memory 1009 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 1010 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understood that the modem processor may not be integrated into the processor 1010.

[0109] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned screen anti-shake method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0110] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer-readable storage medium. Examples of computer-readable storage media include non-transitory computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0111] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, which is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-mentioned screen anti-shake method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0112] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0113] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising 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, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0115] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A screen anti-shake method, characterized in that: Applied to electronic equipment, the method includes: receiving a first input when display content is displayed on a screen of the electronic device, the screen being a retractable screen; In response to the first input, extending the screen based on a preset extension length; translating and rotating the display content on the extended screen so that the center of the extended screen coincides with the center of the display content; When the jitter displacement of the electronic device is within a preset displacement range, determining a moving distance of the displayed content based on the jitter displacement; Moving the displayed content along a first direction based on the movement distance, where the first direction is opposite to a shaking direction of the electronic device; When the displayed content at least partially overlaps with a target area on the screen, obtaining the number of times and the length of extension of the screen within a preset time period, wherein the target area is located at both ends of the screen in an extendable direction, and the preset time period is from a preset moment to the first moment of the most recent movement of the displayed content; Calculating a target extension length based on a first ratio and a second ratio, wherein the first ratio is a ratio of the extension length to the preset time period, and the second ratio is a ratio of the preset time period to the number of extensions; The screen is extended along the first direction based on the target extension length.

2. The method according to claim 1, characterized in that The target extension length is the moving distance, or the sum of the moving distance and a preset distance threshold.

3. A screen anti-shake device, characterized in that: Applied to electronic equipment, the device comprises: a receiving module, configured to receive a first input when display content is displayed on a screen of the electronic device, the screen being a retractable screen; an extension module, configured to extend the screen based on a preset extension length in response to the first input; a moving unit, configured to translate and rotate the display content on the extended screen so that the center of the extended screen coincides with the center of the display content; a determining unit, configured to determine, when the jitter displacement of the electronic device is within a preset displacement range, a moving distance of the displayed content based on the jitter displacement; The moving unit is further configured to move the display content along a first direction based on the moving distance, where the first direction is opposite to the shaking direction of the electronic device; a determination module configured to, when the displayed content at least partially overlaps with a target area on the screen, obtain a number of extensions and an extension length of the screen within a preset time period, wherein the target area is located at both ends of the screen in an extendable direction, and the preset time period is from a preset moment to a first moment of the most recent movement of the displayed content; and calculate a target extension length based on a first ratio and a second ratio, the first ratio being a ratio of the extension length to the preset time period, and the second ratio being a ratio of the preset time period to the number of extensions; An extension module is configured to extend the screen along the first direction based on the target extension length.

4. The device according to claim 3, characterized in that The target extension length is the moving distance, or the sum of the moving distance and a preset distance threshold.

5. An electronic device, characterized in that: The invention comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the screen anti-shake method according to any one of claims 1 to 2.

6. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by the processor, the steps of the screen anti-shake method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Vehicle screen flickering preventing method and device

    CN105835776A

  • Screen anti-shake methods and device, mobile terminal and readable memory medium

    CN109547635A

  • Display method and electronic equipment

    CN111090408A