Linkage video recording method and system of law enforcement instrument and storage medium

By calculating the information density of the law enforcement instrument and the system calculation consumption coefficient, selecting the appropriate target law enforcement instrument group for synchronous data reading, and introducing a counter mechanism and last-position adjustment strategy, the problem that the data reading efficiency of the law enforcement instrument is affected by the information density, and the rational utilization and load balancing of the system operation resources are realized.

CN120017780APending Publication Date: 2025-05-16JIUTIAN PEIFENG (SHANGHAI) INTERNET OF THINGS TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510168279.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-17
Publication Date
2025-05-16

AI Technical Summary

Technical Problem

After law enforcement is completed, the data reading efficiency of the law enforcement instrument is affected by the different data information density of each law enforcement instrument, resulting in resource competition among multiple processes, which may lead to a decline in motherboard performance or resource depletion.

Method used

By calculating the information density of the law enforcement instrument and the system calculation consumption coefficient, selecting the appropriate target law enforcement instrument group for synchronous data reading, and introducing a counter mechanism and last-position adjustment strategy to dynamically adjust the priority of the law enforcement instrument in the daughter board.

Benefits of technology

It realizes the rational utilization and load balancing of system computing resources consumed during data reading, avoid resource overload, and improves system flexibility and performance stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120017780A_ABST
    Figure CN120017780A_ABST
Patent Text Reader

Abstract

The invention discloses a linkage video recording method and system for law enforcement instruments and a storage medium, and belongs to the technical field of police affair processing, and the method specifically comprises the steps: obtaining all law enforcement instruments currently connected with any daughter board, carrying out the sorting of the law enforcement instruments in a sequence opposite to the connection time, and obtaining the recorded data volume and recording time T of any law enforcement instrument, calculating the information density of the law enforcement instrument; selecting any daughter board, calibrating the law enforcement instrument which is connected with the daughter board and is arranged at the first place as a target law enforcement instrument, obtaining all the target law enforcement instruments, obtaining information densities of all the target law enforcement instruments, and pre-obtaining operation consumption coefficients for reading different information densities in unit time of the system; and determining a target law enforcement instrument group according to the operation consumption coefficient, performing reading sorting on the target law enforcement instrument group, and performing synchronous data reading on the target law enforcement instrument group according to the reading sorting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of police work processing, and in particular to a linkage video recording method, system and storage medium of a law enforcement instrument. Background Art

[0002] The body camera is an electronic body camera that is easy for law enforcement officers to carry and use. It is mainly used to record video, audio and other relevant data in real time during the law enforcement process to ensure the transparency, standardization and legality of the law enforcement process. The body camera can record video and audio in real time, providing an objective source of evidence for law enforcement officers. During the law enforcement process, the recorded content can be used as evidence in court proceedings or as a basis for subsequent investigations. By recording and recording the law enforcement process in real time, the body camera can improve the transparency of law enforcement, prevent abuse of power, violent law enforcement and other issues, and protect the legitimate rights and interests of law enforcement officers and parties.

[0003] After law enforcement is completed, law enforcement personnel need to place the law enforcement recorder into the data collection station for data reading. In order to improve data reading efficiency, the existing technology usually adopts multi-threaded parallel processing to quickly import data from the law enforcement recorder into the data collection station. It can be understood that one thread can access multiple law enforcement recorders, but the law enforcement recorders connected to the thread can only be connected to one data collection station at the same time. In order to ensure that the inserted law enforcement recorder can be connected to the data collection station as soon as possible, the existing technology usually adopts a last-in-first-out strategy to ensure that each law enforcement recorder can complete the data collection task as soon as possible. However, in the actual law enforcement process, the law enforcement process of each law enforcement officer is different, so the data information density in the corresponding law enforcement recorder is also different. The law enforcement recorder with a smaller information density may require more bandwidth resources when processing. If all threads are read synchronously without considering the information density of the law enforcement recorder, the motherboard performance may be degraded or resources may be exhausted due to resource competition among multiple processes. Summary of the invention

