Security tool checking method, device, equipment, storage medium and program product

The image data of safety tools is obtained and analyzed through image recognition technology, and the problems of inefficient and insufficient accuracy of traditional manual inventory are solved, efficient and accurate inventory of safety tools are achieved, and the safety and efficiency of warehouse management are improved.

CN120219689APending Publication Date: 2025-06-27HUIZHOU POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510209429.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-25
Publication Date
2025-06-27

AI Technical Summary

Technical Problem

In traditional warehouse management, the inventory and inspection of safety tools rely on manual operations, which are inefficient and prone to errors, resulting in timely detection and handling of safety hazards.

Method used

By obtaining image data in the area where the safety tool is located, using deep learning algorithms to identify image data, determine the type and number of safety tool, and achieve efficient and accurate inventory of safety tools.

Benefits of technology

It improves the efficiency and accuracy of safety tools inventory, reduces manual errors, promptly detects and deals with safety hazards, and improves the efficiency and safety of warehouse management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120219689A_ABST
    Figure CN120219689A_ABST
Patent Text Reader

Abstract

The invention provides a safety tool checking method and device, equipment, a storage medium and a program product. The method comprises the steps of obtaining image data of an area where the safety tool is located; and identifying the image data, and determining a checking result of the safety tools, the checking result including the types of the safety tools and the number of the safety tools of each type. The method is used for achieving the effect of efficiently and accurately checking the safety tools and instruments.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image recognition technology, and in particular to a method, device, equipment, storage medium and program product for inventorying safety tools. Background Art

[0002] Warehouse safety tools are indispensable and important equipment in power, industry and various working environments, used to ensure the safety of workers during operation. Ensuring the integrity, completeness and timely maintenance of these safety tools is of great significance for preventing accidents and ensuring the safety of personnel.

[0003] In traditional warehouse management, due to the large number of safety tools and the fact that they are distributed in various warehouses according to their usage environment and frequency, the inventory and inspection of safety tools mainly rely on manual operations. Warehouse managers need to check the type, quantity and current storage status of each tool one by one, and manually record relevant information.

[0004] However, manual inventory and inspection of safety tools is inefficient and error-prone, leading to long-term safety hazards. Summary of the invention

[0005] The embodiments of the present application provide a safety tool inventory method, apparatus, device, storage medium and program product to improve the efficiency and accuracy of safety tool inventory.

[0006] In a first aspect, an embodiment of the present application provides a method for inventorying safety tools, comprising:

[0007] Acquire image data of the area where the safety tools are located;

[0008] The image data is recognized to determine the inventory results of the safety tools, which include the types of safety tools and the number of safety tools of each type.

[0009] In a possible implementation, identifying image data and determining the inventory result of safety tools includes:

[0010] For each image in the image data, identifying label information of a security tool contained in the image;

[0011] Determine the type of safety tool based on the label information.

[0012] In a possible implementation, identifying the image data and determining the inventory result of the safety tools further includes:

[0013] For each image in the image data, if label information of at least one safety tool in the image cannot be identified, identifying shape information of at least one safety tool;

[0014] Determine the type of at least one safety tool according to the shape information.

[0015] In a possible implementation manner, determining the type of at least one safety tool according to the shape information includes:

[0016] Determine the recognition confidence according to the standard shape information of at least one safety tool and the recognized shape information.

[0017] Determine the type of at least one safety tool according to the recognition confidence.

[0018] In a possible implementation manner, after recognizing the image data and determining the inventory result of the safety tools, it further includes:

[0019] Transmit the inventory result to the management terminal so that the management terminal displays the inventory result.

[0020] In a possible implementation manner, transmitting the inventory result to the management terminal includes:

[0021] Encrypt the inventory result with a preset frame header and a preset frame tail and send it to the management terminal, so that when the management terminal detects the preset frame header and the preset frame tail, it determines that the data between the preset frame header and the preset frame tail is the inventory result.

[0022] In a possible implementation manner, obtaining the image data of the area where the safety tool is located includes:

[0023] Use a Raspberry Pi camera to capture the image data of the area where the safety tool is located.

[0024] In a second aspect, an embodiment of the present application provides a safety tool inventory device, including:

[0025] An acquisition module, configured to acquire image data of the area where the safety tool is located;

[0026] A recognition module, configured to recognize the image data and determine the inventory result of the safety tools, where the inventory result includes the type of the safety tools and the quantity of each type of safety tools.

[0027] In a possible implementation manner, the recognition module is specifically configured to, for each image in the image data, recognize the label information of the safety tool included in the image;

