Factory behavior detection method and system based on image recognition

By setting up image acquisition devices in the factory, using PFLD and YOLOv5 models to extract feature data and judge fatigue and smoking behaviors, the problems of low detection efficiency and poor reliability in the existing technology have been solved, efficient and reliable behavior detection has been achieved, and safety has been improved. sex and value for money.

CN118570858AActive Publication Date: 2024-08-30YALONG RIVER HYDROPOWER DEV CO LTD +1

Patent Information

Application Number
CN202410689039.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-08-30
Estimated Expiration
2044-05-30

AI Technical Summary

Technical Problem

Existing factory behavior detection technology has low efficiency and poor reliability, making it difficult to detect problems in time and high cost, making it difficult to effectively improve safety and production quality.

Method used

Using a method based on image recognition, by setting up image collection devices in indoor office areas and outdoor public areas, using pre-trained object recognition models (such as PFLD and YOLOv5 models) to extract face and cigarette feature data, form a feature sequence, and determine whether there is Fatigue work behavior and smoking behavior send out alarm signals.

Benefits of technology

It improves the efficiency, timeliness and reliability of behavior detection, can detect fatigue and smoking behaviors in time, improves the safety of work areas and public areas, saves computing resources, and is highly cost-effective.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570858A
    Figure CN118570858A
Patent Text Reader

Abstract

The invention provides a factory behavior detection method and system based on image recognition, relates to the technical field of behavior detection methods, and aims to improve the efficiency, reliability and cost performance of behavior detection. The factory behavior detection method comprises the following steps: arranging a plurality of first image acquisition devices and a plurality of second image acquisition devices; periodically and continuously extracting the first detection frame, and periodically and continuously extracting the second detection frame; extracting feature data of the first detection frame and the second detection frame, wherein the feature data comprises a face recognition result and corresponding eye feature data and cigarette feature data; forming a first feature sequence and a second feature sequence; and judging whether a fatigue working behavior and a working area smoking behavior exist or not according to the first feature sequence, and judging whether a public area smoking behavior exists or not according to the second feature sequence. The method has the advantage of timely and accurate behavior recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of behavior detection methods, and in particular to a factory area behavior detection method and system based on image recognition. Background Art

[0002] Factory behavior detection is the real-time monitoring and analysis of the behavior of employees within the factory to improve work efficiency, safety and production quality.

[0003] Common factory behavior detection technologies include identifying employees' identities, gestures, and behaviors, and then determining whether there are any abnormal situations. The main purpose of factory behavior detection is to improve factory safety and supervise employees' behavioral norms and efficiency. Especially when the purpose is to ensure the safety of the work area, if the detection is carried out by superior inspections, the detection efficiency is low, it is difficult to detect problems in time, and the reliability is low. The introduction of automated detection can solve these problems, but the technical cost also needs to be considered.

[0004] Therefore, it is necessary to develop a factory behavior detection method to improve the efficiency, reliability and cost-effectiveness of behavior detection. Summary of the invention

[0005] The purpose of the present invention is to provide a factory behavior detection method and system based on image recognition, which can improve the efficiency, reliability and cost-effectiveness of behavior detection.

[0006] The embodiments of the present invention are implemented by the following technical solutions:

[0007] A method for detecting factory behavior based on image recognition comprises the following steps:

[0008] A plurality of first image acquisition devices are arranged in the indoor office area, and a plurality of second image acquisition devices are arranged in the outdoor public area;

[0009] Periodically and continuously extracting a first detection frame through a first image acquisition device, and periodically and continuously extracting a second detection frame through a second image acquisition device;

[0010] Extracting feature data of the first detection frame and the second detection frame respectively through a pre-trained object recognition model, wherein the feature data includes a face recognition result and corresponding eye feature data and cigarette feature data;

[0011] Acquire feature data of a plurality of consecutive first detection frames to form a first feature sequence, and acquire feature data of a plurality of consecutive second detection frames to form a second feature sequence;

[0012] The presence of fatigue work behavior and smoking behavior in the work area is determined based on the first feature sequence, and the presence of smoking behavior in the public area is determined based on the second feature sequence.

[0013] Preferably, the object recognition model includes a PFLD model and a YOLOv5 model;

[0014] The PFLD model is used to obtain the face recognition result and the corresponding eye feature data, and the YOLOv5 model is used to obtain the cigarette feature data. The YOLOv5 model is a relatively mature target detection model, and the PFLD model is a lightweight neural network model for face key point detection and face posture estimation.

