Method and device for determining train passing end

文档序号:1121131 发布日期:2020-10-02 浏览:11次 中文

阅读说明:本技术 一种列车过车结束的确定方法和装置 (Method and device for determining train passing end ) 是由 蔡则高 王少威 于 2020-06-28 设计创作,主要内容包括:本申请实施例提供一种列车过车结束的确定方法、装置和系统,涉及数据处理领域,能够更准确的判断列车是否通过了固定的一端列车轨道即过车结束。该方法包括:确定目标时刻;目标时刻为图像采集设备最新一次拍摄到列车车厢的时刻;在目标时刻和当前时刻之间的时差大于预设时长的情况下,确定列车已经通过图像采集设备拍摄的位置对应的列车轨道。(The embodiment of the application provides a method, a device and a system for determining train passing completion, relates to the field of data processing, and can more accurately judge whether a train passes through a fixed train track at one end, namely the train passing completion. The method comprises the following steps: determining a target time; the target moment is the moment when the image acquisition equipment shoots the train carriage for the latest time; and under the condition that the time difference between the target time and the current time is greater than the preset time, determining a train track corresponding to the position where the train has passed through the image acquisition equipment.)

1. A method for determining the end of train passing is characterized by comprising the following steps:

determining a target time; the target moment is the moment when the image acquisition equipment shoots the train carriage for the latest time;

and determining a train track corresponding to the position where the train passes through the image acquisition equipment under the condition that the time difference between the target time and the current time is greater than the preset time.

2. The method for determining the end of train passage according to claim 1, further comprising:

acquiring the shooting time of the image acquisition equipment to shoot the train compartment;

storing the corresponding relation between the shooting time and the identification of the image acquisition equipment; the corresponding relation is used for determining the target time.

3. The method for determining the end of train passing according to claim 2, wherein the storing the correspondence between the shooting time and the identifier of the image capturing device comprises:

under the condition that the corresponding relation containing the identification of the image acquisition equipment does not exist in the history storage data, establishing the corresponding relation between the shooting time and the identification of the image acquisition equipment;

and under the condition that the corresponding relation containing the identification of the image acquisition equipment exists, inserting the shooting moment into the corresponding relation containing the identification of the image acquisition equipment.

4. The method for determining the end of train passage according to claim 1,

the image acquisition equipment comprises main image acquisition equipment and auxiliary image acquisition equipment, the main image acquisition equipment is arranged on one side of the train track, the auxiliary image acquisition equipment associated with the main image acquisition equipment is arranged on the other side of the train track, and the positions shot by the main image acquisition equipment and the positions shot by the auxiliary image acquisition equipment are symmetrical relative to the train track.

5. The method for determining the end of train passage according to claim 4, further comprising:

acquiring a main shooting moment when the main image acquisition equipment shoots a train carriage and an auxiliary shooting moment when the auxiliary image acquisition equipment shoots the train carriage;

storing a main corresponding relation between the identifier of the main image acquisition equipment and the main shooting time and an auxiliary corresponding relation between the identifier of the auxiliary image acquisition equipment and the auxiliary shooting time;

the determining the target time comprises: and determining the latest shooting time in the main shooting time and the auxiliary shooting time as a target time according to the main corresponding relation and the auxiliary corresponding relation.

6. The method for determining the end of train passing according to any one of claims 2 or 3, wherein the step of determining the position of the train which is shot by the image acquisition device further comprises:

and deleting the corresponding relation.

7. A device for determining the end of a train passing, comprising:

an acquisition module configured to determine a target time; the target moment is the moment when the image acquisition equipment shoots the train carriage for the latest time;

the processing module is configured to determine a train track corresponding to a position where a train has passed through the image acquisition device when the time difference between the target time and the current time determined by the obtaining module is greater than a preset time length.

8. The apparatus for determining the end of train passage according to claim 7,

the acquisition module is further configured to acquire the shooting time of the image acquisition equipment to the train compartment;

the processing module is further configured to store a correspondence between the shooting time and the identifier of the image acquisition device, which is acquired by the acquisition module;

the acquisition module is specifically configured to determine the target time according to the correspondence stored by the processing module.

9. The apparatus for determining the end of train passage according to claim 7,

the image acquisition equipment comprises main image acquisition equipment and auxiliary image acquisition equipment, the main image acquisition equipment is arranged on one side of the train track, the auxiliary image acquisition equipment associated with the main image acquisition equipment is arranged on the other side of the train track, and the positions shot by the main image acquisition equipment and the positions shot by the auxiliary image acquisition equipment are symmetrical relative to the train track.

10. A device for determining the end of a train passing, comprising:

a processor;

a memory for storing the processor-executable instructions;

wherein the processor is configured to execute the instructions to implement the method of determining the end of train crossing according to any of claims 1-6.

Technical Field

The invention relates to the field of data processing, in particular to a method and a device for determining train passing end.

Background

At present, a train (such as a train, a high-speed rail, etc.) is one of the most important transportation vehicles, the safety problem is that railway management and staff especially need to pay attention to, and in order to implement some safety control or scheduling (such as railway gate switch control), it is necessary to determine whether a train traveling on a certain section of a railway has passed over the end of the train, so as to facilitate the subsequent implementation of corresponding safety control or scheduling. At present, the judgment of whether the train passes through the train and is finished is carried out manually by full-time personnel, which wastes time and labor and is easy to make mistakes.

Disclosure of Invention

The embodiment of the invention provides a method and a device for determining train passing end, which can improve the accuracy of train passing end judgment.

In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:

