A method and system for preventing equipment vibration
By acquiring camera behavior data, determining behavior patterns, and calculating reverse compensation to adjust device movement, the problem of image blurring caused by camera shake is solved, achieving stable shooting results in various scenarios.
Patent Information
- Application Number
- CN202411477708.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-22
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2044-10-22
AI Technical Summary
Existing cameras are prone to blurry images due to shaking during shooting, especially when the hand is unsteady, the road surface is bumpy, or the plane is shaking, it is difficult to maintain a clear and stable picture.
By acquiring the behavioral data of the target device, determining the behavioral pattern, comparing it with sample data, calculating the reverse compensation amount to adjust the device movement, performing audio and video encoding and output, achieving motion compensation, and improving shooting stability.
It effectively reduces shaking in different scenarios, improves the stability and clarity of the captured images, ensures audio and video quality, and enhances the user experience.
Smart Images

Figure CN119485022B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of camera technology, and in particular relates to a method and system for preventing device shake. Background Technology
[0002] With the widespread adoption of high-definition and intelligent technologies in cameras, camera performance continues to improve. However, both professional photographers and everyday users inevitably encounter image blurring caused by camera shake. Smartphone cameras need to ensure clear and stable images even when the camera is shaky. Vehicle and drone cameras need to address motion blur caused by factors such as road bumps and flight vibrations. Therefore, how to better prevent camera shake has become a pressing issue. Summary of the Invention
[0003] In view of the shortcomings of the prior art, the purpose of this invention is to provide a method and system for preventing camera shake. This method can perform image stabilization on the target device regardless of time and location, thereby improving the stability of the images captured by the target device.
[0004] A first aspect of the present invention provides a method for preventing device jitter, comprising: S1, acquiring behavioral data of a target device at a current moment; S2, determining a behavioral pattern based on the behavioral data, comparing the behavioral data with sample data in the behavioral pattern, and using a first data point in the sample data as reference data for the current moment; S3, determining a reverse compensation amount applied to the target device at the next 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 behavioral data includes parameter data in different dimensions, including movement speed, direction, angle, acceleration, and angular acceleration; the behavioral patterns include low-speed smooth movement, low-speed swaying movement, medium-speed smooth movement, medium-speed swaying movement, high-speed smooth movement, and high-speed swaying.
[0006] Further, comparing the behavioral data with sample data in the behavioral pattern, and using the first data in the sample data as the reference data for the current moment, includes: 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 behavioral data as the first data; and using the first data as the reference data for the current moment.
[0007] Further, the data that highly matches the behavioral data is selected as the first data, including: 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 behavioral data; and selecting 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 behavioral data as the first data.
[0008] Further, determining the reverse compensation amount applied by the target device at the next moment based on the reference data at the current moment includes: obtaining the target data at the next moment based on the reference data at the current moment from the sample data, and using the target data as compensation data; calculating the compensation amount based on the compensation data, and using the compensation amount as the reverse compensation amount applied by the target device at the next moment.
[0009] Furthermore, the audio and video encoding and output based on the actual motion data includes: determining whether the corresponding value of the actual motion data is within the jitter correction range; and, if it is determined that the audio and video encoding and output are within the jitter correction range, performing the audio and video encoding and output.
[0010] Furthermore, it also includes: discarding the audio and video data if it is determined that the data is not within the jitter correction range.
[0011] A second aspect of the present invention provides a system for preventing device jitter, comprising: an acquisition module for acquiring behavioral data of a target device at a current moment; a comparison module for determining a behavioral pattern based on the behavioral data, comparing the behavioral data with sample data in the behavioral pattern, and using a first data in the sample data as reference data for the current moment; a determination module for determining a reverse compensation amount applied to the target device at the next moment based on the reference data at 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] A third aspect of the present invention provides an electronic device 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 to enable the at least one processor to perform the method described in any one aspect of the present invention.
[0013] A fourth aspect of the present invention provides a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to perform the method described in any one of the first aspects of the present invention.
[0014] The beneficial effects of this invention are as follows:
[0015] The method and system for preventing camera shake of the device described in this invention acquires 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 sample data in the behavior pattern, and uses the first data in the sample data as the reference data for the current moment; determines the reverse compensation amount to be applied to the target device at the next moment based on the reference data; 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, through behavior pattern determination and adjustment of the target device movement based on the reverse compensation amount (i.e., motion compensation), can perform target device image stabilization regardless of time and location, improving the stability of the footage captured by the target device. Attached Figure Description
[0016] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Throughout the drawings, the same reference numerals denote the same parts. It is obvious that the drawings described below are merely some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings.
[0017] Figure 1 This is a flowchart of a method for preventing device vibration according to an embodiment of the present invention;
[0018] Figure 2 This is a flowchart of a method for preventing device vibration according to a specific embodiment of the present invention;
[0019] Figure 3 This is a schematic diagram of a device anti-vibration system according to an embodiment of the present invention;
[0020] Figure 4 This is a structural block diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0021] 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 with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. It should be understood that these descriptions are merely 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 those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0022] Furthermore, descriptions of well-known structures and techniques are omitted in the following description to avoid unnecessarily obscuring the concepts disclosed in this invention.
[0023] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientation or positional relationships based on the orientation or positional relationships shown in the accompanying drawings, are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance. The terms "installed," "connected," and "linked" should be interpreted broadly; for example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal communication of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0024] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of methods and systems consistent with some aspects of the invention as detailed in the appended claims.
[0025] This invention proposes a method, system, and related equipment for preventing device vibration. Specifically, the method, system, and related equipment for preventing device vibration according to embodiments of this invention are described below with reference to the accompanying drawings.
[0026] Figure 1This is a flowchart of a device anti-jitter method according to an embodiment of the present invention. It should be noted that the device anti-jitter method of this embodiment can be applied to a device anti-jitter system according to the present invention. This device anti-jitter system can be configured on an electronic device or in a server. This application does not limit the scope of the application.
[0027] like Figure 1 As shown, the methods for preventing equipment vibration include:
[0028] S110, Obtain the current behavior data of the target device.
[0029] In embodiments of the present invention, behavioral data at the current moment can be obtained based on sensors in the target device.
[0030] The behavioral data includes parameter data in different dimensions, such as movement speed, direction, angle, acceleration, and angular acceleration.
[0031] The target equipment includes, but is not limited to, drones, cameras, and webcams, and the sensors include, but are not limited to, accelerometers, gyroscopes, gravity sensors, and orientation sensors.
[0032] S120, determine the behavior pattern based on the behavior data, compare the behavior data with the sample data in the behavior pattern, and use the first data in the sample data as the reference data for the current moment.
[0033] The behavioral patterns include low-speed steady movement, low-speed swaying movement, medium-speed steady movement, medium-speed swaying movement, high-speed steady movement, and high-speed swaying.
[0034] Each behavior pattern corresponds to a set of feature thresholds, and the corresponding behavior pattern is determined based on the acquired behavior data.
[0035] In an embodiment of the present invention, when behavioral data is obtained, a behavioral pattern can be determined based on the behavioral data, and then the behavioral data can be compared with sample data in the behavioral pattern, and the first data in the sample data can be used as the reference data at the current moment.
[0036] This can be achieved by acquiring the data corresponding to the current moment from the sample data; selecting the data that most closely matches the behavioral data as the first data; and using the first data as the reference data for the current moment. Specific implementation details can be found in subsequent embodiments.
[0037] S130, determine the reverse compensation amount to be applied by the target device at the next moment based on the reference data at the current moment.
[0038] In embodiments of the present invention, given the reference data at the current moment, target data for the next 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. Specific implementation details can be found in subsequent embodiments.
[0039] S140: 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.
[0040] In embodiments of the present invention, given the amount of reverse compensation applied by the target device at the next moment from the current moment, the movement of the target device can be adjusted based on the amount of reverse compensation, and the actual movement data of the target device can be calculated. Audio and video encoding and output can then be performed based on the actual movement data. Specific implementation methods can be found in subsequent embodiments.
[0041] According to an embodiment of the present invention, a method for preventing camera shake in a device involves acquiring behavioral data of the target device at the current moment; determining a behavioral pattern based on the behavioral data; comparing the behavioral data with sample data in the behavioral pattern; using the first data in the sample data as reference data for the current moment; determining the amount of reverse compensation to be applied to the target device at the next moment based on the reference data; 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. This method, through behavioral pattern determination and adjustment of the target device movement based on the reverse compensation amount (i.e., motion compensation), enables camera shake prevention of the target device regardless of time and location, thereby improving the stability of the footage captured by the target device.
[0042] To enable those skilled in the art to more readily understand the present invention, Figure 2 This is a method for preventing device vibration according to a specific embodiment of the present invention, such as... Figure 2 As shown, the method for preventing vibration in this device includes:
[0043] S210, Obtain the current behavior data of the target device.
[0044] S220, determine behavioral patterns based on behavioral data.
[0045] S230, compare the behavioral data with the sample data in the behavioral pattern, and use the first data in the sample data as the reference data at the current moment.
[0046] In an embodiment of the present invention, when determining a behavior pattern based on behavior data, the data corresponding to the current moment in the sample data of the behavior pattern can be obtained; the data that has a high degree of consistency with the behavior data can be used as the first data; and the first data can be used as the reference data for the current moment.
[0047] This can be achieved by obtaining parameter data from different dimensions of the data; comparing the parameter data from different dimensions of the data with the parameter data from different dimensions of the behavioral data; and selecting the data with the smallest difference between the parameter data from different dimensions of the data and the parameter data from different dimensions of the behavioral data as the first data.
[0048] S240, determine the reverse compensation amount to be applied by the target device at the next moment based on 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 for the next moment at the current moment is obtained from the sample data, and the target data is used as compensation data; the compensation amount is calculated based on the compensation data, and the compensation amount is used as the reverse compensation amount applied by the target device at the next moment at the current moment.
[0050] In other words, based on the reference data at the current moment, the target data corresponding to the next moment is found in the sample data. The target data is regarded as the desired stable state and compared with the reference data at the current moment to obtain the difference value, i.e. 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 to counteract jitter.
[0051] S250 adjusts the movement of the target device based on the reverse compensation amount and calculates 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 the actual movement data of the target device after the movement is monitored by a sensor.
[0053] S260 performs audio and video encoding and output based on 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 range; if it is determined to be within the jitter correction range, audio and video encoding and output are performed.
[0055] In an embodiment of the present invention, audio and video data are discarded if it is determined that the data is not within the jitter correction range.
[0056] In one specific embodiment of the present invention, the user sets a low-speed shaking movement behavior mode on a mobile app and activates the mobile phone photography mode. When the user takes photos while moving, sensors on the phone, such as the gyroscope, gravity sensor, orientation sensor, and acceleration sensor, collect the phone's xyz-axis movement acceleration, angle, angular acceleration, and gravity data in real time. These data are compared with sample data in the low-speed shaking behavior mode library of typical behavior modes. The data with the highest consistency among the sample data is selected as the reference data for the current moment. Based on the reference data for the current moment, the target data for the next moment is determined, and a reverse compensation amount is calculated based on the target data. Based on the reverse compensation amount, camera motion compensation is performed for the next moment. The sensors measure the actual movement data of the camera or camera at the next moment. If the actual movement data of the camera is within the shake correction range, audio and video encoding and output are performed, and the reverse compensation amount calculated from the target data of the next moment in the low-speed shaking movement behavior mode is used to repeatedly perform motion compensation. If the actual measured data of the camera exceeds the shake correction range, the video data is discarded, and the camera behavior data for the next moment is repeatedly recorded and the behavior mode is judged.
[0057] The device shake prevention method according to embodiments of the present invention acquires real-time behavioral data of the target device (such as a mobile phone, camera, etc.), determines behavioral patterns based on this data, and then compares and compensates with sample data, significantly reducing shake caused by device movement, thereby improving the stability and clarity of the captured video. This method utilizes sensor technology and algorithm analysis to achieve intelligent shake correction. Users only need to simply set the behavioral pattern for automatic shake detection and compensation, eliminating the need for manual adjustment or post-processing, greatly improving shooting efficiency and user experience. By defining multiple behavioral patterns (such as low-speed smooth movement, medium-speed shaky movement, etc.), this method can adapt to different shooting scenarios and needs. Whether shooting while walking, cycling, or in motion, relatively stable video effects can be obtained. Audio and video encoding and output are only performed after the actual movement data is determined to be within the shake correction range, ensuring the quality of the output audio and video. Meanwhile, data exceeding the shake correction range is discarded instead of being forcibly processed, avoiding video quality degradation due to over-processing. By acquiring and processing sensor data in real time, and using data-based algorithm analysis and compensation, this method can fully utilize the device's hardware performance, improving the overall performance and shooting effect. Intelligent shake correction and optimized audio and video output enable users to obtain a smoother and more stable video experience during shooting.
[0058] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they 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 this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods of the various embodiments of this application.
[0059] According to one aspect of the present invention, a system for preventing device vibration is also provided. Figure 3 This is a schematic diagram of a device anti-vibration system according to an embodiment of the present invention; as shown. Figure 3 As shown, it includes:
[0060] The acquisition module 310 is used to acquire the behavior data of the target device at the current moment;
[0061] The comparison module 320 is used to determine a behavior pattern based on the behavior data, compare the behavior data with sample data in the behavior pattern, and use the first data in the sample data as the reference data for the current moment.
[0062] The determining module 330 is used to determine the reverse compensation amount applied by the target device at the next moment based on 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 an embodiment of the present invention, a device anti-shake system acquires 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 sample data in the behavior pattern, and uses the first data in the sample data as the reference data for the current moment; determines the reverse compensation amount to be applied to the target device at the next moment based on the reference data; 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. Thus, by determining the behavior pattern and adjusting the movement of the target device based on the reverse compensation amount (i.e., motion compensation), the system can perform target device anti-shake processing regardless of time and location, improving the stability of the footage captured by the target device.
[0065] Optionally, the behavioral data includes parameter data in different dimensions, including movement speed, direction, angle, acceleration, and angular acceleration; the behavioral patterns include low-speed smooth movement, low-speed swaying movement, medium-speed smooth movement, medium-speed swaying movement, high-speed smooth movement, and high-speed swaying.
[0066] Optionally, the comparison module 320 is specifically used to obtain the data corresponding to the current time in the sample data; to take the data in the data that has a high degree of consistency with the behavioral data as the first data; and to take the first data as the reference data for the current time.
[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 determining module 330 is specifically used to obtain the target data of the next moment from the sample data based on the reference data of 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 of the current moment.
[0069] Optionally, the control module 340 is specifically used to determine whether the value corresponding to the actual movement data is within the jitter correction range; if it is determined that the value is within the jitter correction range, the audio and video encoding and output are performed.
[0070] Optionally, the control module 340 is specifically configured to discard the audio and video data if it is determined that the data is not within the jitter correction range.
[0071] According to one aspect of the present invention, an electronic device is provided.
[0072] Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Figure 4 As shown, an electronic device may include one or more ( Figure 4Only one is shown in the image. A processor 102 (which may include, but is not limited to, a microprocessor unit (MPU) or a programmable logic device (PLD)) and a memory 104 for storing data are also shown. In one exemplary embodiment, the electronic device may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 4 The structure shown is for illustrative purposes only and does not limit the structure of the terminal device described above. For example, the terminal device may also include components that are more... Figure 4 The more or fewer components shown, or having the same Figure 4 Equivalent functions or ratios shown Figure 4 The functions shown have more different configurations.
[0073] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the device anti-jitter method in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory, and may also include 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 memory remotely located relative to the processor 102, and these remote memories can be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0074] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the switching device. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module used for wireless communication with the Internet.
[0075] The present invention proposes a non-transitory computer-readable storage medium storing computer instructions for a method of preventing jitter in a computer execution device.
[0076] The applicant of this invention has provided a detailed description of the embodiments of the invention in conjunction with the accompanying drawings. However, those skilled in the art should understand that the above embodiments are merely preferred embodiments of the invention. The detailed description is only intended to help readers better understand the spirit of the invention and is not intended to limit the scope of protection of the invention. On the contrary, any improvements or modifications made based on the inventive spirit of the invention should fall within the scope of protection of the invention.
[0077] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0078] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions, and variations to 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, and are not intended to limit them. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the protection scope of the present invention.
Claims
1. A method for preventing equipment vibration, characterized in that, include: S1, Obtain the current behavior data of the target device; S2, determine the behavior pattern based on the behavior data, compare the behavior data with the sample data in the behavior pattern, and use the first data in the sample data as the reference data for the current moment; S3, determine the reverse compensation amount applied by the target device at the next moment based on the reference data at the current moment; S4, 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; Specifically, comparing the behavioral data with sample data in the behavioral pattern, and using the first data in the sample data as the reference data for the current moment, includes: Obtain the data corresponding to the current time in the sample data; The data that best matches the behavioral data is selected as the first data. The first data is used as the reference data at the current time. The behavioral data includes parameter data in different dimensions, and the behavioral patterns include low-speed smooth movement, low-speed swaying movement, medium-speed smooth movement, medium-speed swaying movement, high-speed smooth movement, and high-speed swaying.
2. The method for preventing equipment vibration according to claim 1, characterized in that, The parameter data includes movement speed, direction, angle, acceleration, and angular acceleration.
3. The method for preventing equipment vibration according to claim 1, characterized in that, The data that most closely matches the behavioral data is selected as the first data, including: Obtain parameter data from different dimensions of the data; Compare the parameter data of different dimensions in the data with the parameter data of different dimensions in the behavioral 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 behavioral data is taken as the first data.
4. The method for preventing equipment vibration according to claim 1, characterized in that, Determining the reverse compensation amount applied by the target device at the next moment based on the reference data at the current moment includes: Based on the reference data at the current moment, the target data for the next moment at the current moment is obtained from the sample data, and the target data is used as compensation data; The compensation amount is calculated based on the compensation data, and the compensation amount is used as the reverse compensation amount applied by the target device at the next moment of the current moment.
5. The method for preventing equipment vibration according to claim 1, characterized in that, Based on the actual mobile data, audio and video encoding and output are performed, including: Determine whether the value corresponding to the actual movement data is within the jitter correction range; The audio and video encoding and output are performed when the jitter correction range is determined.
6. The method for preventing equipment vibration according to claim 5, characterized in that, Also includes: If the audio or video data is determined to be outside the jitter correction range, it is discarded.
7. A system for preventing equipment vibration, characterized in that, include: The acquisition module is used to acquire the behavior data of the target device at the current moment; The comparison module is used to determine the behavior pattern based on the behavior data, compare the behavior data with the sample data in the behavior pattern, and use the first data in the sample data as the reference data for the current moment. The determining module is used to determine the amount of reverse compensation applied by the target device at the next moment based on 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; Specifically, the comparison module is used to acquire the data corresponding to the current time in the sample data; select the data in the data that has a high degree of consistency with the behavioral data as the first data; and use the first data as the reference data for the current time. The behavioral data includes parameter data in different dimensions, and the behavioral patterns include low-speed smooth movement, low-speed swaying movement, medium-speed smooth movement, medium-speed swaying movement, high-speed smooth movement, and high-speed swaying.
8. An electronic device, characterized in that, include: 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, the instructions being executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 6.
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