[0028] Determine the type of the safety tool according to the label information.

[0029] In a possible implementation, the recognition module is further configured to, for each image in the image data, if the label information of at least one safety tool in the image cannot be recognized, recognize the shape information of at least one safety tool.

[0030] According to the shape information, determine the types of at least one safety tool.

[0031] In a possible implementation, the recognition module is specifically configured to determine the recognition confidence according to the standard shape information of at least one safety tool and the recognized shape information.

[0032] According to the recognition confidence, determine the types of at least one safety tool.

[0033] In a possible implementation, the recognition module is further configured to transmit the inventory result to the management terminal, so that the management terminal displays the inventory result.

[0034] In a possible implementation, the recognition module is specifically configured to encrypt the inventory result by using a preset frame header and a preset frame tail, and send it to the management terminal, so that when the management terminal detects the preset frame header and the preset frame tail, it determines that the data between the preset frame header and the preset frame tail is the inventory result.

[0035] In a possible implementation, the acquisition module is specifically configured to use a Raspberry Pi camera to capture image data of the area where the safety tools are located.

[0036] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory, a processor;

[0037] The memory stores computer execution instructions;

[0038] The processor executes the computer execution instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementation manners of the first aspect.

[0039] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored, and when the computer execution instructions are executed by a processor, they are used to implement the above first aspect and / or various possible implementation manners of the first aspect.

[0040] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the above first aspect and / or various possible implementation manners of the first aspect.

[0041] The safety tool inventory method, device, equipment, storage medium and program product provided by the embodiments of the present application obtain image data of the area where the safety tools are located, identify and determine the types of safety tools from the image data, and then determine the quantity of safety tools of each type, achieving the effect of efficiently and accurately inventorying safety tools. Description of the Drawings

[0042] The drawings herein are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0043] Figure 1 Flow schematic of the safety tool inventory method provided by the present application Figure 1 ;

[0044] Figure 2 Flow schematic of the safety tool inventory method provided by the present application Figure 2 ;

[0045] Figure 3 Structural schematic diagram of the safety tool inventory system provided by the present application;

[0046] Figure 4 Flow schematic diagram of data transmission encryption provided by the present application;

[0047] Figure 5 Flow schematic diagram of data transmission decryption provided by the present application;

[0048] Figure 6 Structural schematic diagram of a safety tool inventory device provided by the present application;

[0049] Figure 7 Structural schematic diagram of an electronic device provided by the present application.

[0050] Through the above drawings, specific embodiments of the present application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments

[0051] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0052] In traditional warehouse management, the inventory and inspection of safety tools mainly rely on manual methods. Managers need to check the type, quantity, and storage status of each tool one by one and manually record the relevant information. With the development of technology, some warehouses have begun to introduce simple electronic monitoring devices to improve the inventory efficiency.

[0053] However, the manual inventory method is inefficient, error-prone, and difficult to meet the requirements of large-scale and complex warehouse management. Secondly, even with the use of electronic monitoring devices, due to the limitations of information transmission and processing capabilities, the quantity and status information of safety tools often cannot be transmitted to managers in real time and accurately, resulting in safety hazards being difficult to detect and handle in a timely manner.

[0054] Based on the above problems, the present application provides a method, device, equipment, storage medium, and program product for inventorying safety tools. By collecting image data of the area where safety tools are located in real time and performing recognition and processing on the image data, the type of safety tools and the quantity of each type of safety tool are determined, realizing efficient and accurate inventory of safety tools.

[0055] The following uses specific embodiments to elaborate in detail on the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems. These specific embodiments below can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.

[0056] Figure 1 Flow diagram of the method for inventorying safety tools provided by the present application Figure 1 As Figure 1 shown, with an electronic device as the execution entity, the method includes:

[0057] S101. Obtain image data of the area where safety tools are located.

[0058] In this embodiment, the electronic device can be an intelligent inventory robot, a tablet computer, a computer equipped with a camera, etc.

[0059] The electronic device activates its built-in or external camera, ensures that the camera is working properly and adjusts it to an appropriate shooting angle and focal length to cover the entire storage area of safety tools. According to the current light conditions, the electronic device automatically adjusts parameters such as the exposure and white balance of the camera to ensure that the image is clear and the color is accurate for subsequent recognition and processing.

[0060] The electronic device controls the camera to take pictures of the area where safety tools are located and obtains multiple or continuous video frames as image data. If the area is large, the entire area can be covered by moving the camera or using panoramic shooting technology.

