Method and system for preventing jitter of equipment

By acquiring and analyzing the behavioral data of the camera device, determining the behavior pattern and calculating the reverse compensation amount, the camera jitter problem is solved, and the stability and clarity of the shooting picture are improved.

CN119485022AActive Publication Date: 2025-02-18E SURFING VISION TECHNOLOGY CO LTD

Patent Information

Application Number
CN202411477708.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-02-18
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

Existing camera technology is difficult to effectively prevent jitter, resulting in blurred images captured, especially in handheld, on-board and drone cameras.

Method used

By obtaining the behavior data of the target device, determining the behavior pattern, and comparing it with the sample data, reference data is obtained. The reverse compensation amount is calculated based on the reference data, the device movement is adjusted, the actual moving data is calculated, and the audio and video encoding and output are performed.

Benefits of technology

It realizes anti-shake processing of the target equipment in different scenarios, improves the stability and clarity of the shooting screen, and is suitable for various camera equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119485022A_ABST
    Figure CN119485022A_ABST
Patent Text Reader

Abstract

The invention relates to a method and system for preventing equipment from shaking, and belongs to the technical field of cameras, and the method comprises the steps: obtaining the behavior data of target equipment at the current moment; determining a behavior mode according to the behavior data, comparing the behavior data with sample data in the behavior mode, and taking first data in the sample data as reference data at the current moment; according to the reference data at the current moment, determining a reverse compensation amount applied by the target equipment at the next moment of the current moment; and adjusting the movement of the target equipment based on the reverse compensation amount, calculating actual movement data of the target equipment at the next moment, and carrying out audio and video coding and output based on the actual movement data. According to the method, the motion of the target equipment is adjusted through behavior mode judgment and based on the reverse compensation amount, namely motion compensation, anti-shake processing of the target equipment can be carried out without being affected by time and places, and the stability of a picture shot by the target equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of cameras, and in particular relates to a method and system for preventing equipment from shaking. Background Art

[0002] With the popularization of high-definition and intelligent camera technology, camera performance continues to improve. However, both professional photographers and everyday users will inevitably encounter the problem of image blur caused by shaking. Smartphone cameras need to ensure that when taking photos or videos, you can get clear and stable pictures even if you are not holding them steadily. Car and drone cameras need to deal with image motion blur caused by factors such as bumpy roads and flight jitters. Therefore, how to better prevent device jitter has become an urgent problem to be solved. Summary of the invention

[0003] In view of the above shortcomings of the prior art, the purpose of the invention is to provide a method and system for preventing device shaking. The method can perform anti-shake processing on the target device regardless of time and location, thereby improving the stability of the target device's captured images.

[0004] According to a first aspect of the present invention, a method for preventing a device from jittering is proposed, comprising: S1, obtaining behavior data of a target device at a current moment; S2, determining a behavior pattern based on the behavior data, comparing the behavior data with sample data in the behavior pattern, and using the first data in the sample data as reference data for the current moment; S3, determining a reverse compensation amount to be applied by the target device at the next moment after the current moment based on the reference data for the current moment; S4, adjusting the movement of the target device based on the reverse compensation amount, calculating the actual movement data of the target device at the next moment, and performing audio and video encoding and output based on the actual movement data.

[0005] Furthermore, the behavior data includes parameter data of different dimensions, including movement speed, direction, angle, acceleration, and angular acceleration; the behavior patterns include slow and steady movement, slow and shaking movement, medium and steady movement, medium and shaking movement, high and steady movement, and high-speed shaking.

[0006] Furthermore, the behavior data is compared with the sample data in the behavior pattern, and the first data in the sample data is used as the reference data for the current moment, including: obtaining the data corresponding to the current moment in the sample data; using the data in the data that has a high degree of consistency with the behavior data as the first data; and using the first data as the reference data for the current moment.

[0007] Furthermore, taking the data in the data that is most consistent with the behavior data as the first data includes: acquiring parameter data of different dimensions in the data; comparing the parameter data of different dimensions in the data with the parameter data of different dimensions in the behavior data; and taking the data in the parameter data of different dimensions in the data that has the smallest difference with the parameter data of different dimensions in the behavior data as the first data.