in a first aspect, a method for determining the end of train passing is provided, which includes: determining a target time; the target moment is the moment when the image acquisition equipment shoots the train carriage for the latest time; and under the condition that the time difference between the target time and the current time is greater than the preset time, determining a train track corresponding to the position where the train has passed through the image acquisition equipment.

Based on the above scheme, by using a device capable of implementing the method for determining the train end, after the latest shooting time of the image acquisition device for the train carriages is obtained, the difference between the shooting time and the current time is compared with the preset time length, because the time interval between two trains passing through the same train track is necessarily longer (longer than the preset time length) and the time between different carriages on the same train passing through the train track is necessarily shorter (shorter than the preset time length), when the difference between the shooting time and the current time is longer than the preset time length, it indicates that the train on which the train carriage newly shot by the image acquisition device completely passes through the train track corresponding to the shooting position of the image acquisition device, that is, the train has passed through the train end. The whole scheme is through the collection to the moment that image acquisition equipment shot the train carriage, compares in current manpower judgement can with accurate whether the train finishes judging passing the car. Furthermore, whether trains pass through the railway sections of certain railway trains can be timely and automatically judged, powerful support is provided for subsequent safety control or scheduling, and manpower and material resources are reduced.

Optionally, the method for determining the end of train passing further includes: acquiring the shooting time of the image acquisition equipment to shoot the train compartment; storing the corresponding relation between the shooting time and the identification of the image acquisition equipment; the corresponding relation is used for determining the target time. Based on the scheme, the corresponding relation between the shooting time of the image acquisition equipment shooting the train compartment and the identification of the image acquisition equipment can be stored in time, so that the shooting time corresponding to the image acquisition equipment can be searched from the corresponding relation.

Further optionally, storing the correspondence between the shooting time and the identifier of the image capturing device includes: under the condition that the corresponding relation containing the identification of the image acquisition equipment does not exist in the historical storage data, establishing a new corresponding relation between the shooting time and the identification of the image acquisition equipment; and inserting the shooting time into the corresponding relation containing the identification of the image acquisition equipment under the condition that the corresponding relation containing the identification of the image acquisition equipment exists. Based on the scheme, the corresponding relation between the shooting time and the identification of the image acquisition equipment can be stored in time, and information redundancy of a storage space cannot be caused.

Optionally, the image capturing device includes a main image capturing device and an auxiliary image capturing device, the main image capturing device is disposed on one side of the train track, the auxiliary image capturing device associated with the main image capturing device is disposed on the other side of the train track, and a position shot by the main image capturing device and a position shot by the auxiliary image capturing device are symmetrical with respect to the train track. Based on the scheme, the shooting time is obtained through the two image acquisition devices, the problem that the shooting time cannot be obtained when one image acquisition device is damaged can be avoided, and the reliability of the whole scheme is improved.

Further optionally, the method further comprises: acquiring a main shooting time when the main image acquisition equipment shoots a train carriage and an auxiliary shooting time when the auxiliary image acquisition equipment shoots the train carriage; storing a main corresponding relation between the identifier of the main image acquisition equipment and the main shooting time and an auxiliary corresponding relation between the identifier of the auxiliary image acquisition equipment and the auxiliary shooting time; determining the target time comprises: and determining the latest shooting time in the main shooting time and the auxiliary shooting time as a target time according to the main corresponding relation and the auxiliary corresponding relation. Based on the scheme, because the shooting moments of two image acquisition devices which shoot the same position can be stored, when the shooting moment corresponding to one image acquisition device cannot be obtained due to other reasons (network delay, camera shielding and the like), the shooting moment corresponding to the same train carriage of the other image acquisition device can be used as a more accurate shooting moment, and therefore the follow-up judgment of the train passing end is more accurate.

Optionally, after determining the position where the train has been shot by the image capturing device, the method further includes: and deleting the corresponding relation. Based on the scheme, the phenomenon that the train passing end exists on the train track corresponding to the shooting position of the image acquisition equipment and is repeatedly determined after a certain train passes through the train is avoided, and therefore computing resources are wasted; and the storage resources are saved for storing the new corresponding relation, and the judgment of the new train passing end is carried out.

In a second aspect, there is provided a train passing end determination device, including: the device comprises an acquisition module and a processing module; wherein the acquisition module is configured to determine a target time; the target moment is the moment when the image acquisition equipment shoots the train carriage for the latest time; the processing module is configured to determine a train track corresponding to a position where the train has been shot by the image acquisition device when the time difference between the target time and the current time determined by the acquisition module is greater than a preset time length.

Optionally, the obtaining module is further configured to obtain a shooting time when the image acquisition device shoots the train compartment; the processing module is also configured to store the corresponding relation between the shooting time and the identification of the image acquisition equipment, which is acquired by the acquisition module; the acquisition module is specifically configured to determine the target time according to the correspondence stored by the processing module.

Further optionally, the processing module is specifically configured to: under the condition that the historical storage data does not have the corresponding relation containing the identification of the image acquisition equipment, establishing a new corresponding relation between the shooting time acquired by the acquisition module and the identification of the image acquisition equipment; and under the condition that the corresponding relation containing the identification of the image acquisition equipment exists, inserting the shooting time acquired by the acquisition module into the corresponding relation containing the identification of the image acquisition equipment.

Further optionally, the image capturing device includes a main image capturing device and an auxiliary image capturing device, the main image capturing device is disposed on one side of the train track, the auxiliary image capturing device associated with the image capturing device is disposed on the other side of the train track, and a position shot by the main image capturing device and a position shot by the auxiliary image capturing device are symmetrical with respect to the train track.

