Counting method, system and equipment for personnel entering coal mine and medium of counting method, system and equipment

By improving the YOLOX model and deep learning algorithm, combined with cameras and edge computing, efficient, accurate and safe management of coal mine personnel counting has been achieved, solving the problems of low counting efficiency and insufficient safety detection in the existing technology, and improving underground operations. security and management efficiency.

CN118799809APending Publication Date: 2024-10-18TIANDI CHANGZHOU AUTOMATION +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411030284.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing method of counting people entering coal mines has low efficiency and accuracy, high manual implementation costs, and it is impossible to detect in real time whether personnel are wearing safety protection equipment.

Method used

The improved YOLOX model is used for face detection, combined with real-time video collection by a camera, target tracking is performed through the Deepsort algorithm and Kalman filter, database feature information is matched, boundary lines are set for well entry counting, and safety warnings are provided through sound and light alarms.

Benefits of technology

It improves the efficiency of well entry counting, reduces labor costs, ensures that personnel go down the well according to the process, and improves the safety and management reliability of underground operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118799809A_ABST
    Figure CN118799809A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of target detection, in particular to a coal mine entering personnel counting method and device and a medium thereof. The method comprises the following steps: acquiring an image of a person entering a well, and preprocessing the image of the person to obtain a data set; an improved YOLOX model is constructed; the data set is input to an improved YOLOX model, the improved YOLOX model is trained, a trained improved YOLOX model is obtained, and the trained improved YOLOX model is a face detection model; outputting a video stream in real time through a camera, storing the video stream, decoding the video stream, intercepting the video stream according to frames, and sequentially inputting the video stream into a face detection model for target recognition reasoning to obtain character information; and matching the character information with the feature information of the database, and counting the number of people entering the well based on the matching result and the character information. The method for counting the personnel entering the coal mine is high in counting efficiency, high in accuracy and low in manual implementation cost, and the personnel entering the coal mine can be seen to wear safety protection equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of target detection, and in particular to a method, a device and a medium for counting people entering a coal mine. Background Art

[0002] As a high-risk industry, coal mines are extremely important for the management of personnel entering the mine. The most commonly used methods for counting personnel going down the mine are manual inspection and gate verification. The manual inspection method has low counting efficiency, lags, is prone to errors, and has high manual implementation costs; the gate verification method can record the time and number of personnel entering the mine, but it cannot see whether the personnel entering the mine are wearing safety protection equipment. Summary of the invention

[0003] The technical problem to be solved by the present invention is: in order to solve the technical problems of low counting efficiency, low accuracy, lag, high manual implementation cost, and inability to see whether the personnel entering the mine are wearing safety protection equipment in the prior art, the present invention provides a method for counting personnel entering a coal mine, which has fast counting efficiency, high accuracy, can see whether the personnel entering the mine are wearing safety protection equipment, and has low manual implementation cost.

[0004] The technical solution adopted by the present invention to solve the technical problem is: a method for counting people entering a coal mine, comprising the following steps:

[0005] S1, obtaining images of personnel entering the well, and preprocessing the images of personnel to obtain a data set;

[0006] S2, build and improve the YOLOX model;

[0007] S3, inputting the data set into the improved YOLOX model, training the improved YOLOX model, and obtaining a trained improved YOLOX model, wherein the trained improved YOLOX model is a face detection model;

[0008] S4, collecting a video of a person entering the well in real time through a camera, saving the video, and intercepting the video frame by frame and inputting it into the face detection model for recognition processing to obtain person information;

[0009] S5, matching the character information with the feature information in a database, and counting the number of people entering the well based on the matching result and the character information.

[0010] Further, specifically, the improved YOLOX model includes an input layer, a Backbone network, a Neck layer and an output layer connected in sequence;

[0011] The Backbone network is improved, including: embedding an ECA-Net module in the residual component of the Backbone network, and replacing the SiLU activation function of the Backbone network with an ACON-C activation function.

[0012] Further, specifically, the step S4 specifically includes the following steps:

