Identification detection method and system for workpiece to be detected, and readable storage medium

By controlling the workpiece to move along the trajectory in the production workshop and obtaining the video stream in real time, combined with the detection neural network and convolutional recurrent neural network model, the problem of high recognition error rate in ladle number recognition in complex environments is solved, and higher recognition is achieved. Accuracy and applicability.

CN118570690APending Publication Date: 2024-08-30北京瓦特曼智能科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310176057.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

In the complex environment of the production workshop, the recognition of ladle numbers due to changes in illumination and high illumination intensity results in a high recognition error rate and cannot meet the requirements.

Method used

By controlling the movement of the workpiece to be detected along the preset trajectory, the video stream is acquired in real time, and the detection neural network model is used for feature extraction and text recognition. It combines the spatial attention module and the convolutional recurrent neural network model to count multi-frame recognition results to improve accuracy. .

Benefits of technology

It improves the accuracy and applicability of identification, reduces the impact of ambient light, and enhances the reliability and versatility of identification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570690A
    Figure CN118570690A
Patent Text Reader

Abstract

The embodiment of the invention provides an identification and detection method and system for a to-be-detected workpiece and a readable storage medium. The identification detection method comprises the following steps: controlling a to-be-detected workpiece to move along a preset track, and obtaining a video stream at a preset position; determining whether a to-be-detected text image exists in the video stream; under the condition that the to-be-detected text image exists in the video stream, determining whether the to-be-detected text image is in a preset view area or not; performing text recognition on the to-be-detected text image and outputting a result; and counting a plurality of output results in the region, and taking the output result with the most sequence as a final result. Compared with current fixed-point framing recognition, the method has the advantages of higher precision, better applicability to the environment and high universality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of automated processing, and in particular relates to an identification and detection method, system and readable storage medium for a workpiece to be detected. Background Art

[0002] For today's smart factories, it is particularly important to identify product labels or text, mainly for operations such as classification, counting, and defect statistics of workpieces, so as to replace manual labor, improve efficiency and operational stability.

[0003] In the past, image acquisition was performed by grabbing the text to be recognized at a fixed position for recognition. However, in some application scenarios with complex production workshop environments, the lighting conditions on site are changeable. For example, in the field of ladle number recognition, the lighting conditions are different during the day and at night. In addition, the ladle cover must be opened during the production process. Once the ladle cover is opened, the high temperature inside will directly cause the camera to take a red picture, and the ladle number on the ladle cannot be photographed clearly. In addition, due to the high light intensity brought by the ladle itself, it can no longer be corrected through external adjustment.

[0004] Therefore, due to the above situation, the recognition error rate will be extremely high and cannot meet the current requirements. Summary of the invention

[0005] In order to solve the technical problems raised in the prior art, the present invention provides a method and system for identifying and detecting a workpiece to be detected, and a readable storage medium.

[0006] In a first aspect of the present application, a method for identifying and detecting a workpiece to be detected is provided, the method comprising: controlling the workpiece to be detected to move along a preset trajectory and acquiring a video stream at a preset position; determining whether there is a text image to be detected in the video stream; if the text image to be detected exists in the video stream, determining whether the text image to be detected is within a preset field of view; performing text recognition on the text image to be detected and outputting the result; and counting multiple output results within the field of view, taking the output result with the highest number of times as the final result.

[0007] In an optional scheme of the present application, determining whether there is a text image to be detected in the video stream includes: acquiring multiple frames of target images in the video stream; performing feature extraction and sampling fusion on the target images through a preset detection neural network model and connecting them to obtain a feature image; acquiring a probability map and a threshold map based on the feature image; approximately binarizing the probability map and the threshold map to obtain a detection image, and determining whether there is a text image to be detected through the detection image.

[0008] In an optional scheme of the present application, the feature extraction and sampling fusion of the target image and the connection to obtain the feature image through a preset detection neural network model include: adding a spatial attention module to the neural network model; processing features of different scales through the spatial attention module to obtain the best fused feature image.

[0009] In an optional solution of the present application, the acquiring of a probability map and a threshold map according to a feature image includes:

[0010] The following formula is used to construct the offset D of the probability map:

[0011]

[0012] Among them, r represents the shrinkage rate of the feature image, A represents the area of ​​the text contour in the feature image, L represents the perimeter of the annotated text in the feature image, and scale represents the length-to-width ratio of the text in the feature image.