[0004] The purpose of the present invention is to provide a linkage recording method, system and storage medium for a body camera to solve the following technical problems:

[0005] After law enforcement is completed, law enforcement personnel need to place the law enforcement recorder into the data collection station for data reading. In order to improve data reading efficiency, the existing technology usually adopts multi-threaded parallel processing to quickly import data from the law enforcement recorder into the data collection station. It can be understood that one thread can access multiple law enforcement recorders, but the law enforcement recorders connected to the thread can only be connected to one data collection station at the same time. In order to ensure that the inserted law enforcement recorder can be connected to the data collection station as soon as possible, the existing technology usually adopts a last-in-first-out strategy to ensure that each law enforcement recorder can complete the data collection task as soon as possible. However, in the actual law enforcement process, the law enforcement process of each law enforcement officer is different, so the data information density in the corresponding law enforcement recorder is also different. The law enforcement recorder with a smaller information density may require more bandwidth resources when processing. If all threads are read synchronously without considering the information density of the law enforcement recorder, the motherboard performance may be degraded or resources may be exhausted due to resource competition among multiple processes.

[0006] The purpose of the present invention can be achieved through the following technical solutions:

[0007] A linkage video recording method for a body camera, characterized in that it comprises the following steps:

[0008] S1, obtain all the body cameras currently connected to any sub-board and sort them in reverse order of connection time J1, J2, ..., Jn, obtain the recorded data volume Q and recording time T of any body camera, and calculate according to the formula Calculate and obtain the information density of the body camera;

[0009] S2, select any sub-board and mark the first law enforcement instrument connected to the sub-board as the target law enforcement instrument, obtain all target law enforcement instruments and mark them as j1, j2, ..., jm, obtain the information density of all target law enforcement instruments and obtain in advance the calculation consumption coefficient of reading different information densities per unit time of the system, determine the target law enforcement instrument group according to the calculation consumption coefficient, and the target law enforcement instrument group is used for the law enforcement instruments that read at the same time;

[0010] S3, obtain the connection time of all law enforcement devices in any target law enforcement device group and calculate the connection time average T', sort the target law enforcement device group according to the size of the connection time average, the smaller the connection time average, the higher the ranking, generate a reading sort, and synchronize data reading of the target law enforcement device group according to the reading sort.

[0011] As a further solution of the present invention: In S2, the specific process of determining the target body camera group is as follows:

[0012] Calculate the computing resource consumption X=D*α1+D*α2+, ..., D*αm. When the computing resource consumption X≥D-ΔX, remove the law enforcement device corresponding to MAXαi, where D represents the total computing resources of the system, ΔX represents the preset computing resource threshold, and αi is the computing consumption coefficient of the ith law enforcement device. Recalculate the computing resource consumption X. If there is a computing resource consumption that satisfies X<D-ΔX, treat all the law enforcement devices that have not been removed as a target law enforcement device group.

[0013] As a further solution of the present invention: it also includes obtaining the law enforcement instruments that do not belong to the target law enforcement instrument group, repeating the above process, and obtaining all the target law enforcement instrument groups.

[0014] As a further solution of the present invention: if there are two or more law enforcement devices whose computing consumption coefficients are all maximum values, the law enforcement device with the shortest recording time is eliminated according to the recording time of the law enforcement devices.

[0015] As a further solution of the present invention: it also includes adding 1 to the counter corresponding to the last law enforcement instrument after the recorded data of the first law enforcement instrument of any sub-board is read. If the counter value is greater than or equal to the preset threshold value z, the last law enforcement instrument is adjusted to the first position of the sub-board.

[0016] A linkage video recording system for a body camera, characterized in that it includes:

[0017] The data acquisition module is used to obtain all the law enforcement devices currently connected to any sub-board and sort them in the reverse order of connection time J1, J2, ..., Jn, obtain the recorded data volume Q and recording time T of any law enforcement device, and calculate according to the formula Calculate and obtain the information density of the body camera;

