Video recording method and device and electronic equipment
By using sensors in the aiming transmitting device to determine the impact transmission event and adjust the recording frame rate, the problem of continuous recording function high power consumption on electronic devices is solved, and the effect of reducing power consumption while ensuring the clarity of the recording is achieved.
Patent Information
- Application Number
- CN202411533226.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-30
- Publication Date
- 2025-02-11
AI Technical Summary
Continuously turning on the video recording function has a high power consumption on electronic devices and affects battery life.
Determine whether an impact transmission event occurs by aiming the sensor in the transmitting device (such as an accelerometer), and adjust the recording frame rate according to the relationship between the current recording frame rate and the target frame rate to reduce power consumption while ensuring the clarity of the recording.
When an impact transmission event is determined, the recording frame rate is dynamically adjusted, reducing the power consumption of the aiming transmission device during continuous recording and extending the device's battery life.
Smart Images

Figure CN119420861A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of video acquisition technology, and in particular to a video recording method, device and electronic equipment. Background Art
[0002] At present, electronic devices need to keep the recording function on in some specific scenarios to record the target event. For example, after turning on the impact recording function, some aiming and launching devices will keep recording the aiming direction to record the wonderful moment after the impact launch event is triggered. However, the power consumption of the continuously turned-on recording function is high, which has a great impact on the battery life of the electronic device. Summary of the invention
[0003] In view of this, the present application provides a recording method, device and electronic device to reduce the power consumption of the aiming and launching device during continuous recording.
[0004] The technical solutions provided by this application are as follows:
[0005] According to an embodiment of the first aspect of the present application, a video recording method is provided, the method being applied to a pointing and launching device, the method comprising:
[0006] Determine, by means of a sensor in the aiming and launching device, whether an impact launch event occurs in the aiming and launching device, wherein the impact launch event is used to instruct the aiming and launching device to launch a target device toward a target object;
[0007] If the impact launch event occurs in the aiming and launching device, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launch event, the current recording frame rate of the recording device is adjusted to the target frame rate so that the recording device records the video at the target frame rate; when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required by the impact launch event, the recording device is maintained to continue recording the video at the target frame rate.
[0008] Optionally, the sensor is an accelerometer; and determining whether an impact launch event occurs in the aiming and launching device through the sensor in the aiming and launching device includes:
[0009] Obtaining the acceleration value collected by the accelerometer;
[0010] If the acceleration value is greater than or equal to the impact launch threshold, it is determined that an impact launch event occurs in the aiming and launching device.
[0011] Optionally, when the current video recording frame rate of the video recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the method further includes:
[0012] Integrate the N seconds of data collected by the video recording device before the current moment and the M seconds of data after the current moment to obtain a target video recording file;
[0013] The target video file is stored in a storage device in the aiming and launching device.
[0014] Optionally, when the current video frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the method further includes:
[0015] Determine the historical moment when the last recording frame rate was adjusted to the target frame rate;
[0016] Integrate the N seconds of data collected by the video recording device before the historical moment, the K seconds of data from the historical moment to the current moment, and the M seconds of data starting from the current moment to obtain a target video recording file;
[0017] The target video file is stored in a storage device in the aiming and launching device.
[0018] Optionally, the video recording device is used to continuously record the launch direction of the target device, and the target video recording file records the process of the aiming and launching device launching the target device toward the target object.
[0019] Optionally, when the current recording frame rate of the recording device in the aiming and launching equipment is not the target frame rate required by the impact launching event, the target frame rate is greater than the current recording frame rate.
[0020] Optionally, after obtaining the target video file, the method further includes:
[0021] The current recording frame rate of the recording device is adjusted from the target frame rate to the original frame rate, so that the recording device records the video at the original frame rate, and the original frame rate is less than the target frame rate.
[0022] According to an embodiment of the second aspect of the present application, a video recording device is provided, which is applied to a pointing and launching device, and includes:
[0023] An event determination unit, configured to determine, through a sensor in the aiming and launching device, whether an impact launch event occurs in the aiming and launching device, wherein the impact launch event is used to instruct the aiming and launching device to launch a target device toward a target object;
[0024] A frame rate adjustment unit is used to adjust the current recording frame rate of the recording device in the aiming and launching device to the target frame rate if the impact launch event occurs in the aiming and launching device, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required for the impact launch event, so that the recording device records the video at the target frame rate; and when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required for the impact launch event, maintain the recording device to continue recording the video at the target frame rate.
[0025] Optionally, the sensor is an accelerometer; and the event determination unit is specifically used for:
[0026] Obtaining the acceleration value collected by the accelerometer;
[0027] If the acceleration value is greater than or equal to the impact launch threshold, it is determined that an impact launch event occurs in the aiming and launching device;
[0028] And / or, when the current video recording frame rate of the video recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the frame rate adjustment unit is further used to:
[0029] Integrate the N seconds of data collected by the video recording device before the current moment and the M seconds of data after the current moment to obtain a target video recording file;
[0030] Storing the target video file in a storage device in the aiming and launching device;
[0031] And / or, when the current video frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the frame rate adjustment unit is further used to:
[0032] Determine the historical moment when the last recording frame rate was adjusted to the target frame rate;
[0033] Integrate the N seconds of data collected by the video recording device before the historical moment, the K seconds of data from the historical moment to the current moment, and the M seconds of data starting from the current moment to obtain a target video recording file;
[0034] Storing the target video file in a storage device in the aiming and launching device;
[0035] And / or, the video recording device is used to continuously record the launch direction of the target device, and the target video recording file records the process of the aiming and launching device launching the target device toward the target object;
[0036] and / or, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the target frame rate is greater than the current recording frame rate;
[0037] And / or, after obtaining the target video file, the frame rate adjustment unit is further used to:
[0038] The current recording frame rate of the recording device is adjusted from the target frame rate to the original frame rate, so that the recording device records the video at the original frame rate, and the original frame rate is less than the target frame rate.
[0039] According to an embodiment of the third aspect of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method described in the first aspect is implemented.
[0040] It can be seen from the above technical scheme that the present application determines whether an impact launch event occurs by means of a sensor in an aiming and launching device, and in the case where an impact launch event is determined to occur, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required for the impact launch event, the current recording frame rate of the recording device is adjusted to the target frame rate so that the recording device records at the target frame rate; when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required for the impact launch event, the recording device is maintained to continue recording at the target frame rate. When the present application determines that an impact launch event occurs, the current recording frame rate is adjusted according to the relationship between the current recording frame rate and the target frame rate, thereby achieving reduced power consumption while ensuring recording clarity. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0042] Figure 1 A flowchart of the video recording method provided in the embodiment of the present application;
[0043] Figure 2 A schematic diagram of the duration of a target video file provided in an embodiment of the present application;
[0044] Figure 3 A schematic diagram of another target video file duration provided in an embodiment of the present application;
[0045] Figure 4 A schematic diagram of the aiming and launching device architecture provided in an embodiment of the present application;
[0046] Figure 5A schematic diagram of the overall process of the video recording method provided in the embodiment of the present application;
[0047] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0048] Figure 7 A structural diagram of a video recording device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to enable those skilled in the art to better understand the technical solutions provided by the embodiments of the present application and to make the above-mentioned purposes, features and advantages of the embodiments of the present application more obvious and understandable, the technical solutions in the embodiments of the present application are further described in detail below in conjunction with the accompanying drawings.
[0050] At present, some electronic devices such as aiming and launching devices need to keep the recording function turned on in specific scenarios to record target events. For example, in order to record the wonderful moment after the impact launch event is triggered, the aiming and launching device will continuously record the aiming direction after turning on the impact recording function.
[0051] However, since the current aiming and launching device has the recording function turned on continuously, it is not friendly to the overall battery life. Based on this, the present application proposes a recording method to reduce the power consumption of the aiming and launching device during continuous recording while ensuring the clarity of the recording.
[0052] Please refer to Figure 1 , Figure 1 This is a flowchart of the video recording method provided in an embodiment of the present application.
[0053] In this embodiment, the method can be applied to a pointing and launching device, and specifically can be applied to a controller of the pointing and launching device.
[0054] As an embodiment, the controller may be a central processing unit (CPU), a microcontroller (MCU) or other types of processors, which is not limited in the present application.
[0055] like Figure 1 As shown, the method may include the following steps:
[0056] Step 101: Determine whether an impact launch event occurs in the aiming and launching device through a sensor in the aiming and launching device.
[0057] In this embodiment, data collected by the sensor may be obtained and based on the data, it may be determined whether an impact launch event occurs in the aiming and launching device, wherein the impact launch event is used to instruct the aiming and launching device to launch a target device toward a target object.
[0058] As an embodiment, the sensor may be an accelerometer, and the specific method for determining whether the impact launch event occurs in the aiming and launching device through the sensor in the aiming and launching device may be:
[0059] Get the acceleration value collected by the accelerometer;
[0060] If the acceleration value is greater than or equal to the impact launch threshold, it is determined that an impact launch event occurs in the aiming and launching device.
[0061] In this embodiment, when the sensor is an accelerometer, the accelerometer collects the acceleration value sensed by itself. It is easy to understand that when the aiming and launching device launches the target device to the target object, the aiming and launching device will generate a large acceleration. The accelerometer deployed on the aiming and launching device can collect the current acceleration value and determine that an impact launch event has occurred in the aiming and launching device when the acceleration value is greater than or equal to a preset impact launch threshold.
[0062] At this point, the description of step 101 ends, and step 102 is executed next.
[0063] Step 102: If the impact launch event occurs in the aiming and launching device, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launch event, adjust the current recording frame rate of the recording device to the target frame rate so that the recording device records the video at the target frame rate; when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required by the impact launch event, maintain the recording device to continue recording the video at the target frame rate.
[0064] In this embodiment, it is easy to understand that since it is necessary to record the wonderful moment when the aiming and launching device launches the target device to the target object, the video recording device in the aiming and launching device is used to continuously record the launching direction of the target device.
[0065] If the impact launch event is detected in the aiming and launching device, it indicates that the aiming and launching device has launched the target device at the target object, and the current shot needs to be recorded. Since the target device is in a state of continuous motion during the process of the aiming and launching device launching the target device at the target object, in order to ensure that the process of the aiming and launching device launching the target device at the target object can be clearly recorded, the target frame rate for recording the process can be preset.
[0066] In this embodiment, when it is detected that the impact launch event occurs in the aiming and launching device, the current recording frame rate of the recording device in the aiming and launching device can be compared with the target frame rate. If the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launch event, it indicates that the current recording frame rate does not meet the conditions for clear recording. At this time, the current recording frame rate of the recording device can be adjusted to the target frame rate, so that the recording device can record according to the target frame rate.
[0067] It should be noted that, considering that the impact launch event can occur more than once, when the impact launch event occurs for the first time, if the current recording frame rate of the recording device in the aiming and launching equipment is not the target frame rate required by the impact launch event, the current recording frame rate of the recording device can be adjusted to the target frame rate so that the recording device can record according to the target frame rate.
[0068] In the case that the impact launch event is not the first time, since the current recording frame rate of the recording device has been adjusted to the target frame rate when the impact launch event first occurred, when the current recording frame rate of the recording device in the aiming and launching device is compared with the target frame rate, it will be found that the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required by the impact launch event. In this case, there is no need to adjust the current recording frame rate, and the recording device only needs to continue recording at the target frame rate.
[0069] In this embodiment, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the target frame rate may be greater than the current recording frame rate.
[0070] As an embodiment, considering that before the impact launch event occurs, the aiming and launching device and the target object are in a relatively static state, the requirement for the video frame rate is not high. At this time, a lower frame rate can be used by default for recording to reduce the power consumption of the aiming and launching device. For example, when no impact launch event is detected, 12 frames are used by default as the current video frame rate.
[0071] When an impact launch event occurs, it indicates that the aiming and launching device has launched a target device toward the target object. Since the target device is in motion relative to the aiming and launching device and the target object, in order to ensure the clarity of the video recording, a higher requirement is placed on the video recording frame rate. The target frame rate can be pre-set to a higher frame rate than the default video recording frame rate, such as setting the target frame rate to 25 frames.
[0072] When an impact launch event is detected, if it is found that the current recording frame rate (12 frames) of the recording device in the aiming and launching equipment is not the target frame rate (25 frames) required by the impact launch event, the current recording frame rate is adjusted to the target frame rate (25 frames); if the impact launch event is detected again, the current recording frame rate is already 25 frames, which is the same as the target frame rate, and there is no need to adjust the current recording frame rate, and the recording device is maintained to continue recording at the target frame rate.
[0073] This concludes the description of step 102.
[0074] In this embodiment, after the impact launch event is detected, the process of the aiming and launching device launching the target device at the target object recorded by the video recording device can be saved for the user to appreciate.
[0075] As an embodiment, when the current video recording frame rate of the video recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the method proposed in the embodiment of the present application may further include:
[0076] Integrate the N seconds of data collected by the video recording device before the current moment and the M seconds of data after the current moment to obtain a target video recording file;
[0077] The target video file is stored in a storage device in the aiming and launching device.
[0078] In this embodiment, if the current recording frame rate of the recording device in the aiming and launching equipment is not the target frame rate required by the impact launching event, the current recording frame rate needs to be adjusted. At this time, the data of the first N seconds at the current moment (the N seconds of low frame rate recording data before the current recording frame rate is adjusted to the target frame rate) and the M seconds of data starting from the current moment (the M seconds of high frame rate recording data after the current recording frame rate is adjusted to the target frame rate) can be integrated together to obtain the target recording file.
[0079] Please refer to Figure 2 , Figure 2 A schematic diagram of the duration of a target video file provided in an embodiment of the present application.
[0080] like Figure 2 As shown, the triggering moment of the impact launch event can be used as a reference to integrate the data collected within N seconds before the moment (low frame rate) and the data collected within M seconds after the moment (high frame rate) into the final target video file.
[0081] In this embodiment, the target video file records the process of the aiming and launching device launching the target device toward the target object.
[0082] In this embodiment, the values of N and M can be pre-set according to actual conditions. The values of N and M can be the same or different. It is sufficient to fully record the process of aiming and launching the target device to the target object. This application does not impose any restrictions on this.
[0083] In this embodiment, considering that there may be a stage where the storage of M seconds of high frame rate video data is not completed in actual situations, the impact launch event is triggered again, that is, the impact launch event occurs, and the current video frame rate is the target frame rate required by the impact launch event. In this case, starting from the moment when the impact launch event is triggered again, M seconds of high frame rate video can be superimposed and stored again to obtain a complete target video file.
[0084] Specifically, when the current video frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the method proposed in the embodiment of the present application may further include:
[0085] Determine the historical moment when the last recording frame rate was adjusted to the target frame rate;
[0086] Integrate the N seconds of data collected by the video recording device before the historical moment, the K seconds of data from the historical moment to the current moment, and the M seconds of data starting from the current moment to obtain a target video recording file;
[0087] The target video file is stored in a storage device in the aiming and launching device.
[0088] In this embodiment, if an impact launch event occurs again within M seconds of the impact launch event, it means that in the process of recording the first launch of the target device to the target object, the aiming and launching device launched the target device to the target object again. At this time, it can be considered that the aiming and launching device continuously launches the target device to the target object, and the process of the aiming and launching device continuously launching the target device to the target object can be recorded as a whole target video file.
[0089] Specifically, when the current recording frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the historical moment when the recording frame rate was most recently adjusted from other frame rates (low frame rates) to the target frame rate can be determined, and the N seconds of data collected by the video recording device before the historical moment (low frame rate, before launching the first target device), K seconds of data from the historical moment to the current moment (the process of the aiming and launching device continuously launching target devices to the target object), and M seconds of data starting from the current moment (the process of the aiming and launching device launching the last target device to the target object) are integrated to obtain the target video file.
[0090] Please refer to Figure 3 , Figure 3 A schematic diagram of another duration of a video splicing file provided in an embodiment of the present application.
[0091] like Figure 3 As shown, at any stage where the storage of M seconds of high-frame rate video data is not completed, that is, taking the time when the last impact launch event occurred as the reference, when the current impact launch event occurs again within M seconds, the data collected within N seconds before the historical moment when the previous video frame rate was adjusted to the target frame rate (low frame rate), the data collected within K seconds from the historical moment to the current moment (high frame rate), and the data of M seconds starting from the current moment (high frame rate) can be integrated into the final target video file, and the current moment is the moment when the current impact launch event occurs.
[0092] It should be noted that in the process of generating the target video file, only the target video file obtained after integration is stored in the storage device (such as a hard disk) of the aiming and launching device. When the impact launch event is not triggered, the low frame rate video data is stored in a cache, and only the latest N seconds of low frame rate data is stored; when the impact launch event is triggered, the high frame rate video data is also temporarily stored in the cache, and the low frame rate data and high frame rate data in the cache are integrated into a complete target video file, and the target video file is stored in the storage device.
[0093] This concludes the description of the method for generating a target video file.
[0094] In this embodiment, after obtaining the target video file, the method proposed in this embodiment of the application may further include:
[0095] The current recording frame rate of the recording device is adjusted from the target frame rate to the original frame rate, so that the recording device records the video at the original frame rate, and the original frame rate is less than the target frame rate.
[0096] In this embodiment, after obtaining the target video file, the process of aiming and launching the target device at the target object has been recorded. At this time, the current video frame rate of the video device can be adjusted from the target frame rate (high frame rate) to the original frame rate (low frame rate) to save device power consumption. When the next impact launch event occurs, it can be dynamically adjusted to the target frame rate for high-definition recording.
[0097] This concludes Figure 1 Description of the video recording method.
[0098] The present application determines whether an impact launch event occurs by means of a sensor in an aiming and launching device, and in the case where it is determined that an impact launch event occurs, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required for the impact launch event, the current recording frame rate of the recording device is adjusted to the target frame rate, so that the recording device records at the target frame rate; when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required for the impact launch event, the recording device is maintained to continue recording at the target frame rate. When it is determined that an impact launch event occurs, the present application adjusts the current recording frame rate according to the relationship between the current recording frame rate and the target frame rate, thereby achieving reduced power consumption while ensuring recording clarity.
[0099] Furthermore, the present application can splice a low-frame rate image N seconds before the target event is triggered with a high-frame rate image of at least M seconds after the target event is triggered, to obtain a high-definition video for display to the user.
[0100] The video recording method proposed in this application is described below through a specific embodiment.
[0101] First combine Figure 4 The architecture of an aiming and launching device provided in an embodiment of the present application is briefly introduced.
[0102] Please refer to Figure 4 , Figure 4 A schematic diagram of the aiming and launching device architecture provided in an embodiment of the present application.
[0103] like Figure 4 As shown, the aiming and launching device may include an accelerometer, a system-on-chip (SOC), a storage device, and a camera device. The SOC may obtain the acceleration value collected by the accelerometer and the video data collected by the camera device, and save the video recording to be recorded in the storage device according to a specified method.
[0104] Combine the following Figure 5 The overall process of the video recording method proposed in the embodiment of the present application is described.
[0105] Please refer to Figure 5 , Figure 5 A schematic diagram of the overall process of the video recording method provided in an embodiment of the present application.
[0106] like Figure 5 As shown, when the impact recording function is turned on by aiming at the launch device, the SOC can be used to control the camera device to continuously record at the original frame rate, that is, at a low frame rate (such as 12 frames);
[0107] Furthermore, the SOC continuously detects whether the acceleration value collected by the accelerometer is greater than or equal to a preset impact emission threshold.
[0108] If not, it is determined that the impact launch event has not occurred, and the original frame rate, i.e., the low frame rate, is maintained for recording;
[0109] If so, it is determined that an impact launch event occurs, and the video frame rate is adjusted to a high frame rate, that is, a target frame rate.
[0110] Integrate N seconds of low frame rate data before the impact trigger and at least M seconds of high frame rate data after the impact trigger.
[0111] In this embodiment, the above steps include two cases:
[0112] In case one, when the video frame rate is adjusted to a high frame rate and no impact launch event occurs again within M seconds, the first N seconds of low frame rate video before the video frame rate is adjusted to a high frame rate and the M seconds of high frame rate video after the video frame rate is adjusted to a high frame rate are integrated to obtain a target video file for display to the user.
[0113] In case 2, when the recording frame rate is adjusted to a high frame rate and an impact launch event occurs again within M seconds, the moment when the impact launch event occurs again is taken as the current moment, until no impact launch event occurs again within M seconds from the current moment. At this time, the current moment is the moment when the last impact launch event occurred, and the moment when the most recent recording frame rate was adjusted to a high frame rate is taken as the historical moment. The low frame rate recording of N seconds before the historical moment, the high frame rate recording of K seconds from the beginning of the historical moment to the end of the current moment, and the high frame rate recording of M seconds starting from the current moment are integrated to obtain the target recording file for displaying to the user.
[0114] After obtaining the target video file, the target video file is stored in the storage device, and the current video frame rate is adjusted to the original frame rate, that is, the low frame rate, and the next impact launch event continues to be waited for.
[0115] This concludes Figure 5 Description of the overall flow chart of the video recording method.
[0116] It should be noted that the data collection performed by sensors and camera devices in the embodiments of the present application is performed with the authorization and consent of the user.
[0117] Please refer to Figure 6 , Figure 6It is a schematic structural diagram of an electronic device proposed in an embodiment of the present application. At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it, forming a terminal interaction device at the logical level. Of course, in addition to the software implementation method, this application does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.
[0118] Please refer to Figure 7 , Figure 7 1 is a structural diagram of a video recording device proposed in an embodiment of the present application, and the device is applied to a targeting and launching device. Figure 7 As shown, the video recording device may include an event determination unit 701 and a frame rate adjustment unit 702. Specifically, the device includes:
[0119] An event determination unit 701 is used to determine whether an impact launch event occurs in the aiming and launching device through a sensor in the aiming and launching device, wherein the impact launch event is used to instruct the aiming and launching device to launch a target device toward a target object;
[0120] The frame rate adjustment unit 702 is used for adjusting the current recording frame rate of the recording device in the aiming and launching device to the target frame rate if the impact launch event occurs in the aiming and launching device, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required for the impact launch event, so that the recording device records the video at the target frame rate; and when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required for the impact launch event, maintaining the recording device to continue recording the video at the target frame rate.
[0121] Optionally, the sensor is an accelerometer; and the event determination unit 701 is specifically used for:
[0122] Obtaining the acceleration value collected by the accelerometer;
[0123] If the acceleration value is greater than or equal to the impact launch threshold, it is determined that an impact launch event occurs in the aiming and launching device;
[0124] And / or, when the current video recording frame rate of the video recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the frame rate adjusting unit 702 is further used to:
[0125] Integrate the N seconds of data collected by the video recording device before the current moment and the M seconds of data after the current moment to obtain a target video recording file;
[0126] Storing the target video file in a storage device in the aiming and launching device;
[0127] And / or, when the current video frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the frame rate adjusting unit 702 is further used to:
[0128] Determine the historical moment when the last recording frame rate was adjusted to the target frame rate;
[0129] Integrate the N seconds of data collected by the video recording device before the historical moment, the K seconds of data from the historical moment to the current moment, and the M seconds of data starting from the current moment to obtain a target video recording file;
[0130] Storing the target video file in a storage device in the aiming and launching device;
[0131] And / or, the video recording device is used to continuously record the launch direction of the target device, and the target video recording file records the process of the aiming and launching device launching the target device toward the target object;
[0132] and / or, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the target frame rate is greater than the current recording frame rate;
[0133] And / or, after obtaining the target video file, the frame rate adjustment unit 702 is further used to:
[0134] The current recording frame rate of the recording device is adjusted from the target frame rate to the original frame rate, so that the recording device records the video at the original frame rate, and the original frame rate is less than the target frame rate.
[0135] So far, completed Figure 7 Description of the video device.
[0136] Correspondingly, in this embodiment, the embodiment of the present application also provides a computer-readable storage medium, on which a number of computer instructions are stored. When the computer instructions are executed, the method disclosed in the above example of the present application can be implemented.
[0137] Exemplarily, the computer-readable storage medium may be any electronic, magnetic, optical or other physical storage device that may contain or store information, such as executable instructions, data, etc. For example, the computer-readable storage medium may be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as optical disk, DVD, etc.), or similar storage medium, or a combination thereof.
[0138] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A video recording method, characterized in that: The method is applied to a targeting and launching device, and the method comprises: Determine, by means of a sensor in the aiming and launching device, whether an impact launch event occurs in the aiming and launching device, wherein the impact launch event is used to instruct the aiming and launching device to launch a target device toward a target object; If the impact launch event occurs in the aiming and launching device, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launch event, the current recording frame rate of the recording device is adjusted to the target frame rate so that the recording device records the video at the target frame rate; when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required by the impact launch event, the recording device is maintained to continue recording the video at the target frame rate.
2. The method according to claim 1, characterized in that The sensor is an accelerometer; and determining whether an impact launch event occurs in the aiming and launching device through the sensor in the aiming and launching device comprises: Obtaining the acceleration value collected by the accelerometer; If the acceleration value is greater than or equal to the impact launch threshold, it is determined that an impact launch event occurs in the aiming and launching device.
3. The method according to claim 1, characterized in that When the current video recording frame rate of the video recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the method further includes: Integrate the N seconds of data collected by the video recording device before the current moment and the M seconds of data after the current moment to obtain a target video recording file; The target video file is stored in a storage device in the aiming and launching device.
4. The method according to claim 1, characterized in that: When the current video frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the method further includes: Determine the historical moment when the last recording frame rate was adjusted to the target frame rate; Integrate the N seconds of data collected by the video recording device before the historical moment, the K seconds of data from the historical moment to the current moment, and the M seconds of data starting from the current moment to obtain a target video recording file; The target video file is stored in a storage device in the aiming and launching device.
5. The method according to claim 3 or 4, characterized in that: The video recording device is used to continuously record the launch direction of the target device, and the target video recording file records the process of the aiming and launching device launching the target device toward the target object.
6. The method according to claim 1, characterized in that When the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the target frame rate is greater than the current recording frame rate.
7. The method according to claim 3 or 4, characterized in that: After obtaining the target video file, the method further comprises: The current recording frame rate of the recording device is adjusted from the target frame rate to the original frame rate, so that the recording device records the video at the original frame rate, and the original frame rate is less than the target frame rate.
8. A video recording device, characterized in that: The device is applied to aiming and launching equipment, and comprises: An event determination unit, configured to determine, through a sensor in the aiming and launching device, whether an impact launch event occurs in the aiming and launching device, wherein the impact launch event is used to instruct the aiming and launching device to launch a target device toward a target object; A frame rate adjustment unit is used to adjust the current recording frame rate of the recording device in the aiming and launching device to the target frame rate if the impact launch event occurs in the aiming and launching device, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required for the impact launch event, so that the recording device records the video at the target frame rate; and when the current recording frame rate of the recording device in the aiming and launching device is the target frame rate required for the impact launch event, maintain the recording device to continue recording the video at the target frame rate.
9. The device according to claim 8, characterized in that The sensor is an accelerometer; and the event determination unit is specifically used for: Obtaining the acceleration value collected by the accelerometer; If the acceleration value is greater than or equal to the impact launch threshold, it is determined that an impact launch event occurs in the aiming and launching device; And / or, when the current video recording frame rate of the video recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the frame rate adjustment unit is further used to: Integrate the N seconds of data collected by the video recording device before the current moment and the M seconds of data after the current moment to obtain a target video recording file; Storing the target video file in a storage device in the aiming and launching device; And / or, when the current video frame rate of the video recording device in the aiming and launching device is the target frame rate required by the impact launching event, the frame rate adjustment unit is further used to: Determine the historical moment when the last recording frame rate was adjusted to the target frame rate; Integrate the N seconds of data collected by the video recording device before the historical moment, the K seconds of data from the historical moment to the current moment, and the M seconds of data starting from the current moment to obtain a target video recording file; Storing the target video file in a storage device in the aiming and launching device; And / or, the video recording device is used to continuously record the launch direction of the target device, and the target video recording file records the process of the aiming and launching device launching the target device toward the target object; and / or, when the current recording frame rate of the recording device in the aiming and launching device is not the target frame rate required by the impact launching event, the target frame rate is greater than the current recording frame rate; And / or, after obtaining the target video file, the frame rate adjustment unit is further used to: The current recording frame rate of the recording device is adjusted from the target frame rate to the original frame rate, so that the recording device records the video at the original frame rate, and the original frame rate is less than the target frame rate.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Impact interruption acceleration calibration method and device and aiming launching equipment
CN120539447A