[0013] S41, outputting a video stream of personnel entering the well in real time through a camera, saving the video stream, and decoding the video stream;

[0014] S42, intercepting the decoded video frame by frame and inputting it into a face detection model to obtain a bounding box of a target person;

[0015] S43, performing feature extraction on the bounding box based on a Deepsort algorithm to obtain the character features of the target person;

[0016] S44, matching the character features of the target person in the current frame with the character features of the target person in the previous frame based on the Hungarian algorithm;

[0017] If the character features of the target person in the current frame do not match the character features of the target person in the previous frame, a new target person is created based on the character features of the current frame and a unique ID identity is assigned;

[0018] If the character features of the target person in the current frame match the character features of the target person in the previous frame, the ID identity of the target person remains unchanged;

[0019] S45, obtaining the coordinates of the target person in the current frame through a Kalman filter according to the person's features;

[0020] The character information includes: character features, and an ID number and coordinates associated with the character features.

[0021] Further, specifically, the step S5 specifically includes the following steps:

[0022] S51, setting a boundary line in the underground entry and exit detection area;

[0023] S52, matching the person information with the characteristic information in the database, if the match is successful, executing the next step, if the match is unsuccessful, determining that the person cannot enter the well;

[0024] S53, tracking the current coordinates of the target person, and determining whether the target person crosses the boundary line according to the current coordinates;

[0025] If the boundary line is crossed, the well entry count is performed.

[0026] If the target person has not crossed the boundary line, continue to track the current coordinates of the target person;

[0027] Further, specifically, in step S1, all the acquired images of the personnel are sequentially processed by image expansion, image flipping, image mirroring, image blurring, image annotation and image format conversion to obtain a data set, and the annotated data set is divided to obtain a training data set, a verification data set and a test data set.

[0028] Furthermore, specifically, in step S3, the trained improved YOLOX model is also optimized by hyperparameter adjustment.

[0029] A coal mine personnel counting system, the system comprising:

[0030] At least two video cameras, located in the underground entry and exit detection area, configured to collect real-time video of personnel;

[0031] A mine intrinsically safe edge computing processing module is connected to the camera and is configured to execute the method for counting people entering a coal mine as described above.

[0032] And an audible and visual alarm is connected to the intrinsically safe edge computing processing module for mining and is configured to perform audible and visual alarm based on the signal of the intrinsically safe edge computing processing module for mining.

[0033] Further, specifically, there are two cameras, namely a first camera and a second camera. The first camera and the second camera are respectively located on both sides of the underground entry and exit detection area and are symmetrical to each other. The first camera is configured to capture video when personnel go down the well, and the second camera is configured to capture video when personnel leave the well.

[0034] A computer device comprising:

[0035] processor;

[0036] A memory for storing executable instructions;

[0037] The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method for counting people entering a coal mine as described above.

[0038] A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor implements the method for counting people entering a coal mine as described above.

[0039] The beneficial effects of the present invention are:

[0040] (1) The method for counting people entering a coal mine of the present invention improves the efficiency of counting people entering the mine, saves labor costs, and ensures that the workers go down the mine according to the mine process to avoid the occurrence of adverse effects after going down the mine;

[0041] (2) The method for counting people entering a coal mine according to the present invention reduces the workload of the dispatching room personnel through a face detection model, makes statistics and early warnings on the situation of people entering the mine, and improves the safe, reliable and effective management of personnel working underground. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0043] Figure 1 It is a schematic diagram of the method flow of embodiment 1 of the present invention.

[0044] Figure 2 It is a detailed flowchart of step S4 of the first embodiment of the present invention.

[0045] Figure 3 1 is a curve diagram of the precision and recall rate of the existing YOLOX model in Example 1 of the present invention.

[0046] Figure 4 It is a curve diagram of the accuracy and recall rate of the face detection model according to the embodiment of the present invention.

[0047] Figure 5 This is a diagram showing the actual effect of face model detection and tracking according to an embodiment of the present invention.

