A railway transponder detection method and device based on vision technology
By installing an image acquisition device at the bottom of the train, using visual images and ambient temperature to detect the deformation of the railway transponder, the problems of high labor intensity and long cycle of manual inspection are solved, and the effect of timely detection of equipment damage and reducing accident risks is achieved.
Patent Information
- Application Number
- CN202111674315.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-12-31
AI Technical Summary
In the prior art, the inspection of railway transponders mainly relies on manual inspection, which has a high labor intensity and a long inspection cycle, which makes equipment damage difficult to detect in time, increasing the risk of driving interference and personal casualties.
The visual image is acquired through an image acquisition device loaded at the bottom of the train, combining ambient temperature and standard visual images, and determining the deformation of the railway transponder, including early warning or normality. The method includes obtaining current status data, determining ambient temperature and standard visual images, calculating correction parameters and image differences values, and generating deformation conditions.
It reduces the labor intensity and cycle of manual inspection, promptly detects damage to interval equipment, reduces the risk of driving interference and personal casualties, improves the accuracy of detection results, and reduces the probability of false alarms and maintenance costs.
Smart Images

Figure CN114387238B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a railway transponder detection method and device based on vision technology. Background Art
[0002] The railway balise in the non-insulated track circuit system is used to achieve electrical isolation between adjacent track circuits, ensure effective signal transmission in this section, and balance the power frequency traction return current. It is a very critical component in the non-insulated track circuit system. At present, the non-insulated track circuits used in my country's large railway lines are generally tuned non-insulated track circuits.
[0003] The railway transponder detection method based on visual technology mainly adopts the manual inspection method. The inspectors not only have to walk dozens of kilometers at night, but also have to inspect the signal equipment. The inspection cycle is half a year and one month.
[0004] However, the manual inspection method is labor-intensive and has a long inspection cycle. Once the equipment in the section is damaged, it is not easy to discover it in time. In addition, increasing the number of people on the road will interfere with driving and increase the probability of personal injury accidents. Summary of the invention
[0005] In view of the above problems, the present application is proposed to provide a railway balise detection method and device based on visual technology to overcome the above problems or at least partially solve the above problems, including:
[0006] A railway transponder detection method based on visual technology, the method is used to determine the deformation of the target railway transponder through a visual image acquired by an image acquisition device loaded on the bottom of a train; wherein the deformation condition includes warning or normal, including:
[0007] Acquiring current state data of the target railway transponder, wherein the current state data includes a current visual image of the target railway transponder and an acquisition position of acquiring the current state data;
[0008] Determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquired position;
[0009] Determining a current correction parameter according to the current ambient temperature and the acquisition position;
[0010] The deformation of the target railway transponder is determined based on the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, an image difference value is determined based on the current visual image and the standard visual image; and the deformation is generated based on the current correction parameter and the image difference value.
[0011] Furthermore, the step of determining the current correction parameter according to the current ambient temperature and the acquisition position includes:
[0012] Determining a target railway balise model according to the acquired position;
[0013] Determining a target correction relationship curve according to the target railway balise model;
[0014] The current correction parameter is determined according to the correction relationship curve and the current ambient temperature.
[0015] Furthermore, it also includes:
[0016] Acquire sample data for establishing a correspondence between visual image parameters of a railway transponder and the ground temperature at which the transponder is located; specifically, the visual image parameters include the model of the railway transponder and the dimensions of each side of the railway transponder in the visual image; the temperature values of the ground temperature at which the transponder is located include at least 5;
[0017] Analyzing the characteristics and laws of the visual image parameters, and determining the network structure and network parameters of the artificial neural network according to the characteristics and laws;
[0018] Using the sample data, training and testing the network structure and the network parameters, and determining the corresponding relationship between the visual image parameters of the railway transponder and the ground temperature;
[0019] A correction relationship curve is generated according to the corresponding relationship and the railway balise model.
[0020] Furthermore, the step of obtaining the current status data of the target railway balise comprises:
[0021] Acquire a real-time image of the target railway transponder, and generate a current visual image of the target railway transponder according to the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder;
[0022] The acquisition position is acquired, and current status data of the target railway balise is generated according to the acquisition position and the current visual image.
[0023] Furthermore, it also includes:
[0024] Acquire a standard visual image of the target railway transponder, and determine a target area corresponding to the target railway transponder in the standard visual image of the target railway transponder;
[0025] Acquire pixel points in the target area in the standard visual image, and generate the foreground model according to the pixel points in the target area;
[0026] Pixel points outside the target area in the standard visual image are obtained, and the background model is generated according to the pixel points outside the target area.
[0027] Furthermore, the step of acquiring a real-time image of the target railway transponder and generating a current visual image of the target railway transponder according to the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder comprises:
[0028] Determining a first probability that each pixel point in the real-time image belongs to the target area according to the foreground model and the real-time image;
[0029] Determining a second probability that each pixel in the real-time image belongs to outside the target area according to the background model and the real-time image;
[0030] A current visual image of the target railway balise is generated based on the first probability, the second probability and the real-time image.
[0031] Furthermore, the step of determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquired position includes:
[0032] Determine the real-time monitoring temperatures of the three temperature monitoring points closest to the acquisition location, and set the average value of the real-time monitoring temperatures of the three temperature monitoring points closest to the acquisition location as the current ambient temperature;
[0033] Determining the target railway balise identifier according to the acquired position;
[0034] The standard visual image is determined according to the target railway transponder identification.
[0035] A railway transponder detection device based on visual technology, the device is used to determine the deformation of the target railway transponder through a visual image acquired by an image acquisition device loaded on the bottom of a train; wherein the deformation condition includes warning or normal, including:
[0036] A current state data acquisition module, used to acquire current state data of the target railway transponder, wherein the current state data includes a current visual image of the target railway transponder and an acquisition position for acquiring the current state data;
[0037] An ambient temperature and standard visual image determination module, used to determine the current ambient temperature of the area where the target railway transponder is located, and a standard visual image corresponding to the target railway transponder according to the acquired position;
[0038] A current correction parameter determination module, used to determine the current correction parameter according to the current ambient temperature and the acquisition position;
[0039] The deformation determination module is used to determine the deformation of the target railway transponder according to the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determine the image difference value according to the current visual image and the standard visual image; generate the deformation according to the current correction parameter and the image difference value.
[0040] A computer device comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, a railway balise detection method based on visual technology is implemented.
[0041] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, a railway transponder detection method based on visual technology is implemented.
[0042] This application has the following advantages:
[0043] In an embodiment of the present application, by acquiring the current state data of the target railway transponder, wherein the current state data includes the current visual image of the target railway transponder and the acquisition position of the current state data; determining the current ambient temperature of the area where the target railway transponder is located according to the acquisition position, and the standard visual image corresponding to the target railway transponder; determining the current correction parameter according to the current ambient temperature and the acquisition position; determining the deformation of the target railway transponder according to the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determining the image difference value according to the current visual image and the standard visual image; generating the deformation according to the current correction parameter and the image difference value. The deformation of the railway transponder is detected by the monitoring device installed on the train, so that the detection of the railway transponder has low labor intensity and short inspection cycle. Once the section equipment is damaged, it is easy to find it in time, and the interference of personnel on the road to driving and the probability of personal injury accidents are reduced; by adding temperature parameters to detect the transponder, the detection result is more accurate, the probability of false alarm is reduced, and the maintenance cost is reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0045] Figure 1 It is a flowchart of a railway transponder detection method based on visual technology provided by an embodiment of the present application;
[0046] Figure 2 It is a structural block diagram of a railway transponder detection device based on visual technology provided by an embodiment of the present application;
[0047] Figure 3 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0049] It should be noted that the railway transponder detection method based on visual technology in any embodiment of the present invention determines the deformation of the target railway transponder through a visual image obtained by a monitoring device loaded on a train; wherein the deformation condition includes to be repaired or normal.
[0050] Reference Figure 1 , shows that the method provided by an embodiment of the present application is used to determine the deformation of the target railway transponder through the visual image acquired by the image acquisition device loaded on the bottom of the train; wherein the deformation condition includes warning or normal, and is characterized in that it includes:
[0051] S110, acquiring current state data of the target railway transponder, wherein the current state data includes a current visual image of the target railway transponder and an acquisition position for acquiring the current state data;
[0052] S120, determining the current ambient temperature of the area where the target railway transponder is located and a standard visual image corresponding to the target railway transponder according to the acquired position;
[0053] S130, determining a current correction parameter according to the current ambient temperature and the acquisition position;
[0054] S140, determining the deformation of the target railway transponder based on the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determining an image difference value based on the current visual image and the standard visual image; generating the deformation based on the current correction parameter and the image difference value.
[0055] In an embodiment of the present application, by acquiring the current state data of the target railway transponder, wherein the current state data includes the current visual image of the target railway transponder and the acquisition position of the current state data; determining the current ambient temperature of the area where the target railway transponder is located according to the acquisition position, and the standard visual image corresponding to the target railway transponder; determining the current correction parameter according to the current ambient temperature and the acquisition position; determining the deformation of the target railway transponder according to the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determining the image difference value according to the current visual image and the standard visual image; generating the deformation according to the current correction parameter and the image difference value. The deformation of the railway transponder is detected by the monitoring device installed on the train, so that the detection of the railway transponder has low labor intensity and short inspection cycle. Once the section equipment is damaged, it is easy to find it in time, and the interference of personnel on the road to driving and the probability of personal injury accidents are reduced; by adding temperature parameters to detect the transponder, the detection result is more accurate, the probability of false alarm is reduced, and the maintenance cost is reduced.
[0056] Next, the railway balise detection method based on vision technology in this exemplary embodiment will be further described.
[0057] As described in the above step S110, the current state data of the target railway transponder is obtained, wherein the current state data includes the current visual image of the target railway transponder and the acquisition position of the current state data.
[0058] In one embodiment of the present invention, the specific process of "obtaining current status data of the target railway transponder, wherein the current status data includes a current visual image of the target railway transponder and an acquisition position of the current status data" in step S110 can be further explained in combination with the following description.
[0059] As described in the following steps, a real-time image of the target railway transponder is acquired, and a current visual image of the target railway transponder is generated according to the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder.
[0060] As described in the following steps, the acquisition position is acquired, and the current state data of the target railway balise is generated according to the acquisition position and the current visual image.
[0061] In one embodiment of the present invention, the specific process of the step of "obtaining a real-time image of the target railway transponder, and generating a current visual image of the target railway transponder based on the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder" can be further described in combination with the following description.
[0062] As described in the following steps, a first probability that each pixel point in the real-time image belongs to the target area is determined according to the foreground model and the real-time image.
[0063] In one embodiment of the present invention, the method further includes acquiring a standard visual image of the target railway transponder, and determining a target area corresponding to the target railway transponder in the standard visual image of the target railway transponder.
[0064] As an example, the target area can be implemented by obtaining the outer contour identification points of the target area corresponding to the target railway transponder in the standard visual image, and constructing the target area based on the outer contour identification points; wherein the outer contour identification points are identified using artificial intelligence recognition technology.
[0065] It should be noted that the artificial intelligence recognition technology is to establish an outer contour identification point model using an artificial neural network method, and train the outer contour identification point model using a standard visual image. The outline identification point is an inflection point, which can be set according to the user's range.
[0066] As an example, constructing the target area based on the outer contour identification points can be implemented through the following steps: establishing a pixel coordinate system based on the standard visual image, and taking the point in the upper left corner of the standard visual image as the origin; assigning a first function to each of the outer contour identification points to obtain a first parameter; identifying the maximum value and the minimum value among multiple first parameters as the contour starting point and the contour end point of the target image respectively; taking the contour starting point and the contour end point as the starting point and the pixel coordinates of the contour identification points and sorting them clockwise; connecting two adjacent contour identification points after sorting to form the target area.
[0067] As an example, the first function may be:
[0068] (point.y*imgW)+(point.x+1)
[0069] Among them, point.y represents the coordinate of the pixel point along the Y axis in the pixel coordinate system, point.x represents the coordinate of the pixel point along the X axis in the pixel coordinate system, and imgW represents the width of the original image.
[0070] In one embodiment of the present invention, the method further includes acquiring pixel points within the target area in the standard visual image, and generating the foreground model based on the pixel points within the target area.
[0071] In one embodiment of the present invention, the specific process of the step of "obtaining pixel points in the target area in the standard visual image, and generating the foreground model based on the pixel points in the target area" can be further explained in combination with the following description.
[0072] As an example, the background model can be obtained by obtaining the pixel points in the target area in the standard visual image as the first pixel point set, performing cluster analysis according to the color value of each pixel point in the first pixel point set, and obtaining at least one first category. For each first category, the first weight corresponding to the first category is obtained, and the first Gaussian distribution model is determined according to the color value of each pixel point in the first category; the foreground model is determined by weighted summation according to the determined first Gaussian distribution models and the obtained first weights.
[0073] As an example, the first category can be implemented by classifying pixels with color differences less than a preset color difference into one category, or dividing the first pixel set into a preset number of first categories. The clustering analysis method can be determined according to the prior art, and the present invention does not limit this.
[0074] As an optional example, the first weight may be determined according to one of the following methods; for example, the ratio of the number of pixels included in the first category to the number of pixels in the first pixel set is used as the first weight corresponding to the first category.
[0075] In a specific implementation, the first category A includes 10 pixels, and the first pixel set includes 100 pixels, and the first weight corresponding to the first category A is 0.1 (ie, 10 / 100).
[0076] As another optional example, the first weight may be determined according to one of the following methods; such as calculating the average color difference of the pixels included in each first category, and calculating the sum of the average color differences of all first categories; for each first category, subtracting the average color difference of the first category from the sum to obtain a difference, and using the ratio of the difference to the sum as the first weight corresponding to the first category.
[0077] In a specific implementation, after cluster analysis of the first pixel set, three first categories are obtained, which are numbered as category 1, category 2 and category 3. The average color difference of the pixels included in category 1 is a; the average color difference of the pixels included in category 2 is b; the average color difference of the pixels included in category 3 is c; then the sum is (a+b+c) (that is, H), and for category 1, its corresponding first weight is (Ha) / H. Similarly, for category 2, its corresponding first weight is (Hb) / H; for category 3, its corresponding first weight is (Hc) / H.
[0078] As an example, the Gaussian distribution model can be implemented using the maximum likelihood estimation method, specifically by determining the Gaussian distribution model, that is, determining the mean and variance of the Gaussian distribution. The maximum likelihood estimation method is used to determine the mean and variance of the Gaussian distribution model. It can also be determined according to the existing technical methods, and the present invention is not limited to this.
[0079] As an example, the foreground module may be determined according to the following formula:
[0080]
[0081] In the formula, f represents the foreground model; i represents the i-th first category; λ i represents the first weight corresponding to the i-th first category; Represents the Gaussian distribution model corresponding to the i-th first category.
[0082] In one embodiment of the present invention, the specific process of the step of "generating a current visual image of the target railway transponder based on the visual image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder" can be further explained in combination with the following description.
[0083] As described in the following steps, a second probability that each pixel point in the real-time image belongs to outside the target area is determined based on the background model and the real-time image.
[0084] In one embodiment of the present invention, the method further includes acquiring pixel points outside the target area in the standard visual image, and generating the background model based on the pixel points outside the target area.
[0085] In one embodiment of the present invention, the specific process of the step of "obtaining pixel points outside the target area in the standard visual image, and generating the background model based on the pixel points outside the target area" can be further explained in combination with the following description.
[0086] As an example, the background model can be implemented by the following steps, specifically obtaining pixel points outside the target area in the standard visual image as a second pixel point set, performing cluster analysis based on the color values of each pixel point in the second pixel point set, and obtaining at least one second category. For each second category, obtain the second weight corresponding to the second category, and determine the second Gaussian distribution model based on the color value of each pixel point in the second category. According to the determined second Gaussian distribution models and the obtained second weights, the background model is determined by weighted summation. Since the construction methods of the foreground model and the background model are the same, they will not be repeated here.
[0087] In one embodiment of the present invention, the specific process of the step of "generating a current visual image of the target railway transponder based on the visual image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder" can be further explained in combination with the following description.
[0088] As described in the following steps, a current visual image of the target railway balise is generated according to the first probability, the second probability and the real-time image.
[0089] As an example, for any pixel in the visual image, if the first probability that the pixel belongs to the target area is greater than the second probability that the pixel belongs to outside the target area, the pixel is regarded as a pixel belonging to the target area; or, for any pixel in the visual image, if the first probability that the pixel belongs to the target area is greater than a preset probability, the pixel is regarded as a pixel belonging to the target area; or, for any pixel in the visual image, if the ratio of the first probability that the pixel belongs to the target area to the second probability that the pixel belongs to outside the target area is greater than a preset ratio, the pixel is regarded as a pixel belonging to the target area; or, for any pixel in the visual image, if the difference between the first probability that the pixel belongs to the target area and the second probability that the pixel belongs to outside the target area is greater than a preset difference, the pixel is regarded as a pixel belonging to the target area, and the pixel belonging to the target area is used as the current visual image of the target railway transponder.
[0090] In one embodiment of the present invention, the specific process of "obtaining current status data of the target railway transponder, wherein the current status data includes a current visual image of the target railway transponder and an acquisition position of the current status data" in step S110 can be further explained in combination with the following description.
[0091] As described in the following steps, the acquisition position of the target railway transponder is acquired, and the current state data of the target railway transponder is generated according to the acquisition position of the target railway transponder and the current visual image of the target railway transponder.
[0092] It should be noted that the timestamp of the current visual image of the target railway transponder is the acquisition time point, that is, the acquisition time point of the current status data, and the acquisition position is the longitude and latitude coordinates of the target railway transponder.
[0093] As described in the above step S120, the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder are determined according to the acquired position.
[0094] In one embodiment of the present invention, the specific process of "determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquired position" in step S120 can be further explained in combination with the following description.
[0095] As described in the following steps, the real-time monitoring temperatures of the three temperature monitoring points closest to the acquisition location are determined, and the average value of the real-time monitoring temperatures of the three temperature monitoring points closest to the acquisition location is set as the current ambient temperature.
[0096] It should be noted that, based on the acquisition location of the current status data, that is, the latitude and longitude coordinates of the target railway transponder, the three temperature monitoring points with the closest straight-line distance to the longitude and latitude coordinates are selected as the data source for acquiring the real-time detection temperature, and the real-time monitoring temperatures of the three detection points are averaged to prevent detection errors due to instrument failure; it should be noted that when the temperature of a certain detection point is obviously different from the temperatures of the other two detection points (for example, ±5°C), the temperature monitoring point is temporarily removed from the temperature data collection queue, and the maintenance personnel are notified to confirm the situation, and it will be put back into the queue after repair.
[0097] As described in the following steps, the target railway balise identifier is determined according to the acquired position.
[0098] It should be noted that the railway transponder maintenance record corresponding to the latitude and longitude coordinates is found from the server through the aforementioned latitude and longitude coordinates, and the identification information of the railway transponder is determined through the record.
[0099] As described in the following steps, the standard visual image is determined according to the target railway transponder identification.
[0100] It should be noted that the railway transponder model corresponding to the identification is found from the database, and the pre-recorded standard visual image corresponding to the model is found, and the image can be a three-dimensional image or a number of two-dimensional photos.
[0101] As described in the above step S130, the current correction parameter is determined according to the current ambient temperature and the acquisition position.
[0102] In an embodiment of the present invention, the specific process of "determining the current correction parameter according to the current ambient temperature and the acquisition position" in step S130 can be further explained in combination with the following description.
[0103] As described in the following steps, determining the target railway balise model according to the acquired position;
[0104] As described in the following steps, a target correction relationship curve is determined according to the target railway balise model;
[0105] It should be noted that the outdoor temperature is simulated to rise or fall under specified conditions for different types of railway responders, and the data on changes in the shell during the process are recorded, including whether the shell is deformed and the deformation amount of the shell (recorded in percentage). Each model is tested several times and the parameters are recorded, and finally the relationship curve between temperature and shell deformation is calculated through statistical principles.
[0106] As described in the following steps, the current correction parameter is determined according to the correction relationship curve and the current ambient temperature.
[0107] As described in the following steps, sample data for establishing a correspondence between visual image parameters of a railway transponder and the ground temperature is obtained; specifically, the visual image parameters include the model of the railway transponder and the size of each side of the railway transponder in the visual image; the temperature value of the ground temperature includes at least 5;
[0108] As described in the following steps, the characteristics and laws of the visual image parameters are analyzed, and the network structure and network parameters of the artificial neural network are determined according to the characteristics and laws;
[0109] As described in the following steps, the network structure and the network parameters are trained and tested using the sample data to determine the corresponding relationship between the visual image parameters of the railway transponder and the ground temperature;
[0110] As described in the following steps, a correction relationship curve is generated according to the corresponding relationship and the railway balise model.
[0111] As described in the above step S140, the deformation of the target railway transponder is determined based on the current visual image, the current correction parameters, the acquisition position and the standard visual image; specifically, the image difference value is determined based on the current visual image and the standard visual image; and the deformation is generated based on the current correction parameters and the image difference value.
[0112] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0113] Reference Figure 2 , shows a railway transponder detection method based on visual technology provided by an embodiment of the present application, the method is used to determine the deformation of the target railway transponder through a visual image acquired by an image acquisition device loaded on the bottom of a train; wherein the deformation condition includes warning or normal, including:
[0114] A current state data acquisition module 210 is used to acquire current state data of the target railway transponder, wherein the current state data includes a current visual image of the target railway transponder and an acquisition position for acquiring the current state data;
[0115] The ambient temperature and standard visual image determination module 220 is used to determine the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquired position;
[0116] A current correction parameter determination module 230, configured to determine a current correction parameter according to the current ambient temperature and the acquisition position;
[0117] The deformation determination module 240 is used to determine the deformation of the target railway transponder based on the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determine the image difference value based on the current visual image and the standard visual image; generate the deformation based on the current correction parameter and the image difference value.
[0118] In one embodiment of the present invention, the current correction parameter determination module 230 includes:
[0119] A target railway balise model determination submodule, used to determine the target railway balise model according to the acquired position;
[0120] A target correction relationship curve determination submodule, used to determine a target correction relationship curve according to the target railway balise model;
[0121] The current correction parameter determination submodule is used to determine the current correction parameter according to the correction relationship curve and the current ambient temperature.
[0122] In one embodiment of the present invention, it also includes:
[0123] A sample data acquisition module is used to acquire sample data for establishing a corresponding relationship between visual image parameters of a railway transponder and the ground temperature at which the transponder is located; specifically, the visual image parameters include the model of the railway transponder and the size of each side of the railway transponder in the visual image; the temperature value of the ground temperature at which the transponder is located includes at least 5;
[0124] A network structure and network parameter determination module, used to analyze the characteristics and laws of the visual image parameters, and determine the network structure and network parameters of the artificial neural network according to the characteristics and laws;
[0125] A corresponding relationship determination module, used to use the sample data to train and test the network structure and the network parameters, and determine the corresponding relationship between the visual image parameters of the railway transponder and the ground temperature;
[0126] The correction relationship curve generating module is used to generate a correction relationship curve according to the corresponding relationship and the railway transponder model.
[0127] In one embodiment of the present invention, the current state data acquisition module 210 includes:
[0128] A current visual image generation submodule, used to obtain a real-time image of the target railway transponder, and generate a current visual image of the target railway transponder according to the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder;
[0129] The current status data generating submodule is used to obtain the acquisition position and generate the current status data of the target railway transponder according to the acquisition position and the current visual image.
[0130] In one embodiment of the present invention, it also includes:
[0131] a target area determination module, configured to obtain a standard visual image of the target railway transponder and determine a target area corresponding to the target railway transponder in the standard visual image of the target railway transponder;
[0132] A foreground model generation module, used to obtain pixel points in the target area in the standard visual image, and generate the foreground model according to the pixel points in the target area;
[0133] The background model generation module is used to obtain pixel points outside the target area in the standard visual image and generate the background model based on the pixel points outside the target area.
[0134] In one embodiment of the present invention, the current visual image generation submodule includes:
[0135] A first probability determination submodule, configured to determine a first probability that each pixel point in the real-time image belongs to the target area according to the foreground model and the real-time image;
[0136] A second probability determination submodule, configured to determine a second probability that each pixel in the real-time image belongs to outside the target area according to the background model and the real-time image;
[0137] The current visual image determination submodule is used to generate a current visual image of the target railway transponder according to the first probability, the second probability and the real-time image.
[0138] In one embodiment of the present invention, the ambient temperature and standard visual image determination module 220 includes:
[0139] A target railway transponder identification determination submodule, used to determine the target railway transponder identification according to the acquisition position;
[0140] The standard visual image determination submodule is used to determine the standard visual image according to the target railway transponder identifier.
[0141] In one embodiment of the present invention, the deformation condition determination module 240 includes:
[0142] A first grayscale binary image generating submodule, used for generating a first grayscale binary image corresponding to the standard visual image according to the standard visual image;
[0143] A second grayscale binary image generating submodule, configured to generate a second grayscale binary image corresponding to the current visual image based on the current visual image;
[0144] A standard pixel value acquisition submodule is used to acquire standard pixel values of preset coordinates in the first grayscale binary image; wherein the preset coordinates are arranged in nine grids;
[0145] A current pixel value acquisition submodule, used to acquire the current pixel value of the preset coordinate in the second grayscale binary image;
[0146] The image difference value determination submodule is used to determine the image difference value according to the standard pixel value and the current pixel value.
[0147] In one embodiment of the present invention, the deformation condition determination module 240 includes:
[0148] A first deformation condition determination submodule is used to determine a first product of the current correction parameter and the image difference value when the pixel value difference between the current pixel value and the standard pixel value in the nine-square grid is greater than a preset threshold value, and determine the deformation condition according to the first product; wherein the symmetry includes axial symmetry or central symmetry;
[0149] or;
[0150] A proportion value determination submodule, used for determining a proportion value of the target coordinate position in the nine-square grid when the pixel value difference between the current pixel value and the standard pixel value in the nine-square grid is greater than a preset threshold and the target coordinate position is asymmetric;
[0151] The second deformation condition determination submodule is used to determine a second product of the current correction parameter, the proportion value and the image difference value, and determine the deformation condition according to the second product.
[0152] Reference Figure 3 , showing a computer device of a railway transponder detection method based on visual technology of the present application, which may specifically include the following:
[0153] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 connecting different system components (including the memory 28 and the processing unit 16).
[0154] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, an Audio Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0155] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0156] Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Figure 3 Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of the various embodiments of the present application.
[0157] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0158] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable an operator to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through the I / O interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) through a network adapter 20. Figure 3 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 3 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.
[0159] The processing unit 16 executes various functional applications and data processing by running the programs stored in the memory 28, such as implementing a railway transponder detection method based on visual technology provided in an embodiment of the present application.
[0160] That is, when the processing unit 16 executes the program, the following steps are achieved: obtaining the current state data of the target railway transponder, wherein the current state data includes the current visual image of the target railway transponder and the acquisition position for obtaining the current state data; determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquisition position; determining the current correction parameter according to the current ambient temperature and the acquisition position; determining the deformation of the target railway transponder according to the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determining the image difference value according to the current visual image and the standard visual image; and generating the deformation according to the current correction parameter and the image difference value.
[0161] In an embodiment of the present application, the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a railway transponder detection method based on visual technology as provided in all embodiments of the present application is implemented.
[0162] That is, when the program is executed by the processor, it is implemented as follows: obtaining the current state data of the target railway transponder, wherein the current state data includes the current visual image of the target railway transponder and the acquisition position for obtaining the current state data; determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquisition position; determining the current correction parameter according to the current ambient temperature and the acquisition position; determining the deformation of the target railway transponder according to the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determining the image difference value according to the current visual image and the standard visual image; generating the deformation according to the current correction parameter and the image difference value.
[0163] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0164] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0165] The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the operator's computer, partially on the operator's computer, as an independent software package, partially on the operator's computer, partially on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the operator's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.
[0166] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0167] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal 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 process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0168] The above is a detailed introduction to the railway transponder detection method and device based on visual technology provided by the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A railway transponder detection method based on visual technology, the method is used to determine the deformation of the target railway transponder through a visual image acquired by an image acquisition device loaded on the bottom of a train; wherein: The deformation condition includes warning or normal, which is characterized by including: Acquire the model and corresponding size of the target railway transponder, and current status data of the target railway transponder, wherein the current status data includes a current visual image of the target railway transponder and an acquisition position of acquiring the current status data; Determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquired position; Determining current correction parameters according to the current ambient temperature, the acquisition location, and the model and corresponding size of the target railway balise; The deformation of the target railway transponder is determined based on the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, an image difference value is determined based on the current visual image and the standard visual image; and the deformation is generated based on the current correction parameter and the image difference value.
2. The method according to claim 1, characterized in that The step of determining the current correction parameter according to the current ambient temperature, the acquisition position, and the model and corresponding size of the target railway transponder includes: Determining a target railway balise model according to the acquired position; Determining a target correction relationship curve according to the target railway balise model; The current correction parameter is determined according to the correction relationship curve and the current ambient temperature.
3. The method according to claim 2, characterized in that Also includes: Acquire sample data for establishing a correspondence between visual image parameters of a railway transponder and the ground temperature at which the transponder is located; specifically, the visual image parameters include the model of the railway transponder and the dimensions of each side of the railway transponder in the visual image; the temperature values of the ground temperature at which the transponder is located include at least 5; Analyzing the characteristics and laws of the visual image parameters, and determining the network structure and network parameters of the artificial neural network according to the characteristics and laws; Using the sample data, training and testing the network structure and the network parameters, and determining the corresponding relationship between the visual image parameters of the railway transponder and the ground temperature; A correction relationship curve is generated according to the corresponding relationship and the railway balise model.
4. The method according to claim 1, characterized in that: The step of obtaining the current status data of the target railway balise comprises: Acquire a real-time image of the target railway transponder, and generate a current visual image of the target railway transponder according to the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder; The acquisition position is acquired, and current status data of the target railway balise is generated according to the acquisition position and the current visual image.
5. The method according to claim 4, characterized in that Also includes: Acquire a standard visual image of the target railway transponder, and determine a target area corresponding to the target railway transponder in the standard visual image of the target railway transponder; Acquire pixel points in the target area in the standard visual image, and generate the foreground model according to the pixel points in the target area; Pixel points outside the target area in the standard visual image are obtained, and the background model is generated according to the pixel points outside the target area.
6. The method according to claim 5, characterized in that The step of acquiring a real-time image of the target railway transponder and generating a current visual image of the target railway transponder according to the real-time image and a foreground model corresponding to the target railway transponder and a background model corresponding to the target railway transponder comprises: Determining a first probability that each pixel point in the real-time image belongs to the target area according to the foreground model and the real-time image; Determining a second probability that each pixel in the real-time image belongs to outside the target area according to the background model and the real-time image; A current visual image of the target railway balise is generated based on the first probability, the second probability and the real-time image.
7. The method according to claim 1, characterized in that The step of determining the current ambient temperature of the area where the target railway transponder is located and the standard visual image corresponding to the target railway transponder according to the acquired position includes: Determine the real-time monitoring temperatures of the three temperature monitoring points closest to the acquisition location, and set the average value of the real-time monitoring temperatures of the three temperature monitoring points closest to the acquisition location as the current ambient temperature; Determining the target railway balise identifier according to the acquired position; The standard visual image is determined according to the target railway transponder identification.
8. A railway transponder detection device based on visual technology, the device is used to determine the deformation of the target railway transponder through the visual image acquired by the image acquisition device loaded on the bottom of the train; wherein, The deformation condition includes warning or normal, which is characterized by including: A current state data acquisition module, used to acquire the model and corresponding size of the target railway transponder, and the current state data of the target railway transponder, wherein the current state data includes the current visual image of the target railway transponder and the acquisition position of the current state data; An ambient temperature and standard visual image determination module, used to determine the current ambient temperature of the area where the target railway transponder is located, and a standard visual image corresponding to the target railway transponder according to the acquired position; A current correction parameter determination module, used to determine the current correction parameter according to the current ambient temperature, the acquisition position, and the model and corresponding size of the target railway balise; The deformation determination module is used to determine the deformation of the target railway transponder according to the current visual image, the current correction parameter, the acquisition position and the standard visual image; specifically, determine the image difference value according to the current visual image and the standard visual image; generate the deformation according to the current correction parameter and the image difference value.
9. A computer device, characterized in that: The method comprises a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the method according to any one of claims 1 to 7 when executed by the processor.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method for catching and positioning electric arc of electrified railway contact net
CN102879679A
Railway insulation joint detection method and device
CN113487620A