A train fusion positioning method and device based on machine vision

Through machine vision technology, target detection and text recognition models combined with Kalman fusion algorithms solve the problems of low train positioning accuracy and high cost, achieve accurate and reliable positioning in complex environments, and reduce equipment dependence.

CN117237448BActive Publication Date: 2024-10-18BEIJING JIAOTONG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202311008994.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2024-10-18
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

Existing train positioning technology has high costs and low positioning accuracy. It cannot achieve real-time, continuous, and accurate positioning in areas such as dense forests, mountainous areas, and tunnels. It also relies heavily on trackside equipment and satellite navigation systems, resulting in insufficient positioning reliability.

Method used

Using a fusion positioning method based on machine vision, through pre-trained target detection model and text recognition model, real-time acquisition of images in front of the train, detection and recognition of target type and number information, combined with geographical location information, and use of Kalman fusion algorithm for state prediction. Realize the absolute position positioning of the train.

Benefits of technology

It reduces dependence on trackside equipment and satellite navigation systems, improves positioning accuracy and reliability, reduces equipment costs and manpower, and can provide accurate absolute position information in areas with weak signals to achieve real-time, continuous, and reliable train tracking. Precise positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117237448B_ABST
    Figure CN117237448B_ABST
Patent Text Reader

Abstract

The present invention relates to a train fusion positioning method and device based on machine vision, the method comprising: acquiring in real time a current frame image of a train running ahead, and using a pre-acquired trained target detection model to detect the current frame image to obtain detection result information; training an established target detection model through a pre-established first training data set to obtain a trained target detection model; if the detection result information includes a detection target in the current frame image and a target type corresponding to the detection target, using a pre-acquired trained text recognition model to identify the detection target in the current frame image to obtain number information in the detection target; using pre-stored geographical location information corresponding to the target type corresponding to the detection target in the current frame image and the number information in the detection target as the absolute position of the train.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of train positioning, and in particular to a train fusion positioning method and device based on machine vision. Background Art

[0002] Train positioning information is an important parameter to ensure the automatic control and operation safety of trains. Accurate train position information is the key to train speed curve calculation and speed automatic control. Train positioning information can usually be obtained through a combination of relative positioning and absolute positioning solutions. At present, the widely used absolute positioning solutions for trains include track circuits, transponders and satellite navigation systems. The above positioning solutions are simple to implement and have high security. Train positioning can be achieved without major changes to the current equipment, but the following shortcomings cannot be avoided: the positioning accuracy of trackside equipment such as track circuits and transponders is affected by the density of equipment laying. The improvement of its accuracy is often at the expense of cost, which requires a lot of manpower and material resources; because the trackside equipment is exposed to the open air environment for a long time and the train operation environment and conditions are relatively complex, the trackside equipment is very likely to fail, resulting in the inability to transmit the change information to the train in real time, resulting in a decrease in positioning accuracy; the accuracy of satellite navigation positioning is greatly reduced in areas with many surrounding obstructions such as dense forests, mountainous areas, stations and tunnels, and even cannot be positioned, and the navigation system is sensitive to satellite failures. The failure of a satellite will cause the performance of the navigation system to deteriorate seriously.

[0003] In view of the above shortcomings, a low-cost, simple combined positioning solution is urgently needed to improve the positioning accuracy and reliability of the train, and further improve the train operation efficiency while ensuring the safe operation of the train. Summary of the invention

[0004] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a train fusion positioning method and device based on machine vision, which solves the technical problems of high cost and low positioning accuracy in the existing train positioning technology.

[0005] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0006] In a first aspect, an embodiment of the present invention provides a train fusion positioning method based on machine vision, comprising:

[0007] S1, acquiring the current frame image of the front of the train in real time, and using the pre-acquired trained target detection model to detect the current frame image to obtain detection result information;

[0008] The established target detection model is trained by using a pre-established first training data set to obtain a trained target detection model; the first training data set includes multiple groups of information; each group of information includes: a frame of image taken in front of the train running, and a labeling file corresponding to the frame of image; the labeling file includes the target type of the detection target obtained after pre-labeling any detection target in the frame of image, and the relative position information of the detection target in the frame of image;