[0061] S102. Identify the image data and determine the inventory results of safety tools.

[0062] In this embodiment, the inventory results include the types of safety tools and the quantity of safety tools of each type.

[0063] After obtaining the image data, the electronic device can preprocess the image data, including denoising, enhancing contrast, cropping useless areas, etc., to improve the accuracy of image recognition. Furthermore, a deep learning algorithm (such as a convolutional neural network) is used to extract features from the preprocessed image, and key features such as the contour, color, and texture of the safety tools in the image are recognized. Based on the extracted features, the electronic device uses an object detection algorithm to locate and identify the type of each safety tool in the image.

[0064] For each type of safety tool identified, the electronic device counts its quantity through a counting algorithm, which can be achieved by traversing the detected bounding boxes and accumulating according to the class labels of the bounding boxes.

[0065] In the safety tool inventory method provided in this embodiment, the electronic device uses a deep learning algorithm to identify the image data of safety tools, and can efficiently and accurately complete the inventory work of safety tools, improving the inventory efficiency and accuracy.

[0066] Optionally, the specific implementation of step S101 is to use a Raspberry Pi camera to capture the image data of the area where the safety tools are located.

[0067] Figure 2 For the flow diagram of the safety tool inventory method provided in this application Figure 2 , as Figure 2 shown, the specific implementation of step S102 includes:

[0068] S201. For each image in the image data, identify the label information of the safety tools included in the image.

[0069] In this embodiment, for each image in the image data, the electronic device can perform segmentation processing on the image to separate each safety tool in the image from the background or other objects. For example, it can be achieved through edge detection, region growing, superpixel segmentation and other technologies.

[0070] In the segmented image region, the electronic device uses a pre-trained label detection model to identify the label information on the safety tools. The label information can be barcodes, QR codes, text descriptions, etc. For the successfully identified labels, the electronic device can extract the key information in the labels, such as the model number, serial number, category code, etc. of the safety tools, and these information will be used for subsequent type determination.

[0071] S202. Determine the type of safety tools according to the label information.

[0072] Specifically, the correspondence between the label information and types of various safety tools is stored in the database. The electronic device can match the extracted label information with the preset safety tool database, and determine the specific type of each safety tool in the image based on the matching result.

[0073] S203. For each image in the image data, if the label information of at least one safety tool in the image cannot be recognized, then recognize the shape information of at least one safety tool.

[0074] Specifically, during the label information recognition process, the electronic device records the recognition status of each safety tool label. If the label information of a certain safety tool cannot be recognized (such as label damage, occlusion, blur, etc.), then the shape information of this safety tool is recognized.

[0075] S204. Determine the type of at least one safety tool according to the shape information.

[0076] In this embodiment, the electronic device extracts the shape features of the safety tools with unrecognizable labels, including but not limited to contour analysis, dimension measurement, geometric shape matching, etc.

[0077] The electronic device uses a pre-trained shape matching algorithm to match the extracted shape features with the preset safety tool shape feature library. According to the matching result, the electronic device can determine the type of the safety tool with unrecognizable label. The electronic device integrates the types of safety tools recognized based on label information and shape information to form the final inventory result.

[0078] If the shape features cannot be clearly matched to a certain type either, the electronic device can mark it as an unknown type or require manual review.

[0079] In this embodiment, the electronic device can efficiently determine the type of safety tools when the label information is recognizable, and at the same time, when the label information is unrecognizable, use the shape information as an alternative to ensure the accuracy and integrity of the inventory result.

[0080] In a possible implementation manner, the specific implementation method of step S204 includes:

[0081] S2041. Determine the recognition confidence according to the standard shape information and the recognized shape information of at least one safety tool.

[0082] In this embodiment, the database contains the standard shape information of various safety tools. These standard shape information can be pre - processed and standardized images, shape contour templates, or shape feature vectors extracted by deep learning models.

[0083] For safety tools whose labels cannot be recognized in the image, the electronic device first extracts their shape information, such as a set of contour points, a bounding box, or a shape feature vector, etc., and then aligns the extracted shape information with the information in the standard shape information database to ensure the accuracy and consistency of the comparison.

[0084] The electronic device can use similarity measurement algorithms, such as Euclidean distance, cosine similarity, etc., to calculate the similarity between the extracted shape information and each template in the standard shape information database. The lower the similarity value, the closer the shapes; the higher the similarity value, the greater the shape difference.

