Workshop intelligent detection method, device, equipment and medium

By adopting the workshop intelligent detection method in the automobile production factory, combining feature extraction and multi-scale feature fusion to collaboratively process detection and classification tasks, the problem of detection performance degradation is solved, and efficient and accurate workwear and work cap wearing detection is achieved, which is applicable Based on a variety of hardware platforms, it adapts to the intelligent security needs of automobile factories.

CN118628982APending Publication Date: 2024-09-10CHONGQING JINKANG NEW ENERGY VEHICLE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410856275.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

Existing workwear and work hat wearing detection methods have the problem of reduced detection performance in automobile production plants, especially under the conditions of illumination, angle, and background interference. The visual Transformer algorithm has high computational complexity and is not suitable for end-side deployment.

Method used

An intelligent workshop detection method is adopted. By annotating data on workers, work clothes and work caps, the feature extraction module is used to pre-process and extract features from the image data. The detection module and classification module are combined to realize the collaboration of scene classification and detection results. processing to ensure detection accuracy, and introduce a lightweight multi-head attention module and Universal Inverted Bottleneck structure to improve the robustness and efficiency of the model.

Benefits of technology

It achieves efficient target detection and identification in resource-constrained environments, improves detection accuracy and reliability, is suitable for a variety of hardware platforms, adapts to the intelligent security needs of automobile factories, and reduces false detection rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118628982A
    Figure CN118628982A
Patent Text Reader

Abstract

The invention relates to the field of computer vision and digital process manufacturing, in particular to a workshop intelligent detection method, device and equipment and a medium. The method comprises the following steps: for a plurality of cameras pre-configured in different workshops, obtaining image data collected by the cameras; performing data annotation on the image data to obtain annotated image data; the image data with the labels are preprocessed, and preprocessed image data are obtained; based on a feature extraction module, performing feature extraction on the preprocessed image data to obtain feature data; respectively inputting the feature data into a detection module and a classification module to obtain a scene classification result output by the classification module and a detection result output by the detection module; and obtaining a judgment result based on the scene classification result and the detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and more specifically, to a workshop intelligent detection method, device, equipment and medium. Background Art

[0002] In the scenario of automobile production plants, it is of great significance to use detection algorithms based on deep learning models to detect workers' work clothes and hats, as well as trespassing at workstations. First, it significantly improves workplace safety, ensures that all workers wear protective equipment as required, and reduces the risk of accidental injuries. Second, automated monitoring and real-time detection improve management efficiency and reduce manual inspection costs and error rates. This technology can adapt to different production environments, provide efficient and accurate detection, and ensure smooth production management processes. In addition, the detection system based on deep learning models can continuously learn and optimize, improve detection accuracy and robustness, and meet the growing safety and management needs of automobile production plants.

[0003] At present, in automobile production plants, commonly used detection methods for work clothes and work hats include YOLO, CenterNet, Faster R-CNN, and detection algorithms based on visual Transformer. Although these methods perform well in terms of recall and accuracy, they still face challenges when deployed on the end. For example, traditional detection algorithms are easily affected by factors such as lighting, angle, and background interference, resulting in reduced detection performance. Although the visual Transformer algorithm has strong modeling capabilities, it has high computational complexity and high requirements for end-side hardware and power consumption, making it less suitable for practical applications.

[0004] Therefore, the present application provides a workshop intelligent detection method, device, equipment and medium to solve the above-mentioned technical problems. Summary of the invention

[0005] The purpose of this application is to provide a workshop intelligent detection method, device, equipment and medium, which can solve at least one of the technical problems mentioned above. The specific solution is as follows:

[0006] According to a specific implementation of the present application, in a first aspect, the present application provides a workshop intelligent detection method, comprising:

[0007] For cameras pre-configured in multiple different workshops, image data collected by the cameras are obtained; data annotation is performed on the image data to obtain annotated image data; wherein the annotation includes worker annotation, work clothes annotation, and work hat annotation; the annotated image data is preprocessed to obtain preprocessed image data; based on a feature extraction module, feature extraction is performed on the preprocessed image data to obtain feature data; the feature data are respectively input into a detection module and a classification module to obtain a scene classification result output by the classification module and a detection result output by the detection module; wherein the scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between workers, work clothes, and work hats; based on the scene classification result and the detection result, a judgment result is obtained; wherein the judgment result is used to identify the consistency between the workers, work clothes, and work hats whose scene categories are allowed to be configured and the detection result.

[0008] In one embodiment, the feature extraction module includes a first network layer, a second network layer, a third network layer, a fourth network layer, and a fifth network layer in sequence according to the data processing order, and each of the network layers satisfies the inverted neck structure respectively; the fourth network layer and the fifth network layer respectively satisfy the general inverted neck structure; wherein the general inverted neck structure is composed of optional depth convolution, point-by-point convolution, depth convolution, and point-by-point convolution connected in sequence; the first network layer, the second network layer, and the third network layer respectively satisfy one of the structures from the first inverted neck structure to the fifth inverted neck structure; wherein the first inverted neck structure is composed of separable depth convolution, point-by-point convolution, separable depth convolution, and point-by-point convolution connected in sequence, the second inverted neck structure is composed of point-by-point convolution, separable depth convolution, and point-by-point convolution connected in sequence, the third inverted neck structure is composed of separable depth convolution, point-by-point convolution, and point-by-point convolution connected in sequence, the fourth inverted neck structure is composed of point-by-point convolution and point-by-point convolution connected in sequence, and the fifth inverted neck structure is composed of two-dimensional convolution and point-by-point convolution connected in sequence.

[0009] In one embodiment, the feature extraction of the preprocessed image data to obtain the feature data includes: inputting the preprocessed image data, outputting it through the first network layer, the second network layer, the third network layer, the fourth network layer, to the fifth network layer, to obtain the first feature data output by the second network layer, the second feature data output by the third network layer, the third feature data output by the fourth network layer, and the fourth feature data output by the fifth network layer; and inputting the feature data into the detection module and the classification module respectively, includes: inputting the first feature data, the second feature data, the third feature data, and the fourth feature data into the detection module and the classification module respectively.

[0010] In one embodiment, the feature data is input into a detection module in the following manner to obtain a detection result output by the detection module: based on a first multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain fused feature data; based on a feature enhancement module of the detection module, feature enhancement is performed on the fused feature data to obtain feature enhanced feature data; based on two output task heads of the detection module, the target box identified based on the feature enhanced feature data is respectively processed and output as a Gaussian heat map of the center point of the target box and a deviation value of the corner point of the target box relative to the center point; wherein each of the target boxes is used to characterize a worker, work clothes, or a work hat, and the Gaussian heat map and the deviation value are jointly used as the detection result output by the detection module.

[0011] In one embodiment, the feature data is input into a classification module in the following manner to obtain a scene classification result output by the classification module: based on a second multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain fused feature data; maximum pooling is performed on the fused feature data to obtain pooled feature data; based on multiple different output classification heads of the classification module, multiple different scene classification labels are set and output for the pooled feature data; wherein the scene classification labels include a die-casting workshop label, a stamping workshop label, a welding workshop label, a painting workshop label and an assembly workshop label, and the scene classification labels are used as the scene classification results output by the classification module.

[0012] In one embodiment, the universal inverted neck structures of the fourth network layer and the fifth network layer are respectively configured with attention modules, and the attention modules are expressed based on the following formula:

[0013] Mobile_MQA(X)=Concat(attention1,...,attention n )W O

[0014]

[0015] Among them, attention 1 To attention n Represents n self-attention heads, Concat(attention 1 ,...,attention n )W Orepresents the channel dimension processing of n self-attention heads, Mobile_MQA(X) represents the result value of the attention module, X is the input of the Mobile_MQA module, and W Q , W K , W V , W O are the weight matrices for query, key, value, and output transformation, respectively. SR is the space reduction function. k is the scale scaling factor, and j is the attention head identifier ranging from 1 to n.

[0016] In one embodiment, the annotated image data is preprocessed to obtain preprocessed image data, including: for the annotated image data, the image size of the image data is proportionally scaled to obtain scaled image data; in order, random noise is added, mosaic data is enhanced, color perturbation is processed, and normalization is performed on the scaled image data to obtain normalized data; for the normalized data, a specified number of negative sample data are obtained, and the negative sample data are sampled with a probability of 0.3 using a data loading method to obtain the preprocessed image data.

[0017] In one embodiment, the method further includes: in response to the determination result identifying inconsistency between the workers, work clothes, and work hats that are allowed to be configured for the scene category and the detection result, triggering execution of a workshop warning.

[0018] According to a specific implementation of the present application, in a second aspect, the present application provides a workshop intelligent detection device, including:

[0019] An acquisition unit is used to acquire image data collected by cameras pre-configured in multiple different workshops; a processing unit is used to perform data annotation on the image data to obtain annotated image data; wherein the annotation includes worker annotation, work clothes annotation, and work hat annotation; the processing unit is used to preprocess the annotated image data to obtain preprocessed image data; and the processing unit is used to perform feature extraction on the preprocessed image data based on a feature extraction module to obtain feature data; an input and output unit is used to input the feature data into a detection module and a classification module respectively to obtain a scene classification result output by the classification module and a detection result output by the detection module; wherein the scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between the workers, work clothes, and work hats; a decision unit is used to obtain a determination result based on the scene classification result and the detection result; wherein the determination result is used to identify the consistency between the workers, work clothes, and work hats whose scene categories are allowed to be configured and the detection result.

[0020] In one embodiment, the feature extraction module includes a first network layer, a second network layer, a third network layer, a fourth network layer, and a fifth network layer in sequence according to the data processing order, and each of the network layers satisfies the inverted neck structure respectively; the fourth network layer and the fifth network layer respectively satisfy the general inverted neck structure; wherein the general inverted neck structure is composed of optional depth convolution, point-by-point convolution, depth convolution, and point-by-point convolution connected in sequence; the first network layer, the second network layer, and the third network layer respectively satisfy one of the structures from the first inverted neck structure to the fifth inverted neck structure; wherein the first inverted neck structure is composed of separable depth convolution, point-by-point convolution, separable depth convolution, and point-by-point convolution connected in sequence, the second inverted neck structure is composed of point-by-point convolution, separable depth convolution, and point-by-point convolution connected in sequence, the third inverted neck structure is composed of separable depth convolution, point-by-point convolution, and point-by-point convolution connected in sequence, the fourth inverted neck structure is composed of point-by-point convolution and point-by-point convolution connected in sequence, and the fifth inverted neck structure is composed of two-dimensional convolution and point-by-point convolution connected in sequence.

[0021] In one embodiment, the processing unit extracts features from the preprocessed image data in the following manner to obtain feature data: the preprocessed image data is input, and outputted through the first network layer, the second network layer, the third network layer, the fourth network layer, and the fifth network layer to obtain first feature data outputted by the second network layer, second feature data outputted by the third network layer, third feature data outputted by the fourth network layer, and fourth feature data outputted by the fifth network layer; the input-output unit inputs the feature data into the detection module and the classification module, respectively, in the following manner: the first feature data, the second feature data, the third feature data, and the fourth feature data are inputted into the detection module and the classification module, respectively.

[0022] In one embodiment, the input-output unit inputs the feature data into the detection module in the following manner to obtain the detection result output by the detection module: based on the first multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain fused feature data; based on the feature enhancement module of the detection module, feature enhancement is performed on the fused feature data to obtain feature enhanced feature data; based on the two output task heads of the detection module, the target box identified based on the feature enhanced feature data is respectively processed and output as a Gaussian heat map of the center point of the target box and a deviation value of the corner point of the target box relative to the center point; wherein each of the target boxes is used to characterize a worker, work clothes, or a work hat, and the Gaussian heat map and the deviation value are jointly used as the detection result output by the detection module.

[0023] In one embodiment, the input-output unit inputs the feature data into the classification module in the following manner to obtain a scene classification result output by the classification module: based on the second multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain fused feature data; maximum pooling is performed on the fused feature data to obtain pooled feature data; based on multiple different output classification heads of the classification module, multiple different scene classification labels are set and output for the pooled feature data; wherein the scene classification labels include a die-casting workshop label, a stamping workshop label, a welding workshop label, a painting workshop label and an assembly workshop label, and the scene classification labels are used as the scene classification results output by the classification module.

[0024] In one embodiment, the universal inverted neck structures of the fourth network layer and the fifth network layer are respectively configured with attention modules, and the attention modules are expressed based on the following formula:

[0025] Mobile_MQA(X)=Concat(attention 1 ,...,attention n )W O ;

[0026]

[0027] Among them, attention1 to attentionn represent n self-attention heads, Concat(attention 1 ,...,attention n )W O represents the channel dimension processing of n self-attention heads, Mobile_MQA(X) represents the result value of the attention module, X is the input of the Mobile_MQA module, and W Q , W K , W V , W O are the weight matrices for query, key, value, and output transformation, respectively. SR is the space reduction function. k is the scale scaling factor, and j is the attention head identifier ranging from 1 to n.

[0028] In one embodiment, the processing unit preprocesses the annotated image data in the following manner to obtain preprocessed image data: for the annotated image data, the image size of the image data is proportionally scaled to obtain scaled image data; in order, random noise is added, mosaic data is enhanced, color perturbation is processed, and normalization is performed on the scaled image data to obtain normalized data; for the normalized data, a specified number of negative sample data are obtained, and the negative sample data are sampled with a probability of 0.3 using a data loading method to obtain preprocessed image data.

[0029] In one embodiment, the decision unit is further used to: trigger execution of a workshop warning in response to inconsistency between the judgment result identifying the workers, work clothes, and work hats that are allowed to be configured for the scene category and the detection result.

[0030] According to a specific implementation of the present application, in a third aspect, the present application provides an electronic device, including a memory and a processor, wherein the memory is used to store a computer program; and the processor is used to implement any one of the method steps in the first aspect when executing the computer program stored in the memory.

[0031] According to the specific implementation of the present application, in a fourth aspect, the present application provides a computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps described in any one of the first aspects are implemented.

[0032] Compared with the prior art, the above solution of the embodiment of the present application has at least the following beneficial effects:

[0033] The present application provides a method, device, equipment and medium for intelligent workshop detection. The method pre-labels data of workers, work clothes and work hats, and then pre-processes the labeled image data to obtain pre-processed image data. On this basis, the feature extraction module extracts features from the pre-processed image data to obtain feature data. Further, the feature data is respectively input into the detection module and the classification module to obtain the scene classification result output by the classification module and the detection result output by the detection module. Among them, the scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between workers, work clothes and work hats. On this basis, through the processing coordination of the classification task and the detection task, while ensuring the detection accuracy, it is possible to verify whether the workers entering the workshop are allowed to enter and whether the workers are wearing the work clothes and work hats specified by the workshop, so as to ensure the safety of workshop construction. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 A flow chart of a workshop intelligent detection method according to an embodiment of the present application is shown;

[0035] Figure 2 A schematic structural diagram of an optional inverted neck structure of the present application is shown;

[0036] Figure 3 A flow chart of a method for a detection module to perform a detection task according to an embodiment of the present application is shown;

[0037] Figure 4 A flow chart of a method for a classification module to perform a scene classification task according to an embodiment of the present application is shown;

[0038] Figure 5 A schematic diagram of processing logic for extracting and detecting features from image data to output detection results is shown;

[0039] Figure 6 A schematic diagram of processing logic for extracting features and classifying image data to output scene classification results is shown;

[0040] Figure 7 A flowchart of a method for preprocessing labeled image data to obtain preprocessed image data according to an embodiment of the present application is shown;

[0041] Figure 8 A unit block diagram of a workshop intelligent detection device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.

[0043] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.

[0044] It should be understood that although the terms first, second, third, etc. may be used to describe in the embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish the descriptions. For example, without departing from the scope of the embodiments of the present application, the first may also be referred to as the second, and similarly, the second may also be referred to as the first.

[0045] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.

[0046] It should also be noted that the term "includes", "comprising" or any other variation thereof is intended to cover non-exclusive inclusion, so that a commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprising a ..." do not exclude the existence of other identical elements in the commodity or device including the elements.

[0047] It should be particularly noted that any symbols and / or numbers in the specification that are not marked in the accompanying drawings are not drawing marks.

[0048] At present, in automobile production plants, commonly used detection methods for work clothes and work hats include YOLO, CenterNet, Faster R-CNN, and detection algorithms based on visual Transformer. Although these methods perform well in terms of recall and accuracy, they still face challenges when deployed on the edge. For example, traditional detection algorithms are easily affected by factors such as lighting, angle, and background interference, resulting in reduced detection performance. Although the visual Transformer algorithm has strong modeling capabilities, it has high computational complexity and high requirements for edge hardware and power consumption, making it less suitable for practical applications. Therefore, what needs to be solved urgently is to improve the robustness and efficiency of the detection algorithm to meet the needs of edge deployment.

[0049] In view of this, the present application proposes a workshop intelligent detection method to solve the problems existing in the prior art.

[0050] The optional embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0051] The embodiment provided in this application is an embodiment of a workshop intelligent detection method.

[0052] Combine the following Figure 1 The embodiments of the present application are described in detail.

[0053] Figure 1 A flow chart of a workshop intelligent detection method according to an embodiment of the present application is shown. Figure 1As shown, the process includes the following steps S101 to S106.

[0054] In step S101, image data collected by cameras pre-configured in multiple different workshops are obtained.

[0055] In step S102, the image data is annotated to obtain annotated image data.

[0056] Among them, the markings include worker markings, work clothes markings, and work hat markings.

[0057] In step S103, the labeled image data is preprocessed to obtain preprocessed image data.

[0058] In step S104, based on the feature extraction module, feature extraction is performed on the preprocessed image data to obtain feature data.

[0059] In step S105, the feature data is input into the detection module and the classification module respectively to obtain the scene classification result output by the classification module and the detection result output by the detection module.

[0060] Among them, the scene classification results are used to identify the scene category, and the detection results are used to identify the consistency between workers, work clothes, and work hats.

[0061] In step S106, a determination result is obtained based on the scene classification result and the detection result, wherein the determination result is used to identify the consistency between the workers, work clothes, and work hats that are allowed to be configured in the scene category and the detection result.

[0062] In this application, it is considered to input the feature data into the detection module and the classification module respectively, and obtain the scene classification result output by the classification module and the detection result output by the detection module. Among them, the scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between the workers, work clothes, and work hats. On this basis, through the processing coordination of the classification task and the detection task, while ensuring the detection accuracy, it is possible to verify whether the workers entering the workshop are allowed to enter and whether the workers are wearing the work clothes and work hats specified by the workshop, so as to ensure the safety of the workshop construction.

[0063] Furthermore, as a feasible embodiment, the present application can also trigger the execution of workshop warning when the judgment result identifies that the workers, work clothes, and work hats that are allowed to be configured in the scene category are inconsistent with the detection result. For example, if a worker who is not allowed to enter enters the workshop, or a worker does not wear the work clothes or work hats specified by the workshop, in these cases, the workshop warning prompt can be issued by means of monitoring screen flooding or voice broadcast, so as to ensure the safety of workshop construction.

[0064] In this application, cameras with different angles are installed in different workshops (die-casting workshop, stamping workshop, welding workshop, painting workshop and assembly workshop). These cameras collect pedestrian data and production line scene data of different workshops in real time. These pedestrian data include pedestrians of various ages and genders, as well as the different work clothes and hats they wear. Through these data, we can understand and monitor the personnel dynamics in the workshop and ensure that workers wear necessary protective equipment in accordance with safety regulations. Specifically, these data have the following characteristics.

[0065] Diverse human postures: The camera captures various postures of pedestrians at different locations and at different times in the automobile factory, including standing, walking, bending, squatting, etc. These posture data help analyze the work behavior and posture of workers to ensure that they meet safety regulations. Age and gender distribution: The pedestrian data covers workers of different age groups and genders. Through the identification of age and gender, more refined personnel management can be carried out, such as identifying whether underage or unauthorized persons have entered a specific area. Work clothes and work hats worn by pedestrians are important data features. The camera captures these features and can detect in real time whether the workers are wearing the necessary protective equipment as required, promptly discover and correct violations, and ensure safe production. Behavior and action recognition: Through the continuous image data collected by the camera, behavior and action recognition can be performed. For example, it can detect whether the workers stay in the dangerous area and whether the correct operation steps are performed, etc., to prevent the occurrence of safety accidents. People counting and area monitoring: Real-time monitoring of the number of people in a specific area to avoid safety hazards caused by excessive concentration of people. Through the analysis of dynamic personnel data, the factory's personnel scheduling and work arrangements can be optimized to improve production efficiency. Time and location data. The camera records the time and location of each person's activities. This data can be used to track the movement path of personnel, analyze the workflow, optimize the production line layout, and evacuate and rescue personnel in emergency situations. Workshop assembly line scenes with different lighting and complex background distribution. In modern manufacturing, workshop assembly lines are the core link in the production process. With the advancement of Industry 4.0, smart manufacturing and automation technologies are becoming more and more popular. However, the existence of different lighting conditions and complex backgrounds brings many challenges to the automation system. For example, lighting changes, shadows, reflections, and interference in complex backgrounds will affect the stability and accuracy of the machine vision system.

[0066] In some embodiments, the characteristics of these scenes are as follows. Impact of different lighting conditions. Natural light. The introduction of natural light into the workshop may cause changes in light intensity and angle, which in turn affects the reading of the visual sensor. Artificial light, including fluorescent lamps, LED lamps, incandescent lamps, etc., the color temperature and flicker frequency of different light sources have different effects on the visual system. Day and night, natural light is stronger during the day, and artificial lighting is relied on at night, resulting in significant differences in lighting conditions. Shadows and reflections. Machines, equipment and workpiece surfaces will produce shadows and reflections, which interfere with the recognition of visual sensors. Ambient light interference. Light source interference from adjacent equipment or workstations may cause the visual system to misjudge. Impact on complex backgrounds. Diverse background colors and textures. The diversity of background colors and textures will increase the difficulty of the visual system to distinguish between foreground and background. Dynamic background. Workers, equipment or other objects moving in the workshop form a dynamic background, which interferes with the visual system. Background noise. Industrial noise such as dust and smoke can also affect the stability of the visual system.

[0067] In some embodiments, the feature extraction module includes a first network layer, a second network layer, a third network layer, a fourth network layer, and a fifth network layer in sequence according to the data processing order, and these five network layers respectively satisfy the inverted neck structure.

[0068] For example, the inverted neck structure selected for use in the present application includes a universal inverted neck structure and a non-universal inverted neck structure, wherein the different non-universal inverted neck structures are represented below by a first inverted neck structure, a second inverted neck structure, a third inverted neck structure, a fourth inverted neck structure, and a fifth inverted neck structure.

[0069] Figure 2 A schematic structural diagram of an optional inverted neck structure of the present application is shown.

[0070] For example, Figure 2 As shown, from left to right in the figure, a universal inverted neck structure, a first inverted neck structure, a second inverted neck structure, a third inverted neck structure, a fourth inverted neck structure, and a fifth inverted neck structure are represented.

[0071] Among them, the first inverted neck structure is composed of separable depthwise convolution, point-by-point convolution, separable depthwise convolution, and point-by-point convolution connected in sequence; the second inverted neck structure is composed of point-by-point convolution, separable depthwise convolution, and point-by-point convolution connected in sequence; the third inverted neck structure is composed of separable depthwise convolution, point-by-point convolution, and point-by-point convolution connected in sequence; the fourth inverted neck structure is composed of point-by-point convolution and point-by-point convolution connected in sequence; the fifth inverted neck structure is composed of two-dimensional convolution and point-by-point convolution connected in sequence; the universal inverted neck structure is composed of optional depthwise convolution, point-by-point convolution, depthwise convolution, and point-by-point convolution connected in sequence.

[0072] In the present application, the fourth network layer and the fifth network layer respectively satisfy the general inverted neck structure, and the first network layer, the second network layer, and the third network layer respectively satisfy one of the first inverted neck structure to the fifth inverted neck structure. Different network layers can choose the same or different inverted neck structures.

[0073] In this application, the inverted neck structure is flexibly constructed during the neural network architecture search process, thereby eliminating the need to manually formulate scaling rules. In addition, combined with the SuperNet-based neural network architecture search algorithm, parameter sharing (>95%) across different instantiations is achieved, making the neural network structure search (NAS) extremely efficient.

[0074] In one embodiment of the present application, multiple layers of feature data can be output based on the multi-layer structure of the feature extraction module to serve as input to the detection module and the classification module.

[0075] For example, the pre-processed image data is input, and is output through the first network layer, the second network layer, the third network layer, the fourth network layer, and the fifth network layer to obtain the first feature data output by the second network layer, the second feature data output by the third network layer, the third feature data output by the fourth network layer, and the fourth feature data output by the fifth network layer. Further, the first feature data, the second feature data, the third feature data, and the fourth feature data are respectively input into the detection module and the classification module.

[0076] On this basis, the detection module and the classification module can respectively perform multi-scale feature fusion to extract more and deeper feature information.

[0077] In the present application, the detection module consists of a first multi-scale feature fusion module, a feature enhancement module, and two output task heads.

[0078] For example, when the detection module receives the first feature data, the second feature data, the third feature data, and the fourth feature data input by the feature extraction module, the detection module can complete the detection in the following manner and output the detection result.

[0079] Figure 3 A flow chart of a method for a detection module to perform a detection task according to an embodiment of the present application is shown. Figure 3 As shown, the process includes the following steps S301 to S303.

[0080] In step S301, a first multi-scale feature fusion module based on the detection module performs multi-scale feature fusion in the order from the fourth feature data to the first feature data to obtain fused feature data.

[0081] In step S302, based on the feature enhancement module of the detection module, the fused feature data is feature enhanced to obtain feature data after feature enhancement.

[0082] In step S303, based on the two output task heads of the detection module, the target frame identified based on the feature data after feature enhancement is processed and output as a Gaussian heat map of the center point of the target frame and a deviation value of the corner point of the target frame relative to the center point.

[0083] Among them, each target box is used to represent the worker, work clothes, or work hat, and the Gaussian heat map and the deviation value are jointly used as the detection results output by the detection module.

[0084] In the present application, the classification module consists of a second multi-scale feature fusion module and a plurality of different output classification heads.

[0085] For example, when the classification module receives the first feature data, the second feature data, the third feature data, and the fourth feature data input by the feature extraction module, the classification module can complete the classification in the following manner and output the scene classification result.

[0086] Figure 4 A flow chart of a method for a classification module to perform a scene classification task according to an embodiment of the present application is shown. Figure 4 As shown, the process includes the following steps S401 to S403.

[0087] In step S401, a second multi-scale feature fusion module based on the detection module performs multi-scale feature fusion in the order from the fourth feature data to the first feature data to obtain fused feature data.

[0088] In step S402, maximum pooling is performed on the fused feature data to obtain feature data after pooling.

[0089] In step S403, based on a plurality of different output classification heads of the classification module, the feature data after pooling processing is set and output as a plurality of different scene classification labels.

[0090] Among them, the scene classification labels include die-casting workshop labels, stamping workshop labels, welding workshop labels, painting workshop labels and assembly workshop labels. The scene classification labels are the scene classification results output by the classification module.

[0091] In this application, the general inverted neck structure of the fourth network layer and the fifth network layer are respectively configured with an attention module, and the attention module is expressed based on the following formula:

[0092] Mobile_MQA(X)=Concat(attention 1 ,...,attention ,)W O ;

[0093]

[0094] Among them, attention1 to attentionn represent n self-attention heads, represents the channel dimension processing of n self-attention heads, Mobile_MQA(X) represents the result value of the attention module, X is the input of the Mobile_MQA module, and W Q , W K , W V , W O are the weight matrices for query, key, value, and output transformation, respectively. SR is the space reduction function. k is the scale scaling factor, and j is the attention head identifier ranging from 1 to n. In this application, an attention module is provided to assist the general inverted neck structure, which can achieve 39% reasoning acceleration.

[0095] In the present application, the multi-scale feature fusion module may be a feature pyramid network (FPN) structure.

[0096] Figure 5 A schematic diagram of processing logic for extracting and detecting features from image data to output detection results is shown.

[0097] For example, Figure 5 As shown, taking a 480×288×3 RGB picture as an example, for the upper half, it represents the processing flow of the feature extraction module, Conv represents downsampling based on the same or different non-universal inverted neck structures, ULB represents the universal inverted neck structure, and MMQA represents the attention module mentioned in the above embodiment. The image data is input into the feature extraction module after preprocessing for feature extraction, and is processed into a size of 240×144 through the first network layer, a size of 120×72 through the second network layer, a size of 60×36 through the third network layer, a size of 30×18 through the fourth network layer, and a size of 15×9 through the fifth network layer. Furthermore, the feature data of different sizes obtained are input into the feature pyramid network of the lower half, that is, the first multi-scale feature fusion module of the detection module. According to the order of the arrows in the lower half, the data of the channel dimension are fused (add) and upsampled (Deconv) in turn, and then input into the feature enhancement module (SingleShot Headless, SSH). The target box identified based on the feature data after feature enhancement is processed and output as the Gaussian heat map of the center point of the target box and the deviation value of the corner point of the target box relative to the center point through two different output task heads connected by the feature enhancement module.

[0098] For example, the processing logic of the feature enhancement module is as follows. For example, the feature enhancement module extracts the input feature data through CBAModule and ContextModule respectively, and finally merges the extracted feature data according to the channel dimension. Among them, CBAModule is composed of a 3×3 convolution kernel with a step size of 1 and a filling pixel of 0, BN, and RELU activation function. ContextModule is designed by four sub-modules: Inconv module, Upconv module, Downconv module, and Downconv2 module. Each sub-module is composed of a 3×3 convolution kernel with a step size of 1 and a filling pixel of 1, BN, and RELU activation function. First, the Inconv module is used to extract the features of the input feature map, and the output channel number is a quarter of the input channel number. The feature map is then extracted through the Upconv module, Downconv module, and Downconv2 module respectively, and finally the feature map is merged according to the channel dimension.

[0099] Figure 6 A processing logic diagram for extracting features and classifying image data to output scene classification results is shown.

[0100] For example, Figure 6 As shown, taking a 224×224×3 RGB picture as an example, for the upper half, it represents the processing flow of the feature extraction module, Conv represents downsampling based on the same or different non-universal inverted neck structures, ULB represents the universal inverted neck structure, and MMQA represents the attention module mentioned in the above embodiment. Based on preprocessing, the image data is processed to a size of 480×288×3 and then input into the feature extraction module for feature extraction. It is processed into a size of 240×144 through the first network layer, a size of 120×72 through the second network layer, a size of 60×36 through the third network layer, a size of 30×18 through the fourth network layer, and a size of 15×9 through the fifth network layer. Furthermore, the feature data of different sizes obtained are input into the feature pyramid network of the lower half, that is, the second multi-scale feature fusion module of the classification module. According to the order of the arrows in the lower half, the data are fused (add) and upsampled (Deconv) in the channel dimension, and then processed by maximum pooling and input into multiple different output classification heads. The feature data after pooling is set and output as a variety of different scene classification labels, such as die-casting workshop labels, stamping workshop labels, welding workshop labels, painting workshop labels, and assembly workshop labels.

[0101] As a feasible embodiment, the scene classification result and the detection result may be analyzed in the following manner to obtain a determination result.

[0102] For example, the input is represented as a set, including a set of pedestrian target boxes: {B i}, each target box B i Contains four coordinate values ​​(x i1 ,y i1 ,x i2 ,y i2 ), which represent the coordinates of the upper left corner and the lower right corner respectively. Work clothes target frame set: {C j}, each target box C j Contains four coordinate values ​​(x j1 ,y j1 ,x j2 ,y j2 ). Work hat target frame set: {H k}, each target box H k Contains four coordinate values ​​(x k1 ,y k1 ,x k2 ,y k2 ). And set the IOU threshold. The output of the judgment result is also expressed in a set form, such as the judgment result set: {R i}, each result R i Corresponding to the pedestrian target box B i , indicating whether the pedestrian is wearing work clothes and work hats.

[0103] In an example, the judgment result can be obtained in the following way. First, initialize the judgment result set and create a judgment result set {R i}\{R_ i \}{R i}, the initial values ​​are all False, indicating that the work clothes and hats are not worn. On this basis, the IOU function is calculated, a function computeIOU(A,B) for calculating IOU is defined, and the pedestrian target frame set is traversed. Among them, for each pedestrian target frame B i , perform the following steps a to c. a. Traverse the set of work clothes target frames {C j}, calculate B i and each C j b. Traverse the hat target box set {H k}, calculate B i and each H k c. If pedestrian B i B_ i B i If the conditions of wearing work clothes and work hats are met at the same time, the judgment result is updated. Finally, the judgment result set {R i}.

[0104] Figure 7FIG. 4 shows a flow chart of a method for preprocessing labeled image data to obtain preprocessed image data according to an embodiment of the present application. Figure 7 As shown, the process includes the following steps S701 to S703.

[0105] In step S701 , for the image data with annotations, the image size of the image data is scaled proportionally to obtain scaled image data.

[0106] In step S702, random noise addition, mosaic data enhancement, color disturbance processing, and normalization processing are performed on the scaled image data in order to obtain normalized data.

[0107] In step S703, a specified number of negative sample data are obtained for the normalized data, and the negative sample data are sampled with a probability of 0.3 using a data loading method to obtain preprocessed image data.

[0108] It achieves efficient target detection in resource-constrained environments, and improves the accuracy and reliability of target detection and recognition tasks through feature extraction, multi-scale feature fusion, and feature enhancement extraction. It introduces lightweight multi-head attention, which not only ensures system performance, but also improves the model's ability to capture the global association of target object features, helping the model suppress irrelevant background information and focus on the target object area, thereby improving the model's ability to recognize the target object and reducing false detections. It is applicable to a variety of hardware platforms, has versatility and flexibility, and brings new solutions to the field of intelligent security in automotive factories.

[0109] This application is based on the aim of providing efficient detection capabilities for automobile production workshops, which is particularly beneficial for intelligent detection systems that need to operate in resource-constrained environments.

[0110] This application uses steps such as feature extraction, multi-scale feature fusion and feature enhancement extraction. The method can achieve precise target detection and improve the accuracy and reliability of detection.

[0111] This application introduces Mobile MQA, which provides inference acceleration compared to traditional methods. It also improves the effectiveness of search through optimized neural architecture search methods, thereby improving system performance. It can also capture the association between target object features globally, helping the model to better understand the position, shape, and posture information of the detected target in the overall image. This global association capture capability can improve the model's ability to accurately locate and identify detected targets.

[0112] The model involved in this application performs well on a variety of hardware platforms, including mobile CPUs, DSPs, GPUs, and dedicated accelerators, which means that the method can be flexibly applied to different types of devices and systems.

[0113] The Universal Inverted Bottleneck (UIB) search block introduced in this application combines multiple structures, is universal and flexible, can adapt to different scenarios and needs, and brings new solutions to the field of intelligent security in automobile factories.

[0114] The present application also provides an apparatus embodiment that is consistent with the above embodiment, which is used to implement the method steps of the above embodiment. The explanation based on the same name meaning is the same as the above embodiment, and has the same technical effect as the above embodiment, which will not be repeated here.

[0115] like Figure 8 As shown, the present application provides a workshop intelligent detection device 800, including:

[0116] The acquisition unit 801 is used to acquire the image data collected by the cameras pre-configured for multiple different workshops. The processing unit 802 is used to annotate the image data to obtain annotated image data. The annotation includes worker annotation, work clothes annotation, and work hat annotation. It is used to preprocess the annotated image data to obtain preprocessed image data. And it is used to extract features from the preprocessed image data based on the feature extraction module to obtain feature data. The input and output unit 803 is used to input the feature data into the detection module and the classification module respectively to obtain the scene classification result output by the classification module and the detection result output by the detection module. The scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between the workers, work clothes, and work hats. The decision unit 804 is used to obtain the judgment result based on the scene classification result and the detection result. The judgment result is used to identify the consistency between the workers, work clothes, and work hats whose scene categories are allowed to be configured and the detection result.

[0117] In one embodiment, the feature extraction module includes the first network layer, the second network layer, the third network layer, the fourth network layer, and the fifth network layer in the order of data processing, and each network layer satisfies the inverted neck structure respectively. The fourth network layer and the fifth network layer respectively satisfy the general inverted neck structure. Among them, the general inverted neck structure is composed of optional depth convolution, point-by-point convolution, depth convolution, and point-by-point convolution connected in sequence. The first network layer, the second network layer, and the third network layer respectively satisfy one of the structures in the first inverted neck structure to the fifth inverted neck structure. Among them, the first inverted neck structure is composed of separable depth convolution, point-by-point convolution, separable depth convolution, and point-by-point convolution connected in sequence, the second inverted neck structure is composed of point-by-point convolution, separable depth convolution, and point-by-point convolution connected in sequence, the third inverted neck structure is composed of separable depth convolution, point-by-point convolution, and point-by-point convolution connected in sequence, the fourth inverted neck structure is composed of point-by-point convolution and point-by-point convolution connected in sequence, and the fifth inverted neck structure is composed of two-dimensional convolution and point-by-point convolution connected in sequence.