Further optionally, the obtaining module is further configured to obtain a main shooting time when the main image collecting device shoots the train car and an auxiliary shooting time when the auxiliary image collecting device shoots the train car; the processing module is also configured to store a main corresponding relationship between the identifier of the main image acquisition device and the main shooting time acquired by the acquisition module, and an auxiliary corresponding relationship between the identifier of the auxiliary image acquisition device and the auxiliary shooting time acquired by the acquisition module; the processing module is further configured to determine a latest shooting time of the main shooting time and the auxiliary shooting time as a target time according to the main corresponding relationship and the auxiliary corresponding relationship.

Optionally, the processing module is further configured to: after determining the position where the train has passed the image capturing device, the correspondence is deleted.

It can be understood that, the solutions of the second aspect provided above are all used for executing the above-provided method for determining the end of train passing, so that the beneficial effects that can be achieved by the solutions can refer to the beneficial effects in the above-provided method for determining the end of train passing, and are not described herein again.

In a third aspect, a device for determining the end of train passing is provided, which comprises a memory and a processor; wherein the processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the method for determining the end of train passing provided by the first aspect.

In a fourth aspect, a computer-readable storage medium is provided, which includes computer-executable instructions, which when executed on a computer, cause the computer to perform the method for determining the end of train passing provided in the first aspect.

In a fifth aspect, a computer program product is provided, containing instructions which, when run on a computer, cause the computer to perform the method for determining the end of train passage as provided in the first aspect.

In a sixth aspect, a train-passing end determination system is provided, which comprises at least one image acquisition device and the train-passing end determination device provided in the second aspect.

It can be understood that the solutions of the third aspect to the fifth aspect provided above are all used for executing the above-provided method for determining the end of train passing, so that the beneficial effects that can be achieved by the solutions can refer to the beneficial effects in the above-provided method for determining the end of train passing, and are not described herein again.

It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.

Drawings

In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a schematic structural diagram of a train passing end determination system according to an embodiment of the present disclosure;

fig. 2 is a schematic flowchart of a method for determining train passing end according to an embodiment of the present disclosure;

fig. 3 is a schematic flowchart of another method for determining train passing end according to an embodiment of the present disclosure;

fig. 4 is a schematic flowchart of another method for determining train passing end according to an embodiment of the present disclosure;

fig. 5 is a schematic storage diagram of a correspondence relationship provided in the embodiment of the present application;

fig. 6 is a schematic flowchart of another method for determining train passing end according to an embodiment of the present disclosure;

fig. 7 is a schematic diagram of a possible implementation scenario provided by an embodiment of the present application;

fig. 8 is a schematic flowchart of another method for determining the end of train passing provided by the embodiment of the present application;

fig. 9 is a schematic view of a train passing end scene provided in an embodiment of the present application;

fig. 10 is a schematic structural diagram of a device for determining train passing end according to an embodiment of the present application;

fig. 11 is a schematic structural diagram of another train passing end determination device according to an embodiment of the present application.

Detailed Description

The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.

It should be noted that in the embodiments of the present application, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that the intended meaning is consistent when the difference is not emphasized.

For the convenience of clearly describing the technical solutions of the embodiments of the present application, in the embodiments of the present invention, the words "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like are not limited in number or execution order.

Fig. 1 illustrates a train-passing end determination system according to an exemplary embodiment, and the train-passing end determination method provided in the embodiment of the present application may be applied to the system. As shown in fig. 1, the system may include: at least one image acquisition device 01(01-1 and 01-2) and a processing device 02, wherein the image acquisition device 01 and the processing device 02 are communicated through a wired communication mode or a wireless communication mode. Illustratively, the train includes, but is not limited to: trains, high-speed trains, subways, electric cars, etc.

The image acquisition device 01 may be a camera, or may be a device having a camera function or a photographing function. The image acquisition equipment 01 is arranged near the train track, for example, on two sides of the track, the shooting direction faces the train track, each carriage of the train can be shot when the train passes through the train track corresponding to the shooting position, and the shot pictures can be stored in a local memory of the image acquisition equipment and can also be reported to the processing equipment 02 for storage. When the shot picture is reported to the processing equipment 02, the shot picture is also reported to the identification of the image acquisition equipment 01, so that the moment when the latest shot of different image acquisition equipment 01 reaches the train compartment can be conveniently determined subsequently. Of course, in order to determine the time when the image pickup device 01 last shot the train car, when the image pickup device 01 itself stores a certain shot picture, the image pickup device 01 may determine the time when the picture was shot as the shooting time of the shot picture. When the processing device 02 receives and stores the picture reported by the image acquisition device 01, the image acquisition device 01 can report the time when the image acquisition device 01 shoots the picture, so that the processing device stores the picture as the shooting time of the picture; the processing device 02 may also determine the time when the picture reported by the image acquisition device 01 is received as the shooting time of the picture and store the shooting time, and the two times have a small time delay, which is determined according to the actual parameter configuration.

Specifically, because the speed of the train is fast in the running process, the image acquisition device 01 can perform high-speed shooting or photographing, and can perform image recognition on the shot pictures to determine whether the pictures are train cars (or numbers on the train cars if necessary), and if the pictures are confirmed to have the train cars or are confirmed to be clear pictures of the train cars, the pictures are stored in a local memory or reported to the processing device 02 for storage. Furthermore, because the image acquisition device 01 with stronger high-speed camera shooting function has higher cost, and the image acquisition devices 01 need to be arranged at a plurality of places near one train track, the image acquisition device 01 with the not very strong high-speed camera shooting function needs to be selected in consideration of cost, and the image acquisition device 01 needed can be placed near the train track at the train entrance or exit where the train speed is not very fast in order to be adapted to the image acquisition device 01 with the not very strong high-speed camera shooting function. In addition, when the image acquisition equipment 01 is a snapshot machine, the snapshot interval can be changed in real time according to the corresponding train speed, and the faster the train speed is, the shorter the snapshot interval is; of course, the snapshot machine can also determine whether to take a picture according to feedback signals of other devices (such as photoelectric doors arranged on two sides of a train track).