[0085] Based on the similarity calculation results, the electronic device determines an identification confidence level for each safety tool. This is usually achieved by mapping the similarity value to a confidence range (such as 0% to 100%), where a low similarity value corresponds to a high confidence level, indicating a high shape matching degree; a high similarity value corresponds to a low confidence level, indicating a low shape matching degree.

[0086] S2042. Determine the types of at least one safety tool according to the identification confidence level.

[0087] In this embodiment, the electronic device can set confidence thresholds for judging the reliability of the identification results. These thresholds can be adjusted according to actual application requirements.

[0088] For each safety tool, the electronic device compares its identification confidence level with the set threshold. If the confidence level is higher than or equal to the preset threshold (indicating a high shape matching degree and a reliable identification result), the electronic device takes the type in the corresponding standard shape information database as the type of this safety tool.

[0089] If the confidence level is lower than the preset threshold (indicating a low shape matching degree and an unreliable identification result), the electronic device may mark this safety tool as an unknown type and require manual review.

[0090] The electronic device can integrate the types of safety tools identified based on shape information into the inventory results, and can also provide confidence information as an additional reference for the identification results, so that users can evaluate the reliability of the results.

[0091] In this embodiment, the electronic device can determine the types of safety tools whose labels cannot be recognized based on shape information and provide the identification confidence level as a measure of the result reliability, which is beneficial to improving the accuracy of the inventory results and user satisfaction.

[0092] Based on the Figure 2 embodiment shown, after the electronic device executes step S102, it can also transmit the inventory result to the management terminal, so that the management terminal displays the inventory result.

[0093] Specifically, the electronic device sends the inventory result (including the type of safety tools and the quantity of safety tools of each type) to the management terminal. At the same time, it can also label and display the images taken during the recognition process or the key areas recognized for manual review.

[0094] If the inventory result does not match the preset safety tool list or threshold (such as shortage of quantity, wrong type, etc.), the electronic device can trigger an anomaly detection mechanism and send an alarm message to the management terminal for timely processing.

[0095] Figure 3 is a schematic structural diagram of the safety tool inventory system provided by this application. As Figure 3 shown, the safety tool inventory system includes an electronic device and a management terminal. The electronic device is set in the safety tool storage room, and the management terminal is within the Bluetooth communication range of the electronic device.

[0096] The electronic device includes a Raspberry Pi and a first microcontroller. The Raspberry Pi includes a camera, and the camera can be fixedly set in front of the safety tool placement position to ensure that the entire safety tool placement range is within the field of view of the camera. The Raspberry Pi identifies the image data captured by the camera to determine the type of safety tools and the quantity of safety tools of each type. The first microcontroller sends the recognition result to the management terminal through the Bluetooth module. After the second microcontroller of the management terminal receives the recognition result through the Bluetooth module, it can display the recognition result in the form of graphs, tables, etc. through the display module, so that the management personnel can view the status information of the safety tools.

[0097] Optionally, the Raspberry Pi can run the YOLOV5-lite vision model that can identify safety tools to identify the image data collected by the camera.

[0098] To train the Yolov5-lite vision model, the dataset to be used should include at least 15 categories of safety tools, such as anti-arc suits, grapplers, ground wires, insulated barriers, insulated boots, insulated gloves, insulated ropes, insulated telescopic ladders, insulation pads, etc. Optionally, the dataset can contain 600 pictures with a resolution of 640×480. The dataset is divided into a training set and a validation set, and the vision model is trained using the stochastic batch gradient descent algorithm to finally obtain a highly accurate model for achieving fast and accurate identification of safety tools.

[0099] The Raspberry Pi can transmit the recognition result to the first microcontroller through serial port 1 (specifically, the PXD1 pin corresponds to PA9, and the TXD1 pin corresponds to PA10). After receiving the recognition result, the first microcontroller can pass it to the management terminal in two ways.

[0100] Method 1: The first microcontroller conducts data transmission with the management terminal through the RS485 communication protocol. It can be understood that the length of the RS485 communication line is adjustable.

[0101] To facilitate data transmission between the first microcontroller and the management terminal, the safety tool inventory system uses an RS485 to Universal Serial Bus (USB) data transfer. In terms of the single-chip microcomputer / digital signal processor (DSP) / processor interface, RS485 communication uses the Universal Asynchronous Receiver / Transmitter (UART) interface and the RS485 level transceiver interface to transmit data. Use a USB to RS485 conversion cable, connect the A / B lines in parallel on the bus, insert the USB into the computer, and connect the RS485 converter to the RS485 reserved wiring terminal of the first microcontroller. By using a serial port monitoring terminal or a serial port receiving plugin, all the messages on the bus can be monitored. The safety tool inventory system uses a chip converter to achieve data transmission between the first microcontroller and the management terminal.