[0009] S2. If the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, the detection target in the current frame image is identified using a pre-acquired trained text recognition model to obtain the number information of the detection target;

[0010] S3. Using the pre-stored target type corresponding to the detection target in the current frame image and the geographical location information corresponding to the number information in the detection target as the absolute position of the train.

[0011] Preferably, before S1, it also includes:

[0012] A0. Based on a pre-established first training data set, a pre-established target detection model is trained to obtain a trained target detection model.

[0013] Preferably, the A0 specifically includes:

[0014] A01. Preprocessing the first training data set to obtain a preprocessed first training data set;

[0015] The preprocessing includes: scaling all images in the first training data set to 640 pixels in both length and width and performing standardization, and then expanding the first training data set by using data enhancement means to obtain a preprocessed first training data set;

[0016] The data enhancement methods include: left-right flipping, up-down flipping, random cropping, and mosaic;

[0017] A02. Based on the preprocessed first training data set, the pre-established target detection model is trained for 300 rounds to obtain a trained target detection model;

[0018] The pre-established target detection model is a model obtained by adding a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a stacking operation concat, and a convolution module C3 to the FPN part of the YOLOv5 basic network model, and adding a 3×3 convolution operation conv and a stacking operation concat with a step size of 2 to the PAN part of the YOLOv5 basic network model, adding a coordinate attention mechanism module CA after each convolution module C3 in the neck network of the YOLOv5 basic network model, and adding a prediction head to the basic network of the YOLOv5 basic network model.

[0019] Preferably,

[0020] The pre-established target detection model is a model obtained by adding a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a stacking operation concat and a convolution module C3 to the 21st to 24th layers of the YOLOv5s basic network model; adding a 3×3 convolution operation conv with a step size of 2 and a stacking operation concat and a convolution module C3 to the 26th to 28th layers of the YOLOv5s basic network model; adding a coordinate attention mechanism module CA after each convolution module in the YOLOv5s basic network model, and connecting the coordinate attention mechanism modules CA of the 25th, 29th, 33rd and 37th layers of the neck network in the YOLOv5s basic network model to the prediction head one by one.

[0021] Preferably, before S1, it also includes:

[0022] B0. Based on a pre-established second training data set, training a pre-established text recognition model to obtain a trained text recognition model;

[0023] The second training data set includes a screenshot of the first detection target captured in an image taken in advance in front of the train;

[0024] The first detection target is a detection target including number information;

[0025] The numbering information includes numbers and / or Chinese and / or English.

[0026] Preferably,

[0027] The pre-established text recognition model is a model obtained by replacing the network structure in the feature extraction part of the CRNN convolutional recurrent network with a lightweight network structure ShuffleNetv2;

[0028] The trained text recognition model is a text recognition model with an accuracy rate of more than 99.6%.

[0029] Preferably, the S3 specifically includes:

[0030] Based on the target type corresponding to the detection target in the current frame image and the number information in the detection target, searching in the pre-acquired data comparison library whether there is a comparison information group that matches the target type corresponding to the detection target in the current frame image and the number information in the detection target, and if so, using the geographical location information in the comparison information group as the absolute position of the train;

[0031] The comparison information group includes: target type, number information, and geographic location information;

[0032] Among them, the target type corresponds to the target type of the detection target in the current frame image, and the comparison information group of the numbering information and the numbering information in the detection target is a comparison information group that matches the target type corresponding to the detection target in the current frame image and the numbering information in the detection target.

[0033] Preferably,

[0034] Wherein, the data comparison library stores a plurality of comparison information groups;

[0035] The first detection targets include: kilometer markers, hundred-meter markers, and contact network poles.

[0036] Preferably, the method further comprises:

[0037] S4. Obtain the current acceleration information and angular velocity information of the train collected by the inertial navigation device in the train, and based on the current acceleration information and angular velocity information of the train, use the Kalman fusion algorithm to perform state prediction to obtain the current state estimate of the train. Further, in the Kalman fusion algorithm update stage, the absolute position of the train and the current state estimate of the train are fused to obtain a fusion result, and the fusion result is used as the position prediction value of the train.