[0008] Furthermore, determining the amount of reverse compensation applied by the target device at the next moment after the current moment based on the reference data at the current moment includes: acquiring the target data at the next moment after the current moment from the sample data based on the reference data at the current moment, and using the target data as compensation data; calculating the compensation amount based on the compensation data, and using the compensation amount as the amount of reverse compensation applied by the target device at the next moment after the current moment.

[0009] Furthermore, audio and video encoding and output are performed based on the actual movement data, including: determining whether the corresponding value of the actual movement data is within the jitter correction interval; and performing the audio and video encoding and output when it is determined to be within the jitter correction interval.

[0010] Furthermore, it also includes: if it is determined that the audio and video data is not within the jitter correction interval, discarding the audio and video data.

[0011] According to a second aspect of the present invention, a system for preventing device jitter is proposed, comprising: an acquisition module for acquiring behavior data of a target device at a current moment; a comparison module for determining a behavior pattern based on the behavior data, comparing the behavior data with sample data in the behavior pattern, and using the first data in the sample data as reference data for the current moment; a determination module for determining a reverse compensation amount to be applied by the target device at the next moment after the current moment based on the reference data for the current moment; and a control module for adjusting the movement of the target device based on the reverse compensation amount, calculating the actual movement data of the target device at the next moment, and performing audio and video encoding and output based on the actual movement data.

[0012] According to a third aspect of the present invention, an electronic device is proposed, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any of the methods described in the first aspect of the present invention.

[0013] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods according to the first aspect of the present invention.

[0014] The beneficial effects of the present invention are as follows:

[0015] The device anti-shake method and system described in the present invention obtains the behavior data of the target device at the current moment; determines the behavior pattern based on the behavior data, compares the behavior data with the sample data in the behavior pattern, and uses the first data in the sample data as the reference data at the current moment; determines the reverse compensation amount applied by the target device at the next moment of the current moment based on the reference data at the current moment; adjusts the movement of the target device based on the reverse compensation amount, calculates the actual movement data of the target device at the next moment, and performs audio and video encoding and output based on the actual movement data. This method can perform anti-shake processing on the target device without being affected by time and location by determining the behavior pattern and adjusting the movement of the target device based on the reverse compensation amount, that is, motion compensation, and improves the stability of the picture shot by the target device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings are only used to illustrate specific embodiments and are not considered to limit the present invention. In the entire drawings, the same reference symbols represent the same components. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings.

[0017] Figure 1 is a flow chart of a method for preventing jitter of a device according to an embodiment of the present invention;

[0018] Figure 2 is a flow chart of a method for preventing jitter of a device according to a specific embodiment of the present invention;

[0019] Figure 3 is a schematic diagram of a system for preventing device jitter according to an embodiment of the present invention;

[0020] Figure 4 It is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present invention.

[0022] Furthermore, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily obscuring the concepts disclosed in the present invention.

[0023] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the orientation or position relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inside", "outside", etc. is based on the orientation or position relationship shown in the drawings, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation of the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. The terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of methods and systems consistent with some aspects of the present invention as detailed in the appended claims.

[0025] The present invention proposes a method, system and related equipment for preventing device jitter. Specifically, the method, system and related equipment for preventing device jitter according to an embodiment of the present invention are described below with reference to the accompanying drawings.

[0026] Figure 11 is a flow chart of a method for preventing jitter of a device according to an embodiment of the present invention. It should be noted that the method for preventing jitter of a device according to an embodiment of the present invention can be applied to a system for preventing jitter of a device according to an embodiment of the present invention. The system for preventing jitter of a device can be configured on an electronic device or in a server. This embodiment of the present application does not limit this.

[0027] like Figure 1 As shown, the method for preventing jitter of a device includes:

[0028] S110, obtaining the behavior data of the target device at the current moment.

[0029] In an embodiment of the present invention, the behavior data at the current moment may be acquired based on the sensor in the target device.