[0015] Preferably, the eye feature data includes the first point coordinates, the second point coordinates, the third point coordinates, the fourth point coordinates, the fifth point coordinates and the sixth point coordinates of any eye;

[0016] The first point coordinates are pixel coordinates of the inner corner of the eye, the fourth point coordinates are pixel coordinates of the outer corner of the eye, the second point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the inner corner of the eye and the upper eyelid, the sixth point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the inner corner of the eye and the lower eyelid, the third point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the outer corner of the eye and the upper eyelid, and the fifth point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the outer corner of the eye and the lower eyelid;

[0017] The pixel point coordinates (u, v) are coordinates based on the image coordinate system, where u represents the row number where the pixel point is located, and v represents the column number where the pixel point is located.

[0018] Preferably, the method for determining whether fatigue work behavior exists is:

[0019] Obtaining the eye feature data sequence in the first feature sequence:

[0020]

[0021] in, are respectively the first point coordinate, the second point coordinate, the third point coordinate, the fourth point coordinate, the fifth point coordinate and the sixth point coordinate of the kth eye feature data in the eye feature data sequence, 1≤k≤n, and n is the total number of eye feature data sequences;

[0022] Get the evaluation parameter π of the k-th eye feature data respectively k :

[0023]

[0024] Among them, ‖.|| is the modulus operator;

[0025] The evaluation parameter π k Arrange from large to small and get the largest m evaluation parameters πk , find the largest m evaluation parameters π k The average value of the maximum reference value

[0026] Get the difference reference value σ:

[0027]

[0028] If the evaluation parameter π k If the proportion of evaluation parameters that are less than the preset parameter threshold is greater than α%, fatigue work behavior is judged to exist.

[0029] Or if the difference reference value σ is greater than a preset difference threshold, it is determined that fatigue work behavior exists,

[0030] Otherwise, it is judged that there is no fatigue work behavior.

[0031] Preferably, the cigarette characteristic data includes a first long side coordinate and a second long side coordinate;

[0032] The first long side coordinate and the second long side coordinate are pixel coordinates of two edge points of any long side of the recognition frame respectively;

[0033] The identification box is a box that selects the cigarette after the cigarette is identified by the YOLOv5 model;

[0034] If no cigarette is detected, the cigarette characteristic data is set to (0, 0).

[0035] Preferably, the method for determining whether there is smoking in the work area is:

[0036] Obtaining the eye feature data sequence in the first feature sequence:

[0037]

[0038] Obtaining the cigarette feature data sequence in the first feature sequence:

[0039]

[0040] in, are respectively the first long side coordinate and the second long side coordinate of the kth cigarette feature data in the cigarette feature data sequence;

[0041] Get the first distance parameter S from the kth cigarette feature data respectively k :

[0042]

[0043] The first distance parameter S kArrange from small to large, obtain the smallest q first distance parameters, and calculate the average of the smallest q first distance parameters to obtain the minimum reference value

[0044] like or It is judged that there is no smoking behavior in the work area, τ1 is the preset length ratio lower limit, τ2 is the preset length ratio upper limit, otherwise the following operations are performed:

[0045] Get the second distance parameter L k :

[0046]

[0047]

[0048]

[0049] If the second distance parameter L k If the proportion of the second distance parameter that is smaller than the preset distance threshold is greater than β%, it is judged that there is smoking behavior in the work area; otherwise, it is judged that there is no smoking behavior in the work area.

[0050] Preferably, the method for determining whether smoking occurs in a public area is the same as the method for determining whether smoking occurs in a work area: obtaining an eye feature data sequence and a cigarette feature data sequence from the second feature sequence, and the other steps are the same as the method for determining whether smoking occurs in a work area.

[0051] Preferably, if there is fatigue working behavior, smoking behavior in the work area, or smoking behavior in the public area, an alarm signal is issued.

[0052] Preferably, if the face recognition result does not match any data in the face database, an alarm signal is issued.

[0053] In order to solve the above problems, the present invention further provides a plant behavior detection system based on image recognition, which is applied to any one of the plant behavior detection methods based on image recognition described above, comprising:

[0054] A collection module, used to set a plurality of first image collection devices in an indoor office area and a plurality of second image collection devices in an outdoor public area;

[0055] A frame extraction module, used to periodically continuously extract a first detection frame through a first image acquisition device, and periodically continuously extract a second detection frame through a second image acquisition device;