The processing device 02 may be a terminal device, a server, or other devices with data storage and processing functions; the server may be a single server or a cluster of servers. The processing device 02 is mainly used for storing the picture reported by the image acquisition device 01, the identifier of the image acquisition device 01 and the corresponding shooting time, and facilitating the subsequent execution of the method for determining the train passing end provided by the application.

At present, in safety control or scheduling, whether a train on some road sections passes the train or not (the whole train passes through) needs to be judged, and subsequent control and scheduling are facilitated. In the prior art, whether the train passes through the train and is finished is judged manually by full-time personnel, so that time and labor are wasted, and mistakes are easily made.

In view of the above problems, the embodiment of the application provides a method for determining train passing completion, which can accurately determine whether a train passes through a fixed section of train track in time, that is, the train passing completion, and save manpower and material resources. The specific implementation subject may be the image acquisition device or the processing device, and is determined according to actual requirements.

Referring to fig. 2, an embodiment of the present application provides a method for determining train passing end, which is applied to a device for determining train passing end, where the device may be the image acquisition device 01 described above, or may be the processing device described above, and the method specifically includes 201 and 203.

201. A target time is determined.

The target moment is the moment when the image acquisition equipment shoots the train compartment for the last time.

Because the image capturing device may continuously capture the photos when a train does not pass through a certain section of train track, and the image capturing device may capture the photos of a new train after a long time (for example, 2min) after the train passes through, in practice, to save computing resources, only a target time needs to be determined every certain time length, as long as the certain time length is less than a subsequent preset time length, so that optionally, as shown in fig. 3, 201 may specifically be: the target time is determined at regular intervals. For example, the certain duration may be 2s (for example only, the certain duration may be determined according to the size of the preset duration, and needs to be less than the preset duration).

It should be noted that, in practice, the shooting angle of the image capturing device is generally fixed, which facilitates the shooting of a picture at a certain position, and thus can ensure that the picture of the train carriage at the certain position can be shot in time. Of course, if the shooting angle of the image capturing device is adjustable, the shooting angle of the image capturing device can be set to be fixed within a certain time (for example, the shooting angle is set within a certain range of the arrival time of a certain train disclosed by a railway department, and the shooting angle can be set to be adjustable in other time periods). The details may be determined in practice, and are not particularly limited.

Optionally, in order to store the corresponding relationship between the shooting time when the image capturing device shoots the train car and the identifier of the image capturing device in time, and facilitate searching for the shooting time corresponding to the image capturing device from the corresponding relationship in the following process, as shown in fig. 4, the method further includes S1-S2:

and S1, acquiring the shooting time when the image acquisition equipment shoots the train compartment.

Illustratively, when the technical solution provided by the embodiment of the present application is executed by the image capturing device, the image capturing device determines the time when the image capturing device captures the picture of the train car as "capturing time when the train car is captured" in S1; when the processing device executes the technical solution provided in the embodiment of the present application, the image capturing device may report, to the processing device, a time at which the processing device takes a picture of a train car, so that the processing device takes the time as a "shooting time at which the processing device takes the train car" in S1, and the processing device may also take a time at which the processing device receives the picture reported by the image capturing device as a "shooting time at which the processing device takes the train car" in S1, which is specifically defined. In the embodiment of the present application, in consideration of accuracy, the time when the image capturing device captures the picture of the train car by itself may be determined as "the capturing time when the train car is captured" in S1.

In addition, because there may be other vehicles allowed to pass through the train track (for example, the train track) in practice, if the recognition accuracy of the image capturing device for the object captured by the image capturing device is not high enough, some boxcars with similar car shapes and train carriages are also considered as train carriages and report corresponding photos, which causes misjudgment of the end of train passing. In an implementation manner, in the embodiment provided by the present application, the image capturing device starts to report the self-captured and determined car photo after determining that the train head is captured, and the determining device for the train passing end starts to acquire the capturing time when the image capturing device captures the train car after determining that the image capturing device captures the train head. Because the difference between the train head and the truck head is very large, the misjudgment of whether the train passes the train and is ended by the train passing end determining device provided by the embodiment of the application can be avoided.

In another implementation manner, since the speed of the truck on the train track is necessarily much lower than the speed of the train, a speed sensor may be integrated on the image capturing device, or a function of calculating the speed using the same reference point of the same point in two consecutive captured pictures is set in the program of the image capturing device, so in this embodiment of the present application, after determining whether the car is a train car according to the speed of the car captured by the image capturing device, the image capturing device starts reporting the captured pictures of the car, and the train passing end determining device obtains the capturing time when the image capturing device captures the train car when the image capturing device determines that the car captured by the image capturing device is the train car. Thereby avoiding the misjudgment condition of train passing end.

And S2, storing the corresponding relation between the shooting time and the identification of the image acquisition equipment.

Wherein the corresponding relation is used for determining the target time.

Further optionally, in an implementation manner, as shown in fig. 6, the step 201 specifically includes: and determining the target time from the corresponding relation.