[0030] Among them, the behavior data includes parameter data of different dimensions, and the parameter data includes moving speed, direction, angle, acceleration, and angular acceleration.

[0031] Among them, the target devices include but are not limited to drones, cameras, and cameras, and the sensors include but are not limited to acceleration sensors, gyroscopes, gravity sensors, direction sensors, and the like.

[0032] S120, determining a behavior pattern according to the behavior data, comparing the behavior data with sample data in the behavior pattern, and using first data in the sample data as reference data at the current moment.

[0033] Among them, the behavior modes include low-speed smooth movement, low-speed shaking movement, medium-speed smooth movement, medium-speed shaking movement, high-speed smooth movement, and high-speed shaking.

[0034] Each behavior pattern corresponds to a set of characteristic thresholds, and the corresponding behavior pattern is determined based on the acquired behavior data.

[0035] In an embodiment of the present invention, when behavior data is obtained, a behavior pattern can be determined based on the behavior data, and then the behavior data is compared with sample data in the behavior pattern, and the first data in the sample data is used as reference data at the current moment.

[0036] The method may be implemented by obtaining data corresponding to the current moment in the sample data; taking data that is highly consistent with the behavior data as the first data; and taking the first data as the reference data at the current moment. For specific implementation methods, please refer to the subsequent embodiments.

[0037] S130, determining a reverse compensation amount to be applied by the target device at a next moment of the current moment according to the reference data at the current moment.

[0038] In an embodiment of the present invention, when the reference data at the current moment is determined, the target data at the next moment of the current moment can be obtained based on the reference data at the current moment, and then the reverse compensation amount applied by the target device at the next moment can be determined based on the target data. The specific implementation method can refer to the subsequent embodiments.

[0039] S140, adjusting the movement of the target device based on the reverse compensation amount, calculating the actual movement data of the target device at the next moment, and performing audio and video encoding and output based on the actual movement data.

[0040] In an embodiment of the present invention, when determining the reverse compensation amount applied by the target device at the next moment of the current moment, the movement of the target device can be adjusted based on the reverse compensation amount, and the actual movement data of the target device can be calculated, and then audio and video encoding and output can be performed based on the actual movement data. The specific implementation method can refer to the subsequent embodiments.

[0041] According to the device anti-shake method of an embodiment of the present invention, the behavior data of the target device at the current moment is obtained; the behavior pattern is determined based on the behavior data, the behavior data is compared with the sample data in the behavior pattern, and the first data in the sample data is used as the reference data at the current moment; the reverse compensation amount applied by the target device at the next moment of the current moment is determined based on the reference data at the current moment; the movement of the target device is adjusted based on the reverse compensation amount, and the actual movement data of the target device at the next moment is calculated, and audio and video encoding and output are performed based on the actual movement data. This method can perform anti-shake processing on the target device without being affected by time and location through behavior pattern determination and adjustment of the movement of the target device based on the reverse compensation amount, that is, motion compensation, thereby improving the stability of the picture shot by the target device.

[0042] In order to make it easier for those skilled in the art to understand the present invention, Figure 2 A method for preventing jitter of a device according to a specific embodiment of the present invention is as follows. Figure 2 As shown, the method for preventing jitter of the device includes:

[0043] S210, obtaining the behavior data of the target device at the current moment.

[0044] S220, determining a behavior pattern according to the behavior data.

[0045] S230, comparing the behavior data with the sample data in the behavior pattern, and taking the first data in the sample data as reference data at the current moment.

[0046] In an embodiment of the present invention, when determining a behavior pattern based on behavior data, data corresponding to the current moment in sample data in the behavior pattern can be obtained; data in the data that has a high degree of consistency with the behavior data can be used as first data; and the first data can be used as reference data for the current moment.

[0047] Among them, the method can be implemented by obtaining parameter data of different dimensions in the data; comparing the parameter data of different dimensions in the data with the parameter data of different dimensions in the behavior data; and taking the data with the smallest difference between the parameter data of different dimensions in the data and the parameter data of different dimensions in the behavior data as the first data.

