Police equipment management method and device, computer equipment, readable storage medium and program product
By scanning the radio frequency identification electronic tags on police equipment, combining equipment status and usage information to detect damage, the problem of inaccurate management of police equipment in the existing technology is solved, and more efficient equipment management and use is achieved.
Patent Information
- Application Number
- CN202411792034.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-06
- Publication Date
- 2025-03-07
AI Technical Summary
The existing police equipment management methods are not accurate enough, resulting in low efficiency and poor use efficiency of equipment management.
By scanning the radio frequency identification electronic tags on the police equipment to be stored, obtaining equipment identification, and combining equipment status information and usage information, detecting equipment damage, pushing maintenance messages or performing database operations.
It realizes accurate management of police equipment, improves the accuracy and efficiency of warehouse entry operations, and ensures the safe and effective use of equipment.
Smart Images

Figure CN119579065A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a police equipment management method, apparatus, computer equipment, computer-readable storage medium and computer program product. Background Art
[0002] Police equipment management is a key link in police work. By strengthening the management of police equipment, we can not only ensure the safety of police equipment, but also improve the efficiency of the use of police equipment, so that police equipment can better serve the work.
[0003] In traditional technology, the management of police equipment mainly relies on manual recording, barcode scanning or simple electronic tag technology. Specifically, when a certain police equipment is put into storage, the barcode or electronic tag attached to the police equipment is scanned to obtain the equipment information of the police equipment, and the obtained equipment information of the police equipment is recorded, and then the storage operation of the police equipment is manually performed.
[0004] However, the current management method of police equipment is not accurate enough. Summary of the invention
[0005] Based on this, it is necessary to provide an accurate police equipment management method, device, computer equipment, computer readable storage medium and computer program product to address the above technical issues.
[0006] In a first aspect, the present application provides a police equipment management method, comprising:
[0007] In response to the equipment storage operation for the police equipment to be stored, the radio frequency identification electronic tag on the police equipment to be stored is scanned to obtain the equipment identification of the police equipment to be stored;
[0008] Detecting the equipment status information of the police equipment to be stored, and when the outbound log information associated with the equipment identification to be stored is found, querying the use information of the equipment to be stored with the equipment identification to be stored from the outbound log information;
[0009] Based on the status information of the equipment to be stored and the usage information of the equipment to be stored, the damage degree of the equipment to be stored is detected;
[0010] When the equipment damage indicates that maintenance is required, push maintenance messages for the equipment to be put into storage;
[0011] When the equipment damage level indicates that maintenance is not required, the equipment to be put into storage is controlled to perform the storage operation.
[0012] In a second aspect, the present application also provides a police equipment management device, including:
[0013] The scanning module is used to respond to the equipment storage operation for the police equipment to be stored, scan the radio frequency identification electronic tag on the police equipment to be stored, and obtain the equipment identification of the police equipment to be stored;
[0014] A query module is used to detect the status information of the police equipment to be stored in the warehouse, and when the outbound log information associated with the identification of the equipment to be stored in the warehouse is found, query the usage information of the equipment to be stored in the warehouse with the identification of the equipment to be stored in the warehouse from the outbound log information;
[0015] A detection module, used to detect the equipment damage degree of the equipment to be stored in the warehouse based on the equipment status information and the equipment usage information to be stored in the warehouse;
[0016] The maintenance module is used to push maintenance messages for equipment to be put into storage when the equipment damage indicates that maintenance is required;
[0017] The storage module is used to control the storage operation of the equipment to be stored when the damage degree of the equipment indicates that maintenance is not required.
[0018] In a third aspect, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of a police equipment management method when executing the computer program.
[0019] In a fourth aspect, the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of a police equipment management method are implemented.
[0020] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of a police equipment management method.
[0021] The above-mentioned police equipment management method, device, computer equipment, computer-readable storage medium and computer program product obtain the identification of the police equipment to be stored by scanning the radio frequency identification electronic tag on the police equipment to be stored, and detect the status information of the equipment to be stored of the police equipment to be stored, and query the corresponding outbound log information based on the identification of the equipment to be stored to detect whether the police equipment is equipment for outbound use. If so, query the use information of the equipment to be stored of the identification of the equipment to be stored based on the outbound log information. Further, based on the status information of the equipment to be stored and the use information of the equipment to be stored, the equipment damage degree of the equipment to be stored is comprehensively detected from multiple dimensions, and then based on the equipment damage degree, it is accurately determined which equipment needs to perform the storage operation, that is, when the equipment damage degree indicates that maintenance is required, the maintenance message of the equipment to be stored is pushed; when the equipment damage degree indicates that maintenance is not required, the equipment to be stored is controlled to perform the storage operation, which further improves the storage accuracy of the equipment to be stored. Through the above-mentioned technical means, accurate management of police equipment is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the drawings required for use in the embodiments of the present application or related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0023] Figure 1 An application environment diagram of a police equipment management method in one embodiment;
[0024] Figure 2 A schematic diagram of a process of a police equipment management method in one embodiment;
[0025] Figure 3 A schematic diagram of a process flow of a police equipment management method in another embodiment;
[0026] Figure 4 A functional schematic diagram of each system module of a police equipment management system in one embodiment;
[0027] Figure 5 A serial communication timing diagram in one embodiment;
[0028] Figure 6 is a flow chart of an application-side communication process in one embodiment;
[0029] Figure 7 A flowchart of a mobile terminal managing police equipment in one embodiment;
[0030] Figure 8is a structural block diagram of a police equipment management device in one embodiment;
[0031] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clear, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are used to explain the present application and are not used to limit the present application.
[0033] The police equipment management method provided in the embodiment of the present application is implemented by a police equipment management system and can be applied to Figure 1 In the application environment shown in the figure. The system architecture diagram of the police equipment management system is as follows Figure 1 As shown. In this system, there are not only industrial computers and servers, but also mobile terminals and Web (World Wide Web) servers. Among them, mobile terminals and Web servers mainly adopt B / S (Browser / Server) architecture, and industrial computers and servers mainly adopt C / S (Client-Server) architecture. Among them, B / S architecture, that is, browser and server architecture mode, is a change or improvement of C / S architecture with the rise of Internet technology. Under this architecture, the user work interface is realized through the WWW browser, a very small part of the transaction logic is realized on the front end, and the main transaction logic is realized on the server side. The B / S architecture unifies the client, concentrates the core part of the system function implementation on the server, and simplifies the development, maintenance and use of the system. C / S architecture is a distributed architecture that separates the client and the server. Each instance of the client software can send a request to a server or an application server. The distributed architecture refers to distributing the various components and services of the system on multiple independent computer nodes. Each node can run independently, and the nodes communicate and collaborate through the network to achieve a high-performance, high-availability and scalable system architecture. The distributed architecture can realize the processing of large batches of data and achieve faster data analysis and query. In this system, the industrial computer communicates with the web server through the network. The data storage system can store the data that the server 104 needs to process. The data storage system, for example, the MySQL (Structured query language, relational database management system) database can be integrated on the server 104, or it can be placed on the cloud or other network servers.
[0034] The user triggers the equipment entry operation for the police equipment to be put into the warehouse on the industrial computer, and the industrial computer responds to the equipment entry operation for the police equipment to be put into the warehouse, scans the radio frequency identification electronic tag on the police equipment to be put into the warehouse, and obtains the equipment identification of the police equipment to be put into the warehouse; detects the equipment status information of the police equipment to be put into the warehouse, and the industrial computer queries the outbound log information associated with the equipment identification of the equipment to be put into the warehouse from the data of the server. When the outbound log information associated with the equipment identification of the equipment to be put into the warehouse is queried, the equipment usage information of the equipment identification of the equipment to be put into the warehouse is queried from the outbound log information; based on the equipment status information and the equipment usage information, the equipment damage degree of the equipment to be put into the warehouse is detected; when the equipment damage degree indicates that maintenance is required, the maintenance message of the equipment to be put into the warehouse is pushed; when the equipment damage degree indicates that maintenance is not required, the equipment to be put into the warehouse is controlled to perform the entry operation. In order to save the time of police officers and improve efficiency, the communication between the mobile terminal and the web server is also designed. The police officers do not have to perform related operations in front of the industrial computer, but can query the relevant information of the equipment by operating in the browser on the mobile terminal. In addition, the present application also involves a Netty server to implement Netty communication interaction between each end. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0035] In an exemplary embodiment, Figure 2 As shown, a police equipment management method is provided, which is applied to Figure 1 The industrial computer in the example is used to illustrate. Among them:
[0036] S100, in response to the equipment storage operation for the police equipment to be stored, the electronic tag on the police equipment to be stored is scanned to obtain the equipment identification of the police equipment to be stored.
[0037] Among them, the identification of equipment to be stored refers to the unique identification of the equipment to be stored, which can be used to identify the police equipment to be stored.
[0038] Specifically, the user triggers an equipment warehousing operation for the police equipment to be stored on the industrial computer, and the industrial computer responds to the equipment warehousing operation for the police equipment to be stored, scans the radio frequency identification electronic tag on the police equipment to be stored, and obtains relevant information of the police equipment to be stored, such as the equipment identification and the type of equipment to be stored. The identification of the equipment to be stored includes but is not limited to the equipment code to be stored, the name of the equipment to be stored and other identification information.
[0039] Among them, radio frequency identification electronic tags are RFID (Radio Frequency Identification) tags. Radio frequency identification technology is also called electronic tags and wireless radio frequency identification technology. It can identify specific targets and read and write related data through radio signals without establishing mechanical contact between the system and the identification target. Low frequency (125kHz-134kHz) has strong penetration, but slow transmission rate, and signal strength drops rapidly with distance. It is suitable for short-distance transmission and is mainly used for various access control cards, toll cards, etc. High frequency (13.56MHz) has various characteristics between low frequency and ultra-high frequency, and can write information to the tag. It is mainly used for books, freight, logistics management, etc. Ultra-high frequency (860MHz-960MHz) has a long working distance, high transmission rate, and anti-collision mechanism. It can read a large number of tags in a short time, but the penetration is weak. It is mainly used for air parcel management and production line control. A complete RFID system consists of three parts: reader / writer, electronic tag and data management system. Among them, the reader is the information control and processing center of the RFID system. It sends radio frequency signals in an area to form an electromagnetic field. The tags in this electromagnetic field area use the energy obtained from the induced current to send the data information stored in the chip to the reader (i.e., read operation), or modify the data stored in it according to the instructions of the reader (write operation).
[0040] In an exemplary embodiment, the industrial computer can control the RFID reader to scan the radio frequency identification electronic tags on the police equipment to be stored. The information scanned by the RFID reader can not only be obtained by the industrial computer, but also stored in the server's database through communication with the server.
[0041] S200, detecting the equipment status information of the police equipment to be stored, and when the outbound log information associated with the equipment identifier to be stored is found, querying the equipment usage information of the equipment identifier to be stored from the outbound log information.
[0042] Specifically, the status information of the equipment to be stored in the police equipment to be stored is detected, and the status information of the equipment to be stored in the police ... The usage time of the equipment to be put into storage may be the interval between the most recent outbound time period and the current inbound time period, or may be the interval between all outbound time periods and the inbound time period corresponding to each outbound time period.
[0043] S300: Detect the equipment damage degree of the equipment to be stored in the warehouse based on the equipment status information and the equipment usage information to be stored in the warehouse.
[0044] Specifically, based on the status information of the equipment to be stored and the use information of the equipment to be stored, that is, based on the status information of the equipment to be stored, the use time of the equipment to be stored and the use frequency of the equipment to be stored, the equipment damage degree of the equipment to be stored is detected. More specifically, when the status information of the equipment to be stored indicates that the police equipment to be stored is in storage, the equipment damage degree of the equipment to be stored is detected based on the use time of the equipment to be stored and the use frequency of the equipment to be stored. For example, the longer the use time, the higher the equipment damage degree, and the higher the use frequency, the higher the equipment damage degree. Further, it is also necessary to perform pre-processing operations such as cleaning processing on the acquired use information of the equipment to be stored, remove abnormal values, so as to more accurately detect the equipment damage degree of the equipment to be stored. Furthermore, during the operation of the system, the status information of the equipment to be stored can also be collected, and the information such as the use information of the equipment to be stored and the status information of the equipment to be stored can be sorted and analyzed to form graphics and charts, and the number of times various police equipment is used, the use status, the situation after use, etc. are displayed in an intuitive way, and uploaded to the server.
[0045] S400: When the equipment damage level indicates that maintenance is required, a maintenance message for the equipment to be stored is pushed.
[0046] Specifically, when the degree of equipment damage exceeds the preset equipment damage threshold, it is considered that the police equipment to be stored requires maintenance, so a maintenance message for the equipment to be stored is pushed, the equipment to be stored is sent to the maintenance equipment, and the equipment status information is updated, that is, the status is updated to "under maintenance", and the database can also be updated through communication with the server.
[0047] S500: When the equipment damage level indicates that maintenance is not required, the equipment to be put into storage is controlled to perform a storage operation.
[0048] Specifically, when the equipment damage degree does not exceed the preset equipment damage degree threshold, it is considered that the police equipment to be put into storage does not need maintenance, and the storage operation of the equipment to be put into storage can be performed, and the status information of the equipment to be put into storage can be updated, that is, the status information of the equipment to be put into storage is updated from to be put into storage to already put into storage. In an exemplary embodiment, the storage area corresponding to the identification of the equipment to be put into storage can be queried, and the equipment to be put into storage can be controlled to be stored in the storage area corresponding to the identification of the equipment to be put into storage.
[0049] In the above-mentioned police equipment management method, by scanning the radio frequency identification electronic tag on the police equipment to be stored, the identification of the equipment to be stored of the police equipment to be stored is obtained, and the status information of the equipment to be stored of the police equipment to be stored is detected. And the corresponding outbound log information can be queried based on the identification of the equipment to be stored to detect whether the police equipment is equipment for outbound use. If so, the use information of the equipment to be stored of the identification of the equipment to be stored is queried based on the outbound log information. Further, based on the status information of the equipment to be stored and the use information of the equipment to be stored, the equipment damage degree of the equipment to be stored is comprehensively detected from multiple dimensions, and then based on the equipment damage degree, it is accurately determined which equipment needs to perform the storage operation, that is, when the equipment damage degree indicates that maintenance is required, the maintenance message of the equipment to be stored is pushed; when the equipment damage degree indicates that maintenance is not required, the equipment to be stored is controlled to perform the storage operation, which further improves the storage accuracy of the equipment to be stored. In the whole process, accurate management of police equipment is achieved through the above-mentioned technical means.
[0050] In an exemplary embodiment, responding to an equipment warehousing operation for police equipment to be stored includes: receiving a user login request, obtaining account information and first facial image information carried in the user login request; and responding to the equipment warehousing operation for police equipment to be stored when both the account information and the first facial image information are legal.
[0051] Specifically, before responding to the equipment storage operation for the police equipment to be stored, you first need to log in to the police equipment management system on the industrial computer. The login process can be the following: First, the industrial computer controls the shooting device to turn on, the user enters the account password and other information on the industrial computer, and uses the shooting device to shoot the user's first facial image information, and the account password and the first facial image information are verified for legitimacy. If the account information and the first facial image information are both legal, the login is successful. Generally, the shooting device can be a binocular camera. Second, the user enters the account password and other information on the industrial computer, and verifies the legitimacy of the account password. If the account information is legal, the industrial computer controls the shooting device to turn on, and uses the shooting device to shoot the user's first facial image information, and verifies the legitimacy of the first facial image information. If the first facial image information is also legal, the login is successful.
[0052] In an exemplary embodiment, the method for legitimacy verification includes: sending the account password information and the first facial image information to the database of the server, querying the registered account password information consistent with the account password information from the registered database of the server, and querying the registered facial image information matching the first facial image information. Further, the registered facial image information matching the first facial image information can be completely the same, or the feature vectors of the first facial image information and the registered facial image information can be the same. The server can push the legitimacy verification result to the industrial computer to realize the face recognition function. After the user passes the face recognition, the management of the relevant police equipment is realized. Among them, the face recognition technology is a biometric recognition technology based on certain features and digital information of the individual's face. Starting from different biometric features, the difference comparison and screening of features are used to identify the individual identity. In another exemplary embodiment, when the face recognition fails, the server will automatically send an alarm message to the administrator's APP (application), and the alarm message includes the photo information and time of the person whose face recognition failed, so that the administrator can handle subsequent matters according to the information obtained.
[0053] In an exemplary embodiment, when logging in, not only face recognition can be performed, but also liveness detection based on correlation analysis of binocular camera imaging can be performed, that is, judging whether the first face image information obtained is a biological live body, and the first face image information being a biological live body is also one of the conditions for the first face image information to be legal. Among them, liveness detection is a technical means in biometric identification, which ensures that the collected biometric information comes from a real person, rather than being forged or copied, so as to ensure user safety. The liveness detection function can be achieved through motion command detection, optical and image analysis, three-dimensional imaging technology, multi-sensor mode fusion and deep neural network. Using binocular cameras for face recognition, two slightly different face images can be obtained at the same time. By calculating the correlation coefficient between the differences in image features between real faces and forged faces, including texture, edge, color, shape and other features, it can be judged whether the photographed face is a real live body. Among them, a neural network is a mathematical model or a computational model that imitates the structure and function of a biological neural network, which is used to estimate or approximate a function. Neural networks are composed of a large number of artificial neurons connected together for calculation. In most cases, artificial neural networks can change their internal structure based on external information and are adaptive systems.
[0054] In an exemplary embodiment, when a user logs in for the first time, the user will be asked to change the password to ensure the security of the police account. At the same time, after the password is changed, the information of the new password is uploaded to the server to update the database content.
[0055] In this embodiment, the account information and the first facial image information are detected to see if they are legal. Only when both the account information and the first facial image information are legal, the management operation of police equipment is performed, thereby making the management of police equipment more accurate and reducing the possibility of irrelevant personnel managing police equipment.
[0056] In an exemplary embodiment, Figure 3 As shown, the method also includes:
[0057] S610: In response to an equipment use operation on the police equipment to be used, obtaining at least one identifier of the equipment to be used.
[0058] S620: Query the state information of the equipment to be used and the usage information of the equipment to be used that are associated with at least one identifier of the equipment to be used.
[0059] S630: Filter a target device identifier to be used from at least one device identifier to be used based on the device status information to be used and the device usage information to be used associated with each device identifier to be used.
[0060] S640, querying a first storage area associated with the target device identifier to be used, and controlling the target equipment to be used corresponding to the target device identifier to be used to be removed from the first storage area.
[0061] Specifically, after the face recognition login is successful, the user can also trigger the equipment use operation for the police equipment to be used on the industrial computer. The industrial computer responds to the equipment use operation for the police equipment to be used and obtains at least one equipment identification to be used, such as obtaining at least one name of the police equipment to be used. The state information of the equipment to be used and the use information of the equipment to be used associated with at least one equipment identification to be used are queried and pushed to the user. Based on the displayed information, the user screens the appropriate target equipment identification to be used and uploads the target equipment identification to be used to the industrial computer. The industrial computer screens the target equipment identification to be used from at least one equipment identification to be used based on the target equipment identification to be used. Further, the industrial computer queries the first storage area associated with the target equipment identification to be used and controls the target equipment to be used corresponding to the target equipment identification to be used to be removed from the first storage area. The police equipment to be used can be single police equipment or public equipment. Single police equipment refers to the police equipment equipped by each police officer, and public equipment refers to the police equipment equipped by some of the multiple police officers. Therefore, for public equipment, it is also necessary to distribute the target device to be used identified by the target device to be used to appropriate police officers among multiple police officers.
[0062] In this embodiment, by displaying to the user the status information of the equipment to be used and the usage information of the equipment to be used associated with at least one identification of the equipment to be used, the user can clearly determine the police equipment to be used, so as to accurately issue the police equipment to be used.
[0063] In an exemplary embodiment, before responding to an equipment warehousing operation for police equipment to be stored, the method also includes: responding to an equipment registration operation for police equipment to be registered, obtaining equipment label information of the police equipment to be registered; if equipment label information matching the equipment label information is not found, obtaining equipment type information in the equipment label information; based on the equipment type information, detecting a second storage area of the police equipment to be registered, and controlling the police equipment to be registered to be stored in the second storage area.
[0064] Specifically, before the equipment warehousing operation is performed, the police equipment is unregistered, so all police equipment to be registered need to be registered. Obtain the code and name of each police equipment to be registered, and attach the equipment tag information to be registered as an RFID tag to the corresponding police equipment to be registered. The industrial computer can scan the RFID tag to read the code and name of each police equipment to be registered in the EPC (Electronic Product Code) area of the tag, as well as the status information of each police equipment to be registered. The EPC area is an important part of the RFID memory, and its main function is to store the unique identifier of the tag. These identifiers are usually encoded according to specific standards and are used to uniquely identify an object or product in the RFID system. Furthermore, the code and name of each police equipment to be registered, as well as the status information of each police equipment to be registered, can be stored in the server's database. Furthermore, the equipment label information to be registered of each police equipment to be registered may have been registered. Therefore, it is necessary to send the equipment label information to be registered to the server, and then query the equipment label information matching the equipment label information to be registered in the server's database. If no equipment label information matching the equipment label information to be registered is found, it means that the equipment label information to be registered has not been registered. At this time, the equipment type information to be registered in the equipment label information to be registered is obtained, and the second storage area for storing the equipment corresponding to the equipment type information to be registered is detected, and the police equipment to be registered is controlled to be stored in the second storage area to realize equipment registration and warehousing operations.
[0065] In the above embodiment, by registering the police equipment to be registered, efficient and accurate management of the successfully registered police equipment is achieved.
[0066] In an exemplary embodiment, before receiving a user login request, the method also includes: responding to a police officer information registration operation for the police officer to be registered, and obtaining the police officer identification of the police officer to be registered; if no police officer identification matching the police officer identification is found, generating registration account information of the police officer identification to be registered; if the police officer identification to be registered passes the authority verification, obtaining image information of the police officer to be registered of the police officer identification to be registered; if the image information of the police officer to be registered passes the liveness verification, associating and saving the registration account information with the image information of the police officer to be registered.
[0067] Specifically, the industrial computer can register department information, which is further divided into two modules: police officer information registration and police equipment information registration. It should be noted that police officer information registration is a registration operation that can only be performed by an administrator account. When the administrator enters the information registration page, there are three buttons on the information registration page: password modification, police officer information registration, and police equipment information registration. In the police officer information registration module, a binocular camera is used and a face recognition SDK (Software Development Kit) is integrated to provide functions such as face feature information extraction, face tracking, and face feature information comparison. It also has a liveness detection function, which is convenient for use in different face detection scenarios. When registering police information, the user enters the registration personnel information, the industrial computer responds to the police information registration operation for the police to be registered, obtains the police identification of the police to be registered, and sends the police identification to the server database. If the police identification matching the police identification is not found, the server sends the response information of the unqueried to the industrial computer. In this case, the industrial computer generates the police registration account information, that is, the initial account and password. At this time, the user can also enter other information of the police to be registered to register together. Then, the police identification to be registered is verified by authority. If the police identification to be registered passes the authority verification, a clear facial photo of the registrant is obtained through the binocular camera, that is, the image information of the police to be registered. The back end calls the corresponding interface of Baidu face recognition through the image information of the police to be registered. After the liveness detection, facial feature extraction, and feature comparison based on the correlation analysis of the binocular camera imaging, the image information of the police to be registered and the registration account information are transmitted to the server and saved in the database to realize the registration of police information.
[0068] In an exemplary embodiment, the permission verification for the registered police officer identification includes: binding the SDK to the device and importing the corresponding files into the device. It can be mainly divided into two methods: online authentication and offline authentication. Online authentication confirms the user's identity and authority through a network connection. When connected to the network, it is activated online by entering the serial number; while offline authentication performs identity authentication and permission verification locally or offline through pre-stored verification information or the characteristics of the device itself.
[0069] In this embodiment, when registering police officer information, the authority verification and liveness verification technology are used to determine whether the input police officer information can be registered. After the police officer information is registered, the registered account information and the image information of the police officer to be registered are associated and saved, thereby accurately determining whether the police officer is a registered police officer and whether he has the corresponding operation authority.
[0070] In an exemplary embodiment, when the image information of the police officer to be registered passes the liveness verification, before associating the registration account information with the personnel image information of the police officer to be registered and saving it, the method also includes: extracting features of the image information of the police officer to be registered, obtaining facial image feature information of the police officer to be registered, and obtaining pre-stored live facial image feature information; based on the facial image feature information of the police officer to be registered and the live facial image feature information, verifying whether the image information of the police officer to be registered passes the liveness verification.
[0071] Specifically, a camera is used to capture a face image, and the face area in the image is automatically captured. Then, the face image is geometrically transformed and feature points are extracted to adjust the crooked face image to a standard posture. Next, the global features and local features of the face image are extracted, and a feature vector that can uniquely identify an individual is obtained, that is, the face image feature information of the police officer to be registered. Finally, the obtained face image feature information of the police officer to be registered is compared and matched with the live face feature vector in the database to verify whether the image information of the police officer to be registered has passed the live verification. In the process of face recognition, in order to prevent counterfeiting means from passing face recognition, random actions such as shaking head, nodding, blinking, etc. can also be added to perform live verification to ensure the authenticity of the collected face. When the face image feature information of the police officer to be registered matches the live face feature vector, the image information of the police officer to be registered passes the live verification; when the face image feature information of the police officer to be registered does not match the live face feature vector, the image information of the police officer to be registered fails to pass the live verification.
[0072] In this embodiment, by extracting features from the image information of the police officer to be registered and comparing the facial image feature information of the police officer to be registered with the facial image feature information of a living person, it is accurately verified whether the image information of the police officer to be registered has passed the liveness verification.
[0073] In an exemplary embodiment, the method also includes: obtaining the status information of multiple warehoused equipment and the usage information of multiple warehoused equipment within multiple preset time periods; predicting the life of the warehoused police equipment based on all the status information of the warehoused equipment and all the usage information of the warehoused equipment for each warehoused police equipment, and obtaining the life prediction result of each warehoused police equipment; generating multiple procurement recommendations for the warehoused police equipment based on the life prediction result of each warehoused police equipment, all the status information of the warehoused equipment and all the usage information of the warehoused equipment.
[0074] Specifically, after each event is processed, the system will automatically generate and upload a log, and automatically perform statistical analysis of the data based on the usage of police equipment every day, forming an intuitive data chart form, and sending it to the administrator. At the same time, the stored equipment status information and stored equipment usage information of the stored police equipment are automatically evaluated in each preset time period, and the life of the stored police equipment is predicted based on all the stored equipment status information and all the stored equipment usage information of each stored police equipment, and the life prediction result of each stored police equipment is obtained. The life prediction of the stored police equipment can generally be achieved by a prediction model based on the life cycle of the police equipment. Further, based on the life prediction result of each stored police equipment, all the stored equipment status information and all the stored equipment usage information, a purchase suggestion for the stored police equipment is generated, and the purchase suggestion is sent to the administrator, wherein the stored equipment usage information includes the use time of the stored equipment and the use frequency of the stored equipment. At the same time, in order to ensure the consistency and integrity of the data after the database operation, the server uses a transaction processing mechanism to perform database operations. The transaction processing mechanism refers to treating a group of operations as a single work unit in the database management system. The execution results of these operations are all successful and all rolled back to ensure the consistency and integrity of the data. More specifically, the police equipment usage record information, police equipment status information and other information collected during the system operation can be sorted and analyzed to form graphics and charts to intuitively display the number of times various police equipment is used, the usage status, and the situation after use. The information is first uploaded to the server and then sent to the administrator APP through the server, so that the administrator can make the next decision based on the data display and the generated police equipment procurement recommendations. In addition, the damage probability model can be trained and predicted by machine learning. According to the results obtained, it is sent to the administrator APP through the server to inform the administrator in advance of the possible development of the police equipment status and whether it will be damaged during use, so as to do a good job in emergency handling.
[0075] Based on the above analysis, the optimal police equipment procurement recommendation is generated according to the frequency and quantity of police equipment use, and the life of police equipment is predicted according to the prediction model of the police equipment life cycle. The message is sent to the administrator application through the server to notify the administrator in time so that the administrator can formulate procurement plans and deal with police equipment damage in advance, thereby improving the efficiency of police equipment management and the use efficiency of police equipment. In addition, police equipment can be tracked. When it is detected that a certain police equipment has been taken away and has not been put into storage for a long time, the information data of the police equipment is obtained by sending a request message to the server, and the information data of the police equipment when it is out of the warehouse is checked. The police equipment taken can be matched to the specific police officer to realize the tracking of police equipment. In the event of accidents such as damage or loss of police equipment, accountability can also be quickly pursued.
[0076] In this embodiment, by predicting the life of the police equipment in stock based on all the equipment status information and all the equipment usage information of each police equipment in stock, the life prediction result of each police equipment in stock can be accurately obtained, and then based on the life prediction result of each police equipment in stock, all the equipment status information and all the equipment usage information of the police equipment in stock, a plurality of procurement suggestions for the police equipment in stock can be accurately generated.
[0077] In a detailed embodiment, the present application designs a police equipment management system to address the problem of data non-intercommunication among police equipment in inventory at all levels of departments. Through the police equipment management system, the authority and data of departments at all levels are standardized, and the quantity and quality of police equipment are visualized and data is shared. In an emergency, when police equipment needs to be borrowed, the system can intelligently allocate police equipment loan units based on the situation of police equipment in each unit in the database, and notify the loan units of the police equipment that needs to be loaned, keep good data records, and save police resources and time, thereby improving the efficiency of police dispatch.
[0078] The system architecture diagram of the police equipment management system is as follows Figure 1 As shown in Figure 1. This system includes not only industrial computers and servers, but also mobile terminals and Web servers. Figure 4 The functional diagram of each system module is shown as follows:
[0079] 1. For industrial computers: The industrial computer carries important functions of the system, focusing on the management of police equipment, recording the inbound and outbound information of police equipment, and controlling the inbound and outbound processes of police equipment. The main interface of the industrial computer includes trigger buttons such as administrator login, face recognition login, manufacturer settings, user settings, and ventilation and disinfection. In fact, the functional modules of the industrial computer are divided into department information registration, police equipment information management, serial port communication, log upload, and data statistical analysis modules.
[0080] Specifically: 1. Department information registration: When the administrator enters the information registration interface, trigger buttons such as personnel information registration, police equipment registration and password modification will appear.
[0081] 1.1 Personnel information registration. Through the RGB binocular camera, the face recognition SDK is integrated, providing functions such as facial feature information extraction, face tracking, and facial feature information comparison. It also has the function of liveness detection, which is convenient for use in different face detection scenarios. Specifically, when registering personnel information, enter the registered personnel information, such as the police officer's police number and name, generate the police officer's initial account and password, and obtain a clear facial photo of the registrant through the binocular camera. The backend calls the corresponding SDK interface of face recognition through the image of the person, and after liveness detection, facial feature extraction, and feature comparison based on correlation analysis of binocular camera imaging, the facial information, personnel information, and account information are transmitted to the server together, and the information data is saved in the database to realize the registration of personnel information. During the registration process, authentication is also required. The SDK is bound to the device and the corresponding files are imported into the device. It can be mainly divided into two methods: online authentication and offline authentication. Online authentication confirms the user's identity and authority through network connection. When connected to the network, it is activated online by entering the serial number; while offline authentication verifies the authority of the device locally or offline through pre-stored verification information or the characteristics of the device itself. After registration is completed, the police perform face recognition and liveness detection based on correlation analysis of binocular camera imaging. The face information obtained by the camera is processed and sent to the server. It is compared with the existing face information in the database. The server returns the response status information to the client based on the query results, and the face recognition function can be realized. After face recognition, the management of related police equipment can be realized. When face recognition fails, the server will automatically send an alarm message to the administrator's APP. The alarm information includes the photo information and time of the person who failed face recognition, so that the administrator can handle subsequent matters based on the information obtained. More specifically, the steps of face recognition include: using a camera to capture a face image and automatically capture the face area in the image, and then adjusting the crooked face image to a standard posture through geometric transformation and feature point extraction. Next, the global features and local features of the face image are extracted to obtain a feature vector that can uniquely identify an individual. Finally, the obtained individual feature vector is compared and matched with the feature vector in the database through the server to achieve identity recognition. In the process of face recognition, in order to prevent counterfeiting through face recognition, liveness verification is performed by adding random actions such as shaking the head, nodding, blinking, etc. to ensure the authenticity of the collected face.
[0082] 1.2 Police equipment registration. This module is implemented based on RFID readers. Attach RFID tags to each piece of police equipment that needs to be stored, identify the tags through RFID readers, obtain tag data, send the tag's EPC area data and the type and status of the police equipment to the server, and enter them into the database. At the same time, according to the type of police equipment, obtain the storage information of the police equipment type from the server, determine the storage area of the police equipment, and automatically transport the police equipment to the corresponding area for storage, thus realizing the registration and storage process of police equipment.
[0083] 1.3 Password modification. When a police officer logs in for the first time, the system will force the police officer to modify the password to ensure the security of the police officer's account. At the same time, after the password is modified, the new password information is uploaded to the server to update the database content.
[0084] 2. Police equipment information management: The main interface of police equipment information management includes two trigger buttons: police equipment information query and police equipment usage management.
[0085] 2.1 Police equipment information query. The police equipment information query module calls the interface of the police equipment status query module, inputs the name of the police equipment, and sends a query request to the server. After the server responds to the request, the client obtains the corresponding information and displays it to the user. It is very convenient to query the inventory information of this type of police equipment and the current status information of the police equipment.
[0086] 2.2 Police equipment use management. The police equipment use management module is used to record the use of police equipment, including the status and use records of police equipment. When new police equipment needs to be registered and put into storage, an RFID tag is attached to the new police equipment, and the name, model and other information of the police equipment are recorded on the Android industrial computer. When the police equipment is put into storage, the RFID reader will automatically read the content of the RFID tag, store the relevant content in the database through communication with the server, and record the status of the police equipment, and store the police equipment in the corresponding location. Police officers can apply for the use of the corresponding police equipment through the query results of the police equipment information. When the police officer confirms the police equipment to be taken through face recognition and takes the police equipment away, the industrial computer automatically records the information of the police equipment taken and the person who takes it, and uploads the record to the server and saves it in the database. When the police officer returns the police equipment after use, face recognition is performed in front of the Android industrial computer to authenticate the identity. When the industrial computer puts the police equipment into storage, it obtains the information when the police equipment leaves the storage from the server, calculates and records the usage time and frequency of the police equipment, and updates the status information and usage information of the police equipment to the database through the server. At the same time, when the police equipment is put into storage, the system will scan the police equipment and update the usage status of the police equipment through the server. At the same time, it will determine whether the police equipment needs maintenance and update the status of the police equipment to "stored" or "under maintenance", and synchronize it to the database through communication with the server. When the police equipment needs maintenance, the police equipment will be sent to the maintenance equipment, and the status of the police equipment will be updated. The database will be updated through communication with the server.
[0087] 3. Serial communication: mainly used to control the underlying hardware devices. When it is necessary to control the hardware devices to perform related operations, the Android industrial computer communicates with the lock control board and RFID reader through different interfaces, and controls the lock control board to unlock by sending different instructions to different serial ports, thereby obtaining relevant police equipment, or controlling the RFID reader to scan the tags on the police equipment to obtain the data information of the corresponding police equipment, and receive the relevant event execution result information through the serial port, and transmit the relevant information to the server and store it in the database, thereby realizing the identification of police equipment and access to police equipment. Serial communication is a half-duplex working mode, and the timing diagram is as follows Figure 5 As shown. These include: the main interface of the Android industrial computer, the thread that sends commands to the serial port, the thread that reads data from the serial port, and the native method that controls the reading and writing of the serial port, that is, the UI (User Interface) thread; BlockingDeque is an interface that belongs to the java.util.concurrent package and represents a double-ended queue that supports blocking operations.
[0088] 4. Log upload: mainly used to collect log information during operation and automatically upload it to the server.
[0089] 5. Data statistics and analysis module: This functional module organizes and analyzes the police equipment usage record information, police equipment status information and other information collected during the operation of the system, and forms graphics and charts to intuitively display the number of times various police equipment is used, the usage status, and the situation after use. The information is first uploaded to the server and then sent to the administrator APP through the server, so that the administrator can make the next decision based on the data display and the generated police equipment procurement suggestions. At the same time, after pre-processing operations such as data cleaning and removal of outliers, the probability model is trained and predicted by machine learning. According to the obtained results, it is sent to the administrator APP through the server to inform the administrator in advance of the possible development of the police equipment status and whether it will be damaged during use, so as to prepare for emergency response. In addition, the optimal police equipment procurement suggestion is generated according to the frequency and quantity of police equipment use, and the life of police equipment is predicted according to the prediction model of the life cycle of police equipment. The message is sent to the administrator APP through the server to notify the administrator in time so that the administrator can formulate procurement plans and deal with police equipment damage in advance, so as to improve the efficiency of police equipment management and the effectiveness of police equipment use. In addition, police equipment can be tracked. When it is detected that a piece of police equipment has been taken away and has not been put into storage for a long time, a request message is sent to the server to obtain the information data of the police equipment, and the information data of the police equipment when it leaves the storage is checked. The police equipment taken can be matched to a specific police officer, and the police equipment can be tracked. In the event of accidents such as damage or loss of police equipment, accountability can also be quickly pursued.
[0090] 2. For mobile terminals. In this solution, the mobile APP can provide police officers with a portable tool for viewing and querying the status of police equipment and applying for the use of police equipment. Police officers can query the relevant information of the equipment without having to perform relevant operations in front of the Android industrial computer, which saves the time of police officers and improves efficiency. In addition, administrators can also receive relevant information and carry out personnel and equipment management through the mobile APP, and can handle work in a timely manner, facilitate the development of work, simplify the work process, and improve work efficiency. Its functional modules are divided into department information management module, communication module, equipment management module, log upload module and information exchange module. The login interface of the mobile APP requires the input of account password. After entering the account password, face recognition will be started, and the APP will be entered after the face recognition is passed. The main page of the administrator end includes five trigger buttons: department information management, equipment information management, ventilation and disinfection, user settings and password modification. The main interface of the ordinary police end includes three trigger buttons: equipment information management, user settings and password modification.
[0091] 1. Department information management: used to register and manage the unit’s personnel information. The main interface includes three trigger buttons: personnel information registration, personnel information query, and personnel information deletion and modification.
[0092] 1.1 Personnel information registration. By logging in to the super administrator's account, you can create and allocate administrator accounts for each unit, register the police equipment warehouses of each unit, record the location of each unit, facilitate the borrowing of police equipment, and realize remote control operations. At the same time, as a super administrator, you can count and monitor the police equipment of each unit, form chart data, and save it in the MySQL database. In this part, the administrator is generally the management personnel of each unit, who is elected by each unit to ensure the security of data during the management process. By binding the name, geographic location, inventory information of each unit and the administrator's police number, name, face data and other information, you can register the relevant information of the unit. When registering, the password of the administrator account uses the initial default password, which is less secure. Therefore, when the administrator logs in to the system to operate, the administrator will be required to modify the password to ensure the security of the account. In addition, you can publish update content and announcements and other information, and synchronize them to the client to facilitate updates and other operations. Under the administrator account, enter the police officer's police number and name, and upload the police officer's photo as the basis for face recognition. The system will automatically generate an account name and default password as the police officer's initial account, and generate a feature vector based on the facial information in the photo, bind it to the police officer's information, and save it in the server's database, thus realizing the registration of the police officer's information. The police officer can use this account and password to enter the APP after completing the face recognition authentication and perform related operations. When the police officer logs in for the first time, the police officer will be forced to change the password. The steps of face recognition are the same as those of face recognition in industrial computers.
[0093] 1.2 Personnel information query. In the personnel information query module, you can query the relevant information of the police officers in the unit by the police number query. By sending a personnel information query request to the server, the server will return the personnel information queried from the database as response information to the client for display, so that the administrator can view the current police officer information and the use of the police officer's equipment and other information.
[0094] 1.3 Personnel information deletion and modification. In the personnel information deletion and modification module, the registered police information can be modified or deleted. First, query the information of the police officers who need to be deleted and modified. Only the registered police officers can perform the deletion and modification operations. By sending a query request to the server, the server queries the database according to the client's request, and transmits the query results back to the client as response information for display. After querying the police officer who needs to be operated by the police number, modify the information that needs to be modified. After the modification is completed, the relevant information will be transmitted to the server and synchronized to the database through the server. The operation of deleting a police officer is similar. By querying the police officer's police number and finding the corresponding police officer, directly choose to delete the police officer. The police officer's information will be deleted from the database through the server, and the police officer's account information will also be cleared.
[0095] 2. Communication module: It realizes the communication between the mobile APP and the server. The communication adopts HTTPS (Hypertext Transfer Protocol Secure) protocol and uses SSL (Secure Sockets Layer) / TLS (Transport Layer Security) encryption technology to ensure the security of data transmission. At the same time, the HTTPS protocol provides an identity authentication mechanism to ensure the credibility of the identity during the communication process and effectively prevent attack threats. The process of the APP end communication process is as follows Figure 6 As shown. First, the mobile APP initiates an HTTPS request to the server. This request contains information such as the resource to be accessed, the request method, and the request header. After receiving the request, the server performs an SSL / TLS handshake to establish a secure connection. At the same time, the two communicating parties determine the encryption algorithm and session key to be used. Next, the data is encrypted and transmitted to the server using the encryption algorithm and session key. After the server receives the encrypted data, it will use the session key to decrypt it and obtain the original data. Then, the server processes the corresponding request according to the request content sent by the mobile APP, and interacts with the database to update the database. After the server processes the request, it generates response data such as query results and operation status, which are encrypted and transmitted to the mobile APP. After receiving the encrypted response data, the mobile APP uses the session key to decrypt it and obtain the original data, that is, the result of the corresponding operation is obtained, and the relevant results are displayed on the interface.
[0096] Among them, the HTTPS protocol adds security requirements on the basis of the HTTP protocol, and encrypts data through the SSL or TLS protocol to ensure the security, integrity and identity authentication during data transmission. First, the client initiates an HTTPS request to the server. The request contains information such as the resource link to be accessed, the request method and the request header. After receiving the request, the server will perform the SSL / TLS handshake process to establish a secure connection. During the handshake process, the two parties will negotiate the encryption algorithm and generate a session key. Among them, during the negotiation of the encryption algorithm, the client will send a proposed encryption algorithm list, and the server will select an encryption algorithm supported by both parties as the encryption algorithm used in the communication process. The session key is generated after the encryption algorithm is determined. After the encryption algorithm is determined, the server sends an SSL / TLS certificate containing the server's public key to the client. The client verifies the validity of the certificate. After passing, it uses the server's public key to encrypt a pre-master key generated by a random number and sends it to the server. After receiving the pre-master key, the server uses the private key to decrypt it, and then the client and server both use the pre-master key and the exchanged random number to generate a session key. After that, the data transmission between the client and the server will be encrypted using the negotiated encryption algorithm and session key. Next, the data sent by the client is encrypted and transmitted to the server. After receiving the encrypted data, the server uses the session key to decrypt it and obtain the original data. Then, the server calls the corresponding business logic for processing according to the received request method and URL. After processing, response data will be generated and encrypted and transmitted to the client. After receiving the response data, the client uses the session key to decrypt it and obtain the original response data.
[0097] The SSL / TLS protocol is an important protocol that provides secure communication on the Internet, ensuring confidentiality, integrity and authenticity when transmitting between the client and the server. The SSL / TLS protocol achieves secure communication through a series of mechanisms. The handshake protocol is a very important part of the SSL / TLS protocol, which is responsible for negotiating encryption algorithms, generating shared keys, and performing identity authentication between the client and the server. The SSL / TLS protocol uses a combination of symmetric encryption, asymmetric encryption, and message authentication codes. During the handshake process, an asymmetric encryption algorithm is used for key exchange to ensure the secure transmission of session keys. After the handshake is completed, a symmetric encryption algorithm is used to encrypt the actual transmitted data to improve encryption speed and efficiency. In addition, a message authentication code is used to protect the integrity of the data, and an SSL / TLS certificate is used for identity authentication. The authenticity of the server identity is confirmed by verifying the integrity and validity of the certificate chain.
[0098] HTTP communication refers to the data transmission process between the client and the server using the HTTP protocol. First, a connection is established between the client and the server based on the TCP / IP protocol. Then the client determines the resource to be accessed through the URL and constructs an HTTP request message, including a request line (including the request method, URL (Uniform Resource Location) and HTTP version), a request header (including metadata), a blank line and request data, and sends the request information to the server. After the server receives the client's request, it parses the request information to determine the resource to be accessed. Then, the server processes the request according to the content of the request, and then constructs an HTTP response message, including a status line (including HTTP version, status code and status message), a message header (including metadata), a blank line and a response body, and sends the response information to the client. After the client receives the server's response, it parses the response message and displays the result.
[0099] 3. Equipment management module: This module is accessible to both administrators and ordinary police officers. It is used to query equipment information and apply for equipment borrowing. However, the administrator also has the function of applying for equipment borrowing. This module can be further divided into three modules: equipment information query, equipment use application, and equipment borrowing application. Figure 7 The flowchart of police equipment management by mobile terminal is as follows:
[0100] When users of mobile terminals log in to the system through the APP, they need to use their account and password to log in. Through face recognition and identity authentication, they can enter the system and perform related operations. Under different identities, users have different permissions. Users with the identity of administrators have the authority to manage department information and the authority to apply for the borrowing of police equipment from other agencies. In addition, they have the same permissions as ordinary police officers; users with the identity of ordinary police officers have the authority to query police equipment information and apply for the use of police equipment.
[0101] In the equipment information query module, the interface of the police equipment status query module is called. By entering the name of the equipment to be queried, the corresponding request is sent to the server, the database is queried through the server, and the response information is returned to query the inventory status, usage status and other information of the equipment.
[0102] In the equipment use application module, you can apply for the use of the equipment according to the name of the equipment you need to use. After the server receives the equipment use application request, it will comprehensively analyze the information data of the police equipment in the database, select the most suitable police equipment for use, bind the selected police equipment and the applicant's information data, and update the police equipment status in the database. At the same time, the response data information is returned to the client for display, indicating that the police equipment use application has been approved. After the police officer receives the message that the application is approved, he can go to the industrial computer, confirm his identity through face recognition, and take away the police equipment that has been applied for, which simplifies the overall process of obtaining equipment.
[0103] In the equipment loan application module, the administrator proposes the type and quantity of equipment to be loaned by querying the status of the inventory equipment. After receiving the equipment loan application request, the server comprehensively considers the location information of the requesting unit and the inventory of police equipment of surrounding units, selects the most suitable unit for police equipment loan, and sends the equipment loan notification to the administrator of the unit. After receiving the equipment loan message, the administrator decides whether to loan the equipment according to the unit's own situation, and sends the decision result to the server, which performs the next step according to the decision result. If the unit does not agree to the loan, the server will repeat the operation after receiving the request and reallocate the unit until a unit that agrees to the equipment loan is found; if the loan is agreed, the server will conduct a comprehensive analysis of the equipment of the unit according to the equipment type and the loan quantity, select the most suitable police equipment for use, bind the police equipment information with the administrator information of the unit, and update the status of the relevant police equipment through the database. At the same time, the server sends the loan information of the relevant equipment to the administrator of the unit, indicating that the loan application has been approved and the corresponding equipment can be loaned; at the same time, the server will also send the information of the loan unit to the administrator of the applicant unit to facilitate the loan process of the equipment. When a loan application is received, a corresponding prompt will appear on the information exchange page of the APP. After the administrator of the relevant unit agrees to the application request, the system will automatically allocate the police equipment and update the status to "pending for loan". When the administrator completes face recognition in front of the Android industrial computer and confirms the administrator's identity, the corresponding serial port data frame is generated, and the police equipment is automatically released from the warehouse, and the status is updated to "on loan". When the administrator of the unit completes the face recognition operation in front of the industrial computer, he can take the equipment and loan it to the relevant unit.
[0104] 4. Log upload module: used to collect log information during use and automatically upload it to the server.
[0105] 5. Information exchange module: This function module is mainly used for administrators to receive some information from the server. Some notification information, prompt information, report information and other information received through the communication module will be displayed in the information exchange module, so that the administrator can timely understand the system operation status and deal with the incidents in time; in addition, applications for borrowing police equipment from other units can also be processed in time to achieve the rational use of police equipment resources. Through the received data analysis report, it is convenient for the administrator to comprehensively analyze the use and status of the police equipment of the unit, combine the provided plan, do a good job in the storage and update of police equipment, and do a good job in remedial work in time according to the possible development process of the police equipment situation.
[0106] 3. For Web servers. The main functions are the display of police equipment information and the recording and backup of data. Its functional modules are divided into three modules: information backup, police equipment status query and log information recording. Specifically, they include: 1. Information backup: The information backup module provides the system with an interface for data backup. Through this interface, the information of police officers, facial information, police equipment information and other information registered on the client can be transmitted to the server and persisted in the MySQL database. When the client fails and information is lost, the data can be quickly restored through the backup data. At the same time, data from different units are stored in different databases according to the source of the information data, which improves the read and write performance of the database and facilitates data search. 2. Police equipment status query: The police equipment status query module provides users with an interface for querying police equipment information, which is convenient for users to query police equipment and police equipment status information, understand the current use of police equipment, and propose operations such as using police equipment based on the queried information. 3. Log information recording: The log information recording module persists the log information uploaded by the Android industrial computer and mobile APP to the local disk, making it easier to understand the working conditions of the Android industrial computer and mobile APP and providing convenience for operation and maintenance personnel.
[0107] 4. For Netty server. In this solution, the main communication framework is Netty communication framework, which adopts Protobuf protocol, can structure data storage format, has high encoding and decoding performance and good scalability. The functional modules of Netty server are divided into two modules: connection status query and command sending. Among them, Netty framework is a high-performance, asynchronous event-driven network application framework, built on Java NIO (New Input / Output, new input / output interface), with high performance and easy development, making Netty framework widely used in network communication development. By adopting asynchronous and event-driven mechanisms, network operations are more efficient, avoiding thread waiting and switching overhead in traditional blocking I / O mode. Netty's thread model is based on Reactor thread model. Reactor thread model is divided into single-thread model and multi-thread model. Single-thread model means that all I / O operations are completed on the same NIO thread. At this time, NIO thread undertakes tasks such as accepting new connection requests, reading and writing operations, and is generally used for Netty client. The biggest difference between the multi-threaded model and the single-threaded model is that there is a group of NIO threads processing read and write events, and a group of NIO threads processing connection events, which are generally used in Netty servers. The Protobuf protocol is an efficient binary serialization protocol that is independent of language and platform. It is widely used for serialization and deserialization of data structures. The data structure is described in a .proto file, and the POJO object of the corresponding data structure and the methods and properties related to Protobuf are generated through code generation tools. The structured data storage format, decoding performance are efficient, and the scalability is good.
[0108] 1. Connection status query: When there is no information exchange between the client and the server for a long time, the connection status query module queries the online status through the heartbeat mechanism of the Netty communication framework, thereby maintaining a long connection with the client. Through the long connection mode, the server can monitor the online status of the client to ensure the validity of the TCP connection and prevent communication interruption when both parties are still online. Among them, the heartbeat refers to a special data packet sent regularly between the client and the server in the TCP long connection to notify the other party of its online status to ensure the validity of the TCP connection. When there is no data exchange between the server and the client for a period of time, the client or server will send a special data packet to the other party. When the receiver receives this data packet, it also sends a special data packet in response. When one end receives the heartbeat message, it knows the other party's online status and ensures the validity of the TCP connection.
[0109] 2. Command sending: Under the Netty communication framework, the drawback of HTTP communication based on the request-response mode is made up. The client and the server maintain a long connection through the Netty communication framework and realize the full-duplex communication mode. The server can actively send commands to the client. After the client receives the relevant command information and decrypts it, it manipulates the Android industrial computer to perform related operations.
[0110] This application can produce the following effects: (1) In terms of data transmission security, during the communication process, SSL / TLS encrypted communication is used to ensure the confidentiality and integrity of data during transmission and prevent data from being eavesdropped, tampered with or forged. In addition, two-way authentication is used between the server and the client to ensure the legitimacy of the identities of both parties in communication and prevent middleman attacks. In addition, by using encryption algorithms, data is encrypted and decrypted to protect the confidentiality of data. By regularly updating the entire system, data security can also be maintained to a certain extent. (2) In terms of face recognition, Baidu's face recognition library can be used to achieve functions such as face detection, key point extraction, and head posture angle calculation. It can also perform recognition and judgment under lighting, blur, closed eyes, and closed mouth conditions, and judge the validity of collected face photos through liveness detection, which can efficiently realize the face recognition process. (3) In terms of data synchronization, by synchronizing the police equipment information between different units to the database and updating and maintaining the data information in a timely manner, the synchronization of police equipment data information is effectively achieved. When an emergency occurs, the equipment can be borrowed in time according to the police equipment data information stored in the database, which improves the overall work efficiency. At the same time, under the super administrator authority, the data information of each unit can be sorted and maintained, which greatly improves the overall efficiency of police equipment management. (4) In terms of police equipment allocation, by recording the use and status of police equipment, the equipment to be used can be automatically selected according to the frequency of use and status of police equipment, avoiding the problem of equipment performance degradation caused by long-term storage in the warehouse, improving the utilization rate of police equipment and avoiding waste of funds. (5) In terms of concurrent processing capabilities, a distributed architecture is adopted, and a load balancer is used to distribute user requests to multiple servers to avoid overloading a single server, and a weighted minimum connection scheduling method is used to determine the best allocation method for requests. At the same time, distributing the police equipment data information of different units into multiple databases and storing them separately can improve the read and write performance of the database, thereby improving the overall concurrent processing capability of the system. Among them, the load balancer is a hardware device or software solution that distributes network requests or services to multiple servers or network devices to achieve efficient, reliable and scalable network services. Through the load balancer, resource utilization can be optimized, throughput can be maximized, response time can be minimized, and system overload can be avoided. Among them, the way to distribute network requests or services is achieved through the load balancing algorithm. The load balancing algorithm is the core component of the load balancer and determines how to distribute network requests or services to multiple servers or network devices. Common load balancing algorithms include: polling scheduling, weighted polling scheduling, minimum connection scheduling, weighted minimum connection scheduling, locality-based minimum connection scheduling, and locality-based minimum connection scheduling with replication.(6) In terms of system maintenance and upgrade, remote maintenance and upgrade of the system is realized. When a new version is released, the server will issue a prompt message that a system update is required and synchronize it to the client. After receiving the message, the client can download the upgrade package from the server to implement the upgrade operation. It can also distribute the system upgrade file segments to each hardware device through the serial port to implement the upgrade operation of the hardware device.
[0111] In an exemplary embodiment, the MQTT (Message Queuing Telemetry Transport, a message transmission protocol in publish / subscribe mode) protocol is used between the server and the mobile phone APP to communicate in real time to achieve data transmission and exchange. Based on the publish / subscribe mode, the subscriber and the publisher are decoupled, and there is no need to establish a direct connection or be online at the same time, so lightweight communication can be achieved. The MQTT protocol is a lightweight message transmission protocol designed for low bandwidth, high latency or unreliable network environments. The publish / subscribe mode allows the client to communicate indirectly through the MQTT agent without directly communicating with the server, making the message distribution more flexible and efficient. The binary data transmission method can reduce the amount of data and latency transmitted, achieve lightweight communication, provide three levels of service quality for message delivery, and ensure the reliability and efficiency of message delivery. The messages published by the publisher can be retained, and the subscriber can receive the latest retention information when subscribing to the topic, ensuring that the subscriber will not miss any important information. At the same time, when the publisher is offline, the MQTT agent will forward the will message set by the publisher in advance to the subscriber to ensure that the subscriber can receive the relevant message.
[0112] In an exemplary embodiment, in this application: for the quality of police equipment in stock, after determining the type of police equipment to be used each time, the system will intelligently allocate the police equipment according to the use and quality of the police equipment, and record the data; when the police equipment is returned after use, the system will scan and check the status of the police equipment to determine whether to put the police equipment directly into storage or send the police equipment to the maintenance equipment for maintenance to extend the service life and update the status of the police equipment. When the police equipment has not been stored for a long time, the police officer will also be held accountable based on the information of the police officer who last used the police equipment. At the same time, the life span of the police equipment will be predicted according to the status of the police equipment, and procurement suggestions will be generated in combination with the use of the police equipment, so as to facilitate the timely replenishment of the police equipment. In terms of system security, not only will the session key be agreed upon during each communication process, but also the personnel who can operate the police equipment management system are specific. In each step of the operation, face liveness recognition is required to proceed to the next step, ensuring the security of the data. In addition, the data in the system is backed up regularly so that the backup data can be used for timely recovery in case of data loss or damage. In terms of enhancing concurrent processing capabilities, a distributed architecture is used to split a complete large system into multiple subsystems that can run and expand independently, thereby improving the scalability and concurrent processing capabilities of the system. At the same time, user requests are evenly distributed to multiple servers through a load balancer to avoid overloading a single server, and a suitable load balancing algorithm is selected according to the business scenario. At the same time, in terms of databases, data is stored in multiple databases to improve the read and write performance and scalability of the database, and a suitable table partitioning strategy is selected according to the business scenario to improve the overall performance of the system. The system supports remote upgrade functions to ensure the continuous updating of system functions and timely repair of software problems. For the APP side, when the APP needs to be upgraded, the server will send an upgrade command to the client. After the client receives the command, it downloads the upgrade package from the server to upgrade the APP. For hardware devices, when the hardware system needs to be upgraded, the server will send an upgrade command to the client. After the client receives the command, it will download the hardware system upgrade file from the server. After the download is complete, the client will first split the file into slices, and then send different slices to the hardware device through the serial port to implement the upgrade operation of the hardware device.
[0113] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0114] Based on the same inventive concept, the embodiment of the present application also provides a police equipment management device for implementing the police equipment management method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more police equipment management device embodiments provided below can refer to the limitations of the police equipment management method above, and will not be repeated here.
[0115] In an exemplary embodiment, Figure 8 As shown, a police equipment management device is provided, including: a scanning module 100, a query module 200, a detection module 300, a maintenance module 400 and a warehousing module 500, wherein: the scanning module 100 is used to respond to the equipment warehousing operation for the police equipment to be stored, scan the radio frequency identification electronic tag on the police equipment to be stored, and obtain the equipment identification of the police equipment to be stored; the query module 200 is used to detect the equipment status information of the police equipment to be stored, and when the outbound log information associated with the equipment identification is queried, query the equipment usage information of the equipment identification of the equipment to be stored from the outbound log information; the detection module 300 is used to detect the equipment damage degree of the equipment to be stored based on the equipment status information and the equipment usage information; the maintenance module 400 is used to push the maintenance message of the equipment to be stored when the equipment damage degree indicates that maintenance is required; the warehousing module 500 is used to control the equipment to be stored to perform the warehousing operation when the equipment damage degree indicates that maintenance is not required.
[0116] In one embodiment, the scanning module 100 includes a login module, which is used to receive a user login request, obtain account information and first facial image information carried in the user login request; when the account information and the first facial image information are both legal, respond to the equipment storage operation for the police equipment to be stored.
[0117] In one of the embodiments, the police equipment management device also includes an equipment use module, which is used to respond to an equipment use operation for the police equipment to be used, obtain at least one equipment to be used identification; query the equipment to be used status information and equipment to be used usage information associated with at least one equipment to be used identification; based on the equipment to be used status information and equipment to be used usage information associated with each equipment to be used identification, filter the target equipment to be used identification from at least one equipment to be used identification; query the first storage area associated with the target equipment to be used identification, and control the target equipment to be used corresponding to the target equipment to be used identification to be removed from the first storage area.
[0118] In one of the embodiments, the police equipment management device also includes an equipment registration module, which is used to respond to the equipment registration operation for the police equipment to be registered, and obtain the equipment tag information to be registered of the police equipment to be registered; if the equipment tag information matching the equipment tag information to be registered is not found, obtain the equipment type information to be registered in the equipment tag information to be registered; based on the equipment type information to be registered, detect the second storage area of the police equipment to be registered, and control the police equipment to be registered to be stored in the second storage area.
[0119] In one of the embodiments, the police equipment management device also includes a police officer information registration module, which is used to respond to the police officer information registration operation for the police officer to be registered, and obtain the police officer identification to be registered of the police officer to be registered; if no police officer identification matching the police officer identification to be registered is found, generate the registration account information of the police officer identification to be registered; if the police officer identification to be registered passes the authority verification, obtain the image information of the police officer to be registered of the police officer identification to be registered; if the image information of the police officer to be registered passes the liveness verification, associate the registration account information with the image information of the police officer to be registered and save it.
[0120] In one of the embodiments, the police officer information registration module is also used to extract features of the image information of the police officer to be registered, obtain facial image feature information of the police officer to be registered, and obtain pre-stored live facial image feature information; based on the facial image feature information of the police officer to be registered and the live facial image feature information, verify whether the image information of the police officer to be registered has passed the liveness verification.
[0121] In one of the embodiments, the police equipment management device also includes an analysis module, which is used to obtain the inventory status information and inventory usage information of multiple inventory police equipment within multiple preset time periods; based on all inventory status information and all inventory usage information of each inventory police equipment, the life of the inventory police equipment is predicted to obtain the life prediction result of each inventory police equipment; based on the life prediction result of each inventory police equipment, all inventory status information and all inventory usage information of the inventory, a plurality of procurement recommendations for the inventory police equipment are generated.
[0122] Each module in the above-mentioned police equipment management device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0123] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a method for managing police equipment is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0124] Those skilled in the art will understand that Fig. 9The structure shown in the server is a block diagram of a partial structure related to the present application scheme, and does not constitute a limitation on the computer device to which the present application scheme is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0125] In one embodiment, a computer device is also provided, including a memory and a processor, a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program. In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and the computer program implements the steps in the above-mentioned method embodiments when executed by the processor. In one embodiment, a computer program product is provided, including a computer program, and the computer program implements the steps in the above-mentioned method embodiments when executed by the processor. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.
[0126] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0127] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0128] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A police equipment management method, characterized in that: The method comprises: In response to the equipment storage operation for the police equipment to be stored, the radio frequency identification electronic tag on the police equipment to be stored is scanned to obtain the equipment identification of the police equipment to be stored; Detecting the equipment status information of the police equipment to be stored, and when the outbound log information associated with the identification of the equipment to be stored is found, querying the equipment usage information of the equipment to be stored with the identification of the equipment to be stored from the outbound log information; Based on the status information of the equipment to be put into storage and the usage information of the equipment to be put into storage, detecting the equipment damage degree of the equipment to be put into storage; When the damage degree of the equipment indicates that maintenance is required, a maintenance message for the equipment to be put into storage is pushed; When the damage degree of the equipment indicates that maintenance is not required, the equipment to be put into storage is controlled to perform a storage operation.
2. The method according to claim 1, characterized in that The response is for the equipment storage operation of the police equipment to be stored, including: Receive a user login request, and obtain account information and first face image information carried in the user login request; When both the account information and the first facial image information are legal, respond to the equipment storage operation for the police equipment to be stored.
3. The method according to claim 1, characterized in that The method further comprises: In response to an equipment use operation for the police equipment to be used, obtaining at least one identifier of the equipment to be used; Querying the state information of the equipment to be used and the usage information of the equipment to be used associated with the at least one identification of the equipment to be used; Based on the state information of the equipment to be used and the usage information of the equipment to be used associated with each of the equipment to be used identifiers, filtering a target equipment to be used identifier from the at least one equipment to be used identifier; The first storage area associated with the target device identification to be used is queried, and the target equipment to be used corresponding to the target device identification to be used is controlled to be removed from the first storage area.
4. The method according to claim 1, characterized in that: Before the response to the equipment storage operation for the police equipment to be stored, the method further includes: In response to an equipment registration operation for the police equipment to be registered, obtaining equipment tag information of the police equipment to be registered; If no equipment label information matching the equipment label information to be registered is found, obtaining the type information of the equipment to be registered in the equipment label information to be registered; Based on the type information of the equipment to be registered, the second storage area of the police equipment to be registered is detected, and the police equipment to be registered is controlled to be stored in the second storage area.
5. The method according to claim 2, characterized in that: Before receiving the user login request, the method further includes: In response to a police officer information registration operation for a police officer to be registered, obtaining a police officer identification of the police officer to be registered; If no police officer identification matching the police officer identification to be registered is found, generating registration account information of the police officer identification to be registered; When the identification of the police officer to be registered passes the authority verification, obtaining the image information of the police officer to be registered of the identification of the police officer to be registered; In the case that the image information of the police officer to be registered passes the liveness verification, the registration account information is associated with the image information of the police officer to be registered and saved.
6. The method according to claim 5, characterized in that In the case where the image information of the police officer to be registered passes the liveness verification, before associating and saving the registration account information with the image information of the police officer to be registered, the method further includes: Extracting features of the image information of the police officer to be registered, obtaining facial image feature information of the police officer to be registered, and acquiring pre-stored living facial image feature information; Based on the facial image feature information of the police officer to be registered and the facial image feature information of a living person, verify whether the image information of the police officer to be registered passes the liveness verification.
7. The method according to claim 1, characterized in that The method further comprises: Obtaining stored equipment status information and stored equipment usage information of multiple stored police equipment within multiple preset time periods; Based on all the stored equipment status information and all the stored equipment usage information of each of the stored police equipment, the life of the stored police equipment is predicted to obtain a life prediction result of each of the stored police equipment; Based on the life prediction results of each of the police equipment that has been put into storage, the status information of all the equipment that has been put into storage, and the usage information of all the equipment that has been put into storage, a plurality of purchase suggestions for the police equipment that has been put into storage are generated.
8. A police equipment management device, characterized in that: The device comprises: A scanning module, for responding to an equipment storage operation for police equipment to be stored, scanning a radio frequency identification electronic tag on the police equipment to be stored, and obtaining an equipment identification of the police equipment to be stored; A query module, used to detect the equipment status information of the police equipment to be stored, and when the outbound log information associated with the equipment identifier to be stored is found, query the equipment usage information of the equipment identifier to be stored from the outbound log information; A detection module, used to detect the equipment damage degree of the equipment to be stored in the warehouse based on the status information of the equipment to be stored in the warehouse and the usage information of the equipment to be stored in the warehouse; A maintenance module, used for pushing a maintenance message of the equipment to be put into storage when the damage degree of the equipment indicates that maintenance is required; The storage module is used to control the equipment to be stored to perform the storage operation when the damage degree of the equipment indicates that maintenance is not required.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.