[0048] Figure 6 It is a schematic diagram of the computer device structure of the third embodiment of the present invention.

[0049] In the figure, 10 is a computer device; 1002 is a processor; 1004 is a memory; and 1006 is a transmission device. DETAILED DESCRIPTION

[0050] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.

[0051] Example 1

[0052] The present application embodiment provides a method for counting people entering a coal mine, such as Figure 1 As shown, the method comprises the following steps:

[0053] S1, obtaining images of personnel entering the mine, and preprocessing the images to obtain a data set;

[0054] The camera installed in the mine is used to collect the video data of the personnel going down the mine, and the video data is extracted to obtain the personnel image, but it is not limited to this. The personnel image can also be uploaded in advance through image entry. Further, the preprocessing includes: image expansion, image flipping, image mirroring, image blurring, image annotation and image format conversion processing are performed on all the obtained personnel images in turn to obtain a standard YOLO format data set. The annotated data set is divided into a training data set, a verification data set and a test data set.

[0055] S2, construct an improved YOLOX model; specifically, the improved YOLOX model includes an input layer, a Backbone network, a Neck layer and an output layer connected in sequence; among them, the Backbone network is improved, and the improvement specifically includes: embedding an ECA-Net module in the residual component of the Backbone network, and replacing the SiLU activation function of the Backbone network with an ACON-C activation function.

[0056] S3, inputting the data set into the improved YOLOX model, training the improved YOLOX model, and obtaining a trained improved YOLOX model, where the trained improved YOLOX model is a face detection model;

[0057] In order to improve the detection accuracy of the model, the trained improved YOLOX model is also optimized through hyperparameter adjustment.

[0058] S4, using a camera to collect real-time video of people entering the well, saving the video, and intercepting the video frame by frame and inputting it into a face detection model for recognition processing to obtain person information;

[0059] S5, matching the person information with the characteristic information in the database, and counting the number of people entering the well based on the matching result and the person information.

[0060] In this embodiment, the dataset annotation tool LabelImg annotates the personnel images in the Pascal VOC format, and the obtained label file is in the xml format. The annotated personnel images are randomly divided into a training dataset, a verification dataset, and a test dataset in an 8:1:1 manner. The Pascal VOC format dataset is converted into a Yolo format dataset through a format conversion tool to facilitate the loading of the YOLOX model dataset. The converted label file is in the txt format, and the file content is composed of the "label" + "X" + "Y" + "W" + "H" format.

[0061] In this embodiment, the ECA-Net module is cascaded in the residual component of the Backbone network. Since the size and dimension of the output and output feature map of the ECA-Net module remain unchanged, the ECA-Net module can be embedded between X (X>=2) residual components in the Backbone area. Without significantly increasing the complexity of the Yolox model, the set ECA-Net module is an ultra-lightweight attention module that can improve the performance of the convolutional neural network without substantially increasing the number of parameters of the YOLOX model. At the same time, it can accelerate the convergence speed of network training and improve the feature extraction capability of the Backbone network.

[0062] In this embodiment, the SiLU activation function of the Backbone network is replaced with the ACON-C activation function to improve the accuracy of model target detection and the generalization performance of the model.

[0063] It should be noted that the role of the activation function in the neural network is to add nonlinear factors so that the features between neurons can be fully combined and the feature expression ability of the model can be improved.

[0064] For the maximum function max(x1,...,x n ) is shown in the following smooth approximation formula (1):

[0065]

[0066] In the formula, x i represents the input sample, n represents the number of samples, β is a smoothing factor, when β→∞, S(x1,...,x n ) function becomes a standard MAX function, and when β is 0, S β (x1,...,x n ) function is an arithmetic mean operation, and the activation function is a linear function (i.e., not activated). β (x1,...,x n ) function has only two input quantities, the maximum function is max(η a (x),η b (x)), the expression is explained by Sigmoid function as shown in formula (2):

[0067] S β (η a (x),η b (x))=(η a (x)-η b (x))×σ[β(η a (x)-η b (x))]+η b (x)(2)