[0048] S240, determining a reverse compensation amount to be applied by the target device at a next moment of the current moment according to the reference data at the current moment.

[0049] In an embodiment of the present invention, based on the reference data at the current moment, the target data of the next moment after the current moment is obtained from the sample data, and the target data is used as the compensation data; the compensation amount is calculated according to the compensation data, and the compensation amount is used as the reverse compensation amount applied by the target device at the next moment after the current moment.

[0050] That is to say, based on the reference data at the current moment, the target data corresponding to the next moment after the current moment is searched in the sample data, and the target data is regarded as the expected stable state. It is compared with the reference data at the current moment to obtain the difference value, that is, the compensation data. The compensation amount is calculated based on the compensation data. This compensation amount is used to apply reverse compensation to the target device at the next moment after the current moment to offset the jitter.

[0051] S250, adjusting the movement of the target device based on the reverse compensation amount, and calculating the actual movement data of the target device at the next moment.

[0052] In an embodiment of the present invention, when the reverse compensation amount is determined, the target device is controlled to move based on the reverse compensation amount, and actual movement data of the target device after the movement is monitored by a sensor.

[0053] S260: Encode and output audio and video based on the actual mobile data.

[0054] In an embodiment of the present invention, it is determined whether the value corresponding to the actual motion data is within the jitter correction interval; if it is determined to be within the jitter correction interval, audio and video encoding and output are performed.

[0055] In an embodiment of the present invention, if it is determined that the audio and video data is not within the jitter correction interval, the audio and video data is discarded.

[0056] In a specific embodiment of the present invention, the user sets the low-speed shaking movement behavior mode on the mobile phone app and turns on the mobile phone photography mode. When the user takes photos while moving, the gyroscope, gravity sensor, direction sensor, acceleration sensor and other sensors on the mobile phone collect the mobile acceleration, angle, angular acceleration and gravity data of the xyz three axes of the mobile phone in real time, and compare them with the sample data in the low-speed shaking behavior mode in the typical behavior mode library, select the data with the highest degree of conformity in the sample data as the reference data at the current moment, determine the target data at the next moment based on the reference data at the current moment, and calculate the reverse compensation amount based on the target data, and perform camera motion compensation at the next moment based on the reverse compensation amount. The sensor measures the actual movement data of the camera or camera at the next moment. If the actual movement data of the camera is within the range of the jitter correction interval, audio and video encoding and output are performed, and the reverse compensation amount calculated by the target data at the next moment in the low-speed shaking movement behavior mode is repeated for motion compensation; if the actual measurement data of the camera exceeds the jitter correction interval, the video acquisition data is discarded, and the camera behavior data at the next moment is repeatedly recorded and the behavior mode judgment is performed.

[0057] According to the device anti-shake method of the embodiment of the present invention, by acquiring the behavior data of the target device (such as a mobile phone, a camera, etc.) in real time, and determining the behavior mode based on these data, and then comparing and compensating with the sample data, the shake caused by the movement of the device is significantly reduced, thereby improving the stability and clarity of the captured video; the method uses sensor technology and algorithm analysis to achieve intelligent shake correction. The user only needs to simply set the behavior mode to automatically perform shake detection and compensation, without the need for manual adjustment or post-processing by the user, which greatly improves the shooting efficiency and user experience; by defining a variety of behavior modes (such as slow and steady movement, medium-speed shaking movement, etc.), the method can adapt to different shooting scenes and needs. Whether shooting while walking, riding, or shooting in motion, a relatively stable video effect can be obtained; audio and video encoding and output are performed only after it is determined that the actual movement data is within the range of the shake correction interval, which ensures the output audio and video quality. At the same time, for data that exceeds the jitter correction range, we choose to discard it instead of forcibly processing it, thus avoiding the degradation of video quality caused by excessive processing; through real-time collection and processing of sensor data, as well as data-based algorithm analysis and compensation, this method can make full use of the hardware performance of the device and improve the overall performance and shooting effect of the device; intelligent jitter correction and optimized audio and video output enable users to obtain a smoother and more stable video experience during the shooting process.

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

