Video recording control method of charging and replacing cabinet and cabinet control system
By acquiring the status data of the charging and swapping cabinet to generate video recording control commands, the problem that existing video recording systems cannot accurately cover key events is solved, enabling on-demand recording, improving the reliability of recording and reducing storage costs.
Patent Information
- Application Number
- CN202611302835.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-11-27
AI Technical Summary
The existing monitoring and recording system of the charging and swapping cabinet cannot accurately cover key business events, resulting in invalid recordings increasing storage costs and key event recordings being easily lost, leading to poor reliability and integrity of the recordings.
By acquiring the current status data of the charging and swapping cabinet, including the cabinet's physical movement data and multimodal sensor detection data, a recording control command is generated to instruct the monitoring and recording equipment to record as needed. Combined with pixel difference values and event type recognition, the recording parameters are dynamically adjusted.
It improves the reliability and integrity of critical event recordings, reduces storage costs, avoids wasting recordings during useless periods, and optimizes resource allocation.
Smart Images

Figure CN123185302A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of charging and swapping cabinet technology, and in particular to a video recording control method and cabinet control system for charging and swapping cabinets. Background Technology
[0002] In the daily operation of charging and battery swapping cabinets, to effectively ensure the safety of the cabinet equipment and internal battery assets, it is necessary to configure surveillance video equipment to ensure that complete and reliable video evidence can be provided in the event of critical operations or abnormal scenarios. To meet the above monitoring needs, existing technologies typically use independent surveillance video systems for security. Specifically, most solutions on the market directly deploy security camera equipment and adopt a 24 / 7 continuous recording strategy, or a conventional dynamic monitoring video recording strategy based on changes in image pixels to record on-site footage.
[0003] However, existing surveillance video systems, when employing continuous recording strategies, inevitably record a large amount of footage during useless periods, significantly increasing the capacity requirements and costs of storage media. Furthermore, conventional dynamic monitoring struggles to accurately cover truly critical business events, such as battery swapping, warehouse openings, or internal anomalies, easily leading to situations where recordings are missed when needed, resulting in the loss of important surveillance evidence and poor reliability and integrity of the recordings. Summary of the Invention
[0004] This invention provides a recording control method and cabinet control system for a charging and swapping cabinet, which solves the defects in the prior art where the monitoring recording equipment operates independently and cannot perceive the real-time status of the monitored subject, resulting in invalid recordings, increased storage costs, and easy loss of recordings of key events.
[0005] This invention provides a video recording control method for a charging / swapping cabinet, comprising: Obtain the current status data of the charging and swapping cabinet; the current status data includes the cabinet's physical movement data and / or multimodal sensor detection data; Based on the current status data, a recording control command is generated; The recording control command is sent to the monitoring and recording device that is communicatively connected to the charging and swapping cabinet, so as to instruct the monitoring and recording device to perform recording operation based on the recording control command.
[0006] According to a recording control method for a charging / swapping cabinet provided by the present invention, the current status data further includes continuous monitoring screen data; the step of generating a recording control command based on the current status data includes: Extract the pixel difference values between adjacent frames in the continuous monitoring image data; When the pixel difference value exceeds a preset image sensitivity threshold, the recording control command is generated.
[0007] According to a video recording control method for a charging / swapping cabinet provided by the present invention, the step of generating a video recording control command based on the current state data includes: Based on the current status data, the event type currently occurring in the charging and swapping cabinet is identified; the event type includes normal operation events and abnormal alarm events; Based on the event type, determine the corresponding target recording parameters; The recording control command is generated based on the target recording parameters.
[0008] According to a video recording control method for a charging / swapping cabinet provided by the present invention, the step of identifying the type of event currently occurring in the charging / swapping cabinet based on the current state data includes: Detect the level state transition characteristics in the physical action data of the cabinet; Based on the aforementioned level state transition characteristics, the cabinet door opening state is determined; When the cabinet door is open and no abnormality is detected in the multimodal sensor data, the event type currently occurring in the charging and swapping cabinet is identified as the normal operation event.
[0009] According to a video recording control method for a charging / swapping cabinet provided by the present invention, the step of identifying the type of event currently occurring in the charging / swapping cabinet based on the current state data includes: When the current state data includes the multimodal sensor detection data, the multimodal sensor detection data is analyzed to obtain the abnormal deviation degree corresponding to the multimodal sensor detection data; When the abnormal deviation indicates that the safety environment threshold is exceeded, the event type is determined to be the abnormal alarm event; The multimodal sensor detection data includes at least one of vibration data, smoke data, and temperature data.
[0010] According to a video recording control method for a charging / swapping cabinet provided by the present invention, determining the corresponding target recording parameters based on the event type includes: When the event type is the normal operation event, the first target recording bitrate is determined as the target recording parameter; In the case where the event type is the abnormal alarm event, the second target recording bitrate is determined as the target recording parameter; The second target recording bitrate is greater than the first target recording bitrate.
[0011] According to the present invention, a recording control method for a charging and swapping cabinet is provided, wherein the charging and swapping cabinet and the monitoring and recording device are connected via a serial port or USB.
[0012] The present invention also provides a cabinet control system based on the video recording control method of the charging and swapping cabinet described in any one of the above claims, comprising: The acquisition unit acquires the current status data of the charging and swapping cabinet; the current status data includes physical motion data of the cabinet and / or detection data from multimodal sensors. The instruction generation unit generates a recording control instruction based on the current state data; The control unit sends the recording control command to the monitoring and recording device that is communicatively connected to the charging and swapping cabinet, so as to instruct the monitoring and recording device to perform recording operation based on the recording control command.
[0013] According to a cabinet control system provided by the present invention, the current status data further includes continuous monitoring screen data; the instruction generation unit is specifically used for: Extract the pixel difference values between adjacent frames in the continuous monitoring image data; When the pixel difference value exceeds a preset image sensitivity threshold, the recording control command is generated.
[0014] According to a cabinet control system provided by the present invention, the instruction generation unit is specifically used for: Based on the current status data, the event type currently occurring in the charging and swapping cabinet is identified; the event type includes normal operation events and abnormal alarm events; Based on the event type, determine the corresponding target recording parameters; The recording control command is generated based on the target recording parameters.
[0015] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the video recording control method for the charging and swapping cabinet as described above.
[0016] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the video recording control method for the charging and swapping cabinet as described above.
[0017] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the video recording control method for the charging and swapping cabinet as described above.
[0018] The video recording control method and cabinet control system for charging and swapping cabinets provided by this invention acquire the current status data of the charging and swapping cabinet, including physical motion data of the cabinet and / or detection data of multimodal sensors. Based on the current status data, the system intelligently generates corresponding video recording control commands and sends the video recording commands to the monitoring and recording equipment to execute the recording operation. This realizes that the cabinet control system actively controls the monitoring and recording equipment to record on demand, which not only greatly improves the reliability and integrity of recording when critical events occur, but also effectively breaks the traditional monitoring mode of continuous recording and significantly reduces the hardware cost of expanding the storage card to meet storage time requirements. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating the video recording control method for the charging and swapping cabinet provided by the present invention; Figure 2 This is a schematic diagram of the cabinet control system based on the video recording control method of the charging and swapping cabinet provided by the present invention; Figure 3 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0022] It should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of the embodiments of the present invention, "multiple" means two or more, unless otherwise explicitly specified. Furthermore, all actions involving the acquisition of signals, information, or data in this invention are performed in accordance with the applicable data protection regulations and policies of the locality and with permission granted by the owner of the relevant device.
[0023] To address the aforementioned problems, embodiments of the present invention provide a video recording control method for charging and swapping cabinets, which can be applied to cabinet control systems for charging and swapping cabinets. Figure 1 This is a flowchart illustrating the video recording control method for the charging / swapping cabinet provided by the present invention, as shown below. Figure 1 As shown, the method includes: Step 110: Obtain the current status data of the charging and swapping cabinet. The current status data includes the cabinet's physical movement data and / or multimodal sensor detection data.
[0024] Specifically, firstly, the current status data of the charging / swapping cabinet is acquired. The charging / swapping cabinet typically refers to a cabinet used to provide charging or battery swapping services for electric vehicle batteries. The current status data can reflect the real-time operating conditions of the charging / swapping cabinet or the surrounding environmental conditions. Specifically, the current status data includes physical motion data of the cabinet and / or multimodal sensor detection data; however, this embodiment of the invention does not impose specific limitations.
[0025] The physical motion data of the charging and swapping cabinet mainly reflects the physical state changes of the internal or external mechanical structure of the cabinet. For example, it can be obtained by detecting the level signal of the microcontroller unit (MCU) to know the cabinet door opening, closing, or battery insertion and removal. In addition, the multimodal sensor detection data refers to the environmental or safety feature data collected by various types of sensors deployed on the charging and swapping cabinet, such as vibration data collected by vibration sensors, smoke data collected by smoke sensors, and battery or cabinet temperature data collected by temperature sensors.
[0026] Step 120: Generate recording control instructions based on the current status data.
[0027] Specifically, after acquiring the current status data, a recording control command is generated based on this data. This recording control command refers to a computer instruction used to direct the surveillance recording device to perform specific monitoring actions. This may include commands such as immediately starting recording, stopping recording, adjusting the recording bitrate, or taking and uploading photos, and may also include the recording bitrate. The recording bitrate here can be preset based on user needs. For example, based on the analysis of the current status data, if recording is required, a recording control command is generated that includes immediately starting recording with a recording bitrate of 720P.
[0028] It is understandable that, since the current status data includes cabinet physical motion data and / or multimodal sensor detection data, the specific implementation methods for generating video recording control commands based on the current status data include the following three scenarios.
[0029] The first scenario involves current status data that only includes physical movement data of the cabinet. In this case, instructions can be generated by determining whether the physical movement belongs to a preset trigger event. For example, if a simple change in the microcontroller's signal level indicates that someone is changing the power and the cabinet door is open, a recording control instruction is generated that requires recording to begin and sets a relatively low bitrate.
[0030] The second scenario involves current status data that only includes multimodal sensor detection data. In this case, instructions can be generated based on whether sensor values are abnormal. For example, if a temperature sensor detects that the battery temperature is too high, or a smoke sensor detects smoke from the battery, a recording control instruction is generated. This instruction could be to record emergency video, increase the recording bitrate, and take and upload a photo.
[0031] The third scenario involves current status data that includes both cabinet physical motion data and multimodal sensor detection data. In this case, the characteristics of both can be combined for more accurate scene recognition to generate instructions. A recording control instruction is generated as long as either of these two types of data meets the preset recording conditions. When both types of data meet the preset recording conditions—for example, when unauthorized cabinet door opening physical motion data is detected, and vibration sensors detect severe vibration data—it is determined that someone is violently banging on the door, thus generating a recording control instruction to immediately record at a high bitrate and trigger an alarm.
[0032] It should be noted that, through the above steps, corresponding video recording control commands can be generated flexibly and specifically for different operating states of the charging and swapping cabinet, ensuring the accuracy of video recording triggering timing and the reasonable allocation of video recording resources.
[0033] Step 130: Send the recording control command to the monitoring and recording device that is communicatively connected to the charging and swapping cabinet, so as to instruct the monitoring and recording device to perform recording operation based on the recording control command.
[0034] Here, surveillance video equipment refers to security camera equipment installed inside or outside the charging and swapping cabinet for capturing images and video footage. It is understood that the surveillance video equipment and the cabinet's control system can establish communication via wired or wireless connections to achieve stable transmission of control commands.
[0035] Specifically, upon receiving a recording control command with specific requirements, the surveillance video equipment judges the message and immediately executes functions such as recording, adjusting the bitrate, or taking and uploading photos. Through this step, effective linkage between the charging and swapping cabinet and the independent recording system is achieved, eliminating the need for the recording equipment to maintain continuous, indiscriminate recording around the clock, effectively reducing the waste of system resources caused by recording during unused periods.
[0036] The method provided in this invention acquires the current status data of the charging and swapping cabinet, including physical movement data of the cabinet and / or detection data from multimodal sensors. Based on the current status data, it intelligently generates corresponding recording control commands and sends the recording control commands to the monitoring and recording equipment to execute the recording operation. This enables the cabinet control system to actively control the monitoring and recording equipment to record on demand, which not only greatly improves the reliability and integrity of recording when critical events occur, but also effectively breaks the traditional monitoring mode of continuous recording and significantly reduces the hardware cost of expanding the storage card to meet storage time requirements.
[0037] Based on any of the above embodiments, the current status data also includes continuous monitoring screen data.
[0038] Step 120 includes: Extract the pixel difference values between adjacent frames in the continuous monitoring image data; When the pixel difference value exceeds a preset image sensitivity threshold, the recording control command is generated.
[0039] Here, continuous monitoring screen data refers to a sequence of continuous video image frames collected in real time by the monitoring and recording equipment in standby or low-power inspection mode.
[0040] Specifically, after acquiring the data, the pixel difference values between two or more adjacent frames in the continuous monitoring video data are extracted. Here, the pixel difference value refers to the change in pixel feature values at the same coordinate position in adjacent frames, and is usually used to reflect whether there is object movement or significant changes in light and shadow within the monitored field of view. In practice, image processing algorithms can be used to perform difference calculations on consecutive frames to obtain a quantified degree of pixel change.
[0041] It should be noted that this step enables an intuitive and objective quantitative assessment of the dynamic changes in the monitoring perspective, providing data support for visual anomaly triggering.
[0042] After extracting the pixel difference value, it is compared with a preset screen sensitivity threshold configured in the system. This preset screen sensitivity threshold is a manually set or system default value used to determine whether a change in the screen meets the criteria for initiating recording. If the pixel difference value calculated from continuous screen changes exceeds this preset screen sensitivity threshold, a valid target activity is determined to have occurred in the monitored screen. At this point, a recording control command to initiate recording is immediately generated. This ensures accurate capture and activation of monitoring recording when valid screen changes occur, while avoiding invalid recording triggers caused by meaningless minor changes such as weak light or the movement of grass.
[0043] The method provided in this invention introduces a dynamic monitoring mechanism based on the pixel difference value of continuous monitoring images, combined with the determination of a preset image sensitivity threshold. It can flexibly and sensitively start recording by relying on significant changes in the visual image without directly triggering the physical switch of the cabinet or the internal hardware sensor. This further improves the recording reliability for preventing events such as the abnormal approach of unknown personnel and effectively makes up for the monitoring blind spots of a single hardware sensor.
[0044] Based on any of the above embodiments, step 120 includes: Based on the current status data, the event type currently occurring in the charging and swapping cabinet is identified; the event type includes normal operation events and abnormal alarm events; Based on the event type, determine the corresponding target recording parameters; The recording control command is generated based on the target recording parameters.
[0045] Specifically, firstly, based on the current status data, the type of event currently occurring in the charging and swapping cabinet is identified.
[0046] In this step, after acquiring the current status data, the cabinet control system first performs logical analysis on the data to identify the types of events currently occurring in the charging and swapping cabinet. Event types refer to the classification labels for the current operating scenario of the charging and swapping cabinet, specifically including normal operation events and abnormal alarm events. Normal operation events typically refer to expected and compliant behaviors, such as normal door opening and battery swapping behavior identified based on authorized level signals. Abnormal alarm events refer to sudden and malicious behaviors that pose a threat to the cabinet assets or battery safety, such as forced door opening, battery smoke, or excessively high battery or cabinet temperature identified based on abnormal sensor values.
[0047] Understandably, this step enables a high degree of summarization and scene characterization of the messy underlying state data, providing an accurate basis for scene classification for subsequent differentiated video recording control.
[0048] Then, after accurately identifying the type of event that has occurred, the corresponding target recording parameters are determined from the preset mapping strategy based on that event type. These target recording parameters are settings used to guide the surveillance recording equipment on how to encode and store the footage, and typically include recording resolution, frame rate, and video bitrate.
[0049] In practice, different parameter levels are assigned to different event types. For example, for identified normal behaviors, such as opening a door to change batteries, the target recording parameter can be set to a lower bitrate to save space. For detected abnormal behaviors, such as violently banging on a door or excessively high temperatures, the bitrate is increased as the target recording parameter to preserve clear details of the crime or evidence at the scene. This step enables dynamic allocation of monitoring resources on demand, avoiding the rigidity caused by using the same recording standard for all scenarios.
[0050] Furthermore, after determining the target recording parameters that are highly compatible with the current scene, the final recording control command is generated based on these parameters. The generated command not only includes the action requirements to trigger recording but also carries the determined target recording parameter information, so as to be sent to the monitoring recording equipment for execution. This ensures that the monitoring recording equipment can perform customized image acquisition and video recording in strict accordance with the parameter standards adapted to the current scene.
[0051] The method provided in this invention accurately identifies normal operation events and abnormal alarm events of the charging and swapping cabinet, and flexibly matches the corresponding target recording parameters according to different event types to generate recording control commands. This not only effectively ensures that clear and complete core evidence can be preserved with high-specification parameters in abnormal and critical moments, but also significantly reduces redundant data recorded during normal use periods. While comprehensively improving the security of charging and swapping cabinet assets, it maximizes the saving of system storage space and overall operating costs.
[0052] Based on any of the above embodiments, based on the current state data, identifying the type of event currently occurring in the charging / swapping cabinet includes: Detect the level state transition characteristics in the physical action data of the cabinet; Based on the aforementioned level state transition characteristics, the cabinet door opening state is determined; When the cabinet door is open and no abnormality is detected in the multimodal sensor data, the event type currently occurring in the charging and swapping cabinet is identified as the normal operation event.
[0053] Specifically, firstly, the level state transition characteristics in the physical motion data of the cabinet are detected. Here, level state transition characteristics refer to the electrical signal change phenomenon in which the electrical signal received or output by the microcontroller unit (MCU) changes abruptly from a low level to a high level or from a high level to a low level in a short period of time.
[0054] In practice, high-frequency sampling can be performed on the control pins of the magnetic door switch or electronic lock. Once the set level edge change is captured, the level state transition characteristics are recorded.
[0055] Then, after detecting a valid level transition feature, the current cabinet door opening state is determined based on parameters such as the transition direction and duration. The cabinet door opening state refers to the mechanical state in which the physical door of the charging / swapping cabinet is no longer in the closed / locked position. For example, when the MCU level signal corresponding to the door is detected to transition from a low level (closed) to a high level, it can be confirmed that the door is physically open.
[0056] If the cabinet door is open as indicated by the door open status indicator and no abnormalities are detected in the multimodal sensor data, the event type currently occurring at the charging and swapping cabinet is identified as a normal operation event. That is, assuming the cabinet door has been confirmed to be open, the multimodal sensor data is simultaneously verified. If all sensor indicators are within a stable range and no abnormalities are detected, it indicates that the door opening action is a normal battery swapping behavior authorized by the user. Therefore, the event type currently occurring at the charging and swapping cabinet is comprehensively identified as a normal operation event.
[0057] It is understandable that when the current status data only includes the physical action data of the cabinet, the cabinet door opening status can be determined by detecting the level state transition characteristics in the physical action data of the cabinet, and then based on the level state transition characteristics, the cabinet door opening status can be determined. When the cabinet door opening status indicates that the cabinet door is open, the event type currently occurring in the charging and swapping cabinet can be identified as a normal operation event.
[0058] The method provided in this invention accurately determines normal operation events by detecting level state transition characteristics and combining them with the status of multimodal sensors. This effectively eliminates the possibility of violent damage that may be concealed by simply physically opening the door, ensuring the absolute accuracy of identifying normal battery swapping scenarios.
[0059] Based on any of the above embodiments, based on the current state data, identifying the type of event currently occurring in the charging / swapping cabinet includes: When the current state data includes the multimodal sensor detection data, the multimodal sensor detection data is analyzed to obtain the abnormal deviation degree corresponding to the multimodal sensor detection data; When the abnormal deviation indicates that the safety environment threshold is exceeded, the event type is determined to be the abnormal alarm event; The multimodal sensor detection data includes at least one of vibration data, smoke data, and temperature data.
[0060] Specifically, when the current state data includes multimodal sensor detection data, the multimodal sensor detection data is analyzed to obtain the abnormal deviation degree corresponding to the multimodal sensor detection data.
[0061] In this step, when the collected data includes multimodal sensor detection data, the multimodal sensor detection data is analyzed and statistically processed to obtain the anomaly deviation degree corresponding to the multimodal sensor detection data. The anomaly deviation degree refers to the difference or ratio between the real-time collected environmental sensor values and the factory-set standard safety baseline values, used to quantify the severity of the current environmental degradation.
[0062] When the abnormal deviation indicates that the safety environment threshold has been exceeded, the event type is determined to be the aforementioned abnormal alarm event. Multimodal sensor detection data includes at least one of vibration data, smoke data, and temperature data.
[0063] In practice, after calculating the abnormal deviation, it is determined whether it exceeds a preset safety environment threshold. This safety environment threshold refers to the boundary of the ultimate physical parameters that ensure the absolute safety of the charging / swapping cabinet and its internal battery assets. Furthermore, the multimodal sensor detection data here can include vibration data, smoke data, and temperature data. For example, if someone violently bangs on the door causing a significant abnormal deviation in the vibration sensor reading, or if the battery emits smoke exceeding the permitted smoke concentration, or if the temperature of the battery and cabinet exceeds safety limits, the current event type is immediately identified as an abnormal alarm event.
[0064] The method provided in this invention uses multimodal sensors to quantitatively assess abnormal deviations and compare them with safety environmental thresholds. This enables timely and sensitive detection of serious safety hazards such as forced door opening or battery thermal runaway, providing an objective and scientific quantitative triggering basis for triggering emergency security recording.
[0065] Based on any of the above embodiments, determining the corresponding target recording parameters based on the event type includes: When the event type is the normal operation event, the first target recording bitrate is determined as the target recording parameter; In the case where the event type is the abnormal alarm event, the second target recording bitrate is determined as the target recording parameter; The second target recording bitrate is greater than the first target recording bitrate.
[0066] Specifically, when the current scenario is identified as a normal operational event, such as a regular user scanning a code to open a door and exchange batteries, a first target recording bitrate can be determined as the target recording parameter for this recording in order to save storage resources. Here, the first target recording bitrate refers to a relatively low video compression bitrate that can minimize the size of the generated recording file while ensuring that the outlines and basic movements of the person are clearly visible.
[0067] Conversely, when the current scene is identified as an abnormal alarm event, such as violently smashing a door, smoke, or fire, the second target recording bitrate can be determined as the target recording parameter. The second target recording bitrate refers to a high-definition video compression bitrate that is much higher than the first target recording bitrate. This ensures that the footage clearly records the perpetrator's facial details or the instantaneous characteristics of the accident, so that it can be used as conclusive evidence later.
[0068] The method provided in this invention adaptively matches different recording bitrates for events of different natures, ensuring that high-definition details of crimes or accident processes can be recorded when abnormal behavior occurs, while significantly reducing invalid high-definition recordings of normal battery swapping activities. This effectively reduces the cost of storage media such as SD cards and extends the recording coverage period.
[0069] Based on any of the above embodiments, the charging and swapping cabinet and the monitoring and recording device are connected via a serial port or USB.
[0070] Serial ports typically refer to serial communication interfaces such as RS232 or RS485, while Universal Serial Bus (USB) is a plug-and-play wired interface with higher bandwidth. By establishing a direct physical connection through these two communication methods, the charging and swapping cabinet can quickly send recording control commands and bitrate adjustment requirements point-to-point to the recording device without relying on external wireless networks or LAN switches.
[0071] Based on any of the above embodiments Figure 2 This is a schematic diagram of the cabinet control system based on the video recording control method of the charging and swapping cabinet provided by the present invention, as shown in the figure. Figure 2 As shown, the system includes: The acquisition unit 210 acquires the current status data of the charging and swapping cabinet; the current status data includes physical motion data of the cabinet and / or detection data of multimodal sensors; The instruction generation unit 220 generates a recording control instruction based on the current status data; The control unit 230 sends the recording control command to the monitoring and recording device that is communicatively connected to the charging and swapping cabinet, so as to instruct the monitoring and recording device to perform recording operation based on the recording control command.
[0072] The system provided in this invention acquires the current status data of the charging and swapping cabinet, including physical movement data of the cabinet and / or detection data from multimodal sensors. Based on the current status data, it intelligently generates corresponding recording control commands and sends the recording control commands to the monitoring and recording equipment to execute the recording operation. This enables the cabinet control system to actively control the monitoring and recording equipment to record on demand, which not only greatly improves the reliability and integrity of recording when critical events occur, but also effectively breaks the traditional monitoring mode of continuous recording and significantly reduces the hardware cost of expanding the storage card to meet storage time requirements.
[0073] Based on any of the above embodiments, the current status data further includes continuous monitoring screen data; the instruction generation unit is specifically used for: Extract the pixel difference values between adjacent frames in the continuous monitoring image data; When the pixel difference value exceeds a preset image sensitivity threshold, the recording control command is generated.
[0074] Based on any of the above embodiments, the instruction generation unit is specifically used for: Based on the current status data, the event type currently occurring in the charging and swapping cabinet is identified; the event type includes normal operation events and abnormal alarm events; Based on the event type, determine the corresponding target recording parameters; The recording control command is generated based on the target recording parameters.
[0075] Based on any of the above embodiments, the instruction generation unit is further specifically used for: Detect the level state transition characteristics in the physical action data of the cabinet; Based on the aforementioned level state transition characteristics, the cabinet door opening state is determined; When the cabinet door is open and no abnormality is detected in the multimodal sensor data, the event type currently occurring in the charging and swapping cabinet is identified as the normal operation event.
[0076] Based on any of the above embodiments, the instruction generation unit is further specifically used for: When the current state data includes the multimodal sensor detection data, the multimodal sensor detection data is analyzed to obtain the abnormal deviation degree corresponding to the multimodal sensor detection data; When the abnormal deviation indicates that the safety environment threshold is exceeded, the event type is determined to be the abnormal alarm event; The multimodal sensor detection data includes at least one of vibration data, smoke data, and temperature data.
[0077] Based on any of the above embodiments, the instruction generation unit is further specifically used for: When the event type is the normal operation event, the first target recording bitrate is determined as the target recording parameter; In the case where the event type is the abnormal alarm event, the second target recording bitrate is determined as the target recording parameter; The second target recording bitrate is greater than the first target recording bitrate.
[0078] Based on any of the above embodiments, the charging and swapping cabinet and the monitoring and recording device are connected via a serial port or USB.
[0079] Figure 3 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 3 As shown, the electronic device may include a processor 310, a communication interface 320, a memory 330, and a communication bus 340, wherein the processor 310, the communication interface 320, and the memory 330 communicate with each other via the communication bus 340. The processor 310 can call logical instructions in the memory 330 to execute a recording control method for the charging and swapping cabinet. This method includes: acquiring the current status data of the charging and swapping cabinet; the current status data includes physical motion data of the cabinet and / or multimodal sensor detection data; generating a recording control instruction based on the current status data; and sending the recording control instruction to a monitoring and recording device communicatively connected to the charging and swapping cabinet to instruct the monitoring and recording device to perform a recording operation based on the recording control instruction.
[0080] Furthermore, the logical instructions in the aforementioned memory 330 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0081] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the recording control method for the charging and swapping cabinet provided by the above methods. The method includes: acquiring the current status data of the charging and swapping cabinet; the current status data includes cabinet physical motion data and / or multimodal sensor detection data; generating a recording control instruction based on the current status data; and sending the recording control instruction to a monitoring and recording device communicatively connected to the charging and swapping cabinet to instruct the monitoring and recording device to perform a recording operation based on the recording control instruction.
[0082] In another aspect, the present invention also provides a non-transitory computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements a video recording control method for a charging / swapping cabinet provided by the methods described above. The method includes: acquiring current status data of the charging / swapping cabinet; the current status data including physical motion data of the cabinet and / or multimodal sensor detection data; generating a video recording control instruction based on the current status data; and sending the video recording control instruction to a monitoring and recording device communicatively connected to the charging / swapping cabinet to instruct the monitoring and recording device to perform a recording operation based on the video recording control instruction.
[0083] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0084] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, 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 can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0085] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not 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.
Claims
1. A video recording control method for a charging / swapping cabinet, characterized in that, include: Obtain the current status data of the charging and swapping cabinet; the current status data includes the cabinet's physical movement data and / or multimodal sensor detection data; Based on the current status data, a recording control command is generated; The recording control command is sent to the monitoring and recording device that is communicatively connected to the charging and swapping cabinet, so as to instruct the monitoring and recording device to perform recording operation based on the recording control command.
2. The video recording control method for the charging / swapping cabinet according to claim 1, characterized in that, The current status data also includes continuous monitoring screen data; the step of generating recording control instructions based on the current status data includes: Extract the pixel difference values between adjacent frames in the continuous monitoring image data; When the pixel difference value exceeds a preset image sensitivity threshold, the recording control command is generated.
3. The video recording control method for the charging / swapping cabinet according to claim 1, characterized in that, The step of generating recording control instructions based on the current state data includes: Based on the current status data, the event type currently occurring in the charging and swapping cabinet is identified; the event type includes normal operation events and abnormal alarm events; Based on the event type, determine the corresponding target recording parameters; The recording control command is generated based on the target recording parameters.
4. The video recording control method for the charging / swapping cabinet according to claim 3, characterized in that, The step of identifying the type of event currently occurring in the charging and swapping cabinet based on the current state data includes: Detect the level state transition characteristics in the physical action data of the cabinet; Based on the aforementioned level state transition characteristics, the cabinet door opening state is determined; When the cabinet door is open and no abnormality is detected in the multimodal sensor data, the event type currently occurring in the charging and swapping cabinet is identified as the normal operation event.
5. The video recording control method for the charging / swapping cabinet according to claim 3, characterized in that, The step of identifying the type of event currently occurring in the charging and swapping cabinet based on the current state data includes: When the current state data includes the multimodal sensor detection data, the multimodal sensor detection data is analyzed to obtain the abnormal deviation degree corresponding to the multimodal sensor detection data; When the abnormal deviation indicates that the safety environment threshold is exceeded, the event type is determined to be the abnormal alarm event; The multimodal sensor detection data includes at least one of vibration data, smoke data, and temperature data.
6. The video recording control method for the charging / swapping cabinet according to any one of claims 3 to 5, characterized in that, The step of determining the corresponding target recording parameters based on the event type includes: When the event type is the normal operation event, the first target recording bitrate is determined as the target recording parameter; In the case where the event type is the abnormal alarm event, the second target recording bitrate is determined as the target recording parameter; The second target recording bitrate is greater than the first target recording bitrate.
7. The video recording control method for the charging / swapping cabinet according to any one of claims 3 to 5, characterized in that, The charging and swapping cabinet and the monitoring and recording equipment are connected via serial port or USB.
8. A cabinet control system based on the video recording control method of the charging / swapping cabinet according to any one of claims 1 to 7, characterized in that, include: The acquisition unit acquires the current status data of the charging and swapping cabinet; the current status data includes physical motion data of the cabinet and / or detection data from multimodal sensors. The instruction generation unit generates a recording control instruction based on the current state data; The control unit sends the recording control command to the monitoring and recording device that is communicatively connected to the charging and swapping cabinet, so as to instruct the monitoring and recording device to perform recording operation based on the recording control command.
9. The cabinet control system according to claim 8, characterized in that, The current status data also includes continuous monitoring screen data; the instruction generation unit is specifically used for: Extract the pixel difference values between adjacent frames in the continuous monitoring image data; When the pixel difference value exceeds a preset image sensitivity threshold, the recording control command is generated.
10. The video recording control method for the charging / swapping cabinet according to claim 8, characterized in that, The instruction generation unit is specifically used for: Based on the current status data, the event type currently occurring in the charging and swapping cabinet is identified; the event type includes normal operation events and abnormal alarm events; Based on the event type, determine the corresponding target recording parameters; The recording control command is generated based on the target recording parameters.