[0056] A recognition module, used to extract feature data of the first detection frame and the second detection frame respectively through a pre-trained object recognition model, wherein the feature data includes a face recognition result and corresponding eye feature data and cigarette feature data;

[0057] A sequence extraction module, used for acquiring feature data of a plurality of consecutive first detection frames to form a first feature sequence, and acquiring feature data of a plurality of consecutive second detection frames to form a second feature sequence;

[0058] The behavior judgment module is used to judge whether there is fatigue work behavior and smoking behavior in the work area according to the first feature sequence, and to judge whether there is smoking behavior in the public area according to the second feature sequence.

[0059] The technical solution of the embodiment of the present invention has at least the following advantages and beneficial effects:

[0060] The present invention realizes automated plant behavior detection through image recognition, which improves the efficiency, timeliness and reliability of detection;

[0061] The present invention detects fatigue working conditions in the work area to prevent safety accidents caused by fatigue, and also detects smoking conditions in the work area and public areas to prevent potential fire hazards, thus providing good supervision on the safety of the factory area.

[0062] The present invention identifies key objects based on existing mature models, and then determines whether there are corresponding unsafe behaviors through the calculations implemented thereafter, thereby saving computing resources as much as possible, improving computing speed, and further improving detection efficiency;

[0063] The detection area of ​​the present invention can be flexibly set, which is convenient for behavioral detection at multiple different key points;

[0064] The invention has reasonable design, simple construction, high cost performance, and is easy to promote and implement. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 A schematic diagram of a process flow of a factory area behavior detection method based on image recognition provided in Example 1 of the present invention;

[0066] Figure 2 A schematic diagram of the positional relationship of eye feature data provided in Example 2 of the present invention; DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.

[0068] Example 1

[0069] This embodiment provides a factory area behavior detection method based on image recognition, see Figure 1 , including the following steps:

[0070] Step S1: multiple first image acquisition devices are set in the indoor office area, and multiple second image acquisition devices are set in the outdoor public area;

[0071] Step S2: periodically and continuously extracting a first detection frame through a first image acquisition device, and periodically and continuously extracting a second detection frame through a second image acquisition device;

[0072] Step S3: extracting feature data of the first detection frame and the second detection frame respectively through a pre-trained object recognition model, wherein the feature data includes a face recognition result and corresponding eye feature data and cigarette feature data;

[0073] Step S4: acquiring feature data of a plurality of consecutive first detection frames to form a first feature sequence, and acquiring feature data of a plurality of consecutive second detection frames to form a second feature sequence;

[0074] Step S5: judging whether there is fatigue work behavior and smoking behavior in the work area according to the first feature sequence, and judging whether there is smoking behavior in the public area according to the second feature sequence.

[0075] In this embodiment, the object recognition model includes a PFLD model and a YOLOv5 model;

[0076] The PFLD model is used to obtain the face recognition result and the corresponding eye feature data, and the YOLOv5 model is used to obtain the cigarette feature data.

[0077] The first image acquisition device of this embodiment is set in the indoor office area and can be set according to the detection requirements. For example, it can be set in the corresponding position where important equipment needs to be closely observed or operated, and in the area where smoking is strictly prohibited or fire is prone to occur, so as to prevent safety problems caused by negligence in important positions or positions with low fault tolerance. Similarly, the second image acquisition device set in the outdoor public area can be set in places where smoking is strictly prohibited and fire is prone to occur. Through image acquisition and image recognition technology to assist detection, efficient detection of smoking behavior and fatigue phenomena can be achieved, problems can be discovered in time, and safety accidents can be prevented.

[0078] It is especially noted that due to the face recognition function, when specifically detecting fatigue, each person's eye-related data is processed separately, and there will be no confusion. When periodically collecting continuously, a continuous image collection can be performed at regular intervals, and a collection duration and collection frequency can be set for continuous collection. For example, a continuous 30-second image collection can be performed every 10 minutes, and within this collection cycle, an image can be collected every 0.2-0.5S.

[0079] Example 2

[0080] This embodiment is based on the technical solution of Embodiment 1, and mainly further explains the method of judging whether there is fatigue work behavior and the method of judging whether there is smoking.

[0081] As a preferred solution of this embodiment, the eye feature data includes the first point coordinates, the second point coordinates, the third point coordinates, the fourth point coordinates, the fifth point coordinates and the sixth point coordinates of any eye;