[0068] In the formula, σ represents the Sigmoid function, η a (x), η b When (x) selects different values, it corresponds to ACON-A, ACON-B, and ACON-C activation functions respectively. The expressions of the three are shown in formula (3):

[0069]

[0070] Where p, p1, p2, and β are all learnable parameters that can be adjusted adaptively, and p1≠p2. The activation function of the ACON series controls whether to activate the neuron through the β value (β is 0, that is, not activated). Therefore, it is also necessary to design an adaptive function to calculate β, and its expression is shown in formula (4):

[0071]

[0072] In the formula, C, H, and W are the number of channels, height, and width of the input sample, respectively; the parameter β changes accordingly with the selected samples, and the activation state of the corresponding activation function is also different. Therefore, the ACON activation function is different from the Silu activation function. It can adaptively realize the activation of neurons, which is conducive to improving the generalization ability of the model and the full integration of features. This embodiment uses ACON-C as the activation function of Darknet53. Its accuracy improves with the deepening of the model network layer. The effect is better than other activation functions in the ACON series, further improving the target detection accuracy.

[0073] Figure 3 The precision and recall curves of the existing YOLOX model are shown. Figure 4 The precision and recall rate curves of the face detection model (improved YOLOX model) are shown. The precision curve of the existing YOLOX model does not exceed 0.9, and the precision curve of the improved YOLOX model exceeds 0.9; the recall rate of the existing YOLOX model does not exceed 0.7, and the recall rate of the improved YOLOX model exceeds 0.9. The performance of the improved YOLOX model is improved, and the target detection accuracy is high.

[0074] In this embodiment, step S4 specifically includes the following steps:

[0075] S41, outputting a video stream of personnel entering the well in real time through a camera, saving the video stream, and decoding the video stream;

[0076] S42, intercepting the decoded video frame by frame and inputting it into the face detection model to obtain the bounding box of the target person;

[0077] S43, extracting features of the bounding box based on the Deepsort algorithm to obtain the character features of the target person;

[0078] S44, matching the character features of the target person in the current frame with the character features of the target person in the previous frame based on the Hungarian algorithm;

[0079] If the character features of the target person in the current frame do not match the character features of the target person in the previous frame, a new target person is created based on the character features of the current frame and a unique ID identity is assigned;

[0080] If the character features of the target person in the current frame match the character features of the target person in the previous frame, the ID identity of the target person remains unchanged;

[0081] S45, obtaining the coordinates of the target person in the current frame through a Kalman filter according to the person's features;

[0082] The character information includes: character features, ID numbers associated with the character features, and coordinates.

[0083] It should be noted that in step S41, when the camera collects real-time video of people entering the well, it will save photos of people entering the well and evidence videos within T time (T=5S, 10S) before and after entering the well into the database, which is convenient for people on the surface to query, effectively preventing people going down the well without complete equipment, thereby improving the safety of underground operations.

[0084] In this embodiment, step S5 specifically includes the following steps:

[0085] S51, setting a boundary line in the underground entry and exit detection area, the boundary may be a gate as a dividing line, but is not limited to this;

[0086] S52, matching the person information with the characteristic information in the database, if the match is successful, executing the next step, if the match is unsuccessful, determining that the person cannot enter the mine; by matching, potential hidden dangers that may be caused by staff and outsiders going down the mine illegally are avoided, thereby ensuring the life safety of personnel and safe production of coal mines.

[0087] S53, tracking the current coordinates of the target person, and determining whether the target person crosses the boundary line according to the current coordinates;

[0088] If the boundary line is crossed, the well entry count is performed;

[0089] If the boundary line has not been crossed, the current coordinates of the target person will continue to be tracked.

[0090] In step S52, the character information is matched with the characteristic information in the database based on the personnel duty system to determine whether the current person is an underground worker and whether he is the person going down the mine this time, so as to improve the safety of the operation.

[0091] Example 2

[0092] The present application embodiment provides a coal mine entry personnel counting system, the system comprising:

[0093] At least two video cameras, located in the underground entry and exit detection area, configured to collect real-time video of personnel;

[0094] A mine intrinsically safe edge computing processing module is connected to the camera and is configured to execute the method for counting people entering a coal mine according to the first embodiment;

[0095] As well as an audible and visual alarm, which is connected to the intrinsically safe edge computing processing module for mining and is configured to perform audible and visual alarms based on the signals of the intrinsically safe edge computing processing module for mining. If the intrinsically safe edge computing processing module for mining detects personnel other than the mine, the audible and visual alarms are activated to remind the staff to check whether the documents for going down the mine are complete.

[0096] The system also includes an industrial computer, which is connected to the camera to store the collected personnel videos and facilitate the personnel on the well to query and watch the videos through the industrial computer, effectively preventing the situation where personnel going down the well without complete equipment go down the well privately, thereby improving the safety of underground operations.

[0097] In this embodiment, there are two cameras, namely the first camera and the second camera. The first camera and the second camera are respectively located on both sides of the underground entry and exit detection area and are symmetrical to each other. The first camera is configured to capture video when personnel go down the well, and the second camera is configured to capture video when personnel leave the well.

[0098] It should be noted that through the above detailed description of a method for counting people entering a coal mine, technical personnel in this field can clearly know the implementation method of a device for counting people entering a coal mine in this embodiment. Therefore, for the sake of brevity of the specification, the working principle of the intrinsically safe edge computing processing module for mining will not be described in detail here.

[0099] Example 3

[0100] An embodiment of the present application provides a computer device, which includes a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement a method for counting people entering a coal mine as provided in the above method embodiment.

[0101] Figure 6The hardware structure diagram of a device for implementing a method for counting people entering a coal mine provided in an embodiment of the present application is shown. The device may participate in constituting or include the device or system provided in an embodiment of the present application. Figure 6 As shown, the computer device 10 may include one or more processors 1002 (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1004 for storing data, and a transmission device 1006 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 6 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 6 More or fewer components as shown, or with Figure 6 Different configurations are shown.

[0102] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer device 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0103] The memory 1004 can be used to store software programs and modules of application software, such as a program instruction / data storage device corresponding to a method for counting people entering a coal mine in an embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 1004, that is, implementing the above-mentioned method. The memory 1004 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1004 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer device 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0104] The transmission device 1006 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer device 10. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 1006 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0105] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer device 10 (or mobile device).

[0106] Example 4

[0107] An embodiment of the present application also provides a computer-readable storage medium, which can be set in a server to store at least one instruction or at least one program related to a method for counting people entering a coal mine in a method embodiment. The at least one instruction or the at least one program is loaded and executed by the processor to implement a method for counting people entering a coal mine provided in the above method embodiment.

[0108] Optionally, in this embodiment, the storage medium may be located in at least one of the multiple network servers of the computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to, various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0109] Example 5

[0110] The embodiment of the present invention also provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes a method for counting people entering a coal mine provided in the above various optional embodiments.

[0111] It should be noted that the above-mentioned sequence of the embodiments of the present application is for description only and does not represent the advantages and disadvantages of the embodiments. The above-mentioned specific embodiments of the present application are described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0112] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, equipment and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0113] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0114] Based on the above ideal embodiments of the present invention, the relevant staff can make various changes and modifications without departing from the technical concept of the present invention through the above description. The technical scope of the present invention is not limited to the contents of the specification, and its technical scope must be determined according to the scope of the claims.

Claims

1. A method for counting people entering a coal mine, characterized in that: The following steps are involved: S1, obtaining images of personnel entering the well, and preprocessing the images of personnel to obtain a data set; S2, build and improve the YOLOX model; S3, inputting the data set into the improved YOLOX model, training the improved YOLOX model to obtain a trained improved YOLOX model, wherein the trained improved YOLOX model is a face detection model; S4, outputting a video stream in real time through a camera, saving the video stream, and after decoding the video stream, sequentially inputting frame-by-frame capture into the face detection model for target recognition reasoning to obtain person information; S5, matching the character information with the feature information in a database, and counting the number of people entering the well based on the matching result and the character information.