[0038] On the other hand, this embodiment provides a train fusion positioning device based on machine vision, including:

[0039] at least one processor; and

[0040] At least one memory is communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute any of the above-mentioned machine vision-based train fusion positioning methods.

[0041] The beneficial effects of the present invention are as follows: a train fusion positioning method and device based on machine vision of the present invention, by using a trained target detection model, detects the current frame image taken in front of the train to obtain detection result information, if the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, then, a pre-acquired trained text recognition model is used to identify the detection target in the current frame image to obtain the number information in the detection target, and finally, finds the geographical location information corresponding to the target type corresponding to the detection target in the current frame image and the number information in the detection target, as the absolute position of the train, the accuracy of the absolute position of the train obtained by using a train fusion positioning method based on machine vision of the present invention is not affected by the laying density of trackside equipment, can effectively reduce the dependence on existing trackside equipment, thereby reducing equipment costs and manpower, and when encountering signal weak sections such as dense forests, bridges and tunnels, that is, the blind spots of the global satellite navigation system, it can still provide accurate absolute position information for the train, thereby realizing real-time, continuous and precise positioning of the train. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is a flow chart of a train fusion positioning method based on machine vision of the present invention;

[0043] Figure 2 It is a structural schematic diagram of a train fusion positioning device based on machine vision of the present invention;

[0044] Figure 3 This is a flow chart of a train fusion positioning method based on machine vision in Embodiment 2 of the present invention;

[0045] Figure 4 This is a schematic diagram of the structure of a pre-established target detection model in Embodiment 2 of the present invention. DETAILED DESCRIPTION

[0046] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0047] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0048] Embodiment 1

[0049] See also Figure 1This embodiment provides a train fusion positioning method based on machine vision, including:

[0050] S1. Acquire the current frame image of the front of the train in real time, and use the pre-acquired trained target detection model to detect the current frame image to obtain detection result information.

[0051] The established target detection model is trained by using a pre-established first training data set to obtain a trained target detection model; the first training data set includes multiple groups of information; each group of information includes: a frame of image taken in front of the train, and a labeling file corresponding to the frame of image; the labeling file includes the target type of the detection target obtained after pre-labeling any detection target in the frame of image, and the relative position information of the detection target in the frame of image.

[0052] The pre-established target detection model is a model obtained by adding a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a stacking operation concat, and a convolution module C3 to the FPN part of the YOLOv5 basic network model, and adding a 3×3 convolution operation conv and a stacking operation concat with a step size of 2 to the PAN part of the YOLOv5 basic network model, adding a coordinate attention mechanism module CA after each convolution module C3 in the neck network of the YOLOv5 basic network model, and adding a prediction head to the basic network of the YOLOv5 basic network model.

[0053] S2. If the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, the detection target in the current frame image is identified using a pre-acquired trained text recognition model to obtain the numbering information of the detection target.

[0054] The pre-established text recognition model is a model obtained by replacing the network structure in the feature extraction part of the CRNN convolutional recurrent network with the lightweight network structure ShuffleNetv2.

[0055] S3. Using the pre-stored target type corresponding to the detection target in the current frame image and the geographical location information corresponding to the number information in the detection target as the absolute position of the train.

[0056] In the present embodiment, a train fusion positioning method based on machine vision is used. The current frame image taken in front of the train is detected by using a trained target detection model to obtain detection result information. If the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, then the detection target in the current frame image is identified by using a pre-acquired trained text recognition model to obtain the number information in the detection target. Finally, the geographical location information corresponding to the target type corresponding to the detection target in the current frame image and the number information in the detection target is found as the absolute position of the train. The accuracy of the absolute position of the train obtained by using the train fusion positioning method based on machine vision in the present embodiment is not affected by the laying density of the trackside equipment, which can effectively reduce the dependence on the existing trackside equipment, thereby reducing equipment costs and manpower. In addition, when encountering sections with weak signals such as dense forests, bridges and tunnels, that is, blind spots of the global satellite navigation system, it can still provide accurate absolute position information for the train, thereby realizing real-time, continuous and precise positioning of the train.

[0057] See also Figure 2 This embodiment also provides a train fusion positioning device based on machine vision, including:

[0058] At least one processor; and at least one memory communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the train fusion positioning method based on machine vision as in Example 1.

[0059] Embodiment 2

[0060] See also Figure 3 This embodiment provides a train fusion positioning method based on machine vision, including:

[0061] 100. Based on a pre-established first training data set, train a pre-established target detection model to obtain a trained target detection model.

[0062] The established target detection model is trained by using a pre-established first training data set to obtain a trained target detection model; the first training data set includes multiple groups of information; each group of information includes: a frame of image taken in front of the train, and a labeling file corresponding to the frame of image; the labeling file includes the target type of the detection target obtained after pre-labeling any detection target in the frame of image, and the relative position information of the detection target in the frame of image.

[0063] The annotation file in this embodiment is a file in TXT format.

[0064] Wherein, the 100 specifically includes:

[0065] 100-1. Preprocess the first training data set to obtain a preprocessed first training data set.

[0066] The preprocessing includes: scaling all images in the first training data set to 640 pixels in length and width and performing standardization, and then expanding the first training data set by using data enhancement means to obtain the preprocessed first training data set.

[0067] In this embodiment, a camera is installed in the center of the driver's cab to capture images in front of the train. The target detection label information is annotated using the labelimg tool to annotate the detection targets on the image, such as kilometer markers, tunnels, and contact network poles. The target detection targets are output in the YOLO data format, including numbering information and normalized detection targets, and the first training data set is constructed.

[0068] The data enhancement methods include: left-right flipping, up-down flipping, random cropping, and mosaic.

[0069] 100-2. Based on the preprocessed first training data set, the pre-established target detection model is trained for 300 rounds to obtain a trained target detection model.

[0070] The pre-established target detection model is a model obtained by adding a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a stacking operation concat, and a convolution module C3 to the FPN part of the YOLOv5 basic network model, and adding a 3×3 convolution operation conv and a stacking operation concat with a step size of 2 to the PAN part of the YOLOv5 basic network model, adding a coordinate attention mechanism module CA after each convolution module C3 in the neck network of the YOLOv5 basic network model, and adding a prediction head to the basic network of the YOLOv5 basic network model.

[0071] See also Figure 4Specifically, the pre-established target detection model is to add a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a superposition operation concat and a convolution module C3 to the 21st to 24th layers of the YOLOv5s basic network model; to add a 3×3 convolution operation conv with a step size of 2 and a superposition operation concat and a convolution module C3 to the 26th to 28th layers of the YOLOv5s basic network model; to add a coordinate attention mechanism module CA after each convolution module in the YOLOv5s basic network model, and to connect the coordinate attention mechanism modules CA in the 25th, 29th, 33rd and 37th layers of the neck network in the YOLOv5s basic network model to the prediction head one by one to obtain the model.

[0072] The target detection model trained in this embodiment can achieve an accuracy of 99.2% in the actual use process for detecting the detection target, and the average accuracy mAP50 (mean Average Precision at 50) of the target detection model trained in this embodiment can reach 100%.

[0073] 110. Based on a pre-established second training data set, train a pre-established text recognition model to obtain a trained text recognition model.

[0074] The second training data set includes screenshots of the first detection target captured in an image taken in advance in front of the running train.

[0075] The first detection target is a detection target including number information; the number information includes numbers and / or Chinese and / or English. For example, a certain number information is "S077".

[0076] The pre-established text recognition model is a model obtained by replacing the network structure in the feature extraction part of the CRNN convolutional recurrent network with the lightweight network structure ShuffleNetv2.

[0077] The trained text recognition model is a text recognition model with an accuracy rate of more than 99.6%. The text recognition model is used to identify the serial number information in the detection target. In this embodiment, considering the limited computing power of the on-board computer, the backbone network in the CRNN convolutional recurrent network is replaced with a lightweight network ShuffleNetv2 to obtain a pre-established text recognition model.