[0082] The first point coordinates are pixel coordinates of the inner corner of the eye, the fourth point coordinates are pixel coordinates of the outer corner of the eye, the second point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the inner corner of the eye and the upper eyelid, the sixth point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the inner corner of the eye and the lower eyelid, the third point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the outer corner of the eye and the upper eyelid, and the fifth point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the outer corner of the eye and the lower eyelid; refer to Figure 2 The points numbered 1-5 in the figure represent the first point, the second point, the third point, the fourth point and the fifth point respectively. The first point is at the inner corner of the eye, and the fourth point is at the outer corner of the eye.

[0083] The pixel point coordinates (u, v) are coordinates based on the image coordinate system, where u represents the row number where the pixel point is located, and v represents the column number where the pixel point is located.

[0084] Furthermore, the method for determining whether fatigue work behavior exists is:

[0085] Obtaining the eye feature data sequence in the first feature sequence:

[0086]

[0087] in, are respectively the first point coordinate, the second point coordinate, the third point coordinate, the fourth point coordinate, the fifth point coordinate and the sixth point coordinate of the kth eye feature data in the eye feature data sequence, 1≤k≤n, and n is the total number of eye feature data sequences;

[0088] Get the evaluation parameter π of the k-th eye feature data respectively k :

[0089]

[0090] Among them, ‖.‖ is the modulus operator;

[0091] The evaluation parameter π k Arrange from large to small and get the largest m evaluation parameters π k , find the largest m evaluation parameters π k The average value of the maximum reference value

[0092] Get the difference reference value σ:

[0093]

[0094] If the evaluation parameter π k If the proportion of evaluation parameters that are less than the preset parameter threshold is greater than α%, fatigue work behavior is judged to exist.

[0095] Or if the difference reference value σ is greater than a preset difference threshold, it is determined that fatigue work behavior exists,

[0096] Otherwise, it is judged that there is no fatigue work behavior.

[0097] Evaluation parameter π k The eye opening size can be evaluated. The main indicator of fatigue work is a higher blinking frequency or a tendency to close the eyes for too long. When the blinking frequency is too high, the overall evaluation parameter π is sampled. k Maximum reference value of the medium ratio The smaller ones will become more, so the difference reference value σ will become larger, so the difference threshold can be set for evaluation; and if the eyes tend to be closed for too long, the evaluation parameter π will appear k The proportion of evaluation parameters that are smaller than the preset parameter threshold increases, so it can be set as the evaluation parameter π k The difference threshold and α% can be obtained as empirical values ​​by collecting data.

[0098] On the other hand, the cigarette characteristic data includes a first long side coordinate and a second long side coordinate;

[0099] The first long side coordinate and the second long side coordinate are pixel coordinates of two edge points of any long side of the recognition frame respectively;

[0100] The identification box is a box that selects the cigarette after the cigarette is identified by the YOLOv5 model;

[0101] If no cigarette is detected, the cigarette characteristic data is set to (0, 0).

[0102] Furthermore, the method for determining whether there is smoking in the work area is:

[0103] Obtaining the eye feature data sequence in the first feature sequence:

[0104]

[0105] Obtaining the cigarette feature data sequence in the first feature sequence:

[0106]

[0107] in, are respectively the first long side coordinate and the second long side coordinate of the kth cigarette feature data in the cigarette feature data sequence;

[0108] Get the first distance parameter S from the kth cigarette feature data respectively k :

[0109]

[0110] The first distance parameter S k Arrange from small to large, obtain the smallest q first distance parameters, and calculate the average of the smallest q first distance parameters to obtain the minimum reference value

[0111] The first distance parameter S kIt is indeed a rough judgment of the spatial distance between people and cigarettes. The width of a person's eyes and the length of a cigarette have a certain length relationship ratio, but when the distance difference between the two and the collection device is too large, the pixel length in the image will be quite different from the actual difference. Therefore, a distance is first predicted by their length at the pixel level in the image. When the distance is too large, smoking can be directly excluded. For example, it may be placed on the table, or it may be thrown away by others in advance. When setting τ1 and τ2, it is necessary to consider the average length of a complete cigarette and the average length when there are fewer cigarettes left. In particular, what needs to be filtered in this step is basically the situation where the distance between cigarettes and people is large, so τ1 can be set as much as possible to be smaller than the ratio of the average eye width and the average complete length of cigarettes from the empirical data, such as at least 30%, and τ2 can be set as much as possible to be larger than the ratio of the average eye width and the average length of cigarette butts, such as at least 30%.