2. The method for counting people entering a coal mine according to claim 1, characterized in that: The improved YOLOX model includes an input layer, a Backbone network, a Neck layer and an output layer connected in sequence; The Backbone network is improved, including: embedding an ECA-Net module in the residual component of the Backbone network, and replacing the SiLU activation function of the Backbone network with an ACON-C activation function.

3. The method for counting people entering a coal mine according to claim 1, characterized in that: The step S4 specifically comprises the following steps: S41, outputting a video stream of personnel entering the well in real time through a camera, saving the video stream, and decoding the video stream; S42, intercepting the decoded video frame by frame and inputting it into a face detection model to obtain a bounding box of a target person; S43, extracting features from the bounding box based on a Deepsort algorithm to obtain features of the target person; S44, matching the character features of the target person in the current frame with the character features of the target person in the previous frame based on the Hungarian algorithm; If the character features of the target person in the current frame do not match the character features of the target person in the previous frame, a new target person is created based on the character features of the current frame and a unique ID identity is assigned; If the character features of the target person in the current frame match the character features of the target person in the previous frame, the ID identity of the target person remains unchanged; S45, obtaining the coordinates of the target person in the current frame through a Kalman filter according to the person's features; The character information includes: character features, and an ID number and coordinates associated with the character features.

4. The method for counting people entering a coal mine as claimed in claim 3, characterized in that: The step S5 specifically comprises the following steps: S51, setting a boundary line in the underground entry and exit detection area; S52, matching the person information with the characteristic information in the database, if the match is successful, executing the next step, if the match is unsuccessful, determining that the person cannot enter the well; S53, tracking the current coordinates of the target person, and determining whether the target person crosses the boundary line according to the current coordinates; If the boundary line is crossed, the well entry count is performed; If the boundary line is not crossed, the current coordinates of the target person continue to be tracked.

5. The method for counting people entering a coal mine as claimed in claim 1, characterized in that: In step S1, all the acquired images of the persons are sequentially processed by image expansion, image flipping, image mirroring, image blurring, image annotation and image format conversion to obtain a data set, and the annotated data set is divided to obtain a training data set, a verification data set and a test data set.

6. The method for counting people entering a coal mine as claimed in claim 1, characterized in that: In step S3, the trained improved YOLOX model is also optimized by hyperparameter adjustment.

7. A coal mine personnel counting system, characterized in that: The system comprises: At least two video cameras, located in the underground entry and exit detection area, configured to collect real-time video of personnel; A mine intrinsically safe edge computing processing module, connected to the camera, configured to execute a method for counting people entering a coal mine as described in any one of claims 1 to 6 And an audible and visual alarm is connected to the intrinsically safe edge computing processing module for mining and is configured to perform audible and visual alarm based on the signal of the intrinsically safe edge computing processing module for mining.

8. The coal mine personnel counting system according to claim 3, characterized in that: There are two cameras, namely a first camera and a second camera. The first camera and the second camera are respectively located on both sides of the underground entry and exit detection area and are symmetrical to each other. The first camera is configured to capture video when personnel go down the well, and the second camera is configured to capture video when personnel leave the well.

9. A computer device, characterized in that: include: processor; A memory for storing executable instructions; The processor is used to read the executable instructions from the memory and execute the executable instructions to implement the method for counting people entering a coal mine as described in any one of claims 1 to 6.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method for counting people entering a coal mine as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Real-time people flow statistics method and system for production-halted mine, equipment and medium

    CN113838090A

  • Real-time road condition target detection method and device based on improved YOLOX

    CN114155499A

  • Target detection method based on adaptive activation function and attention mechanism

    CN115272865A

  • Counting method for coal mine well access personnel based on combined target tracking

    CN115631455A

  • Identification method and device applied to capital construction operation field personnel management and control

    CN115830294A