For example, when the correspondence includes the shooting time when the image capturing device shoots the train car each time, the latest shooting time can be selected from all shooting times corresponding to the image capturing device as the target time; for example, the corresponding relationship specifically includes id123, 2019.11.12.151620 (16 minutes and 20 seconds at 11, 12 and 15 in 2019), 2019.11.12.151630 (16 minutes and 30 seconds at 15 in 11, 12 and 12 in 2019); 2019.11.12.151630 of them is selected as the target time. When the corresponding relation only includes the shooting time when the image acquisition equipment shoots the train compartment for the latest time, the shooting time can be directly used as the target time; for example, the correspondence specifically includes id123 and 2019.11.12.151620 (16 minutes and 20 seconds at 11, 12 and 15 in 2019); the target time is selected 2019.11.12.151620. Therefore, all shooting moments of the image acquisition equipment corresponding to the train carriage can be found out from the corresponding relation more quickly, and the target moment can be obtained.

In an implementation manner, the concrete expression form for storing the corresponding relationship may be: different storage nodes can be set, the specific storage mode can be any form such as a queue and a stack, information of one image acquisition device (an identifier of the image acquisition device and shooting time when the image acquisition device shoots a train carriage) is stored in each storage node, and in one storage node, the shooting time when the image acquisition device shoots the train carriage can be stored every time, specifically, as shown in a in fig. 5, an identifier of the image acquisition device 1 and a plurality of corresponding shooting times (time 1, time 2 …, time n) when the image acquisition device 1 shoots the train carriage are stored in the storage node 1; or only the latest shooting time of the train cars shot by the image capturing device may be stored, and when the shooting time of the train cars shot by the new image capturing device occurs, the shooting time of the train cars shot by the old image capturing device is updated to the shooting time of the train cars shot by the new image capturing device, specifically, as shown in b in fig. 5, the storage node 2 stores the identifier of the image capturing device 2 and the shooting time (latest time) of the train cars shot by the latest image capturing device.

Optionally, in order to ensure that the corresponding relationship between the shooting time and the identifier of the image capturing device is stored in time and information redundancy of the storage space is not caused, S2 specifically includes: under the condition that the corresponding relation containing the identification of the image acquisition equipment does not exist in the historical storage data, establishing a new corresponding relation between the shooting time and the identification of the image acquisition equipment; and inserting the shooting time into the corresponding relation containing the identification of the image acquisition equipment under the condition that the corresponding relation containing the identification of the image acquisition equipment exists. Taking the storage node storage correspondence as an example, when the correspondence is actually stored, traversing all storage nodes to judge whether the storage node corresponding to the image acquisition device exists in the existing storage nodes, and if so, inserting the correspondence between the shooting time and the identifier of the image acquisition device into the corresponding storage node; and if the image data does not exist, a new storage node is newly established and used for storing the corresponding relation between the shooting moment and the identification of the image acquisition equipment.

In another implementation manner, the expression form of the correspondence may be a table capable of expressing the correspondence between the shooting time and the identifier of the image capturing device, and the specific table may include the identifier of each image capturing device and the shooting time when each image capturing device shoots the train car each time, or may include the identifier of each image capturing device and the shooting time when each image capturing device shoots the train car the latest time. For example, when the corresponding relationship is actually stored, the table may be traversed first to determine whether the identifier of the image capturing device exists in the existing corresponding relationship table, and if the identifier of the image capturing device exists, the shooting time is inserted into the corresponding position in the corresponding relationship table; and if the corresponding relation does not exist, expanding the table, wherein the expanded area is used for storing the corresponding relation between the shooting time and the identification of the image acquisition equipment.

Of course, any other feasible implementation manner may be adopted, and the embodiments of the present application are not particularly limited thereto.

It should be noted that the steps S1-S2 before 201 in fig. 4 are only examples, and in practice, the steps S1-S2 are performed in real time in the whole process of 201-203.

Optionally, in practice, because the determining device for determining the train passing end may not obtain or delay the capturing time corresponding to a certain train car from a time to a time, which may be caused by a certain time delay due to various problems (network delay, camera being blocked, etc.), so that the final determination result of whether the train passes the end exists in a non-timely or inaccurate situation, as shown in fig. 7, in the technical solution provided by the embodiment of the present application, the image capturing device may include a main image capturing device 01-1 and an auxiliary image capturing device 01-2, where the main image capturing device 01 is disposed on one side of the train track 60, and the main image capturing device is associated with the main image capturing device (for example, the identifier of the main image capturing device is id 121-main, and the identifier of the auxiliary image capturing device is id 121-auxiliary), and for example, the main image capturing device and the auxiliary image capturing device correspond to the same standard mark Identify 121), and a position captured by the auxiliary image capturing device 03 and a position captured 01 by the main image capturing device are symmetric with respect to a train track, in this scenario, as shown in fig. 8, the method for determining the end of train passing provided in the embodiment of the present application further includes: X1-X2:

and X1, acquiring the main shooting time when the main image acquisition device shoots the train compartment and the auxiliary shooting time when the auxiliary image acquisition device shoots the train compartment.

And X2, storing the main corresponding relation between the identifier of the main image acquisition equipment and the main shooting time and the auxiliary corresponding relation between the identifier of the auxiliary image acquisition equipment and the auxiliary shooting time.

In an implementation manner, in order to find the auxiliary correspondence from the main correspondence, or find the main correspondence from the auxiliary correspondence, an association between an identifier of the main image acquisition device and an identifier of the auxiliary image acquisition device may be stored in the main correspondence and the auxiliary correspondence, where the identifier of the main image acquisition device is id 121-main and the identifier of the auxiliary image acquisition device is id 121-auxiliary, and the association may be id 121-main or id 121-auxiliary, or an address pointing to a storage area where the auxiliary/main correspondence is located; the determination device is not particularly limited as long as the determination device that enables the train to pass through the train can find the auxiliary corresponding relationship according to the association relationship. Of course, the association relationship stored in the subsequent correspondence relationship is the same. It should be noted that, the main correspondence may store the correspondence between the identifiers of all the main image capturing devices and the main shooting time, or may store only the correspondence between the latest shooting time of the shooting times of the main image capturing devices to the train car; the auxiliary corresponding relationship may store the corresponding relationship between the identifiers of all the auxiliary image capturing devices and the auxiliary shooting time, or may only store the corresponding relationship between the latest shooting time of the auxiliary image capturing devices to the train car. The storage of the primary correspondence and the secondary correspondence may refer to a specific expression of the storage manner of the correspondence after the step S2, and details thereof are not described herein.