[0013] In an optional scheme of the present application, obtaining a probability map and a threshold map based on a feature image includes: expanding the polygon using the offset D obtained during the calculation of the probability map; calculating the normalized distance from the pixels between the probability map and the threshold map to the nearest edge of the original frame; and scaling the normalized distance to obtain the threshold map.

[0014] In an optional solution of the present application, the approximate binarization of the probability map and the threshold map to obtain the detection image includes: using the following formula to approximate binarization of the probability map and the threshold map to obtain the detection image:

[0015]

[0016] Where P is the probability map, T is the threshold map, and k is the gain factor.

[0017] In an optional scheme of the present application, performing text recognition when the text image to be detected is within the field of view includes: adopting a convolutional recurrent neural network model, wherein the convolutional recurrent neural network model includes a convolutional layer, a recurrent layer and a transcription layer; using the convolutional layer to extract features from the feature image to obtain a feature sequence; using the recurrent layer to predict the feature sequence and output a predicted label distribution; and using the transcription layer loss to convert the predicted label obtained from the recurrent layer into a final label sequence.

[0018] In an optional solution of the present application, a weighted attention mechanism is added to the recurrent layer to learn each feature vector in the sequence to obtain a prediction result; the prediction result is fed back to the transcription layer.

[0019] In the second aspect provided by the present application, there is also provided an identification and detection system for an inspection workpiece, the detection system comprising: a moving module, used to control the inspection workpiece to be inspected to move along a preset trajectory, an image acquisition module, used to acquire a video stream at a preset position; a detection module, used to determine whether there is a text image to be inspected in the video stream, and if there is a text image to be inspected in the video stream, determine whether the text image to be inspected is in a preset field of view area; a recognition module, used to perform text recognition on the text image to be inspected and output the result; a statistical module, used to count multiple output results in a statistical area, and take the output result with the highest order as the final result.

[0020] Finally, the present application also provides a computer-readable storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the above detection method.

[0021] Beneficial effects:

[0022] The embodiment of the present invention provides an identification and detection method for a workpiece to be detected. In the identification and detection method, the workpiece to be detected is set to move along a preset trajectory, and a video stream is obtained in real time at a preset position by a camera. When the text to be detected is detected in the video stream, it is determined whether the text to be detected exists in the field of view of the camera. The text to be detected enters the field of view as a start condition, and leaves the field of view as an end condition. Text recognition is performed in the field of view, and the recognition results of each frame are counted. The output result with the most counts is used as the final result. The final result is displayed in the front section and stored in the database. Compared with the current fixed-point framing recognition, this method has higher accuracy, better applicability to the environment, and high universality.

[0023] Other features and advantages of the embodiments of the present invention will be described in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0025] Figure 1 A flow chart of a method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention;

[0026] Figure 2 The exemplary demonstration is a structural diagram for realizing the identification and detection method;

[0027] Figure 3 A control logic diagram of the identification and detection method provided by an embodiment of the present invention;

[0028] Figure 4 A specific flow chart of step S2 in the method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention;

[0029] Figure 5 Corresponding to the embodiment of the present invention Figure 4 Topological diagram of

[0030] Figure 6 A flowchart of step S22 in the method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention;

[0031] Figure 7 A flowchart of step S23 in the method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention;

[0032] Figure 8 A flow chart of a method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention;

[0033] Fig. 9 An example diagram of the structural framework of a convolutional recurrent neural network model provided in an embodiment of the present invention;

[0034] Fig.10 The improved convolutional recurrent neural network model architecture provided by the embodiment of the present invention;

[0035] Fig.11 The improved convolutional recurrent neural network model architecture provided by the embodiment of the present invention;

[0036] Fig.12 This is a connection topology diagram of a recognition and detection system for a workpiece to be detected provided by an embodiment of the present invention.

[0037] Reference numerals

[0038] 100. Identification and detection system; 101. Mobile module;

[0039] 102. Image acquisition module; 103. Detection module;

[0040] 104. Identification module; 105. Statistics module. DETAILED DESCRIPTION

[0041] In order to make the above and other features and advantages of the present invention more clear, the present invention is further described below in conjunction with the accompanying drawings. It should be understood that the specific embodiments given herein are for the purpose of explaining to those skilled in the art and are only exemplary and not restrictive.

[0042] In order to solve the technical problems existing in the prior art, namely, the current detection of industrial ladle numbers is performed only by photographing at a fixed position, which is easily affected by ambient light and leads to inaccurate recognition. Therefore, an identification and detection method for a workpiece to be detected is provided in an embodiment of the present invention, aiming to solve the above technical problems.

[0043] [Identification and detection method for workpiece to be detected]

[0044] See also Figure 1 to Figure 3 , Figure 1 A flow chart of a method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention; Figure 2 The exemplary demonstration is a structural diagram for realizing the identification and detection method;

[0045] Figure 3 A control logic diagram of the identification and detection method provided by an embodiment of the present invention. In a general inventive concept, the identification and detection method includes:

[0046] Step S1, controlling the workpiece to be inspected to move along a preset trajectory and acquiring a video stream at a preset position;

[0047] Step S2: determining whether there is a text image to be detected in the video stream;

[0048] Step S3: when there is a text image to be detected in the video stream, determining whether the text image to be detected is within a preset field of view;

[0049] Step S4, performing text recognition on the text image to be detected and outputting the result;

[0050] Step S5: Count multiple output results within the field of view, and take the output result with the highest order as the final result.

[0051] For easier understanding, please refer to Figure 2 and Figure 3 When executing the above method, the steel coil is placed on a moving guide rail, and the steel coil moves along a preset direction according to the process route. The video acquisition device (camera) is set at a preset position to record a certain area. When the camera moves along the set trajectory with the steel coil, the corresponding video stream is acquired within the field of view preset by the camera. Multiple frames of text images to be detected are acquired from the video stream, and text recognition is performed on the text images to be detected and multiple groups of recognition results are output, and then the output result with the highest order is taken as the final result of correct recognition.

[0052] The movement mode of the steel coil, the position of the camera, and the setting area of ​​the text image to be detected in step S1 can be adaptively configured according to the specific installation environment and the specifications of the steel coil.

[0053] Steps S2 to S3 are the text detection stage in the recognition detection method, and steps S4 to S5 are the text recognition stage in the recognition detection method. Figure 2 During the movement of the steel coil in the camera, the condition for executing text recognition is that the text image to be detected appears in the camera's preset field of view, and the text recognition ends when the text image to be detected leaves the camera's preset field of view. The output results of each frame in the field of view are counted, and the output result with the largest number of orders is taken as the final result.

[0054] The text recognition stage and the text detection stage are implemented based on two neural network models. Those skilled in the art should understand that the models are improved to adapt to the above steps. Please refer to the following text for details.

[0055] Through steps S1 to S5 provided by the above general inventive concept, multiple frames of images of the workpiece to be detected are obtained through the video stream, and detection and recognition are performed from different directions, thereby avoiding the influence of ambient light to the greatest extent possible and improving the reliability of recognition.

[0056]

Text Detection Phase

[0057] See also Figure 4 and Figure 5 , Figure 4 A specific flow chart of step S2 in the method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention; Figure 5 Corresponding to the embodiment of the present invention Figure 4 The topological diagram of the video stream; in step S2, determining whether there is a text image to be detected in the video stream includes:

[0058] Step S21, obtaining multiple frames of target images in the video stream;

[0059] Step S22, extracting features and sampling fusion of the target image through a preset detection neural network model and connecting them to obtain a feature image;

[0060] Step S23, obtaining a probability map and a threshold map according to the feature image;

[0061] Step S24, approximately binarize the probability map and the threshold map to obtain a detection image, and determine whether there is a text image to be detected by performing signal acquisition on the detection image.

[0062] It can be understood that in step S21, it is set to read the video frame by frame, and the image of each frame in the video stream is saved.

[0063] In step S2, a dbnet neural network model is optionally used to extract features of the target image, sample and fuse, and connect to obtain a feature image. That is, the feature image of the target image is first output through the network model, and then steps S23 to S24 are performed to obtain the text segmentation result (probability map, each pixel is the probability of whether it is a positive sample) and the threshold map, and some aggregation operations such as connected domains are used to convert the pixel-level results into a detection image.

[0064] That is, during the training process, after the target image is input into the dbnet neural network model, the feature image is obtained after feature extraction, upsampling fusion and concat operation, and then the feature image is used to predict the probability map, and the feature image is used to predict the threshold map. The approximate binary value is calculated through the probability map and the threshold map, that is, the detection image mentioned above. The inference process text box can be obtained through the approximate binary map or the probability map.

[0065] See also Figure 6 , Figure 6 The flowchart of step S22 in the method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention; in step S22, the feature extraction and sampling fusion of the target image and the connection to obtain the feature image by using a preset detection neural network model include:

[0066] Step S221, adding a spatial attention module to the neural network model;

[0067] Step S222: Process features of different scales through a spatial attention module to obtain an optimally fused feature image.

[0068] It can be understood that the ASF module is added to the network structure of the dbnet neural network model. Features of different scales can be processed by the ASF module to obtain the best fusion features. By introducing the spatial attention mechanism, the fused features are more robust.

[0069] In a further solution of the embodiment of the present invention, obtaining the probability map and the threshold map according to the feature image in step S23 includes:

[0070] The method for obtaining the probability map label Gs (i.e., the probability map) uses the Vatti clipping algorithm, which is often used to shrink polygons. The shrinkage offset D can be calculated using the perimeter L and the area A. For example, the offset D of the probability map is constructed using the following formula:

[0071]

[0072] Among them, r represents the shrinkage rate of the feature image (the appropriate value is set according to different data sets), A represents the area of ​​the text contour in the feature image, L represents the perimeter of the annotated text in the feature image, and scale represents the length-to-width ratio of the text in the feature image.

[0073] It can be understood that improvements are made based on the original dbnet neural network model and the aspect ratio of the text is introduced to solve the problem that after the prediction results of DBnet in the prior art are reversely expanded, the results of text restoration for texts of different lengths are quite different from the actual text area, resulting in inaccurate final recognition.

[0074] It is understandable that when applying the dbnet neural network model, since the steel coil is constantly moving relative to the camera, the selection box may select additional background boxes, causing interference to recognition. Therefore, the text aspect ratio of the feature image is introduced to increase the reliability of recognition.

[0075] Furthermore, in the further improvement of the dbnet neural network model, conv3, conv4, and conv5 are modified to variable convolutions to ensure a sufficiently large receptive field at a time. In addition, the DB module is removed in the inference stage to improve the inference time.

[0076] See also Figure 7 , Figure 7 The flowchart of step S23 in the identification and detection method for the workpiece to be detected provided by the embodiment of the present invention; the step S23 acquires the probability map and the threshold map according to the feature image, including:

[0077] Step S231, the offset D obtained in the calculation process of the probability map is used to expand the polygon;

[0078] Step S232, calculating the normalized distance between the pixel in the probability map and the threshold map and the nearest edge of the original frame;

[0079] Step S233: scaling the normalized distance to obtain a threshold map.

[0080] It can be understood that, according to the above, steps S231 to S233 demonstrate a method suitable for obtaining a threshold map label Gd (i.e., a threshold map) in an embodiment of the present invention; first, the offset D obtained in the calculation process of the probability map label Gs is used to expand the polygon, and then the normalized distance from the pixel between the threshold map label Gd and the probability map label Gs to the nearest edge of the original box is calculated, and finally the value is scaled to obtain the final threshold map label Gd.

[0081] Therefore, further approximately binarizing the probability map and the threshold map to obtain the detection image includes: using the following formula to approximately binarize the probability map and the threshold map to obtain the detection image:

[0082]

[0083] Where P is the probability map, T is the threshold map, and k is the gain factor.

[0084] Optionally, k takes the value 50.

[0085]

Text recognition stage

[0086] See also Figure 8-Figure 9 , Figure 8 A flow chart of a method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention; Fig. 9 This is an example diagram of the structural framework of the convolutional recurrent neural network model provided in an embodiment of the present invention.

[0087] Wherein, in step S4, performing text recognition when the text image to be detected is within the field of view includes:

[0088] Step S41, using a convolutional recurrent neural network model, wherein the convolutional recurrent neural network model includes a convolutional layer, a recurrent layer and a transcription layer;

[0089] Step S42: Use the convolution layer to extract features from the feature image to obtain a feature sequence, use the circulation layer to predict the feature sequence and output the predicted label distribution, and use the transcription layer loss to convert the predicted label obtained from the circulation layer into the final label sequence.

[0090] It can be understood that the convolutional recurrent neural network model is used to solve image-based sequence recognition problems, especially scene text recognition problems. It is mainly used to recognize text sequences of indefinite length end-to-end, without cutting individual characters first, but converting text recognition into a time-dependent sequence learning problem, that is, image-based sequence recognition. In an embodiment of the present invention, the convolutional recurrent neural network model is divided into the following three parts:

[0091] The convolution layer uses deep CNN to extract features from the input feature image to obtain a feature sequence. The recurrent layer uses a bidirectional RNN to predict the feature sequence, learn each feature vector in the sequence, and output the predicted label (true value) distribution. The transcription layer uses CTC loss to convert a series of label distributions obtained from the recurrent layer into a final label sequence.

[0092] Based on the above convolutional recurrent neural network model, the following improvements are provided to adapt to this solution:

[0093] See also Fig.10 and Fig.11 , Fig.10A flow chart of a method for identifying and detecting a workpiece to be detected provided by an embodiment of the present invention; wherein in step S4, performing text recognition when the text image to be detected is within the field of view includes: Fig.11 The improved convolutional recurrent neural network model architecture provided by the embodiment of the present invention.

[0094] Step S43: using asymmetric convolution in the convolution layer and adding a weighted attention mechanism in the recurrent layer to learn each feature vector in the sequence to obtain a prediction result;

[0095] Step S44: Feedback the prediction result to the transcription layer.

[0096] It can be understood that the convolution layer of the original convolutional recurrent neural network model is based on MobileNetV3 as feature extraction, that is, DCNN (Dynamic Convolution Neural Network) is used as the convolution layer. Since DCNN requires the input feature image to be scaled to a fixed size to meet the fixed input dimension, it is not suitable for the class sequence object in the present application scheme, because the length of the sequence object changes greatly during the movement of the steel coil, which makes the local details of the text easy to be lost. In text recognition, the recurrent layer decodes the feature sequence in the convolution layer and outputs the final result. If a fixed length vector is used for encoding, it will cause serious overfitting. Due to the fixed length of the input, the decoder will eventually be limited in the decoding process. Therefore, an attention mechanism is added to address this problem, and a weighted attention mechanism is used to obtain a context vector as the input of a bidirectional LSTM (long short-term memory, a unit of the recurrent layer in a convolutional recurrent neural network model).

[0097] In addition, compared with fixed-point ordinary image recognition, the image width of the text recognition input in the ladle number of the steel coil is generally much larger than the height value, but the receptive field of the ordinary convolution has the same height and width, which may not be able to extract text features well, so asymmetric convolution is introduced. Adding an asymmetric convolution kernel to the convolution layer for convolution operation is equivalent to increasing the receptive field of the horizontal text area of ​​the image, so that the network enhances the feature extraction of the horizontal text area.

[0098] The context vector output by each attention module is input into the bidirectional LSTM, and the prediction result is fed back to the transcription layer to finally obtain a highly accurate recognition result.

[0099] In summary, the recognition and detection method for the workpiece to be detected provided by the embodiment of the present invention sets the workpiece to be detected to move along a preset trajectory, and obtains a video stream in real time at a preset position through a camera. When the text to be detected is detected in the video stream, it is determined whether the text to be detected exists in the field of view of the camera, and the text to be detected enters the field of view as the starting condition, and leaves the field of view as the ending condition. Text recognition is performed in the field of view, and the recognition results of each frame are counted at the same time, and the output result with the most counts is taken as the final result. The final result is displayed in the front section and stored in the database. Compared with the current fixed-point framing recognition, this method has higher accuracy, better applicability to the environment and high universality.

[0100]

Identification and detection system

[0101] See also Fig.12 , Fig.12 This is a connection topology diagram of a recognition and detection system 100 for a workpiece to be detected provided by an embodiment of the present invention.

[0102] Embodiment 2 of the present invention provides a recognition and detection system 100 for a workpiece to be detected, comprising:

[0103] The moving module 101 is used to control the workpiece to be inspected to move along a preset trajectory.

[0104] An image acquisition module 102 acquires a video stream at a preset position;

[0105] The detection module 103 is used to determine whether there is a text image to be detected in the video stream, and if there is a text image to be detected in the video stream, determine whether the text image to be detected is in a preset field of view;

[0106] The recognition module 104 is used to perform text recognition on the text image to be detected and output the result;

[0107] The statistical module 105 is used to count multiple output results in the area and take the output result with the highest order as the final result.

[0108] It can be understood that the detection system encapsulates the recognition detection method in the above method embodiment in various models in the form of compiled code to perform the above functions. The detection system needs to utilize the models in the specific steps mentioned in the above method embodiment, which will not be repeated here.

[0109] Furthermore, those skilled in the art should understand that if all or part of the sub-modules involved in the various products of the identification and detection system 100 provided in the embodiment of the present invention are combined or replaced by fusion, simple change, mutual conversion, etc., such as the components are placed and moved; or the products they constitute are set as one piece; or are designed to be detachable; all the combined components can form equipment / devices / systems with specific functions, using such equipment / devices / systems to replace the corresponding components of the present invention also falls within the protection scope of the present invention.

[0110] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0111] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for identifying and detecting a workpiece to be detected, characterized in that: The identification and detection method comprises: Control the workpiece to be inspected to move along a preset trajectory and obtain a video stream at a preset position; Determining whether there is a text image to be detected in the video stream; In the case where the text image to be detected exists in the video stream, determining whether the text image to be detected is within a preset field of view; Performing text recognition on the text image to be detected and outputting the result; Multiple output results within the field of view are counted, and the output result with the highest number of orders is taken as the final result.

2. The identification and detection method according to claim 1, characterized in that: Determining whether there is a text image to be detected in the video stream includes: Get multiple frames of target images in the video stream; The target image is subjected to feature extraction and sampling fusion and connected through a preset detection neural network model to obtain a feature image; Obtain a probability map and a threshold map according to the feature image; The probability map and the threshold map are approximately binarized to obtain a detection image, and whether there is a text image to be detected is determined through the detection image.

3. The identification and detection method according to claim 2, characterized in that: The method of extracting features and sampling and fusing the target image through a preset detection neural network model and then connecting the target image to obtain a feature image comprises: Adding a spatial attention module to the neural network model; Features of different scales are processed through the spatial attention module to obtain the best fused feature image.

4. The identification and detection method according to claim 2, characterized in that: The acquiring of the probability map and the threshold map according to the feature image comprises: The following formula is used to construct the offset D of the probability map: Among them, r represents the shrinkage rate of the feature image, A represents the area of ​​the text contour in the feature image, L represents the perimeter of the annotated text in the feature image, and scale represents the length-to-width ratio of the text in the feature image.

5. The identification and detection method according to claim 4, characterized in that: The acquiring of the probability map and the threshold map according to the feature image comprises: The offset D obtained during the calculation of the probability map is used to expand the polygon; Calculate the normalized distance between the pixel in the probability map and the threshold map and the nearest edge of the original box; The normalized distance is scaled to obtain a threshold map.

6. The identification and detection method according to claim 2, characterized in that: The approximate binarization of the probability map and the threshold map to obtain the detection image comprises: The following formula is used to obtain the detection image by approximately binarizing the probability map and the threshold map: Where P is the probability map, T is the threshold map, and k is the gain factor.

7. The identification and detection method according to claim 1, characterized in that: Wherein, performing text recognition when the to-be-detected text image is within the field of view includes: A convolutional recurrent neural network model is used, wherein the convolutional recurrent neural network model includes a convolutional layer, a recurrent layer and a transcription layer; Use the convolution layer to extract features from the feature image to obtain a feature sequence; Use a recurrent layer to predict the feature sequence and output the predicted label distribution; The predicted labels obtained from the recurrent layer are converted into final label sequences using the transcription layer loss.

8. The identification and detection method according to claim 7, characterized in that: A weighted attention mechanism is added to the recurrent layer to learn each feature vector in the sequence to obtain a prediction result; The prediction result is fed back to the transcription layer.

9. A recognition and detection system for a workpiece to be detected, characterized in that: The detection system comprises: The moving module is used to control the workpiece to be inspected to move along a preset trajectory. An image acquisition module acquires a video stream at a preset position; A detection module, used to determine whether there is a text image to be detected in the video stream, and if there is the text image to be detected in the video stream, determine whether the text image to be detected is in a preset field of view; A recognition module, used for performing text recognition on the text image to be detected and outputting the result; The statistical module is used to count the multiple output results in the area and take the output result with the highest order as the final result.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and one or more of the programs can be executed by one or more processors to implement the identification and detection method according to any one of claims 1 to 8.