[0059] According to one aspect of an embodiment of the present invention, a system for preventing a device from shaking is also provided. Figure 3 is a schematic diagram of a system for preventing jitter of a device according to an embodiment of the present invention; Figure 3 As shown, including:

[0060] An acquisition module 310 is used to acquire the behavior data of the target device at the current moment;

[0061] A comparison module 320, configured to determine a behavior pattern according to the behavior data, compare the behavior data with sample data in the behavior pattern, and use the first data in the sample data as reference data at the current moment;

[0062] A determination module 330, configured to determine a reverse compensation amount applied by the target device at a moment next to the current moment according to the reference data at the current moment;

[0063] The control module 340 is used to adjust the movement of the target device based on the reverse compensation amount, calculate the actual movement data of the target device at the next moment, and perform audio and video encoding and output based on the actual movement data.

[0064] According to the device anti-shake system of the embodiment of the present invention, the behavior data of the target device at the current moment is obtained; the behavior pattern is determined according to the behavior data, the behavior data is compared with the sample data in the behavior pattern, and the first data in the sample data is used as the reference data at the current moment; the reverse compensation amount applied by the target device at the next moment of the current moment is determined according to the reference data at the current moment; the movement of the target device is adjusted based on the reverse compensation amount, and the actual movement data of the target device at the next moment is calculated, and audio and video encoding and output are performed based on the actual movement data. Therefore, by determining the behavior pattern and adjusting the movement of the target device based on the reverse compensation amount, that is, motion compensation, the target device can be anti-shake processed regardless of time and location, thereby improving the stability of the picture shot by the target device.

[0065] Optionally, the behavior data includes parameter data of different dimensions, including movement speed, direction, angle, acceleration, and angular acceleration; the behavior patterns include slow and steady movement, slow and shaking movement, medium and steady movement, medium and shaking movement, high and steady movement, and high-speed shaking.

[0066] Optionally, the comparison module 320 is specifically used to obtain data corresponding to the current moment in the sample data; use the data in the data that has a high degree of consistency with the behavior data as the first data; and use the first data as the reference data at the current moment.

[0067] Optionally, the comparison module 320 is specifically used to obtain parameter data of different dimensions in the data; compare the parameter data of different dimensions in the data with the parameter data of different dimensions in the behavior data; and take the data with the smallest difference between the parameter data of different dimensions in the data and the parameter data of different dimensions in the behavior data as the first data.

[0068] Optionally, the determination module 330 is specifically used to obtain target data at the next moment after the current moment from the sample data based on the reference data at the current moment, and use the target data as compensation data; calculate the compensation amount according to the compensation data, and use the compensation amount as the reverse compensation amount applied by the target device at the next moment after the current moment.

[0069] Optionally, the control module 340 is specifically configured to determine whether the value corresponding to the actual movement data is within a jitter correction interval; and if it is determined to be within the jitter correction interval, perform the audio and video encoding and output.

[0070] Optionally, the control module 340 is specifically configured to discard the audio and video data if it is determined that the audio and video data is not within the jitter correction interval.

[0071] According to one aspect of an embodiment of the present invention, an electronic device is provided.

[0072] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include one or more ( Figure 4Only one is shown in the figure) processor 102 (processor 102 may include but is not limited to a microprocessor (Microprocessor Unit, referred to as MPU) or a programmable logic device (Programmable logic device, referred to as PLD)) and a memory 104 for storing data. In an exemplary embodiment, the electronic device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only and does not limit the structure of the above terminal device. Figure 4 More or fewer components as shown, or with Figure 4 Equivalent functions or comparisons shown Figure 4 A different configuration with more features is shown.

[0073] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the method for preventing jitter of the device in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0074] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the switching device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0075] The present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute a method for preventing a device from jittering.

[0076] The applicant of the present invention has made a detailed explanation and description of the implementation examples of the present invention in conjunction with the drawings in the specification. However, those skilled in the art should understand that the above implementation examples are only preferred implementation schemes of the present invention, and the detailed description is only to help readers better understand the spirit of the present invention, but not to limit the scope of protection of the present invention. On the contrary, any improvements or modifications based on the inventive spirit of the present invention should fall within the scope of protection of the present invention.