In another implementation manner, in a case where the main image capturing device and the auxiliary image capturing device share the same identifier (the identifier may indicate the same train track to which the shooting positions of the main image capturing device and the auxiliary image capturing device correspond together), the auxiliary correspondence and the main correspondence may be a total correspondence. It should be noted that the total correspondence may store the correspondence between all the identifiers and all the main shooting moments and the auxiliary shooting moments; only the correspondence between the flag and the latest shooting time among the shooting times may be stored. For example, taking the identifier as id121, the identifier, and all the main shooting time and the auxiliary shooting time may be stored in the corresponding relationship in the storage area; it is also possible to store only the identification and the latest shooting time of all the main shooting times and the sub shooting times. The storage of the total correspondence may refer to a specific expression of the storage manner of the correspondence after the step S2, and details thereof are not described herein.

The auxiliary corresponding relation and the main corresponding relation are jointly used for determining target time; at this time, referring to fig. 8, step 201 specifically includes: and determining the latest shooting time in the main shooting time and the auxiliary shooting time as a target time according to the main corresponding relation and the auxiliary corresponding relation. Illustratively, when the primary correspondence is stored: id 121-primary and 2018.11.12.101212 (11, 12, 10, 12 min 12 sec 2018), and the secondary correspondence stores: id 121-secondary sum 2018.11.12.101113 (11 min 13 sec 11 h 12 h 10 h 11 h 2018), which is that it can be considered that the secondary image capturing device should fail to capture the train car for blocking or upload the captured picture to the server in time due to network problems, so that 2018.11.12.101212 is determined as the target time.

In addition, in addition to the scenario shown in fig. 7 to which the technical solution corresponding to X1-X2 is directed, in practice, more than two image capturing devices may be provided, and the identifiers of the image capturing devices are associated with each other, and in a specific implementation, the technical solution corresponding to X1-X2 may be referred to, so that once one of the image capturing devices fails, other image capturing devices may function to provide data support for determining whether the train has passed through the train, and at the same time, the determination result may be more accurate. Of course, when a plurality of image capturing apparatuses are provided, the plurality of image capturing apparatuses may not all be captured for the same area as long as it is ensured that the areas captured by the image capturing apparatuses are close.

Based on the above steps X1-X2, the shooting times of two image capturing devices that shoot the same position can be stored, so that when the shooting time corresponding to one image capturing device cannot be obtained or cannot be obtained in time due to other reasons (network delay, camera shielding, etc.), the shooting time corresponding to the same train car by the other image capturing device can be used as a more accurate shooting time, thereby ensuring that the subsequent judgment of the train passing end is more accurate.

Further optionally, when the server receives the picture of the train car sent by the image acquisition device as the shooting time, because different network conditions may exist between the main image acquisition device and the auxiliary image acquisition device, a certain time difference may exist between the main shooting time and the auxiliary shooting time for the same car, if it is required to more accurately determine whether the train passes through the train, a newer one of the main shooting time and the auxiliary shooting time for the same car needs to be deleted, so that the true latest shooting time can be finally determined.

In an implementable manner, if the main image acquisition device and the auxiliary image acquisition device both shoot each train car, the main shooting time and the auxiliary shooting time corresponding to the same train car in the main corresponding relationship and the auxiliary corresponding relationship can be determined according to the stored sequence; for example, the second stored shot time or the first updated shot time in the primary correspondence and the second stored auxiliary shot time or the first updated auxiliary shot time in the auxiliary correspondence correspond to the same train car. It should be noted that, for the total correspondence relationship formed by combining the main correspondence relationship and the auxiliary correspondence relationship, and when the main image capturing device and the auxiliary image capturing device correspond to the same identifier, the storage order of the main shooting time and the auxiliary shooting time may not be determined, and thus the above-described scheme cannot be implemented.

In another implementation manner, if the main image capturing device and the auxiliary image capturing device may not capture each train car, the main capturing time and the auxiliary capturing time with the same number on the corresponding train car photo of the train car may be considered to correspond to the same train car. It should be noted that the above-mentioned scheme may be applicable to a total correspondence relationship that is a combination of a primary correspondence relationship and a secondary correspondence relationship, and a primary image acquisition device and a secondary image acquisition device correspond to the same identifier.

Of course, any other feasible manner is also possible, and the method is not particularly limited here.

It should be noted that, according to the above-described technical solution for deleting the newer one of the main shooting time and the auxiliary shooting time for the same train car, since a part of the shooting times (the main shooting time or the auxiliary shooting time) can be deleted, it is possible to save the storage resources on the basis of ensuring that the main shooting time or the auxiliary shooting time for determining the target time is the most accurate.

202. And under the condition that the time difference between the target time and the current time is greater than the preset time, determining a train track corresponding to the position where the train has passed through the image acquisition equipment.

Specifically, in practice, the determining device for train passing end may have a determining step, which is configured to determine whether a time difference between a target time and a current time is greater than a preset time, and determine a train track corresponding to a position where a train has been shot by the image capturing device when the time difference between the target time and the current time is greater than the preset time. In the case where it is determined that the time difference between the target time and the current time is less than the preset time period, 201 is re-executed. It should be noted that, the difference between the target time and the current time is equal to the preset time length, which may be attributed to a case that "the time difference between the target time and the current time is greater than the preset time length" or an instance that "the time difference between the target time and the current time is less than the preset time length".