[0118] In one embodiment, the processing unit 802 extracts features from the preprocessed image data in the following manner to obtain feature data: input the preprocessed image data, and output it through the first network layer, the second network layer, the third network layer, the fourth network layer, and the fifth network layer to obtain the first feature data output by the second network layer, the second feature data output by the third network layer, the third feature data output by the fourth network layer, and the fourth feature data output by the fifth network layer. The input-output unit 803 inputs the feature data into the detection module and the classification module respectively in the following manner: input the first feature data, the second feature data, the third feature data, and the fourth feature data into the detection module and the classification module respectively.

[0119] In one embodiment, the input-output unit 803 inputs the feature data into the detection module in the following manner to obtain the detection result output by the detection module: Based on the first multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain the fused feature data. Based on the feature enhancement module of the detection module, the fused feature data is feature enhanced to obtain the feature data after feature enhancement. Based on the two output task heads of the detection module, the target frame identified based on the feature data after feature enhancement is processed and output as the Gaussian heat map of the center point of the target frame and the deviation value of the corner point of the target frame relative to the center point. Among them, each target frame is used to characterize the worker, work clothes, or work hat, and the Gaussian heat map and the deviation value are jointly used as the detection result output by the detection module.

[0120] In one embodiment, the input-output unit 803 inputs the feature data into the classification module in the following manner to obtain the scene classification result output by the classification module: Based on the second multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain fused feature data. Maximum pooling is performed on the fused feature data to obtain pooled feature data. Based on multiple different output classification heads of the classification module, the feature data after pooling is set and output as a variety of different scene classification labels. Among them, the scene classification labels include die-casting workshop labels, stamping workshop labels, welding workshop labels, painting workshop labels and assembly workshop labels, and the scene classification labels are used as scene classification results output by the classification module.

[0121] In one implementation, the universal inverted neck structures of the fourth network layer and the fifth network layer are respectively configured with attention modules, and the attention modules are expressed based on the following formula:

[0122] Mobile_MQA(X)=Concat(attention 1 ,...,attention , )W O ;

[0123]

[0124] Among them, attention1 to attentionn represent n self-attention heads, Concat(attention 1 ,...,attention n )W O represents the channel dimension processing of n self-attention heads, Mobile_MQA(X) represents the result value of the attention module, X is the input of the Mobile_MQA module, and W Q , W K , W V , W O are the weight matrices for query, key, value, and output transformation, respectively. SR is the space reduction function. k is the scale scaling factor, and j is the attention head identifier ranging from 1 to n.

[0125] In one embodiment, the processing unit 802 preprocesses the labeled image data in the following manner to obtain preprocessed image data: for the labeled image data, the image size of the image data is proportionally scaled to obtain scaled image data. In order of precedence, random noise is added to the scaled image data, mosaic data is enhanced, color perturbation is processed, and normalization is performed to obtain normalized data. For the normalized data, a specified number of negative sample data are obtained, and the negative sample data is sampled with a probability of 0.3 using a data loading method to obtain preprocessed image data.

[0126] In one implementation, the decision unit 804 is further configured to: trigger execution of a workshop warning in response to inconsistency between the workers, work clothes, and work hats that are allowed to be configured in the scene category identified by the determination result and the detection result.

[0127] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0128] In some embodiments, the present application provides an electronic device, including a memory and a processor. The memory is used to store a computer program, and the processor is used to execute any of the methods described above when executing the computer program stored in the memory.

[0129] In some embodiments, the present application provides a computer program product, wherein a computer program is stored in a readable storage medium, and when the computer program is executed by a processor, any of the methods described above is performed.

[0130] Although operations are described in a particular order in the drawings, this should not be understood as requiring that the operations be performed in the particular order shown or in serial order, or that all shown operations be performed to achieve desired results. In certain circumstances, multitasking and parallel processing may be advantageous.

[0131] The methods, devices, equipment and media of the present application can be implemented using standard programming techniques, using rule-based logic or other logic to implement various method steps. It should also be noted that the words "device" and "module" used herein and in the claims are intended to include implementations using one or more lines of software code and / or hardware implementations and / or devices for receiving input.

[0132] Any steps, operations or procedures described herein may be performed or implemented using one or more hardware or software modules, either alone or in combination with other devices. In one embodiment, the software module is implemented using a computer program product including a computer-readable medium containing computer program code, which can be executed by a computer processor to perform any or all of the described steps, operations or procedures.

[0133] The foregoing description of the implementation of the present application has been given for the purpose of illustration and description. The foregoing description is not intended to be exhaustive nor to limit the present application to the exact form applied for, and various variations and modifications may exist according to the above teachings or may be obtained from the practice of the present application. These embodiments are selected and described in order to illustrate the principles of the present application and its practical application, so that those skilled in the art can utilize the present application in various embodiments and various modifications suitable for the specific purpose contemplated.

[0134] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0135] It is to be understood that in this application, "plurality" refers to two or more than two, and other quantifiers are similar. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The singular forms "a", "the" and "the" are also intended to include plural forms, unless the context clearly indicates other meanings.

[0136] It is further understood that the terms "first", "second", etc. are used to describe various information, but such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other, and do not indicate a specific order or degree of importance. In fact, the expressions "first", "second", etc. can be used interchangeably. For example, without departing from the scope of the present application, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.

[0137] It can be further understood that, unless otherwise specified, “connection” includes a direct connection without other components between the two, and also includes an indirect connection with other components between the two.

[0138] It is further understood that, although the operations are described in a specific order in the drawings in the embodiments of the present application, it should not be understood as requiring the operations to be performed in the specific order or serial order shown, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.

[0139] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions applied for herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that the present application does not apply for. The specification and embodiments are only considered as exemplary, and the true scope and spirit of the present application are indicated by the following scope of rights.

[0140] It should be understood that the present application is not limited to the precise structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the scope of the appended claims.

Claims