[0112] like or It is judged that there is no smoking behavior in the work area, τ1 is the preset length ratio lower limit, τ2 is the preset length ratio upper limit, otherwise the following operations are performed:

[0113] Get the second distance parameter L k :

[0114]

[0115]

[0116]

[0117] If the second distance parameter L k If the proportion of the second distance parameter less than the preset distance threshold is greater than β%, it is judged that there is smoking in the work area, otherwise it is judged that there is no smoking in the work area. Here, whether smoking is being judged by the distance between the smoke and the eyes, β% can be set to a lower value, and it can also be set to a certain number of frames with the second distance parameter L k If the distance is less than the preset distance threshold, it is judged as smoking. The second distance parameter L k That is, the parameter that measures the distance between the cigarette and the human eye on a plane.

[0118] In addition, the method for determining whether there is smoking in a public area is the same as the method for determining whether there is smoking in a work area: obtaining an eye feature data sequence and a cigarette feature data sequence from the second feature sequence, and the other steps are the same as the method for determining whether there is smoking in a work area. That is to say, only the source of the data is the second feature sequence, and the specific methods for processing the eye feature data sequence and the cigarette feature data sequence are the same as the previous steps.

[0119] As another preferred solution, if there is fatigue working behavior or smoking behavior in the work area or smoking in the public area, an alarm signal is issued.

[0120] Finally, if the face recognition result does not match any data in the face database, an alarm signal may be issued.

[0121] Example 3

[0122] This embodiment provides a factory area behavior detection system based on image recognition, which is applied to any one of the above factory area behavior detection methods based on image recognition, including:

[0123] A collection module, used to set a plurality of first image collection devices in an indoor office area and a plurality of second image collection devices in an outdoor public area;

[0124] A frame extraction module, used to periodically continuously extract a first detection frame through a first image acquisition device, and periodically continuously extract a second detection frame through a second image acquisition device;

[0125] A recognition module, used to extract feature data of the first detection frame and the second detection frame respectively through a pre-trained object recognition model, wherein the feature data includes a face recognition result and corresponding eye feature data and cigarette feature data;

[0126] A sequence extraction module, used for acquiring feature data of a plurality of consecutive first detection frames to form a first feature sequence, and acquiring feature data of a plurality of consecutive second detection frames to form a second feature sequence;

[0127] The behavior judgment module is used to judge whether there is fatigue work behavior and smoking behavior in the work area according to the first feature sequence, and to judge whether there is smoking behavior in the public area according to the second feature sequence.

[0128] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A factory behavior detection method based on image recognition, characterized in that: The following steps are involved: A plurality of first image acquisition devices are arranged in the indoor office area, and a plurality of second image acquisition devices are arranged in the outdoor public area; Periodically and continuously extracting a first detection frame through a first image acquisition device, and periodically and continuously extracting a second detection frame through a second image acquisition device; Extracting feature data of the first detection frame and the second detection frame respectively through a pre-trained object recognition model, wherein the feature data includes a face recognition result and corresponding eye feature data and cigarette feature data; Acquire feature data of a plurality of consecutive first detection frames to form a first feature sequence, and acquire feature data of a plurality of consecutive second detection frames to form a second feature sequence; The presence of fatigue work behavior and smoking behavior in the work area is determined based on the first feature sequence, and the presence of smoking behavior in the public area is determined based on the second feature sequence.

2. The method for detecting factory behaviors based on image recognition according to claim 1, characterized in that: The object recognition model includes a PFLD model and a YOLOv5 model; The PFLD model is used to obtain the face recognition result and the corresponding eye feature data, and the YOLOv5 model is used to obtain the cigarette feature data.

3. The method for detecting factory behaviors based on image recognition according to claim 1, characterized in that: The eye feature data includes the first point coordinates, the second point coordinates, the third point coordinates, the fourth point coordinates, the fifth point coordinates and the sixth point coordinates of any eye; The first point coordinates are pixel coordinates of the inner corner of the eye, the fourth point coordinates are pixel coordinates of the outer corner of the eye, the second point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the inner corner of the eye and the upper eyelid, the sixth point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the inner corner of the eye and the lower eyelid, the third point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the outer corner of the eye and the upper eyelid, and the fifth point coordinates are pixel coordinates of the intersection of the vertical tangent of the pupil near the outer corner of the eye and the lower eyelid; The pixel point coordinates (u, v) are coordinates based on the image coordinate system, where u represents the row number where the pixel point is located, and v represents the column number where the pixel point is located.