[0018] A data analysis module is used to select any sub-board and mark the first law enforcement instrument connected to the sub-board as a target law enforcement instrument, obtain all target law enforcement instruments and mark them as j1, j2, ..., jm, obtain the information density of all target law enforcement instruments and pre-acquire the calculation consumption coefficient of reading different information densities per unit time of the system, determine the target law enforcement instrument group according to the calculation consumption coefficient, and the target law enforcement instrument group is used for the law enforcement instruments that are read simultaneously;

[0019] The result generation module is used to obtain the connection time of all law enforcement instruments in any target law enforcement instrument group and calculate the connection time average T', sort the target law enforcement instrument group according to the size of the connection time average, the smaller the connection time average, the higher the ranking, generate a reading sort, and synchronize data reading of the target law enforcement instrument group according to the reading sort.

[0020] A readable storage medium, characterized in that a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, the processor executes the steps of a linkage recording method for a body camera as described in any one of claims 1-6.

[0021] Beneficial effects of the present invention:

[0022] The present invention first obtains all the law enforcement instruments connected to any sub-board for sorting and calculates the information density of any law enforcement instrument, which is the basis for subsequent analysis. It can be understood that the prior art usually performs multi-threaded reading in data reading, and maximizes efficiency by reading the main board and connecting with multiple sub-boards and performing synchronous reading. However, the law enforcement process of each law enforcement officer is different, so the data information density in the corresponding law enforcement instrument is also different. The law enforcement instrument with smaller information density may require more bandwidth resources when processing. If all threads are synchronously read without considering the information density of the law enforcement instrument, the mainboard performance may be reduced or the resources may be exhausted due to resource competition among multiple processes. Therefore, the present invention calculates the information density of the law enforcement instrument and the system computing consumption coefficient, and selects a suitable target law enforcement instrument group to ensure that the system's computing consumption resources will not be over-consumed during the synchronous reading process, avoid resource overload, and realize reasonable utilization and load balancing of computing resources. At the same time, considering that the sorting criterion of last-in-first-served may cause a certain sub-board to have law enforcement recorders continuously connected, resulting in the inability to schedule the law enforcement instrument at the end of the team, therefore, a counter mechanism and a last-place adjustment strategy are introduced to dynamically adjust the priority of the law enforcement instrument in the sub-board to avoid long-term neglect of certain law enforcement instruments, thereby improving system flexibility. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The present invention will be further described below in conjunction with the accompanying drawings.

[0024] Figure 1 The present invention is a schematic flow chart of a linkage video recording method of a law enforcement instrument. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0026] See also Figure 1 As shown, the present invention is a linkage recording method of a body camera, comprising the following steps:

[0027] S1, obtain all the body cameras currently connected to any sub-board and sort them in reverse order of connection time J1, J2, ..., Jn, obtain the recorded data volume Q and recording time T of any body camera, and calculate according to the formula Calculate and obtain the information density of the body camera;

[0028] S2, select any sub-board and mark the first law enforcement instrument connected to the sub-board as the target law enforcement instrument, obtain all target law enforcement instruments and mark them as j1, j2, ..., jm, obtain the information density of all target law enforcement instruments and obtain in advance the calculation consumption coefficient of reading different information densities per unit time of the system, determine the target law enforcement instrument group according to the calculation consumption coefficient, and the target law enforcement instrument group is used for the law enforcement instruments that read at the same time;

[0029] S3, obtain the connection time of all law enforcement devices in any target law enforcement device group and calculate the connection time average T', sort the target law enforcement device group according to the size of the connection time average, the smaller the connection time average, the higher the ranking, generate a reading sort, and synchronize data reading of the target law enforcement device group according to the reading sort.