[0078] 120. Acquire the current frame image of the front of the train in real time, and use the pre-acquired trained target detection model to detect the current frame image to obtain detection result information.

[0079] 130. If the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, the detection target in the current frame image is identified using a pre-acquired trained text recognition model to obtain the number information of the detection target.

[0080] 140. Use the pre-stored target type corresponding to the detected target in the current frame image and the geographical location information corresponding to the number information in the detected target as the absolute position of the train.

[0081] The 140 specifically includes: based on the target type corresponding to the detection target in the current frame image and the numbering information in the detection target, searching in a pre-acquired data comparison library whether there is a comparison information group that matches the target type corresponding to the detection target in the current frame image and the numbering information in the detection target; if so, using the geographic location information in the comparison information group as the absolute position of the train.

[0082] The comparison information group includes: target type, number information, and geographic location information.

[0083] Among them, the target type corresponds to the target type of the detection target in the current frame image, and the comparison information group of the numbering information and the numbering information in the detection target is a comparison information group that matches the target type corresponding to the detection target in the current frame image and the numbering information in the detection target.

[0084] Among them, the data comparison library stores multiple comparison information groups; the first detection target includes: kilometer mark, hundred-meter mark, and contact network pole.

[0085] 150. Obtain the current acceleration information and angular velocity information of the train collected by the inertial navigation device in the train, and based on the current acceleration information and angular velocity information of the train, use the Kalman fusion algorithm to perform state prediction to obtain the current state estimate of the train. Further, in the Kalman fusion algorithm update stage, the absolute position of the train and the current state estimate of the train are fused to obtain a fusion result, and the fusion result is used as the position prediction value of the train.

[0086] In the present embodiment, a train fusion positioning method based on machine vision is used. The current frame image taken in front of the train is detected by using a trained target detection model to obtain detection result information. If the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, then the detection target in the current frame image is identified by using a pre-acquired trained text recognition model to obtain the number information in the detection target. Finally, the geographical location information corresponding to the target type corresponding to the detection target in the current frame image and the number information in the detection target is found as the absolute position of the train. The accuracy of the absolute position of the train obtained by using the train fusion positioning method based on machine vision in the present embodiment is not affected by the laying density of the trackside equipment, which can effectively reduce the dependence on the existing trackside equipment, thereby reducing equipment costs and manpower. In addition, when encountering sections with weak signals such as dense forests, bridges and tunnels, that is, blind spots of the global satellite navigation system, it can still provide accurate absolute position information for the train, thereby realizing real-time, continuous and precise positioning of the train.

[0087] In the description of the present invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0088] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0089] In the present invention, unless otherwise clearly specified and limited, when a first feature is “on” or “below” a second feature, it may be that the first and second features are in direct contact, or that the first and second features are in indirect contact through an intermediate medium. Moreover, when a first feature is “above”, “above” or “above” a second feature, it may be that the first feature is directly above or obliquely above the second feature, or it may simply mean that the first feature is higher in level than the second feature. When a first feature is “below”, “below” or “below” a second feature, it may be that the first feature is directly below or obliquely below the second feature, or it may simply mean that the first feature is lower in level than the second feature.

[0090] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "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, unless they are contradictory.