[0077] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0078] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

[0079] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the embodiments of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions recorded in the above embodiments, or replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or replacements that can be easily thought of by those skilled in the art within the technical scope disclosed in the present invention should be covered within the protection scope of the present invention.

Claims

1. A method for preventing a device from shaking, characterized in that: include: S1, obtain the behavior data of the target device at the current moment; S2, determining a behavior pattern according to the behavior data, comparing the behavior data with sample data in the behavior pattern, and using first data in the sample data as reference data at the current moment; S3, determining the reverse compensation amount applied by the target device at the next moment after the current moment according to the reference data at the current moment; S4, adjusting the movement of the target device based on the reverse compensation amount, calculating the actual movement data of the target device at the next moment, and performing audio and video encoding and output based on the actual movement data.

2. The method for preventing device jitter according to claim 1, characterized in that: The behavior data includes parameter data of different dimensions, including movement speed, direction, angle, acceleration, and angular acceleration; the behavior patterns include low-speed steady movement, low-speed shaking movement, medium-speed steady movement, medium-speed shaking movement, high-speed steady movement, and high-speed shaking.

3. The method for preventing device jitter according to claim 1, characterized in that: Comparing the behavior data with sample data in the behavior pattern, and using first data in the sample data as reference data at the current moment, includes: Obtaining data corresponding to the current moment in the sample data; Using the data that has the highest degree of conformity with the behavior data as the first data; The first data is used as the reference data at the current moment.

4. The method for preventing device jitter according to claim 3, characterized in that: The data that is most consistent with the behavior data in the data is used as the first data, including: Obtain parameter data of different dimensions in the data; comparing parameter data of different dimensions in the data with parameter data of different dimensions in the behavior data; The data with the smallest difference between the parameter data of different dimensions in the data and the parameter data of different dimensions in the behavior data is used as the first data.

5. The method for preventing device jitter according to claim 1, characterized in that: Determining the reverse compensation amount applied by the target device at a moment next to the current moment according to the reference data at the current moment includes: Based on the reference data at the current moment, obtaining target data at a moment next to the current moment from the sample data, and using the target data as compensation data; A compensation amount is calculated according to the compensation data, and the compensation amount is used as a reverse compensation amount applied by the target device at a next moment after the current moment.

6. The method for preventing device jitter according to claim 1, characterized in that: The method further comprises: encoding and outputting audio and video based on the actual mobile data, including: Determining whether the value corresponding to the actual movement data is within the jitter correction interval; When it is determined that the jitter correction interval is within the range, the audio and video encoding and output are performed.

7. The method for preventing device jitter according to claim 6, characterized in that: Also includes: If it is determined that the audio and video data is not within the jitter correction interval, the audio and video data is discarded.

8. A system for preventing equipment from shaking, characterized in that: include: The acquisition module is used to obtain the behavior data of the target device at the current moment; a comparison module, configured to determine a behavior pattern according to the behavior data, compare the behavior data with sample data in the behavior pattern, and use first data in the sample data as reference data at the current moment; A determination module, configured to determine a reverse compensation amount applied by the target device at a moment next to the current moment according to the reference data at the current moment; The control module is used to adjust the movement of the target device based on the reverse compensation amount, calculate the actual movement data of the target device at the next moment, and perform audio and video encoding and output based on the actual movement data.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for shaking resistance in photo taking process of mobile terminal and mobile terminal

    CN103763483A

  • Rear group adjusting video shooting high-definition zoom lens and rear group adjusting method for lens

    CN104965297A

  • Image stabilization apparatus, control method therefor, optical apparatus and imaging apparatus

    US20130163972A1

  • Interaction method and apparatus during photographing, and device

    WO2023108646A1

Cited By

  • Remote control method and system based on UWB

    CN120452177A

  • A UWB-based remote control method and system

    CN120452177B