For example, the preset time period may be 15 s; in an implementation manner, the preset time duration may be specifically determined according to the time difference of different trains passing through the same road section on the train track, where the larger the time difference is, the larger the preset time duration is, the smaller the time difference is, and the smaller the preset time duration is; further, in order to be able to determine that the train has passed the end in time, the preset time duration should be less than the time difference; the time difference can be obtained by publishing data from the train management department. In another implementation, the preset time period may be determined according to the speed of different trains passing through the image train track.

For example, referring to fig. 9, a train track corresponding to a shooting position of the image capturing device 01 is a section of train track 61 on a certain train track 60, when a train 62 passes through the train track 61 until the train track or the tail 621 does not exceed the train track 61, the image capturing device 01 cannot shoot a train car until the next train arrives, and the corresponding relationship between the image capturing device 01 and the shooting time cannot be updated; and because the next train or the coming train should be after a certain time (longer than the preset time), when the time difference between the target time and the current time is longer than the preset time, it can be determined that one train passes through the train track corresponding to the position shot by the image acquisition equipment. The device for determining the end of train passing can send the determined result to the subsequent management terminal needing safety control or scheduling after the step 203 is executed, so that the management personnel can perform corresponding safety control or scheduling.

As the determining apparatus for train passing end after a train has passed through train end wastes own computing resources and also wastes storage resources for storing the foregoing corresponding relationship if it repeatedly determines that there is train passing end on the train track corresponding to the shooting position of the image capturing device, in a further optional manner, as shown in fig. 6 in conjunction with fig. 2, the step 202 further includes 203A:

203A, deleting the corresponding relation.

S1 is executed after 203A.

Optionally, in another implementation manner, with reference to fig. 8 in combination with fig. 2, after the step 202, a step 203B is further included:

203B, deleting the primary corresponding relation and the secondary corresponding relation.

After 203B, X1 is performed.

When the primary correspondence and the secondary correspondence are combined into a total correspondence, the total correspondence is specifically deleted 203B.

It should be noted that, after determining the position where the train has passed through the image capturing device for shooting, the correspondence relationship is deleted, and in the case that it is determined that there is no correspondence relationship containing the identifier of the image capturing device in the history storage data, a new correspondence relationship between the shooting time and the identifier of the image capturing device is created, and the arrival of a new train can be known by the time when the correspondence relationship is newly created each time. Further optionally, as shown in fig. 6 and 8, in order to notify the user in time when a new vehicle arrives after the vehicle passing is finished, after the corresponding relationship (or the primary corresponding relationship and the secondary corresponding relationship) corresponding to the image capturing device (or the primary image capturing device and the secondary image capturing device) is deleted, when a new corresponding relationship is newly established, an indication that the new vehicle arrives is sent to the management terminal of the manager as a prompt, so the method further includes S3 or X3:

and S3, when the corresponding relation is determined to be new, sending a new vehicle arrival instruction to the management terminal.

And X3, sending a new vehicle arrival indication to the management terminal under the condition that the main corresponding relationship is determined to be new and the auxiliary corresponding relationship does not exist or the auxiliary corresponding relationship is determined to be new and the main corresponding relationship does not exist or the main corresponding relationship and the auxiliary corresponding relationship are both new.

Based on the technical scheme provided by the embodiment, after the latest shooting time of the image acquisition device for the train carriages is obtained, the difference value between the shooting time and the current time is compared with the preset time length, because the time interval of two trains passing through the same train track is necessarily longer (longer than the preset time length), and the time interval of different carriages on the same train passing through the train track is necessarily shorter (shorter than the preset time length), when the difference value between the shooting time and the current time is longer than the preset time length, it is indicated that the train on which the train carriage shot by the image acquisition device at the latest passes through the train track corresponding to the shooting position of the image acquisition device, namely the train has passed through the train and ended. The whole scheme can automatically judge whether the train passes the end of the train on certain railway sections of the railway train in time by acquiring the moment when the image acquisition equipment shoots the train carriage, and provides powerful support for subsequent safety control or scheduling. Compared with manual judgment in the prior art, the method is more accurate and timely, and the labor cost is greatly reduced.

The above embodiments mainly describe the solutions provided by the embodiments of the present disclosure from the perspective of a determination device (terminal/server) for train passing end. It is understood that, in order to implement the above method, the device for determining the end of train passing includes hardware structures and/or software modules corresponding to the execution of the respective method processes, and the hardware structures and/or software modules corresponding to the execution of the respective method processes may constitute a device for determining the end of train passing. Those of skill in the art will readily appreciate that the present disclosure can be implemented in hardware or a combination of hardware and computer software for implementing the exemplary algorithm steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present disclosure.

The embodiment of the present disclosure may perform the division of the function modules on the determination device for train passing end according to the above method example, for example, the determination device for train passing end may divide each function module corresponding to each function, or may integrate two or more functions into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, the division of the modules in the embodiments of the present disclosure is illustrative, and is only one division of logic functions, and there may be another division in actual implementation.

Fig. 10 shows a schematic diagram of a possible structure of the train-passing-end determining device 03 in the case of dividing the function modules according to the functions, where the train-passing-end determining device 03 may be a part of the image capturing apparatus 01 in the foregoing embodiment or itself, or a part of the processing apparatus 02 in the foregoing embodiment or itself. The train passing end determination device 03 includes: including an acquisition module 71 and a processing module 72.