[0030] The present invention first obtains all the law enforcement instruments connected to any sub-board for sorting and calculates the information density of any law enforcement instrument, which is the basis for subsequent analysis. It can be understood that the prior art usually performs multi-threaded reading in data reading, so as to maximize efficiency by reading the main board and connecting with multiple sub-boards and performing synchronous reading. However, the law enforcement process of each law enforcement officer is different, so the data information density in the corresponding law enforcement instrument is also different. The law enforcement instrument with smaller information density may require more bandwidth resources when processing. If all threads are synchronously read without considering the information density of the law enforcement instrument, the mainboard performance may be reduced or the resources may be exhausted due to resource competition among multiple processes. Therefore, the present invention calculates the information density of the law enforcement instrument and the system computing consumption coefficient, selects a suitable target law enforcement instrument group to ensure that the system's computing consumption resources will not be over-consumed during the synchronous reading process, avoids resource overload, realizes reasonable utilization of computing resources and load balancing, and considers that the sorting criterion of last-in-first-served may cause a certain sub-board to have law enforcement recorders connected continuously, resulting in the inability to schedule the law enforcement instrument at the end of the team. Therefore, a counter mechanism and a last-place adjustment strategy are introduced to dynamically adjust the priority of the law enforcement instrument in the sub-board to avoid long-term neglect of certain law enforcement instruments, thereby improving system flexibility.

[0031] In a preferred embodiment of the present invention, in S2, the specific process of determining the target body camera group is as follows:

[0032] Calculate the computing resource consumption X=D*α1+D*α2+, ..., D*αm. When the computing resource consumption X≥D-ΔX, remove the law enforcement device corresponding to MAXαi, where D represents the total computing resources of the system, ΔX represents the preset computing resource threshold, and αi is the computing consumption coefficient of the ith law enforcement device. Recalculate the computing resource consumption X. If there is a computing resource consumption that satisfies X<D-ΔX, treat all the law enforcement devices that have not been removed as a target law enforcement device group.

[0033] In another preferred embodiment of the present invention, it also includes obtaining body cameras that do not belong to the target body camera group, repeating the above process, and obtaining all target body camera groups.

[0034] In another preferred embodiment of the present invention, if there are two or more law enforcement devices whose computing consumption coefficients are both maximum values, the law enforcement device with the shortest recording time is eliminated based on the recording time of the law enforcement devices.

[0035] In another preferred embodiment of the present invention, after the recorded data of the first law enforcement instrument of any sub-board is read, 1 is added to the corresponding counter of the last law enforcement instrument. If the counter value is greater than or equal to the preset threshold value z, the last law enforcement instrument is adjusted to the first position of the sub-board.

[0036] A linkage video recording system of a body camera, comprising:

[0037] The data acquisition module is used to obtain all the law enforcement devices currently connected to any sub-board and sort them in the reverse order of connection time J1, J2, ..., Jn, obtain the recorded data volume Q and recording time T of any law enforcement device, and calculate according to the formula Calculate and obtain the information density of the body camera;

[0038] A data analysis module is used to select any sub-board and mark the first law enforcement instrument connected to the sub-board as a target law enforcement instrument, obtain all target law enforcement instruments and mark them as j1, j2, ..., jm, obtain the information density of all target law enforcement instruments and pre-acquire the calculation consumption coefficient of reading different information densities per unit time of the system, determine the target law enforcement instrument group according to the calculation consumption coefficient, and the target law enforcement instrument group is used for the law enforcement instruments that are read simultaneously;

[0039] The result generation module is used to obtain the connection time of all law enforcement instruments in any target law enforcement instrument group and calculate the connection time average T', sort the target law enforcement instrument group according to the size of the connection time average, the smaller the connection time average, the higher the ranking, generate a reading sort, and synchronize data reading of the target law enforcement instrument group according to the reading sort.

[0040] A readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the processor executes the steps of a linkage recording method for a body camera as described in any one of claims 1 to 6.

[0041] The above is a detailed description of an embodiment of the present invention, but the content is only a preferred embodiment of the present invention and cannot be considered to limit the scope of implementation of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the patent coverage of the present invention.

Claims

1. A linkage video recording method for a body camera, characterized in that: The following steps are involved: S1, obtain all the body cameras currently connected to any sub-board and sort them in reverse order of connection time J1, J2, ..., Jn, obtain the recorded data volume Q and recording time T of any body camera, and calculate according to the formula Calculate and obtain the information density of the body camera; S2, select any sub-board and mark the first law enforcement instrument connected to the sub-board as the target law enforcement instrument, obtain all target law enforcement instruments and mark them as j1, j2, ..., jm, obtain the information density of all target law enforcement instruments and pre-obtain the calculation consumption coefficient of reading different information densities per unit time of the system, determine the target law enforcement instrument group according to the calculation consumption coefficient, and the target law enforcement instrument group is used for the law enforcement instruments that read at the same time, wherein m is the number of sub-boards; S3, obtain the connection time of all law enforcement devices in any target law enforcement device group and calculate the connection time average T', sort the target law enforcement device group according to the size of the connection time average, the smaller the connection time average, the higher the ranking, generate a reading sort, and synchronize data reading of the target law enforcement device group according to the reading sort.

2. The linkage recording method of a body camera according to claim 1, characterized in that: In S2, the specific process of determining the target body camera group is as follows: Calculate the computing resource consumption X=D*α1+D*α2+, ..., D*αm. When the computing resource consumption X≥D-ΔX, remove the law enforcement device corresponding to MAXαi, where D represents the total computing resources of the system, ΔX represents the preset computing resource threshold, and αi is the computing consumption coefficient of the ith law enforcement device. Recalculate the computing resource consumption X. If there is a computing resource consumption that satisfies X<D-ΔX, treat all the law enforcement devices that have not been removed as a target law enforcement device group.

3. The linkage video recording method of a body camera according to claim 2, characterized in that: It also includes obtaining a body armor that does not belong to the target body armor group, repeating the above process to obtain all target body armor groups.

4. The method for recording video of a body camera according to claim 2, characterized in that: It also includes that if there are two or more law enforcement devices whose computing consumption coefficients are all maximum values, the law enforcement device with the shortest recording time will be eliminated based on the recording time of the law enforcement devices.

5. The method for recording video of a body camera according to claim 1, characterized in that: It also includes that when the recorded data of the first law enforcement instrument of any sub-board is read, the counter corresponding to the last law enforcement instrument is increased by 1. If the counter value is greater than or equal to the preset threshold value z, the last law enforcement instrument is updated to the first law enforcement instrument of the sub-board.

6. A linkage video recording system for a body camera, characterized in that: include: The data acquisition module is used to obtain all the law enforcement devices currently connected to any sub-board and sort them in the reverse order of connection time J1, J2, ..., Jn, obtain the recorded data volume Q and recording time T of any law enforcement device, and calculate according to the formula Calculate and obtain the information density of the body camera; A data analysis module is used to select any sub-board and mark the first law enforcement instrument connected to the sub-board as a target law enforcement instrument, obtain all target law enforcement instruments and mark them as j1, j2, ..., jm, obtain the information density of all target law enforcement instruments and pre-acquire the calculation consumption coefficient of reading different information densities per unit time of the system, determine the target law enforcement instrument group according to the calculation consumption coefficient, and the target law enforcement instrument group is used for the law enforcement instruments that are read simultaneously; The result generation module is used to obtain the connection time of all law enforcement instruments in any target law enforcement instrument group and calculate the connection time average T', sort the target law enforcement instrument group according to the size of the connection time average, the smaller the connection time average, the higher the ranking, generate a reading sort, and synchronize data reading of the target law enforcement instrument group according to the reading sort.

7. A readable storage medium, characterized in that: A computer program is stored on the readable storage medium. When the computer program is executed by the processor, the processor executes the steps of the linkage recording method of the body camera as described in any one of claims 1 to 6.