[0091] 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 alter, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A train fusion positioning method based on machine vision, characterized in that: The method is used to locate a train; the method comprises: S1, acquiring the current frame image of the front of the train in real time, and using the pre-acquired trained target detection model to detect the current frame image to obtain detection result information; The established target detection model is trained by using a pre-established first training data set to obtain a trained target detection model; the first training data set includes multiple groups of information; each group of information includes: a frame of image taken in front of the train running, and a labeling file corresponding to the frame of image; the labeling file includes the target type of the detection target obtained after pre-labeling any detection target in the frame of image, and the relative position information of the detection target in the frame of image; The annotation file is a file in TXT format; the current frame image in front of the train is taken by setting up a camera in the center of the train driver's cab; S2. If the detection result information includes the detection target in the current frame image and the target type corresponding to the detection target, the detection target in the current frame image is identified using a pre-acquired trained text recognition model to obtain the number information of the detection target; S3, using the pre-stored target type corresponding to the detection target in the current frame image and the geographical location information corresponding to the number information in the detection target as the absolute position of the train; Prior to S1, it also included: A0. Based on a pre-established first training data set, training a pre-established target detection model to obtain a trained target detection model; The A0 specifically includes: A01. Preprocessing the first training data set to obtain a preprocessed first training data set; The preprocessing includes: scaling all images in the first training data set to 640 pixels in both length and width and performing standardization, and then expanding the first training data set by using data enhancement means to obtain a preprocessed first training data set; The data enhancement methods include: left-right flipping, up-down flipping, random cropping, and mosaic; A02. Based on the preprocessed first training data set, the pre-established target detection model is trained for 300 rounds to obtain a trained target detection model; The pre-established target detection model is a model obtained by adding a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a stacking operation concat, and a convolution module C3 to the FPN part of the YOLOv5 basic network model, and adding a 3×3 convolution operation conv with a step size of 2 and a stacking operation concat to the PAN part of the YOLOv5 basic network model, and adding a coordinate attention mechanism module CA after each convolution module C3 in the neck network of the YOLOv5 basic network model, and adding a prediction head to the basic network of the YOLOv5 basic network model; The pre-established target detection model is a model obtained by adding a 3×3 convolution operation conv with a step size of 1, an upsampling operation upsample, a stacking operation concat, and a convolution module C3 to the 21st to 24th layers of the YOLOv5s basic network model; adding a 3×3 convolution operation conv with a step size of 2, a stacking operation concat, and a convolution module C3 to the 26th to 28th layers of the YOLOv5s basic network model; adding a coordinate attention mechanism module CA after each convolution module in the YOLOv5s basic network model, and connecting the coordinate attention mechanism modules CA of the 25th, 29th, 33rd, and 37th layers of the neck network in the YOLOv5s basic network model to the prediction head one by one; The S3 specifically includes: Based on the target type corresponding to the detection target in the current frame image and the number information in the detection target, searching in the pre-acquired data comparison library whether there is a comparison information group that matches the target type corresponding to the detection target in the current frame image and the number information in the detection target, and if so, using the geographical location information in the comparison information group as the absolute position of the train; The comparison information group includes: target type, number information, and geographic location information; The target type corresponds to the target type of the detection target in the current frame image, and the comparison information group of the numbering information and the numbering information in the detection target is a comparison information group that matches the target type corresponding to the detection target in the current frame image and the numbering information in the detection target; Wherein, the data comparison library stores a plurality of comparison information groups; The first detection targets include: kilometer markers, hundred-meter markers, and overhead wire poles; The method further comprises: S4, obtaining the current acceleration information and angular velocity information of the train collected by the inertial navigation device in the train, and based on the current acceleration information and angular velocity information of the train, using the Kalman fusion algorithm to perform state prediction to obtain the current state estimation value of the train, and further, in the Kalman fusion algorithm update phase, the absolute position of the train and the current state estimation value of the train are fused to obtain a fusion result, and the fusion result is used as the position prediction value of the train; Prior to S1, it also included: B0. Based on a pre-established second training data set, training a pre-established text recognition model to obtain a trained text recognition model; The second training data set includes a screenshot of the first detection target captured in an image taken in advance in front of the train; The first detection target is a detection target including number information; The numbering information includes numbers and / or Chinese and / or English; The pre-established text recognition model is a model obtained by replacing the network structure in the feature extraction part of the CRNN convolutional recurrent network with a lightweight network structure ShuffleNetv2; The trained text recognition model is a text recognition model with an accuracy rate of more than 99.6%.

2. A train fusion positioning device based on machine vision, characterized in that: include: at least one processor; as well as At least one memory is communicatively connected to the processor, wherein the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the train fusion positioning method based on machine vision as described in claim 1.

Citation Information

Patent Citations

  • Train positioning method and system based on inertial navigation / vision odometer

    CN108981692A

  • Construction and detection method of small target detection model based on Yolov5

    CN115331126A