1. A workshop intelligent detection method, characterized in that: include: For cameras pre-configured in multiple different workshops, image data collected by the cameras are obtained; Performing data annotation on the image data to obtain annotated image data; wherein the annotation includes worker annotation, work uniform annotation, and work cap annotation; Preprocessing the labeled image data to obtain preprocessed image data; Based on the feature extraction module, feature extraction is performed on the preprocessed image data to obtain feature data; The feature data are respectively input into the detection module and the classification module to obtain the scene classification result output by the classification module and the detection result output by the detection module; wherein the scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between the worker, the work clothes, and the work hat; A determination result is obtained based on the scene classification result and the detection result; wherein the determination result is used to identify the consistency between the workers, work clothes, and work hats that are allowed to be configured in the scene category and the detection result.

2. The method according to claim 1, characterized in that The feature extraction module includes a first network layer, a second network layer, a third network layer, a fourth network layer, and a fifth network layer in sequence according to the data processing order, and each of the network layers satisfies the inverted neck structure respectively; The fourth network layer and the fifth network layer respectively satisfy the general inverted neck structure; wherein the general inverted neck structure is composed of optional depthwise convolution, pointwise convolution, depthwise convolution, and pointwise convolution connected in sequence; The first network layer, the second network layer, and the third network layer respectively satisfy one of the first inverted neck structures to the fifth inverted neck structures; wherein the first inverted neck structure is composed of separable depthwise convolution, point-by-point convolution, separable depthwise convolution, and point-by-point convolution connected in sequence, the second inverted neck structure is composed of point-by-point convolution, separable depthwise convolution, and point-by-point convolution connected in sequence, the third inverted neck structure is composed of separable depthwise convolution, point-by-point convolution, and point-by-point convolution connected in sequence, the fourth inverted neck structure is composed of point-by-point convolution and point-by-point convolution connected in sequence, and the fifth inverted neck structure is composed of two-dimensional convolution and point-by-point convolution connected in sequence.

3. The method according to claim 2, characterized in that The step of extracting features from the preprocessed image data to obtain feature data includes: Input the preprocessed image data, and output it through the first network layer, the second network layer, the third network layer, the fourth network layer, and the fifth network layer, to obtain the first feature data output by the second network layer, the second feature data output by the third network layer, the third feature data output by the fourth network layer, and the fourth feature data output by the fifth network layer; The step of inputting the feature data into the detection module and the classification module respectively comprises: The first feature data, the second feature data, the third feature data, and the fourth feature data are input into the detection module and the classification module respectively.

4. The method according to claim 3, characterized in that The characteristic data is input into the detection module in the following manner to obtain the detection result output by the detection module: Based on the first multi-scale feature fusion module of the detection module, multi-scale feature fusion is performed in the order from the fourth feature data to the first feature data to obtain fused feature data; Based on the feature enhancement module of the detection module, feature enhancement is performed on the fused feature data to obtain feature enhanced feature data; Based on the two output task heads of the detection module, the target frame identified based on the feature data after the feature enhancement is processed and output as a Gaussian heat map of the center point of the target frame and a deviation value of the corner point of the target frame relative to the center point; Wherein, each of the target frames is used to characterize a worker, work clothes, or a work hat, and the Gaussian heat map and the deviation value are used together as the detection result output by the detection module.

5. The method according to claim 3, characterized in that: The feature data is input into the classification module in the following manner to obtain the scene classification result output by the classification module: A second multi-scale feature fusion module based on the detection module performs multi-scale feature fusion in the order from the fourth feature data to the first feature data to obtain fused feature data; Performing maximum pooling processing on the fused feature data to obtain feature data after pooling processing; Based on the multiple different output classification heads of the classification module, setting and outputting multiple different scene classification labels for the feature data after pooling processing; Among them, the scene classification labels include a die-casting workshop label, a stamping workshop label, a welding workshop label, a painting workshop label and an assembly workshop label, and the scene classification labels are used as scene classification results output by the classification module.

6. The method according to any one of claims 3 to 5, characterized in that The universal inverted neck structures of the fourth network layer and the fifth network layer are respectively configured with attention modules, and the attention modules are expressed based on the following formula: Mobile_MQA(X)=Concat(attention1,...,attention n )W O ; Among them, attention1 to attention n Represents n self-attention heads, Concat(attention1,...,attention n )W O represents the channel dimension processing of n self-attention heads, Mobile_MQA(X) represents the result value of the attention module, X is the input of the Mobile_MQA module, and W Q , W K , W V , W O are the weight matrices for query, key, value, and output transformation, respectively. SR is the space reduction function. k is the scale scaling factor, and j is the attention head identifier ranging from 1 to n.

7. The method according to claim 1, characterized in that Preprocessing the labeled image data to obtain preprocessed image data includes: For the image data with the annotation, the image size of the image data is proportionally scaled to obtain scaled image data; In order, the scaled image data is subjected to random noise addition, mosaic data enhancement, color disturbance processing, and normalization processing to obtain normalized data; For the normalized data, a specified number of negative sample data are obtained, and the negative sample data are sampled with a probability of 0.3 using a data loading method to obtain preprocessed image data.

8. A workshop intelligent detection device, characterized in that: include: An acquisition unit, used for acquiring image data collected by cameras pre-configured in multiple different workshops; a processing unit, configured to perform data annotation on the image data to obtain annotated image data; wherein the annotation includes worker annotation, work uniform annotation, and work cap annotation; to preprocess the annotated image data to obtain preprocessed image data; and to perform feature extraction on the preprocessed image data based on a feature extraction module to obtain feature data; An input-output unit, used to input the feature data into the detection module and the classification module respectively, to obtain the scene classification result output by the classification module and the detection result output by the detection module; wherein the scene classification result is used to identify the scene category, and the detection result is used to identify the consistency between the worker, the work clothes, and the work hat; A decision unit is used to obtain a determination result based on the scene classification result and the detection result; wherein the determination result is used to identify the consistency between the workers, work clothes, and work hats that are allowed to be configured in the scene category and the detection result.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and used to run on the processor, characterized in that: When the processor executes the computer program, the workshop intelligent detection method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the workshop intelligent detection method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Helmet wearing detection method and device, camera, and server

    CN106372662A

  • Safety helmet wearing detection method and device based on single-model prediction

    CN111723786A

  • Emergency power-off method and system for new energy vehicle

    CN116001579A

  • Image processing method and image processing apparatus

    WO2023155032A1