Wherein the obtaining module 71 is configured to determine a target moment; the target moment is the moment when the image acquisition equipment shoots the train carriage for the latest time; the processing module 72 is configured to determine a train track corresponding to a position where a train has been captured by the image capturing device when the time difference between the target time and the current time determined by the obtaining module 71 is greater than a preset time length.

Optionally, the obtaining module 71 is further configured to obtain a shooting time when the image capturing device shoots the train car; the processing module 72 is further configured to store a correspondence between the shooting time and the identification of the image capturing apparatus acquired by the acquisition module 71; the acquisition module 71 is specifically configured to determine the target time according to the correspondence stored by the processing module 72.

Further optionally, the processing module 72 is specifically configured to: under the condition that the historical storage data does not have the corresponding relation containing the identification of the image acquisition equipment, establishing a new corresponding relation between the shooting time acquired by the acquisition module 71 and the identification of the image acquisition equipment; in a case where it is determined that there is a correspondence relationship containing the identification of the image pickup apparatus, the shooting time acquired by the acquisition module 71 is inserted into the correspondence relationship containing the identification of the image pickup apparatus.

Further optionally, the image capturing device includes a main image capturing device and an auxiliary image capturing device, the main image capturing device is disposed on one side of the train track, the auxiliary image capturing device associated with the image capturing device is disposed on the other side of the train track, and a position shot by the main image capturing device and a position shot by the auxiliary image capturing device are symmetrical with respect to the train track.

Further optionally, the obtaining module 71 is further configured to obtain a main shooting time when the main image collecting device shoots the train car and an auxiliary shooting time when the auxiliary image collecting device shoots the train car; the processing module 72 is further configured to store the identifier of the main image acquisition device and the main correspondence of the main shooting time acquired by the acquisition module 71, and the identifier of the auxiliary image acquisition device and the auxiliary correspondence of the auxiliary shooting time acquired by the acquisition module 71; the processing module 72 is further configured to determine a latest shooting time of the main shooting time and the auxiliary shooting time as a target time according to the main correspondence and the auxiliary correspondence.

Optionally, the processing module 72 is further configured to: after determining the position where the train has passed the image capturing device, the correspondence is deleted.

With regard to the device for determining the end of train passing in the foregoing embodiment, the specific manner in which each module performs the operation and the corresponding beneficial effects have been described in detail in the foregoing embodiment of the method for determining the end of train passing, and will not be described again here.

In the case of the integrated module, the train-passing end determination device includes: storage unit, processing unit. The processing unit is used for controlling and managing, for example, the processing unit is used for supporting the main control board to execute the steps executed by the obtaining module 71 and the processing module 72 in the foregoing embodiments; and the storage unit is used for storing the program codes and the data of the train passing end determining device.

The processing unit is used as a processor, and the storage unit is used as a memory. Referring to fig. 11, another apparatus for determining the end of train passing according to the embodiment of the present application includes a memory 81 and a processor 82. The memory 81 is used for storing instructions executable by the processor 82, and the processor 82 is configured to execute the instructions to implement the train passing end determination method in the above embodiment.

In particular implementations, processor 82(82-1 and 82-2) may include one or more CPUs, such as CPU0 and CPU1 shown in FIG. 11, for example, as one embodiment. And as an example, the means for determining the end of train pass may include a plurality of processors 82, such as processor 82-1 and processor 82-2 shown in fig. 11. Each of the processors 82 may be a Single-Core Processor (CPU) or a Multi-Core Processor (CPU). Processor 82 herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).

The Memory 81 may be a Read-Only Memory 81 (ROM) or other type of static storage device that can store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that can store information and instructions, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a compact disc Read-Only Memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), a magnetic disc storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 81 may be self-contained and coupled to the processor 82 via a bus 83. The memory 81 may also be integrated with the processor 82.

In a specific implementation, the memory 81 is used for storing data in the present application and computer-executable instructions corresponding to software programs for executing the present application. The processor 82 may determine the end of train pass determination by running or executing a software program stored in the memory 81 and invoking data stored in the memory 81.

The communication interface 84 is any device such as a transceiver for communicating with other devices or communication networks, such as a control system, a Radio Access Network (RAN), a Wireless Local Area Network (WLAN), and the like. The communication interface 84 may include a receiving unit to implement the receiving function and a transmitting unit to implement the transmitting function.

The bus 83 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended ISA (enhanced Industry Standard Architecture) bus, or the like. The bus 83 may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 11, but this is not intended to represent only one bus or type of bus.

The embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is enabled to execute the method for determining the end of train passing provided in the foregoing embodiment.

The embodiment of the present application further provides a computer program product, where the computer program may be directly loaded into the memory, and contains software codes or instructions, and when the computer program product is loaded and executed by a computer, the method for determining the end of train passing provided in the foregoing embodiment can be implemented.

As shown in fig. 1, the train-passing end determining system includes at least one image capturing device 01 and a processing device 02 provided in the foregoing implementation, where any one of the image capturing device 01 and the processing device 02 may be the train-passing end determining apparatus 03 to execute the train-passing end determining method in the foregoing embodiment, so that the train-passing end determining system solves the technical problems solved by the present disclosure and achieves the technical effects achieved by the present disclosure, which are not described herein again.

Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer-readable storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions.

In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical function division, and there may be other division ways in actual implementation. For example, various elements or components may be combined or may be integrated into another device, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form. Units described as separate parts may or may not be physically separate, and parts displayed as units may be one physical unit or a plurality of physical units, may be located in one place, or may be distributed to a plurality of different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or partially contributed to by the prior art, or all or part of the technical solutions may be embodied in the form of a software product, where the software product is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种搬运车

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!