[0102] Method 2: The first microcontroller first encrypts the information and then transmits it to the Bluetooth module of the management terminal through its serial port 2 (specifically, the RXD2 pin corresponds to PA3, and the TXD2 pin corresponds to PA2). The second microcontroller of the management terminal is connected to the Bluetooth module through its serial port 3 and is used to receive and decrypt the recognition result transmitted from the first microcontroller. The second microcontroller can display the decrypted data on the display screen for the safety tool administrator to view.

[0103] Among them, the first microcontroller needs to meet the data transmission with RS485 and the data transmission with the Bluetooth module. Therefore, as the control unit of the electronic device, the first microcontroller not only needs to have the ability to call the peripheral circuit of the electronic device, but also needs to undertake the encryption and decryption processing control of the Bluetooth module. The Bluetooth module communicates with the first microcontroller and the second microcontroller through the serial port.

[0104] In this embodiment, the safety tool inventory system collects the image data of the area where the safety tools are located through the Raspberry Pi camera, and then quickly identifies the types and quantities of various safety tools in the warehouse to realize the automatic inventory and inspection of the tools, and sends the status of the safety tools to the management terminal in real time to remind the management personnel to process it in time, so as to realize the real-time synchronization and sharing of safety tool data and improve the efficiency and accuracy of warehouse management.

[0105] In a possible implementation manner, transmitting the inventory result to the management terminal includes:

[0106] Encrypt the inventory result with a preset frame header and a preset frame tail and send it to the management terminal, so that when the management terminal detects the preset frame header and the preset frame tail, it determines that the data between the preset frame header and the preset frame tail is the inventory result.

[0107] For example, when it is necessary to send the data "1234", a random frame header value can be set to "27", and then a random value "31" is set as the frame tail. Before the electronic device sends the data to the management terminal, it first calls the frame header value "27", and then calls the plaintext data. After the plaintext data is input, the electronic device then calls the frame tail value "31". After calling the frame tail, the electronic device ends the encryption process of the inventory result. After the electronic device sends the inventory result to the management terminal, the management terminal can determine the value of the plaintext only when it recognizes the two values of the frame header and the frame tail "27" and "31".

[0108] Among them, the setting of the frame header and frame tail is the core content of the entire encryption and decryption process. If the frame header is not set correctly, or the frame header data is not called in advance during data transmission, the electronic device will not perform array integration processing on the data string, and thus the data will not be recorded in the electronic device, resulting in invalid input data transmission. Similarly, if the frame tail is not set, or the frame tail is input incorrectly, the electronic device will not package the data of the inventory result, and its data information will not be sent to the management terminal, making it impossible to achieve data transmission. Therefore, even if other devices obtain the data transmitted via Bluetooth, they cannot analyze the specific content of the plaintext sent by both communication parties, thereby enhancing the effectiveness and security of data transmission.

[0109] The same set of keys is used for encryption and decryption. As Figure 4 shown, the specific encryption process of the electronic device for the inventory result is as follows: The electronic device converts the inventory result into a string, then adds a specific frame header at the beginning of the string and a specific frame tail at the end, and then the encrypted text after the string change can be output. As Figure 5 shown, the specific decryption process of the management terminal is as follows: The decryption process is that after the management terminal receives the string ciphertext, it removes its specific frame header and frame tail, and then outputs to obtain the actual data information sent between the two.

[0110] Figure 6 is a schematic structural diagram of a safety tool inventory device provided by the present application. As Figure 6 shown, the safety tool inventory device 10 of this embodiment is used to implement the operations corresponding to the electronic device in any of the above method embodiments. The safety tool inventory device 10 provided in this embodiment includes:

[0111] An acquisition module 11, configured to acquire image data of the area where the safety tools are located;

[0112] An identification module 12, configured to identify the image data to determine the inventory result of the safety tools, where the inventory result includes the types of safety tools and the quantity of each type of safety tool.

[0113] In a possible implementation manner, the identification module 12 is specifically configured to, for each image in the image data, identify the label information of the safety tools included in the image;

[0114] Determine the types of safety tools according to the label information.

[0115] In a possible implementation manner, the identification module 12 is further configured to, for each image in the image data, if the label information of at least one safety tool in the image cannot be recognized, then identify the shape information of at least one safety tool;

[0116] Determine the type of at least one safety tool according to the shape information.

[0117] In a possible implementation manner, the recognition module 12 is specifically configured to determine the recognition confidence according to the standard shape information of at least one safety tool and the recognized shape information;

[0118] Determine the type of at least one safety tool according to the recognition confidence.

[0119] In a possible implementation manner, the recognition module 12 is further configured to transmit the inventory result to the management terminal, so that the management terminal displays the inventory result.

[0120] In a possible implementation manner, the recognition module 12 is specifically configured to encrypt the inventory result by using a preset frame header and a preset frame tail, and send it to the management terminal, so that when the management terminal detects the preset frame header and the preset frame tail, it determines that the data between the preset frame header and the preset frame tail is the inventory result.

[0121] In a possible implementation manner, the acquisition module 11 is specifically configured to use a Raspberry Pi camera to capture image data of the area where the safety tool is located.

[0122] The safety tool inventory device 10 provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.

[0123] Figure 7 It is a schematic structural diagram of an electronic device provided in this application. As Figure 7 shown, the electronic device 20 provided in this embodiment includes: a memory 21 and at least one processor 22. Optionally, the device 20 further includes a communication component 23. Among them, the memory 21, the processor 22, and the communication component 23 are connected through a bus 24.

[0124] In the specific implementation process, at least one processor 22 executes the computer execution instructions stored in the memory 21, so that at least one processor 22 executes the above method.

[0125] The specific implementation process of the processor 22 can refer to the above method embodiment, and its implementation principle and technical effect are similar, which will not be elaborated here in this embodiment.

[0126] In the above embodiments, it should be understood that the processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly implemented by the execution of the hardware processor, or can be implemented by the combination of hardware and software modules in the processor.

[0127] The memory may include a random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory.

[0128] The bus may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0129] The present application also provides a computer program product, including a computer program, which implements the above method when executed by a processor.

[0130] The present application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the processor executes the computer-executable instructions, the above method is implemented.

[0131] The above-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as a static random access memory (SRAM), an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic memory, a flash memory, a magnetic disk or an optical disk. The readable storage medium may be any available medium accessible by a general-purpose or special-purpose computer.

[0132] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.

[0133] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the couplings or direct couplings or communication connections shown or discussed between each other can be through some interfaces, and the indirect couplings or communication connections of devices or units can be in electrical, mechanical, or other forms.

[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0135] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0136] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0137] Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps including the above method embodiments; and the aforementioned storage medium includes: various media such as ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0138] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A method for inventorying safety tools, characterized in that: include: Acquire image data of the area where the safety tools are located; The image data is recognized to determine an inventory result of the safety tools, wherein the inventory result includes types of the safety tools and the number of safety tools of each type.

2. The method according to claim 1, characterized in that Identifying the image data and determining the inventory result of the safety tools includes: For each image in the image data, identifying label information of a security tool contained in the image; The type of the safety tool is determined according to the tag information.

3. The method according to claim 2, characterized in that Identifying the image data and determining the inventory result of the safety tools also includes: For each image in the image data, if label information of at least one safety tool in the image cannot be identified, identifying shape information of the at least one safety tool; The type of the at least one safety tool is determined according to the shape information.

4. The method according to claim 3, characterized in that Determining the type of the at least one safety tool according to the shape information includes: Determining recognition confidence according to the standard shape information of the at least one safety tool and the shape information obtained by recognition; The type of the at least one safety tool is determined based on the recognition confidence.

5. The method according to any one of claims 1 to 4, characterized in that: After identifying the image data and determining the inventory result of the safety tools, the method further includes: The inventory result is transmitted to a management terminal so that the management terminal displays the inventory result.

6. The method according to claim 5, characterized in that Transmitting the inventory result to the management terminal includes: The inventory result is encrypted using a preset frame header and a preset frame tail, and sent to the management terminal, so that when the management terminal detects the preset frame header and the preset frame tail, it determines that the data between the preset frame header and the preset frame tail is the inventory result.

7. The method according to any one of claims 1 to 4, characterized in that: Obtain image data of the area where the safety tools are located, including: The Raspberry Pi camera is used to capture image data of the area where the safety tools are located.

8. A safety tool inventory device, characterized in that: include: An acquisition module, used to acquire image data of the area where the safety tool is located; The identification module is used to identify the image data and determine the inventory result of the safety tools, wherein the inventory result includes the type of the safety tools and the number of safety tools of each type.

9. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.