CN112644559B - Method, apparatus, device and medium for determining display state of track section - Google Patents
Method, apparatus, device and medium for determining display state of track section Download PDFInfo
- Publication number
- CN112644559B CN112644559B CN202110004180.0A CN202110004180A CN112644559B CN 112644559 B CN112644559 B CN 112644559B CN 202110004180 A CN202110004180 A CN 202110004180A CN 112644559 B CN112644559 B CN 112644559B
- Authority
- CN
- China
- Prior art keywords
- track section
- identified
- turnout
- determining
- section
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 47
- 238000004590 computer program Methods 0.000 claims description 3
- 238000005516 engineering process Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000007613 environmental effect Effects 0.000 description 1
- 238000013100 final test Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B61—RAILWAYS
- B61L—GUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
- B61L25/00—Recording or indicating positions or identities of vehicles or trains or setting of track apparatus
- B61L25/06—Indicating or recording the setting of track apparatus, e.g. of points, of signals
- B61L25/08—Diagrammatic displays
Landscapes
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
- Train Traffic Observation, Control, And Security (AREA)
Abstract
The invention discloses a method, a device, equipment and a medium for determining a track section display state. Wherein, the method comprises the following steps: acquiring the type of a track section to be identified in a track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section; determining an identification area of the track section to be identified according to the type of the track section to be identified; and determining the display state of the track section to be identified according to the identification area. The embodiment of the invention carries out image recognition on the recognition area of the track section based on the image recognition technology, thereby realizing the automatic and accurate recognition of the display state of the track section.
Description
Technical Field
The embodiment of the invention relates to the technical field of computer image identification, in particular to a method, a device, equipment and a medium for determining a display state of a track section.
Background
The equipment for controlling the running of a train in a railway station mainly comprises: signal machine, switch, track section; and controlling the running route of the train by the computer interlocking system during the running of the train at the station. In a computer interlocking system, the functions of controlling the opening and closing of a signal machine, controlling the switching position of a turnout, acquiring the current state of a track section and the like need to be realized; meanwhile, a track section state display interface, an operation interface of a signal machine and a turnout and a train route handling interface are provided for station operators. In the process of testing software in the computer interlocking system, the change of the display state of the track section can be caused by transacting the route and simulating the running of the train, so that the current state of the track section needs to be quickly and accurately identified when the computer interlocking system is tested.
At present, the method for determining the display state of the track section mainly relies on manual identification, namely, the display color of the current track section is determined by naked eyes of a tester in the walking process of a train at a station so as to determine the display state of the current track section.
The defects of the scheme are as follows: the recognition speed of the track zone state is low, the improvement of the testing efficiency is restricted, and under the influence of factors such as small figure size of the track zone, poor ambient light, fatigue of a testing engineer and the like, the testing engineer can mistakenly recognize the display state of the track zone during visual judgment, so that the accuracy and the reliability of a final testing result are reduced.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a medium for determining a display state of a track section, which can automatically identify an identification area of the track section based on an image identification technology, thereby effectively improving the accuracy of the determined display state of the track section.
In a first aspect, an embodiment of the present invention provides a method for determining a display state of a track section, including:
acquiring the type of a track section to be identified in a track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section;
determining an identification area of the track section to be identified according to the type of the track section to be identified;
and determining the display state of the track section to be identified according to the identification area.
Optionally, determining the identification area of the track segment to be identified according to the type of the track segment to be identified includes:
if the type of the track section to be identified is a turnout section, acquiring the position of a key turnout of the track section to be identified;
and determining the identification area of the track section to be identified according to the position of the key turnout.
Optionally, determining the identification area of the track section to be identified according to the position of the key switch includes:
if the key turnout is detected to be in the quarto position, determining a characteristic line section of the track section to be identified according to the length of the line section of the key turnout; the length of the line segment of the key turnout is the length of the line segment formed by each of the front turnout and the rear turnout of the key turnout;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
Optionally, determining the identification area of the track section to be identified according to the position of the key switch includes:
if the key turnout is detected to be in a positioning position or a reverse position, acquiring the turnout center point coordinate of the key turnout;
and determining the identification area of the track section to be identified according to the frog point coordinates of the key turnout.
Optionally, determining the identification area of the track segment to be identified according to the type of the track segment to be identified includes:
if the type of the track section to be identified is a turnout section or a track section, determining a characteristic line section of the track section to be identified according to the length of each line section in the track section to be identified;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
Optionally, determining an identification area of the track segment to be identified according to the feature line segment of the track segment to be identified includes:
calculating the slope of the characteristic line segment;
and determining the composition areas of the starting point and the end point of the characteristic line segment according to the slope of the characteristic line segment, and taking the composition areas as the identification areas of the track section to be identified.
Optionally, determining the display state of the track segment to be identified according to the identification area includes:
acquiring a characteristic value of each pixel point in the identification area, and determining a display state value of the track section to be identified according to the characteristic value and a preset characteristic value;
and determining the display state of the track section to be identified according to the display state value of the track section to be identified.
In a second aspect, an embodiment of the present invention provides an apparatus for determining a display status of a track segment, including:
the type acquisition module is used for acquiring the type of the track section to be identified in the track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section;
the identification area determining module is used for determining the identification area of the track section to be identified according to the type of the track section to be identified;
and the display state determining module is used for determining the display state of the track section to be identified according to the identification area.
Optionally, the identification area determining module includes a position obtaining unit and an area determining unit;
the position acquisition unit is used for acquiring the position of a key turnout of the track section to be identified if the type of the track section to be identified is a turnout section;
and the area determining unit is used for determining the identification area of the track section to be identified according to the position of the key turnout.
Optionally, the area determining unit is specifically configured to:
if the key turnout is detected to be in the quarto position, determining a characteristic line section of the track section to be identified according to the length of the line section of the key turnout; the length of the line segment of the key turnout is the length of each line segment formed by the front turnout and the rear turnout of the key turnout;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
Optionally, the area determining unit is further specifically configured to:
if the key turnout is detected to be in the positioning position or the reverse position, acquiring the turnout center point coordinates of the key turnout;
and determining the identification area of the track section to be identified according to the frog point coordinates of the key turnout.
Optionally, the identification area determining module includes a line segment determining unit and an area determining unit;
a line segment determining unit, configured to determine, if the type of the track segment to be identified is a turnout segment or a station track segment, a characteristic line segment of the track segment to be identified according to a length of each line segment in the track segment to be identified;
and the area determining unit is used for determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
Optionally, the area determining unit is specifically configured to:
calculating the slope of the characteristic line segment;
and determining the composition areas of the starting point and the end point of the characteristic line segment according to the slope of the characteristic line segment, and taking the composition areas as the identification areas of the track section to be identified.
Optionally, the display state determining module is specifically configured to:
acquiring a characteristic value of each pixel point in the identification area, and determining a display state value of the track section to be identified according to the characteristic value and a preset characteristic value;
and determining the display state of the track section to be identified according to the display state value of the track section to be identified.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for determining a track section display status according to any one of the embodiments of the present invention.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the method for determining the display status of a track section according to any one of the embodiments of the present invention.
The method comprises the steps of obtaining the type of a track section to be identified in a track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section; determining an identification area of the track section to be identified according to the type of the track section to be identified; and determining the display state of the track section to be identified according to the identification area. The embodiment of the invention carries out image recognition on the recognition area of the track section based on the image recognition technology, thereby realizing the automatic recognition of the display state of the track section.
Drawings
FIG. 1 is a flowchart illustrating a method for determining a display status of a track section according to a first embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for determining a display status of a track section according to a second embodiment of the present invention;
FIG. 3 is a diagram showing an identification area of a display status of a turnout-free section according to a second embodiment of the present invention;
FIG. 4 is a diagram showing the identification areas of the switch section display states in the second embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device for determining a display status of a track section according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device in the fourth embodiment.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart illustrating a method for determining a display status of a track section according to a first embodiment of the invention. The embodiment can be applied to the condition of effectively identifying the display states of different track sections based on the image identification technology. The method of the present embodiment may be performed by a device for determining a display status of a track segment, which may be implemented in hardware and/or software and may be configured in an electronic device. The method for determining the display state of the track section according to any embodiment of the present application can be implemented. As shown in fig. 1, the method specifically includes the following steps:
s110, acquiring the type of a track section to be identified in the track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section.
The rail for train running or parking in the railway station is divided into a plurality of areas with limited length, and each area is called a track section; the display status of the track section on the display is very important information for both the operator and the tester of the computer interlock system; the existing method for identifying the display state of the track section mainly relies on human eyes to directly watch the displayed color so as to identify the display state of the track section, but the method is easily influenced by environmental factors, so that the efficiency of identifying the display state of the track section is reduced, and manpower is also required to be consumed to complete the method.
Therefore, the present embodiment effectively recognizes the display states of different types of track sections by recognizing the track image using the image recognition technology; the track image is an image acquired by acquisition equipment in the testing process.
Wherein, the turnout section comprises 1-3 groups of turnouts; turnouts are not contained in the turnout sections and the track sections; the track section is longer in length and is used for parking an entire train; the turnout section is short in length and only can park 1-3 carriages.
And S120, determining an identification area of the track section to be identified according to the type of the track section to be identified.
In this embodiment, the identification area of the track segment to be identified is a fixed area formed by feature points in line segments in the track segment to be identified; and the width of the line segment is fixed (3 pixel points), therefore, the identification region in this embodiment may be a rectangular region of 3 × 3.
And S130, determining the display state of the track section to be identified according to the identification area.
In this embodiment, the color classification of the identification region may be determined according to the color range of the identification region, and the color of the track section to be identified is intuitively reflected according to the color of the identification region, so as to determine the display state of the track section to be identified; the display state of the track section to be identified is an occupied state, an idle state or a locking state; specifically, the occupancy state is represented by red; the idle state is indicated in blue; the locked state is indicated in white.
On the basis of the foregoing embodiment, optionally, determining the display state of the track segment to be identified according to the identification area includes:
acquiring a characteristic value of each pixel point in the identification area, and determining a display state value of the track section to be identified according to the characteristic value and a preset characteristic value;
and determining the display state of the track section to be identified according to the display state value of the track section to be identified.
In this embodiment, the feature value is a three-channel RGB value of the pixel point, and the overall display state of the corresponding segment can be obtained according to the RGB values of the similar points in the region. The preset characteristic value is an RGB value specified in the TJ/DW188-2016 station computer interlocking operation display technical specification; determining a display state value of the track section to be identified according to the characteristic value and the preset characteristic value may include: and if the ratio of the characteristic values of all the pixel points meeting the specification to the preset characteristic value exceeds a preset threshold value, taking the characteristic value as a display state value of the track section to be identified.
The display state value is (255 ) (indicating white), indicating that the display state of the track section to be identified is locked; the display status value is (255, 0) (indicating red), indicating that the display status of the track segment to be identified is occupied. In the embodiment, the characteristic values of the pixel points in the identification region are identified, so that the display state of the track section to be identified can be determined quickly and effectively.
The method comprises the steps of obtaining the type of a track section to be identified in a track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section; determining an identification area of the track section to be identified according to the type of the track section to be identified; and determining the display state of the track section to be identified according to the identification area. The embodiment of the invention carries out image recognition on the recognition area of the track section based on the image recognition technology, thereby realizing the automatic recognition of the display state of the track section.
Example two
Fig. 2 is a flowchart illustrating a method for determining a display status of a track section according to a second embodiment of the present invention. The embodiment is further expanded and optimized on the basis of the above embodiment, and can be combined with any optional options in the above technical solutions. As shown in fig. 2, the method includes:
s210, acquiring the type of a track section to be identified in the track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section.
S220, judging whether the type of the track section to be identified is a turnout section; if yes, go to S230; if not, go to S250.
In this embodiment, because the identification methods of the display states of the switch section and the turnout-free section (or the track section) are different, the type of the track section to be identified needs to be determined first, and then the identification needs to be performed by adopting different identification methods.
And S230, acquiring the position of a key turnout of the track section to be identified.
In this embodiment, the key switches are switches that have been calibrated in advance among all switches; wherein, the position of obtaining the key switch of the track section to be identified comprises: reading the characteristic data of the track section to obtain coordinate data (such as a start point coordinate and an end point coordinate) of a key area of each section, and storing the coordinate data in a turnout section coordinate data dictionary; and reading the position of the key turnout of the track section to be identified from the turnout section coordinate data dictionary. By storing the position information in advance, the relevant information can be quickly and accurately acquired when the position information is read.
And S240, determining an identification area of the track section to be identified according to the position of the key turnout.
In this embodiment, when the position of the switch is in the quarto position, the number of the identification areas of the track segment to be identified is at least two, which is intended to ensure that the color gradient area may affect the determination of the display value of the identification area at the connection; when the positions of the key turnouts are not located at the four-switch positions, the identification area of the track section to be identified can only select the turnout area of the key turnout.
And S250, determining the characteristic line segment of the track section to be identified according to the length of each line segment in the track section to be identified.
In the embodiment, a longer line segment in an image forming a turnout section or a track section is selected as a characteristic line segment, so that pixel points with enough data are ensured to be used for identification; the number of the characteristic line segments is at least two, namely two line segments formed according to the starting points and the end points of the characteristic line segments.
And S260, determining an identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
In the present embodiment, referring to fig. 3, fig. 3 is a diagram showing an identification area of a display state of a turnout-free section; selecting line segments with at least 3 pixels long at the starting point and the end point of the characteristic line segment to form 2 minimum 3 multiplied by 3 rectangular areas, and reading the RGB value of each pixel point in the two identification areas to realize the identification of the display state of the turnout sections with different shapes; wherein, the rectangular frame in fig. 3 can be enlarged to select the identification area; the dots are the demarcation points of different track sections.
And S270, determining the display state of the track section to be identified according to the identification area.
On the basis of the above embodiment, optionally, determining the identification area of the track section to be identified according to the position of the key switch includes:
if the key turnout is detected to be in the quarto position, determining a characteristic line section of the track section to be identified according to the length of the line section of the key turnout; the length of the line segment of the key turnout is the length of each line segment formed before and after the turnout of the key turnout;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
In the present embodiment, the switch section identification area is determined in a similar manner to the determination method of the turnout section or track section identification area; referring to the selection criteria for the turnout-free section, it can be found that, from the key turnouts at four switch positions, the longest line segment is selected as the characteristic line segment of the track section to be identified, and then the area formed by the starting point and the ending point of the characteristic line segment is used as the identification area of the track section to be identified. According to the embodiment, the display state of the track section to be identified can be reasonably and accurately reflected through the local point position in the characteristic line segment of the track section to be identified.
On the basis of the above embodiment, optionally, determining the identification area of the track section to be identified according to the position of the key switch includes:
if the key turnout is detected to be in a positioning position or a reverse position, acquiring the turnout center point coordinate of the key turnout;
and determining the identification area of the track section to be identified according to the frog point coordinates of the key turnout.
In this embodiment, for a switch in which a switch section is not located in a quarto position, one area may be selected as an identification area of a track section to be identified; the fork point coordinate is a display coordinate of the fork point in the graphical interface; referring specifically to fig. 4, fig. 4 is a diagram showing the identification areas of the turnout section display states; due to the position limitation of the turnout section, the color of the line segment contained in the key turnout is not converted by the connecting point, namely the color of the line segment is uniform and balanced, and then one point process identification area is selected. In order to make the colors in the identification regions uniform, the rectangular frame in fig. 4 should be enlarged to select the identification regions; the dots are the demarcation points of different track sections.
On the basis of the foregoing embodiment, optionally, determining the identification area of the track segment to be identified according to the characteristic line segment of the track segment to be identified includes:
calculating the slope of the characteristic line segment;
and determining the composition areas of the starting point and the end point of the characteristic line segment according to the slope of the characteristic line segment, and taking the composition areas as the identification areas of the track section to be identified.
In this embodiment, in order to make the obtained identification region regular, it is necessary to calculate the slope of the feature line segment to determine the identification region constructed by the start point and the end point of the feature line segment; the starting point coordinates and the end point coordinates of the characteristic line segments can be read from a coordinate data dictionary stored in advance; the coordinate data dictionary comprises a turnout section coordinate data dictionary, a turnout section coordinate data dictionary and a track section coordinate data dictionary. In the embodiment, the identification area formed by the starting point and the end point of the characteristic line segment is determined by the slope of the characteristic line segment, so that the determined identification area has higher regularity, and the accurate search of the characteristic value in the identification area is facilitated.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a device for determining a display state of a track segment according to a third embodiment of the present invention, which is applicable to a case of effectively identifying display states of different track segments based on an image recognition technology. The device is configured in the electronic equipment, and can realize the method for determining the display state of the track section in any embodiment of the application. The device specifically comprises the following steps:
a type obtaining module 510, configured to obtain a type of a track segment to be identified in a track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section;
an identification area determining module 520, configured to determine an identification area of the track segment to be identified according to the type of the track segment to be identified;
a display state determining module 530, configured to determine a display state of the track segment to be identified according to the identification area.
On the basis of the foregoing embodiment, optionally, the identification area determining module 520 includes a position obtaining unit and an area determining unit;
the position acquisition unit is used for acquiring the position of a key turnout of the track section to be identified if the type of the track section to be identified is a turnout section;
and the area determining unit is used for determining the identification area of the track section to be identified according to the position of the key turnout.
On the basis of the foregoing embodiment, optionally, the area determining unit is specifically configured to:
if the key turnout is detected to be in the quarto position, determining a characteristic line section of the track section to be identified according to the length of the line section of the key turnout; the length of the line segment of the key turnout is the length of each line segment formed by the front turnout and the rear turnout of the key turnout;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
On the basis of the foregoing embodiment, optionally, the area determining unit is further specifically configured to:
if the key turnout is detected to be in a positioning position or a reverse position, acquiring the turnout center point coordinate of the key turnout;
and determining the identification area of the track section to be identified according to the frog point coordinates of the key turnout.
On the basis of the above embodiment, optionally, the identification area determining module 520 includes a line segment determining unit and an area determining unit;
a line segment determining unit, configured to determine, if the type of the track segment to be identified is a turnout segment or a track segment, a characteristic line segment of the track segment to be identified according to the length of each line segment in the track segment to be identified;
and the area determining unit is used for determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
On the basis of the foregoing embodiment, optionally, the area determining unit is specifically configured to:
calculating the slope of the characteristic line segment;
and determining the composition areas of the starting point and the end point of the characteristic line segment according to the slope of the characteristic line segment, and taking the composition areas as the identification areas of the track section to be identified.
On the basis of the foregoing embodiment, optionally, the display state determining module 530 is specifically configured to:
acquiring a characteristic value of each pixel point in the identification area, and determining a display state value of the track section to be identified according to the characteristic value and a preset characteristic value;
and determining the display state of the track section to be identified according to the display state value of the track section to be identified.
By the device for determining the display state of the track section, provided by the embodiment of the invention, the identification area of the track section can be automatically identified based on the image identification technology, so that the accuracy of the determined display state of the track section is effectively improved.
The device for determining the display state of the track section, provided by the embodiment of the invention, can execute the method for determining the display state of the track section, provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
Fig. 6 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention, as shown in fig. 6, the electronic device includes a processor 610, a memory 620, an input device 630, and an output device 640; the number of the processors 610 in the electronic device may be one or more, and one processor 610 is taken as an example in fig. 6; the processor 610, the memory 620, the input device 630, and the output device 640 in the electronic apparatus may be connected by a bus or other means, and fig. 6 illustrates an example of connection by a bus.
The memory 620 is used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the method for determining the display status of track sections in the embodiment of the present invention. The processor 610 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 620, namely, implements the determination method of the display state of the track section provided by the embodiment of the present invention.
The memory 620 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 620 can further include memory located remotely from the processor 610, which can be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 630 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic device, and may include a keyboard, a mouse, and the like. The output device 640 may include a display device such as a display screen.
EXAMPLE five
The present embodiments provide a storage medium containing computer-executable instructions for implementing a method for determining a display status of a track section provided by an embodiment of the present invention when executed by a computer processor.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also execute the relevant operations in the determination method of the track section display status provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the search apparatus, each included unit and each included module are merely divided according to functional logic, but are not limited to the above division, as long as corresponding functions can be implemented; in addition, the specific names of the functional units are only for the convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing description is only exemplary of the invention and that the principles of the technology may be employed. Those skilled in the art will appreciate that the present invention is not limited to the particular embodiments described herein, and that various obvious changes, rearrangements and substitutions will now be apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in some detail by the above embodiments, the invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the invention, and the scope of the invention is determined by the scope of the appended claims.
Claims (8)
1. A method for determining a display status of a track segment, the method comprising:
acquiring the type of a track section to be identified in a track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section;
if the type of the track section to be identified is a turnout section, acquiring the position of a key turnout of the track section to be identified;
if the key turnout is detected to be in the quarto position, determining a characteristic line segment of the track section to be identified according to the length of the line segment of the key turnout; the length of the line segment of the key turnout is the length of the line segment formed by each of the front turnout and the rear turnout of the key turnout; when the position of the key turnout is in a quarto position, at least two identification areas of the track section to be identified are provided;
determining an identification area of the track section to be identified according to the characteristic line segment of the track section to be identified;
and determining the display state of the track section to be identified according to the identification area.
2. The method of claim 1, wherein determining the identified region of the track segment to be identified based on the location of the key switch comprises:
if the key turnout is detected to be in a positioning position or a reverse position, acquiring the turnout center point coordinate of the key turnout;
and determining the identification area of the track section to be identified according to the frog point coordinates of the key turnout.
3. The method according to claim 1, wherein determining the identification area of the track section to be identified according to the type of the track section to be identified comprises:
if the type of the track section to be identified is a turnout section or a station track section, determining a characteristic line section of the track section to be identified according to the length of each line section in the track section to be identified;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
4. The method according to claim 1 or 3, wherein determining the identification area of the track segment to be identified according to the characteristic line segment of the track segment to be identified comprises:
calculating the slope of the characteristic line segment;
and determining a composition area of a starting point and an end point of the characteristic line segment according to the slope of the characteristic line segment, and taking the composition area as an identification area of the track section to be identified.
5. The method according to claim 1, wherein determining a display status of the track section to be identified according to the identification area comprises:
acquiring a characteristic value of each pixel point in the identification area, and determining a display state value of the track section to be identified according to the characteristic value and a preset characteristic value;
and determining the display state of the track section to be identified according to the display state value of the track section to be identified.
6. An apparatus for determining a display status of a track segment, the apparatus comprising:
the type acquisition module is used for acquiring the type of the track section to be identified in the track image; the type of the track section to be identified is a turnout section, a turnout-free section or a track section;
the identification area determining module is used for determining the identification area of the track section to be identified according to the type of the track section to be identified;
the display state determining module is used for determining the display state of the track section to be identified according to the identification area;
the identification area determining module comprises a position acquiring unit and an area determining unit;
the position acquisition unit is used for acquiring the position of a key turnout of the track section to be identified if the type of the track section to be identified is a turnout section;
the area determining unit is used for determining an identification area of the track section to be identified according to the position of the key turnout;
the region determining unit is specifically configured to:
if the key turnout is detected to be in the quarto position, determining a characteristic line section of the track section to be identified according to the length of the line section of the key turnout; the length of the line segment of the key turnout is the length of the line segment formed by each of the front turnout and the rear turnout of the key turnout;
and determining the identification area of the track section to be identified according to the characteristic line segment of the track section to be identified.
7. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of determining a track segment display status according to any one of claims 1 to 5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of determining a display status of a track segment according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110004180.0A CN112644559B (en) | 2021-01-04 | 2021-01-04 | Method, apparatus, device and medium for determining display state of track section |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110004180.0A CN112644559B (en) | 2021-01-04 | 2021-01-04 | Method, apparatus, device and medium for determining display state of track section |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112644559A CN112644559A (en) | 2021-04-13 |
CN112644559B true CN112644559B (en) | 2022-12-02 |
Family
ID=75367420
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110004180.0A Active CN112644559B (en) | 2021-01-04 | 2021-01-04 | Method, apparatus, device and medium for determining display state of track section |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112644559B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102514595A (en) * | 2011-12-27 | 2012-06-27 | 中铁第一勘察设计院集团有限公司 | Turnout state monitoring method based on turnout indication module and encoding circuit |
CN111016964A (en) * | 2019-12-13 | 2020-04-17 | 西南交通大学 | Switch state multi-mode intelligent identification and confirmation platform system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102010045461A1 (en) * | 2010-09-14 | 2012-03-15 | Siemens Aktiengesellschaft | Method for visualization of track occupancy |
DE102012212386A1 (en) * | 2012-07-16 | 2014-01-16 | Siemens Aktiengesellschaft | Process image of a technical plant |
CN105083324A (en) * | 2015-07-28 | 2015-11-25 | 陕西西北铁道电子有限公司 | Method and device for locomotive anticollision using on-board optical detection mechanism combining with auxiliary image pickup |
AT518692B1 (en) * | 2016-06-13 | 2019-02-15 | Plasser & Theurer Exp Von Bahnbaumaschinen G M B H | Method and system for maintaining a track for rail vehicles |
CN106127169A (en) * | 2016-06-28 | 2016-11-16 | 广州地铁集团有限公司 | Train running information analyzes system and method |
-
2021
- 2021-01-04 CN CN202110004180.0A patent/CN112644559B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102514595A (en) * | 2011-12-27 | 2012-06-27 | 中铁第一勘察设计院集团有限公司 | Turnout state monitoring method based on turnout indication module and encoding circuit |
CN111016964A (en) * | 2019-12-13 | 2020-04-17 | 西南交通大学 | Switch state multi-mode intelligent identification and confirmation platform system |
Also Published As
Publication number | Publication date |
---|---|
CN112644559A (en) | 2021-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10937138B2 (en) | Crack information detection device, method of detecting crack information, and crack information detection program | |
US12020503B2 (en) | Fingerprint processing device, fingerprint processing method, program, and fingerprint processing circuit | |
US10776910B2 (en) | Crack information editing device, method of editing crack information, and crack information editing program | |
US8509571B2 (en) | Pattern recognition apparatus, pattern recognition method, image processing apparatus, and image processing method | |
CN109115242B (en) | Navigation evaluation method, device, terminal, server and storage medium | |
US11741683B2 (en) | Apparatus for processing labeled data to be used in learning of discriminator, method of controlling the apparatus, and non-transitory computer-readable recording medium | |
CN109427062A (en) | Roadway characteristic labeling method, device, computer equipment and readable storage medium storing program for executing | |
CN110346704B (en) | Method, device and equipment for determining test file in board test and storage medium | |
CN112528924A (en) | Vehicle turning detection method, device, equipment and storage medium | |
CN112644559B (en) | Method, apparatus, device and medium for determining display state of track section | |
CN114782955A (en) | Buried point processing method, electronic device, and storage medium | |
CN112172877B (en) | Station field representation information identification method based on video image | |
CN112801439B (en) | Task management method and device | |
CN117557536A (en) | Multi-channel-based pixel filtering defect measurement method, system, equipment and medium | |
CN116091503B (en) | Method, device, equipment and medium for discriminating panel foreign matter defects | |
CN104574448A (en) | Method for identifying connected pixel blocks | |
CN117078708A (en) | Training method, device, equipment, medium and product for image detection and model | |
CN110674012B (en) | Information indication method, device and storage medium | |
JP2858530B2 (en) | Edge enhancement device | |
CN117854096A (en) | Work support device, work support method, and work support system | |
CN117733913A (en) | Mobile robot, abnormality detection method and device thereof, and electronic device | |
CN116341498A (en) | Freight information input method and device and electronic equipment | |
CN117733914A (en) | Mobile robot, abnormality detection method and device thereof, and electronic device | |
CN117984359A (en) | Mobile robot, abnormality detection method and device thereof, and electronic device | |
CN118799631A (en) | Mixed image recognition method of visual display unit and related products |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |