Learning program, learning device, and learning method
The learning program and device enhance senior car safety by using machine learning to detect and inform about railroad crossings, addressing the lack of sufficient information in existing systems.
Patent Information
- Application Number
- JP2020142016
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-25
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2040-08-25
AI Technical Summary
Existing senior cars lack sufficient information about the presence of railroad crossings on their travel routes, which can compromise safety during operation.
A learning program and device that utilize machine learning to detect railroad crossing signs, calculate distance information, and provide detailed information about the presence and proximity of railroad crossings using image data captured by an imaging device.
Enhances safety by providing accurate information about railroad crossings, ensuring the driver's awareness and reducing the risk of accidents.
Smart Images

Figure 0007553754000003 
Figure 0007553754000009 
Figure 0007553754000014
Abstract
Description
[Technical field]
[0001] The present invention relates to a learning program, a learning device, and a learning method. [Background technology]
[0002] In recent years, the use of electric carts (hereafter referred to as senior cars) aimed at supporting the daily activities of the elderly has become widespread. For example, by riding in a senior car when going out for shopping, the elderly can reduce the physical burden associated with going out.
[0003] Here, there is a possibility that the senior car as described above may fall over while being driven due to, for example, a bad road, etc. In this case, the elderly person may not be able to stand up by himself / herself.
[0004] For this reason, the senior car travels while detecting the presence of places where driving must be done with particular caution (for example, railroad crossings on the driving route). When the senior car detects the presence of a railroad crossing on the driving route, it notifies the driver (elderly person) of information about the detected crossing. This makes it possible for the senior car to ensure the safety of the driver (elderly person) while driving (see Patent Documents 1 to 3). [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2020-042853 A [Patent Document 2] JP 2017-016604 A [Patent Document 3] Japanese Patent Application Publication No. 11-339197 Summary of the Invention [Problem to be solved by the invention]
[0006] However, the above-mentioned information on the presence or absence of railroad crossings may be insufficient to ensure the safety of drivers of senior cars. Therefore, in the field of senior cars, there is a demand for the provision of more information on railroad crossings that exist on the travel route.
[0007] SUMMARY OF THE PRESENT DISCLOSURE An object of the present invention is to provide a learning program, a learning device, and a learning method that are capable of providing information about railroad crossings on a travel route. [Means for solving the problem]
[0008] In order to achieve the above-mentioned object, the learning program of the present invention is characterized in that, in response to acquiring multiple pieces of training image data captured by an imaging device, in each of the multiple pieces of training image data, a predetermined type of object reflected in each of the multiple pieces of training image data is detected, and for each of the multiple pieces of training image data, distance information from the imaging device to the predetermined type of object is added to positional information of the predetermined type of object in each of the multiple pieces of training image data, thereby generating multiple pieces of training data, and generating a learning model by performing machine learning using the multiple training data.
[0009] In addition, in one aspect, the learning program of the present invention for achieving the above-mentioned object is characterized in that, for each of the multiple training image data, the multiple training data are generated by adding the distance information from the imaging device to the specified type of object to each training image data and the position information corresponding to each training image data.
[0010] In addition, in one aspect, the learning program of the present invention for achieving the above-mentioned object is characterized in that, in response to acquiring first detection image data captured by an imaging device, a computer is caused to execute a process of detecting the specified type of object reflected in the first detection image data, identifying a value output from the learning model in response to input of positional information in the first detection image data of the detected specified type of object as first distance information from the imaging device that captured the first detection image data to the specified type of object, and outputting the identified first distance information.
[0011] In addition, in one aspect, the learning program of the present invention for achieving the above-mentioned object is characterized in that when multiple predetermined types of objects are detected in the process of detecting the predetermined types of objects, the first distance information from the imaging device that captured the first detection image data to each predetermined type of object is identified for each of the multiple predetermined types of objects, and the minimum value of the identified first distance information is output.
[0012] In addition, in one aspect, the learning program of the present invention for achieving the above-mentioned object is characterized in that it has a computer execute a process to calculate the difference between the maximum value and the minimum value in the first distance information, detect the specified type of object from the second detection image data in response to obtaining second detection image data captured after the first detection image data, and if a first object corresponding to the minimum value is not detected, identify the value output from the learning model in response to input of position information in the second detection image data of the second object corresponding to the maximum value as the second distance information from the imaging device that captured the second detection image data to the second object, and output third distance information calculated by subtracting the difference from the identified second distance information.
[0013] In addition, in one aspect, the learning program of the present invention for achieving the above-mentioned object is characterized in that it has a computer execute a process to determine, for each of the plurality of predetermined types of objects, a relationship between the size of each predetermined type of object and the size of another type of object different from the predetermined type, and in response to obtaining second detection image data imaged after the first detection image data, detect the predetermined type of object and the other type of object from the second detection image data, and if a first object corresponding to the minimum value is not detected, calculate the size of the first object from the size of the other type of object detected from the second detection image data and the relationship, determine the value output from the learning model in response to the input of the size of the first object as fourth distance information from the imaging device that captured the second detection image data to the first object, and output the determined fourth distance information.
[0014] In addition, in one aspect, the learning program of the present invention for achieving the above-mentioned object is characterized in that, for each of the plurality of predetermined types of objects, a ratio of the size of each predetermined type of object to the size of the other types of objects is calculated, and if the first object is not detected, the size of the first object is calculated by multiplying the ratio by the size of the other types of objects detected from the second detection image data.
[0015] In addition, in order to achieve the above-mentioned object, the learning device of the present invention is characterized in having an object detection unit that detects a predetermined type of object reflected in each of the multiple training image data in response to acquiring multiple training image data captured by an imaging device, a learning data generation unit that generates multiple training data for each of the multiple training image data by adding distance information from the imaging device to the predetermined type of object to positional information of the predetermined type of object in each of the multiple training image data, and a model generation unit that generates a learning model by performing machine learning using the multiple training data.
[0016] In addition, the learning method of the present invention for achieving the above-mentioned object is characterized in that, in response to acquiring multiple pieces of training image data captured by an imaging device, a predetermined type of object reflected in each of the multiple pieces of training image data is detected for each of the multiple pieces of training image data, distance information from the imaging device to the predetermined type of object is added to positional information of the predetermined type of object in each of the multiple pieces of training image data, thereby generating multiple pieces of training data, and machine learning is performed using the multiple training data to generate a learning model, which is performed by having a computer execute a process. Effect of the Invention
[0017] According to the learning program, learning device, and learning method of the present invention, it is possible to easily provide information about railroad crossings on a travel route. [Brief description of the drawings]
[0018] [Figure 1] FIG. 1 is a diagram showing an example of a configuration of an information processing device 1 according to the first embodiment. [Diagram 2] FIG. 2 is a diagram illustrating the relationship between a senior car 3 and a railroad crossing 4. As shown in FIG. [Diagram 3] FIG. 3 is a diagram illustrating an example of the configuration of the detecting terminal 2 in the first embodiment. [Figure 4] FIG. 4 is a diagram for explaining an outline of the learning process in the first embodiment. [Diagram 5] FIG. 5 is a diagram for explaining an outline of the inference process in the first embodiment. [Figure 6] FIG. 6 is a flowchart illustrating details of the learning process in the first embodiment. [Figure 7] FIG. 7 is a flowchart illustrating details of the inference process in the first embodiment. [Figure 8] FIG. 8 is a flowchart illustrating details of the inference process in the first embodiment. [Figure 9]FIG. 9 is a flowchart illustrating details of the inference process in the first embodiment. [Figure 10] FIG. 10 is a flowchart illustrating details of the inference process in the first embodiment. [Figure 11] FIG. 11 is a diagram for explaining a specific example of the railroad crossing 4. As shown in FIG. [Figure 12] FIG. 12 is a diagram illustrating a specific example of the first learning model. [Figure 13] FIG. 13 is a diagram illustrating a specific example of the first learning model. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0019] Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments.
[0020] First, a configuration example of an information processing device 1 (hereinafter also referred to as a learning device 1) in the first embodiment will be described. Fig. 1 is a diagram showing a configuration example of the information processing device 1 in the first embodiment.
[0021] The information processing device 1 is a computer device, for example, a general-purpose PC (Personal Computer). As shown in Fig. 2, the information processing device 1 performs a learning process (hereinafter, also simply referred to as a learning process) of a learning model that calculates (estimates) the distance between a senior car 3 and a railroad crossing 4 that exists on the travel route of the senior car 3.
[0022] 1, the information processing device 1 has a hardware configuration of a general-purpose computer device, and includes, for example, a CPU 101 which is a processor, a memory 102, a communication interface 103, and a storage medium 104. Each unit is connected to each other via a bus 105.
[0023] The storage medium 104 has, for example, a program storage area (not shown) for storing a program (not shown) for performing a learning process.
[0024] The storage medium 104 also includes a storage unit 110 (hereinafter also referred to as a storage area 110) that stores information used when performing the learning process. The storage medium 104 may be, for example, a hard disk drive (HDD) or a solid state drive (SSD).
[0025] The CPU 101 executes a program loaded from the storage medium 104 to the memory 102 to perform learning processing.
[0026] The communication interface 103 communicates with the detection terminal 2 via a network NW such as the Internet.
[0027] Next, a description will be given of a configuration example of the detecting terminal 2 in the first embodiment. Fig. 3 is a diagram showing a configuration example of the detecting terminal 2 in the first embodiment.
[0028] The detection terminal 2 is a computer device, for example, a mobile terminal such as a smartphone. As shown in Fig. 2, the detection terminal 2 is, for example, a device attached near the front of the senior car 3 in the traveling direction, and performs inference processing (hereinafter, also simply referred to as inference processing) by using a learning model generated by the information processing device 1.
[0029] The detection terminal 2 has the hardware configuration of a general-purpose computer device, and for example, as shown in Fig. 3, has a CPU 201 which is a processor, a memory 202, a communication interface 203, and a storage medium 204. Each part is connected to each other via a bus 205.
[0030] The storage medium 204 has, for example, a program storage area (not shown) that stores a program (not shown) for performing a learning process.
[0031] The storage medium 204 also includes a storage unit 210 (hereinafter also referred to as a storage area 210) that stores information used when performing an inference process using a learning model generated by the information processing device 1. The storage medium 204 may be, for example, an HDD or an SSD.
[0032] The CPU 201 executes a program loaded from the storage medium 204 to the memory 202 to perform learning processing.
[0033] The communication interface 203 communicates with the information processing device 1 via a network NW such as the Internet. Note that information may be transferred between the information processing device 1 and the detection terminal 2 manually by an operator using a storage medium such as a USB memory.
[0034] Specifically, for example, while the senior car 3 is traveling, the detection terminal 2 continuously inputs image data included in video data about the traveling route captured by an imaging device 2a such as a camera to a learning model previously received from the information processing device 1. Then, by using values output from the learning model, the detection terminal 2 continuously calculates the distance between the senior car 3 and a railroad crossing 4 that exists on the traveling route of the senior car 3. Furthermore, the detection terminal 2 notifies, for example, the driver of the senior car 3 (elderly person) of information indicating the approach status between the senior car 3 and the railroad crossing 4 and the distance between the senior car 3 and the railroad crossing 4.
[0035] The detection terminal 2 may include an internal imaging device 2a that captures video data about the travel route.
[0036] In addition, although the following describes a case where the learning process is performed in the information processing device 1, the learning process may be performed in the detection terminal 2. In other words, the detection terminal 2 may perform inference processing by using a learning model generated in the detection terminal 2 itself.
[0037] [Outline of the first embodiment] Next, an overview of the learning process and the inference process in the first embodiment will be described.
[0038] First, an outline of the learning process in the first embodiment will be described. Fig. 4 is a diagram for explaining an outline of the learning process in the first embodiment.
[0039] The image acquisition unit 111 of the information processing device 1 acquires, for example, a plurality of image data (hereinafter, also referred to as learning image data) used to generate a learning model.
[0040] Specifically, the image acquisition unit 111 acquires, for example, a plurality of image data constituting video data (for example, video data captured in advance by the imaging device 2a) previously stored in the storage area 110 by an operator.
[0041] Then, the object detection unit 112 of the information processing device 1 detects, for each of the multiple image data acquired by the image acquisition unit 111, an object of a predetermined type that appears in each of the image data.
[0042] Specifically, a railroad crossing 4 existing on the travel route of the senior car 3 often has a railroad crossing warning sign 4a, as shown in Fig. 2. Therefore, the object detection unit 112 detects the railroad crossing warning sign 4a included in each of the multiple image data acquired by the image acquisition unit 111, for example.
[0043] Next, the learning data generation unit 113 of the information processing device 1 generates multiple learning data by adding distance information (correct answer label) from the imaging device 2a to information about the position and size of a predetermined type of object in each image data acquired by the image acquisition unit 111 (hereinafter, collectively referred to as simply position information).
[0044] Specifically, the learning data generation unit 113 generates multiple learning data by, for example, associating each image data set acquired by the image acquisition unit 111 with at least some of the X coordinate, Y coordinate, vertical width, horizontal width, area, aspect ratio, etc. of the railroad crossing warning sign 4a shown in each image data set, and distance information from the imaging device 2a to the railroad crossing warning sign 4a shown in each image data set.
[0045] In addition, the learning data generation unit 113 may generate multiple learning data by, for example, adding distance information from the imaging device 2a to a predetermined type of object for each of the multiple image data acquired by the image acquisition unit 111, to each image data and position information corresponding to a predetermined type of object in each image data.
[0046] Furthermore, the learning data generating unit 113 may generate multiple learning data by using, for example, the maximum value of the vertical width and horizontal axis of the railroad crossing warning sign 4a as position information. This makes it possible for the learning data generating unit 113 to generate learning data that can generate a learning model with high judgment accuracy, even if there is a lot of image data in which part of the railroad crossing warning sign 4a is not captured due to the presence of an obstacle or the like.
[0047] Thereafter, the model generation unit 114 of the information processing device 1 performs machine learning using the multiple pieces of learning data generated by the learning data generation unit 113, thereby generating a learning model.
[0048] Next, an outline of the inference process in the first embodiment will be described below. Fig. 5 is a diagram for explaining an outline of the inference process in the first embodiment.
[0049] The image acquisition unit 211 of the detection terminal 2 acquires, for example, image data (hereinafter also referred to as detection image data) included in video data captured by the imaging device 2a. Specifically, the image acquisition unit 211 receives, for example, image data transmitted from the detection terminal 2.
[0050] Then, the object detection unit 212 of the detection terminal 2 detects a predetermined type of object appearing in the image data acquired by the image acquisition unit 211 .
[0051] Specifically, the object detection unit 212 detects the railroad crossing warning sign 4a included in the image data acquired by the image acquisition unit 211, for example.
[0052] Next, the distance determination unit 213 of the detection terminal 2 determines the value output from the learning model in response to input of position information in the image data of a predetermined type of object detected by the object detection unit 212 as distance information from the imaging device 2a to the predetermined type of object.
[0053] Specifically, the distance determination unit 213 determines, for example, a value output from the learning model in response to input of at least some of the image data acquired by the image acquisition unit 211 and the X coordinate, Y coordinate, vertical width, horizontal width, area, aspect ratio, etc. of the railroad crossing warning sign 4a in the image data, as distance information from the imaging device 2a (senior car 3) to the railroad crossing warning sign 4a.
[0054] Thereafter, the information output unit 214 of the detection terminal 2 notifies the driver of the senior car 3 (elderly person), for example, of the distance information identified by the distance identification unit 213.
[0055] That is, the information processing device 1 in the present embodiment not only notifies the driver of the presence or absence of a railroad crossing 4 on the travel route of the senior car 3, but also of the distance information between the senior car 3 and the railroad crossing 4.
[0056] This enables the information processing device 1 to further ensure the safety of the driver while the senior car 3 is traveling.
[0057] [Details of the first embodiment] Next, the learning process and the inference process in the first embodiment will be described in detail. Figures 6 to 10 are flow charts for explaining the details of the learning process and the inference process in the first embodiment. Figures 11 to 13 are diagrams for explaining the details of the learning process and the inference process in the first embodiment.
[0058] [Learning process details] First, details of the learning process in the first embodiment will be described below. Fig. 6 is a diagram for explaining the details of the learning process.
[0059] 6, the image acquisition unit 111 waits until the learning timing (NO in S11), for example. The learning timing may be the timing when the operator inputs information to start the learning process of the learning model via an operation terminal (not shown), for example.
[0060] Then, when the learning timing arrives (YES in S11), the image acquisition unit 111 acquires a plurality of image data constituting the video data stored in the storage area 110 (S12).
[0061] Next, the object detection unit 112 detects the railroad crossing warning sign 4a reflected in each of the multiple image data acquired in the process of S12 (S13).
[0062] Specifically, for example, when the image data shown in FIG. 11 is acquired in the process of S12, the object detection unit 112 detects the railroad crossing warning sign 41a and the railroad crossing warning sign 42a included in the railroad crossing 4, respectively.
[0063] In this case, the object detection unit 112 may detect the railroad crossing warning sign 4a by using, for example, a learned learning model (such as a learning model based on YOLO (You Only Live Once) or SSD (Single Shot Multibox Detector)).
[0064] Furthermore, the learning data generating unit 113 generates multiple pieces of learning data by adding distance information from the imaging device 2a to the railroad crossing warning sign 4a for each of the multiple image data acquired in the process of S12 and the position information of the railroad crossing warning sign 4a shown in each image data (S14). Then, the learning data generating unit 113 stores the generated multiple pieces of learning data in the memory area 110, for example.
[0065] Specifically, the worker inputs, for each of the multiple image data acquired in the process of S12, distance information between the imaging device 2a and the railroad crossing warning sign 4a shown in each of the multiple image data as a correct answer label via, for example, an operation terminal (not shown).Then, the learning data generating unit 113 generates multiple learning data by adding the distance information input by the worker to each of the multiple image data acquired in the process of S12 and the position information of the railroad crossing warning sign 4a in each of the image data.
[0066] Thereafter, the model generation unit 114 generates a learning model by performing machine learning using the multiple pieces of learning data generated in the process of S14 (S15). A specific example of the learning model generated in the process of S15 will be described below.
[0067] [Specific example of learning model (1)] Fig. 12 is a diagram for explaining a specific example of the first learning model. Specifically, Fig. 12 is a specific example of a learning model using the least squares method.
[0068] In the processing of S14, the learning data generation unit 113 generates multiple learning data, for example, for each of the multiple image data acquired in the processing of S12, by adding distance information from the imaging device 2a to the railroad crossing warning sign 4a as a correct label to the vertical width of the railroad crossing warning sign 4a in each image data.
[0069] Then, in the process of S15, the model generation unit 114 generates a learning model by performing the least squares method on each of the multiple pieces of learning data generated in the process of S14.
[0070] Specifically, in this case, the model generation unit 114 plots, for example, points corresponding to the inverse of the railroad crossing warning sign 4a included in each piece of learning data and the distance information included in each piece of learning data on a plane as shown in Fig. 12. Then, the model generation unit 114 calculates coefficients A and B in the following formula (1) so that the square of the difference between each point and the regression line is minimized, thereby generating a regression line that functions as a learning model.
[0071]
number
[0072] In addition, in the processing of S14, the learning data generation unit 113 may generate multiple learning data by, for example, adding distance information from the imaging device 2a to the railroad crossing warning sign 4a as a correct label to the area of the railroad crossing warning sign 4a in each of the multiple image data obtained in the processing of S12.
[0073] [Specific example of learning model (2)] Fig. 13 is a diagram for explaining a specific example of the second learning model. Specifically, Fig. 13 shows a specific example of a neural network.
[0074] In the process of S14, the learning data generation unit 113 generates multiple learning data by, for example, adding distance information from the imaging device 2a to the railroad crossing warning sign 4a as a correct label to the X coordinate, Y coordinate, vertical width, horizontal width and area of the railroad crossing warning sign 4a in each of the multiple image data acquired in the process of S12.
[0075] Then, in the process of S15, the model generation unit 114 performs training of the neural network by using each of the multiple pieces of training data generated in the process of S13.
[0076] Specifically, in this case, as shown in FIG. 13, for example, the model generation unit 114 learns each of the weights corresponding to the intermediate layers of the neural network so that the difference between the value output from the output layer and the distance information (correct label) from the imaging device 2a to the railroad crossing warning sign 4a is reduced by inputting values corresponding to the X coordinate, Y coordinate, vertical width, horizontal width, and area of the railroad crossing warning sign 4a from the input layer of the neural network.
[0077] [Details of inference process (1)] Next, the details of the inference process in the first embodiment will be described below. Figures 7 and 8 are diagrams for explaining the details of the inference process.
[0078] 7, the image acquisition unit 211 waits until it is the inference timing (NO in S21), for example. The inference timing may be, for example, the timing when image data is captured by the imaging device 2a mounted on the senior car 3 while the car is moving. In other words, the inference timing may be the timing that occurs every time the imaging device 2a mounted on the senior car 3 captures image data (frame) about the area ahead in the traveling direction. Specifically, when the number of frames of video data captured by the imaging device 2a is 30, the inference timing may be the timing that occurs 30 times per second.
[0079] Then, when the inference timing arrives (YES in S21), the image acquisition unit 211 acquires image data captured by the imaging device 2a (S22).
[0080] Next, the object detection unit 212 detects the railroad crossing warning sign 4a reflected in the image data acquired in the process of S22 (S23).
[0081] Specifically, for example, when the image data shown in FIG. 11 is acquired in the process of S22, the object detection unit 212 detects each of the railroad crossing warning signs 41a and 42a at the railroad crossing 4.
[0082] As a result, if the railroad crossing warning sign 4a (hereinafter also referred to as the first railroad crossing warning sign 4a) closest to the imaging device 2a (senior car 3) among the railroad crossing warning signs 4a detected in the previous processing of S23 is also detected in the current processing of S23 (NO in S24), the distance determination unit 213 determines, for each railroad crossing warning sign 4a detected in the processing of S23, the value output from the learning model in response to the input of the position information of each railroad crossing warning sign 4a as distance information from the imaging device 2a (senior car 3) to each railroad crossing warning sign 4a (S25).
[0083] Then, the distance determination unit 213 calculates the difference between the maximum value and the minimum value in the distance information determined in the process of S25 (S26).
[0084] 11 is acquired in the process of S22, the distance determination unit 213 determines the distance information between the imaging device 2a and the railroad crossing warning sign 42a (the railroad crossing warning sign 4a at the rear of the railroad crossing 4) as the maximum value in the distance information determined in the process of S25. In addition, the distance determination unit 213 determines the distance information between the imaging device 2a and the railroad crossing warning sign 41a (the railroad crossing warning sign 4a at the front of the railroad crossing 4) as the minimum value in the distance information determined in the process of S25. Then, the distance determination unit 213 calculates the difference between the distance information between the imaging device 2a and the railroad crossing warning sign 42a and the distance information between the imaging device 2a and the railroad crossing warning sign 41a. That is, in this case, the distance determination unit 213 calculates the distance information about the depth of the railroad crossing 4.
[0085] Thereafter, the distance determination unit 213 outputs the distance information determined in the process of S25 (S33), as shown in FIG.
[0086] Specifically, the information output unit 214 notifies the driver (elderly person) of the senior car 3 of the distance information identified in the process of S25.
[0087] In this case, the information output unit 214 may notify the user of the distance information determined in the process of S25 by voice, for example.
[0088] Then, if all the image data has not been acquired in the process of S22 (NO in S34), the image acquisition unit 211 performs the processes from S22 onwards again.
[0089] On the other hand, if all image data has been acquired in the processing of S22 (YES in S34), the detection terminal 2 ends the inference processing.
[0090] Furthermore, in the processing of S24, if the first railroad crossing warning sign 4a closest to the imaging device 2a (senior car 3) among the railroad crossing warning signs 4a detected in the previous processing of S23 was not detected in the current processing of S23 (YES in S24), the distance determination unit 213 determines, as shown in FIG. 8, the value output from the learning model in response to the input of the position information of the railroad crossing warning sign 4a (hereinafter also referred to as the second railroad crossing warning sign 4a) with the longest distance calculated in the processing of S25, as the distance information from the imaging device 2a to the second railroad crossing warning sign 4a (S31).
[0091] Then, the distance determination unit 213 calculates distance information by subtracting the difference calculated in the process of S26 from the distance information determined in the process of S31 (S32).
[0092] That is, for example, if there is an obstacle between the imaging device 2a and the first railroad crossing warning sign 4a or if the imaging device 2a approaches the railroad crossing 4, the first railroad crossing warning sign 4a may not be detected in the processing of S23.
[0093] Therefore, in this case, the distance determination unit 213 calculates distance information between the imaging device 2a and the first railroad crossing warning sign 4a from distance information between the imaging device 2a and the second railroad crossing warning sign 4a and distance information about the depth of the railroad crossing 4.
[0094] This enables the distance specifying unit 213 to calculate the distance information between the imaging device 2a and the first railroad crossing warning sign 4a even if the first railroad crossing warning sign 4a is not detected in the process of S23.
[0095] Thereafter, the information output unit 214 outputs the distance information calculated in the process of S32 (S33).
[0096] Then, if all the image data has not been acquired in the process of S22 (NO in S34), the image acquisition unit 211 performs the processes from S22 onwards again.
[0097] On the other hand, if all image data has been acquired in the processing of S22 (YES in S34), the detection terminal 2 ends the inference processing.
[0098] That is, the information processing device 1 in the present embodiment not only notifies the driver of the presence or absence of a railroad crossing 4 on the travel route of the senior car 3, but also of the distance information between the senior car 3 and the railroad crossing 4.
[0099] This enables the information processing device 1 to further ensure the safety of the driver while the senior car 3 is traveling.
[0100] [Details of inference process (2)] Next, a description will be given of details of another inference process in the first embodiment. Figures 9 and 10 are diagrams for explaining the details of the other inference process.
[0101] As shown in FIG. 9, the image acquisition unit 211 waits until the inference timing, for example (NO in S41).
[0102] Then, when the inference timing arrives (YES in S41), the image acquisition unit 211 acquires image data captured by the imaging device 2a (S42).
[0103] Next, the object detection unit 212 detects the railroad crossing warning sign 4a and other objects that appear in the image data acquired in the process of S22 (S43).
[0104] Specifically, for example, when the image data shown in FIG. 11 is acquired in the processing of S42, the object detection unit 212 detects the railroad crossing warning sign 41a and the railroad crossing warning sign 42a at the railroad crossing 4, and also detects at least one of the traffic light 41b, the turn indicator 41c, the caution fence 41d, and the traffic light 42b at the railroad crossing 4.
[0105] As a result, if the first railroad crossing warning sign 4a closest to the imaging device 2a (senior car 3) among the railroad crossing warning signs 4a detected in the previous processing of S43 is also detected in the current processing of S43 (NO in S44), the distance determination unit 213 determines the value output from the learning model (for example, the learning model described in Figure 13) in response to the input of the position information of the railroad crossing warning sign 4a detected in the processing of S43 as distance information from the imaging device 2a to the railroad crossing warning sign 4a (S45).
[0106] Then, the distance specifying unit 213 specifies the relationship between the size of the railroad crossing warning sign detected in S43 and the size of other objects (S46).
[0107] Specifically, for example, when the image data shown in FIG. 11 is acquired in the process of S42, the distance identification unit 213 calculates, for example, the ratio of the size of the railroad crossing warning sign 41a (first railroad crossing warning sign 4a) to the size of the traffic light 42b.
[0108] More specifically, in this case, the distance specifying unit 213 calculates, for example, the ratio of the vertical width of the railroad crossing warning sign 41a (first railroad crossing warning sign 4a) to the vertical width of the traffic light 42b.
[0109] Thereafter, the information output unit 214 outputs the distance information identified in the process of S45 (S53), as shown in FIG.
[0110] Specifically, the information output unit 214 notifies the driver (elderly person) of the senior car 3 of the distance information identified in the process of S45.
[0111] If all image data has not been acquired in the process of S42 (NO in S54), the image acquisition unit 211 performs the processes from S42 onwards again.
[0112] On the other hand, if all image data has been acquired in the processing of S42 (YES in S54), the detecting terminal 2 ends the inference processing.
[0113] Furthermore, in the processing of S44, if the first railroad crossing warning sign 4a closest to the imaging device 2a (senior car 3) among the railroad crossing warning signs 4a detected in the previous processing of S43 is not detected in the current processing of S43 (YES in S44), the distance determination unit 213 calculates the size of the first railroad crossing warning sign 4a from the size of other objects detected from the image data acquired in the processing of S42 and the relationship determined in the processing of S46, as shown in FIG. 10 (S51).
[0114] Specifically, for example, when the image data shown in FIG. 11 is acquired in the processing of S42, the distance determination unit 213 calculates the size of the railroad crossing warning sign 41a (first railroad crossing warning sign 4a) by multiplying the size of the traffic light 42b by the ratio calculated in the processing of S46 (the ratio of the size of the railroad crossing warning sign 41a to the size of the traffic light 42b).
[0115] More specifically, in this case, the distance determination unit 213 calculates the vertical width of the railroad crossing warning sign 41a (first railroad crossing warning sign 4a), for example, by multiplying the vertical width of the traffic light 42b by the ratio calculated in the processing of S46 (the ratio of the vertical width of the railroad crossing warning sign 41a to the vertical width of the traffic light 42b).
[0116] Then, the distance determination unit 213 determines the value output from a learning model (for example, the learning model described in FIG. 12) in response to the input of the size calculated in the processing of S51 as distance information from the imaging device 2a to the first railroad crossing warning sign 4a (S52).
[0117] That is, when the first railroad crossing warning sign 4a is no longer detected in the process of S43, the distance determination unit 213 calculates the size of the first railroad crossing warning sign 4a from the size of the other object detected from the image data acquired in the process of S42 and the ratio of the size of the first railroad crossing warning sign 4a to the size of the other object. Then, the distance determination unit 213 uses the calculated size of the first railroad crossing warning sign 4a to determine distance information from the imaging device 2a to the first railroad crossing warning sign 4a.
[0118] This enables the distance identification unit 213 to calculate the distance information between the imaging device 2a and the first railroad crossing warning sign 4a even if the first railroad crossing warning sign 4a is not detected in the process of S43.
[0119] In the above example, a case has been described in which the information processing device 1 and the detection terminal 2 determine the distance between the senior car 3 and the railroad crossing 4, but the information processing device 1 and the detection terminal 2 may also determine the distance between the senior car 3 and a location other than the railroad crossing 4 (for example, an intersection or a pedestrian bridge). [Explanation of symbols]
[0120] 1: Information processing device 2: Detection terminal 101:CPU 102: Memory 103: Communication interface 104:Storage medium 105: Bus
Claims
1. In response to acquiring a plurality of pieces of learning image data captured by an imaging device, a railroad crossing warning sign, an intersection, or a pedestrian bridge that appears in each of the plurality of pieces of learning image data is detected; generating a plurality of learning data by adding distance information from the imaging device to the railroad crossing warning sign, the intersection, or the pedestrian bridge to position information of the railroad crossing warning sign, the intersection, or the pedestrian bridge in each of the plurality of learning image data; generating a learning model by performing machine learning using the plurality of learning data; A learning program that causes a computer to execute a process.
2. In claim 1, In the process of generating the plurality of learning data, the plurality of learning data are generated by adding the distance information from the imaging device to the railroad crossing warning sign, the intersection, or the pedestrian bridge to each of the plurality of learning image data and the position information corresponding to each of the plurality of learning image data. A learning program characterized by:
3. In claim 1, The location information includes information indicating the size of the railroad crossing warning sign, the intersection, or the pedestrian bridge. A learning program characterized by:
4. In claim 1, The position information includes information indicating coordinates of the railroad crossing warning sign, intersection, or pedestrian bridge in the learning image data, and information indicating a size of the railroad crossing warning sign, intersection, or pedestrian bridge. A learning program characterized by:
5. In claim 1, further comprising: In response to acquiring first detection image data captured by an imaging device, the railroad crossing warning sign, the intersection, or the pedestrian bridge captured in the first detection image data is detected; a value output from the learning model in response to input of position information in the first detection image data of the detected railroad crossing warning sign, intersection, or pedestrian bridge is identified as first distance information from the imaging device that captured the first detection image data to the railroad crossing warning sign, intersection, or pedestrian bridge; outputting the identified first distance information; A learning program that causes a computer to execute a process.
6. In claim 5, In the process of identifying the first distance information, when a plurality of the railroad crossing warning signs, intersections or pedestrian bridges are detected in the process of detecting the railroad crossing warning signs, intersections or pedestrian bridges, the first distance information from the imaging device that captured the first detection image data to each of the railroad crossing warning signs, intersections or pedestrian bridges is identified for each of the plurality of railroad crossing warning signs, intersections or pedestrian bridges; In the process of outputting the first distance information, a minimum value in the identified first distance information is output. A learning program characterized by:
7. In claim 6, In the process of identifying the first distance information, a difference between a maximum value and a minimum value in the first distance information is calculated, and further In response to acquiring second detection image data captured after the first detection image data, the railroad crossing warning sign, the intersection, or the pedestrian bridge is detected from the second detection image data; when a first object corresponding to the minimum value is not detected, a value output from the learning model in response to input of position information in the second detection image data of a second object corresponding to the maximum value is specified as second distance information from the imaging device that captured the second detection image data to the second object; outputting third distance information calculated by subtracting the difference from the specified second distance information; A learning program that causes a computer to execute a process.
8. In claim 6, In the process of identifying the first distance information, a relationship between a size of each of the plurality of railroad crossing warning signs, intersections, or pedestrian bridges and a size of another type of object different from the railroad crossing warning signs, intersections, or pedestrian bridges is identified for each of the plurality of railroad crossing warning signs, intersections, or pedestrian bridges, and further In response to acquiring second detection image data captured after the first detection image data, the railroad crossing warning sign, the intersection or the pedestrian bridge and the other type of object are detected from the second detection image data; When a first object corresponding to the minimum value is not detected, a size of the first object is calculated based on the size of the other type of object detected from the second detection image data and the relationship; A value output from the learning model in response to an input of a size of the first object is identified as fourth distance information from the imaging device that captured the second detection image data to the first object; outputting the identified fourth distance information; A learning program that causes a computer to execute a process.
9. In claim 8, In the process of identifying the relationship, a ratio of a size of each of the plurality of railroad crossing warning signs, intersections, or pedestrian bridges to a size of the other type of object is calculated, In the process of calculating the size of the first object, if the first object is not detected, the size of the first object is calculated by multiplying the size of the other type of object detected from the second detection image data by the ratio. A learning program characterized by:
10. In claim 9, The other type of object is a traffic light, a direction indicator, or a caution barrier attached to a railroad crossing warning sign; A learning program characterized by:
11. In response to acquiring a plurality of learning image data captured by an imaging device, a predetermined type of object reflected in each of the plurality of learning image data is detected for each of the plurality of learning image data; generating a plurality of learning data by adding distance information from the imaging device to the predetermined type of object for each of the plurality of learning image data; generating a learning model by performing machine learning using the plurality of learning data; In response to acquiring first detection image data captured by an imaging device, detecting the predetermined type of object captured in the first detection image data; specifying a value output from the learning model in response to input of position information in the first detection image data of the detected predetermined type of object as first distance information from the imaging device that captured the first detection image data to the predetermined type of object; outputting the identified first distance information; The process is executed by a computer, In the process of identifying the first distance information, when a plurality of the predetermined types of objects are detected in the process of detecting the predetermined types of objects, the first distance information from the imaging device that captured the first detection image data to each of the predetermined types of objects is identified for each of the plurality of the predetermined types of objects; A learning program characterized in that, in the process of outputting the first distance information, a minimum value in the identified first distance information is output.
12. an object detection unit that detects a railroad crossing warning sign, an intersection, or a pedestrian bridge that appears in each of the plurality of learning image data captured by an imaging device in response to acquiring the plurality of learning image data; a learning data generating unit that generates a plurality of learning data by adding distance information from the imaging device to the railroad crossing warning sign, the intersection, or the pedestrian bridge for each of the plurality of learning image data; A model generation unit that generates a learning model by performing machine learning using the plurality of learning data. A learning device characterized by:
13. An object detection unit that detects a predetermined type of object appearing in each of a plurality of learning image data captured by an imaging device in response to acquiring the plurality of learning image data; a learning data generating unit that generates a plurality of learning data by adding distance information from the imaging device to the predetermined type of object for each of the plurality of learning image data; a model generation unit that generates a learning model by performing machine learning using the plurality of learning data; an object detection unit that detects the predetermined type of object captured in the first detection image data in response to acquiring the first detection image data captured by an imaging device; a distance determination unit that determines a value output from the learning model in response to input of position information in the first detection image data of the detected predetermined type of object as first distance information from the imaging device that captured the first detection image data to the predetermined type of object; an information output unit that outputs the specified first distance information, when a plurality of the predetermined types of objects are detected in the process of detecting the predetermined types of objects, the distance specifying unit specifies, for each of the plurality of the predetermined types of objects, the first distance information from the imaging device that captured the first detection image data to each of the predetermined types of objects; The learning device, wherein the information output unit outputs a minimum value in the identified first distance information.
14. In response to acquiring a plurality of pieces of learning image data captured by an imaging device, a railroad crossing warning sign, an intersection, or a pedestrian bridge that appears in each of the plurality of pieces of learning image data is detected; generating a plurality of learning data by adding distance information from the imaging device to the railroad crossing warning sign, the intersection, or the pedestrian bridge to position information of the railroad crossing warning sign, the intersection, or the pedestrian bridge in each of the plurality of learning image data; generating a learning model by performing machine learning using the plurality of learning data; A learning method comprising the steps of: causing a computer to execute a process.
15. In response to acquiring a plurality of learning image data captured by an imaging device, detecting a predetermined type of object reflected in each of the plurality of learning image data, generating a plurality of learning data by adding distance information from the imaging device to the predetermined type of object for each of the plurality of learning image data; generating a learning model by performing machine learning using the plurality of learning data; In response to acquiring first detection image data captured by an imaging device, detecting the predetermined type of object captured in the first detection image data; specifying a value output from the learning model in response to input of position information in the first detection image data of the detected predetermined type of object as first distance information from the imaging device that captured the first detection image data to the predetermined type of object; outputting the identified first distance information; The process is executed by a computer, In the process of identifying the first distance information, when a plurality of the predetermined types of objects are detected in the process of detecting the predetermined types of objects, the first distance information from the imaging device that captured the first detection image data to each of the predetermined types of objects is identified for each of the plurality of the predetermined types of objects; A learning method characterized in that, in the process of outputting the first distance information, a minimum value in the identified first distance information is output.
Citation Information
Patent Citations
Distance measuring apparatus and safety running system
JP1997287915A
Vehicle safety device
JP1999339197A
Stopping prohibition area approach alarm device
JP2017016604A
Information processor, method for processing information, and program
JP2018116599A
Control system and method of work machine
JP2020041326A