4. The method for detecting factory behaviors based on image recognition according to claim 3 is characterized in that: The method for determining whether fatigue work behavior exists is: Obtaining the eye feature data sequence in the first feature sequence: in, are respectively the first point coordinate, the second point coordinate, the third point coordinate, the fourth point coordinate, the fifth point coordinate and the sixth point coordinate of the kth eye feature data in the eye feature data sequence, 1≤k≤n, and n is the total number of eye feature data sequences; Get the evaluation parameter π of the k-th eye feature data respectively k : Among them, ‖.|| is the modulus operator; The evaluation parameter π k Arrange from large to small and get the largest m evaluation parameters π k , find the largest m evaluation parameters π k The average value of the maximum reference value Get the difference reference value σ: If the evaluation parameter π k If the proportion of evaluation parameters that are less than the preset parameter threshold is greater than α%, fatigue work behavior is judged to exist. Or if the difference reference value σ is greater than a preset difference threshold, it is determined that fatigue work behavior exists, Otherwise, it is judged that there is no fatigue work behavior.

5. The method for detecting factory behaviors based on image recognition according to claim 4 is characterized in that: The cigarette characteristic data includes a first long side coordinate and a second long side coordinate; The first long side coordinate and the second long side coordinate are pixel coordinates of two edge points of any long side of the recognition frame respectively; The identification box is a box that selects the cigarette after the cigarette is identified by the YOLOv5 model; If no cigarette is detected, the cigarette characteristic data is set to (0,0).

6. The method for detecting factory behaviors based on image recognition according to claim 5, characterized in that: The method for determining whether there is smoking in the work area is: Obtaining the eye feature data sequence in the first feature sequence: Obtaining the cigarette feature data sequence in the first feature sequence: in, are respectively the first long side coordinate and the second long side coordinate of the kth cigarette feature data in the cigarette feature data sequence; Get the first distance parameter S from the kth cigarette feature data respectively k : The first distance parameter S k Arrange from small to large, obtain the smallest q first distance parameters, and calculate the average value of the smallest q first distance parameters to obtain the minimum reference value like or It is judged that there is no smoking behavior in the work area, τ1 is the preset length ratio lower limit, τ2 is the preset length ratio upper limit, otherwise the following operations are performed: Get the second distance parameter L k : If the second distance parameter L k If the proportion of the second distance parameter that is smaller than the preset distance threshold is greater than β%, it is judged that there is smoking behavior in the work area; otherwise, it is judged that there is no smoking behavior in the work area.

7. The method for detecting factory behaviors based on image recognition according to claim 6 is characterized in that: The method for determining whether there is smoking in a public area is the same as the method for determining whether there is smoking in a work area: obtaining an eye feature data sequence and a cigarette feature data sequence from the second feature sequence, and the other steps are the same as the method for determining whether there is smoking in a work area.

8. The method for detecting factory behaviors based on image recognition according to claim 1, characterized in that: If there is fatigue working behavior, smoking in the work area or smoking in the public area, an alarm signal will be issued.

9. The method for detecting factory behaviors based on image recognition according to claim 1, characterized in that: If the face recognition result does not match any data in the face database, an alarm signal is issued.

10. A factory behavior detection system based on image recognition, applied to a factory behavior detection method based on image recognition as claimed in any one of claims 1 to 9, characterized in that: include: A collection module, used to set a plurality of first image collection devices in an indoor office area and a plurality of second image collection devices in an outdoor public area; A frame extraction module, used to periodically continuously extract a first detection frame through a first image acquisition device, and periodically continuously extract a second detection frame through a second image acquisition device; A recognition module, used to extract feature data of the first detection frame and the second detection frame respectively through a pre-trained object recognition model, wherein the feature data includes a face recognition result and corresponding eye feature data and cigarette feature data; A sequence extraction module, used for acquiring feature data of a plurality of consecutive first detection frames to form a first feature sequence, and acquiring feature data of a plurality of consecutive second detection frames to form a second feature sequence; The behavior judgment module is used to judge whether there is fatigue work behavior and smoking behavior in the work area according to the first feature sequence, and to judge whether there is smoking behavior in the public area according to the second feature sequence.

Citation Information

Patent Citations

  • Dangerous driving behavior recognition method, device and apparatus and storage medium

    CN111414813A

  • Method and system for monitoring vital signs and driving behaviors of driver

    CN116965781A

Cited By

  • Image recognition method and system

    CN118918570A