Terminal device and collection method

A terminal device according to one aspect of an embodiment includes a storage, an acquisition unit, a selection unit, and a transmitting unit. The storage stores therein imaging data captured from a moving body. The acquisition unit acquires a transmitting request for imaging data transmitted from an external device on the basis of positional information on the moving body. The selection unit selects, from among the imaging data stored in the storage, target data that is imaging data corresponding to the transmitting request acquired by the acquisition unit. The transmitting unit transmits the target data selected by the selection unit.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is national stage application of International Application No. PCT/JP2019/018456, filed on May 8, 2019, which designates the United States, incorporated herein by reference, and which claims the benefit of priority from Japanese Patent Application No. 2018-093263, filed on May 14, 2018, the entire contents of which are incorporated herein by reference.

FIELD

The embodiment discussed herein is directed to a terminal device and a collection method.

BACKGROUND

Conventionally, for example, there has been known a collection device that collects, when a traffic accident has occurred, imaging data on an accident scene captured by a camera provided in a vehicle having had the traffic accident and/or captured by cameras provided in vehicles around the accident scene. The imaging data collected by such a collection device is used in, for example, elucidating a cause of the accident (see Patent Literature 1, for example).

CITATION LIST

Patent Literature

SUMMARY

Technical Problem

However, in the conventional technology, there presents possibility that communication amount needed for transmitting and receiving imaging data becomes large because all of imaging data, captured before and after an occurrence time point of the accident, are received.

Solution to Problem

A terminal device according to an embodiment includes a storage that stores therein imaging data captured from a moving body; an acquisition unit that acquires a transmitting request for imaging data transmitted from an external device; a selection unit that selects, from among the imaging data stored in the storage, target data that is imaging data corresponding to the transmitting request acquired by the acquisition unit; and a transmitting unit that transmits the target data selected by the selection unit.

DESCRIPTION OF EMBODIMENTS

Hereinafter, an embodiment of a terminal device and a collection method according to the present disclosure will be described in detail with reference to the accompanying drawings. The present disclosure is not limited to the embodiment described in the following. Hereinafter, a case will be explained in which a moving body is a vehicle; however, the moving body may be, not limited to a vehicle, a moving body other than a vehicle, such as a ship and an airplane.

First, the outline of a collection method according to the embodiment will be explained with reference toFIG. 1,FIG. 1is a diagram illustrating the outline of the collection method. A collection device1and terminal devices50, which are illustrated inFIG. 1, transmit and receive data therebetween to execute the collection method.

The collection device1is a server device that collects, from the terminal devices50provided in vehicles C, imaging data obtained by capturing an event based on a behavior of a vehicle, such as an accident. The imaging data are used in, for example, elucidating a cause of the accident.

Conventionally, there has been known a collection device that collects imaging data from vehicles around an accident scene when an accident has occurred. Such a collection device uniformly collects all of imaging data from the surrounding vehicles.

Thus, in the conventional technology, even imaging data having substantially no relation to the accident are to be collected, thereby leading to increase in data amount needed for transmitting and receiving the imaging data.

Thus, in the collection method according to the embodiment, the collection device1collects only imaging data having relation to an accident so as to reduce data amount needed for transmitting and receiving imaging data.

Specifically, as illustrated inFIG. 1, in the collection method according to the embodiment, the terminal devices50first acquire a transmitting request for imaging data, which is transmitted from the collection device1(Step S1). For example, the collection device1acquires position information of each of the vehicles C at any time.

When an event, such as a traffic accident, has occurred, the collection device1transmits, to each of the terminal devices50, a transmitting request for imaging data on the traffic accident. The transmitting request includes, for example, positional information on an occurrence point P and the like. The occurrence point P is one example of an image-capturing point.

Next, in the collection method according to the embodiment, the terminal device50selects, from among imaging data stored in a storage of the terminal device50, target data being imaging data corresponding to the transmitting request (Step S2).

In the example illustrated inFIG. 1, a case is illustrated in which a vehicle C1has collided with a preceding vehicle, and imaging data on the occurrence point P, which is a position where the vehicle C1has collided, is to be collected.

There presents possibility that a vehicle C2and a vehicle C3, which are travelling near the occurrence point P, capture an accident scene. Thus, the collection device1requests the vehicles C2and C3to transmit imaging data.

In other words, on the basis of positional information on the vehicle C2and C3, the collection device1specifies, from among captured data already collected by the terminal devices50, necessary imaging data, and transmits a transmitting request to a vehicle that has captured an occurrence scene of the accident or a vehicle that has possibility of having captured the occurrence scene of the accident.

Thus, the terminal device50is capable of selecting, as target data, imaging data that is based on the transmitting request. In the collection method according to the embodiment, the terminal device(s)50transmits target data to the collection device1(Step S3).

As described above, in the collection method according to the embodiment, the terminal device50selects, on the basis of a transmitting request, already-recorded target data, and further transmits the selected target data to the collection device1.

Therefore, by employing the collection method according to the embodiment, it is possible to reduce communication amount while collecting necessary imaging data.

In the above-mentioned example, the case has been explained in which an event is a traffic accident; however, the event may be a sudden stop, a sudden steering, traffic jam, or the like. For example, in the collection method according to the embodiment, when detecting an accident as an event, it is possible to detect an occurrence of the event on the basis of a sensor value of a G sensor, an operation situation of an airbag, and the like.

Furthermore, it is needless to say that an event is able to be detected on the basis of accident information or traffic information separately transmitted from an external server.

The collection device1may select, not limited to the occurrence point P of an event, an arbitrary position as an image-capturing point. Moreover, the terminal device50may select imaging data on the basis of a selection condition transmitted from the collection device1by broadcast communication; this point will be mentioned later.

Subsequently, a configuration example of a collection system100according to the embodiment will be explained with reference toFIG. 2.FIG. 2is a block diagram illustrating the collection system100. As illustrated inFIG. 2, the collection system100includes the collection device1and the terminal device (s)50. InFIG. 2, for the convenience of explanation, a case is exemplified in which the collection system100includes the single terminal device50; the collection system100may include the plurality of terminal devices50.

First, the terminal device50will be explained. As illustrated inFIG. 2, the terminal device50is connected to a Global Positioning System (GPS)60that detects positional information on a vehicle and a camera61that captures the periphery of the vehicle.

In the present embodiment, as the camera61, the plurality of cameras61that captures the whole periphery of a vehicle may be used.FIG. 3is a diagram illustrating a specific example of camera positions.

As illustrated inFIG. 3, the four cameras61are mounted on a vehicle. Specifically, with respect to a front-back direction of the vehicle, there are included a front camera61athat includes an image-capturing axis ax1arranged in the front of the vehicle so as to capture the front of the vehicle, and a rear camera61bthat includes an image-capturing axis ax2arranged in the rear of the vehicle so as to capture the rear of the vehicle.

With respect to a left-right direction of the vehicle, there are included a right-side camera61cthat includes an image-capturing axis ax3arranged in the right of the vehicle so as to capture the right of the vehicle, and a left-side camera61dthat includes an image-capturing axis ax4arranged in the left of the vehicle so as to capture the left of the vehicle.

For example, each of the four cameras61includes a wide-angle lens such as a fisheye lens, and imaging data captured by the cameras61are connected with each other to obtain imaging data to be obtained by capturing the whole periphery of a vehicle. The camera positions illustrated inFIG. 3are merely examples, and they are different depending on a vehicle.

Returning toFIG. 2, the explanation of the terminal device50will be continued. The terminal device50includes a communication unit7, a control unit8, and a storage9. The communication unit7is a communication module that performs communication with the collection device1, and operates by control of the control unit8.

The control unit8includes an acquisition unit81, a generation unit82, a selection unit83, and a transmitting unit84. The control unit8includes a computer that includes, for example, a Central Processing Unit (CPU), a Read Only Memory (ROM), a Random Access Memory (RAM), a Hard Disk Drive (HDD), an input/output port, and the like; and various circuits.

The CPU of the computer reads out and executes a program stored in the ROM, for example, so as to function as the acquisition unit81, the generation unit82, the selection unit.83, and the transmitting unit84of the control unit8.

All or a part of the acquisition unit81, the generation unit82, the selection unit83, and the transmitting unit84of the control unit8may be constituted of hardware such as an Application Specific Integrated Circuit (ASIC) and a Field Programmable Gate Array (FPGA).

The storage9corresponds to the RAM and/or the HDD, for example. The RAM and the HDD are capable of storing therein information on an imaging-data storing area91, a collection-condition storing area92, and various programs. The terminal device50may acquire the above-mentioned program and various kinds of information via another computer connected thereto by a wired or wireless network or a portable recording medium.

The acquisition unit81of the control unit8acquires a transmitting request for imaging data, which is transmitted from the collection device1on the basis of positional information of the vehicle C. When acquiring the transmitting request, the acquisition unit81stores the transmitting request in the collection-condition storing area92of the storage9.

In the present embodiment, the transmitting request is transmitted by using broadcast communication in which the transmitting request is collectively transmitted to the plurality of terminal devices50or individual communication in which the transmitting request is individually transmitted to each of the terminal devices50. For example, in the broadcast communication, positional information on the occurrence point P is transmitted, and in the individual communication, information on at least one of positional information of the occurrence point P and information on an image-capturing time point is transmitted. Positional information on the occurrence point P or information on an image-capturing time point is a selection condition of target data.

The acquisition unit81acquires imaging data captured by the camera61, and stores the acquired imaging data in the imaging-data storing area91of a storage9.

The generation unit82generates behavior information indicating a behavior of a vehicle on the basis of signals input from various sensors, and transmits the generated behavior information to the collection device1via the communication unit7.

The behavior information includes, for example, vehicle-speed information input from a vehicle-speed sensor51, steering-angle information input from a steering-angle sensor52, brake information input from a brake sensor53, airbag information input from an airbag sensor54, and the like. The above-mentioned behavior information is merely one example, and other information may be included therein as long as the information indicates a behavior of a vehicle.

The selection unit83selects, from among imaging data stored in the storage9, target data that is imaging data corresponding to a transmitting request acquired by the acquisition unit81. Specifically, for example, the selection unit83selects as the target data, with reference to a transmitting request stored in the collection-condition storing area92, imaging data captured at an image-capturing time point specified by the transmitting request.

In other words, the selection unit83selects only imaging data obtained by capturing the occurrence point P illustrated inFIG. 1, for example, and transmits the selected data to the transmitting unit84. Thus, the transmitting unit84is capable of transmitting only the imaging data to the collection device1, so that the collection device1is capable of reducing communication amount while collecting necessary imaging data.

When a transmitting request includes positional information on the occurrence point9, the selection unit83may select, on the basis of the positional information, imaging data obtained by capturing the occurrence point P as target data.

As illustrated inFIG. 3, the vehicle C includes the plurality of cameras61having different capturing directions, namely, image-capturing axes ax. Thus, as described below, the selection unit83deals with a case where a transmitting request includes information that specifies the camera61, in some cases. In this case, the selection unit83may select, as target data, imaging data of the specified camera61.

When the vehicle C is going to pass through the occurrence point9, the selection unit83may make a reservation to the camera61for capturing the occurrence point P. In other words, a transmitting request to be transmitted to a vehicle that is going to pass through the occurrence point9includes information that specifies a capturing condition of target data.

On the basis of the image-capturing request, the selection unit83makes a reservation to the camera61for capturing the occurrence point P. Imaging data corresponding to the image-capturing request is stored in the imaging-data storing area91, and then the imaging data is selected as target data.

As described above, the selection unit83makes, in advance, a reservation to the camera61for capturing, so that it is possible to reliably collect desired imaging data. Moreover, for example, when the camera61is provided with a drive mechanism configured to drive the image-capturing axis ax, the selection unit83may set the drive mechanism in accordance with an image-capturing request. In other words, the camera61may be set to the desired image-capturing axis ax so as to capture imaging data.

The transmitting unit84transmits, to the collection device1, target data selected by the selection unit83. In other words, the transmitting unit84does not transmit all of imaging data, but transmits only target data including the occurrence point P. Thus, in the collection system100according to the embodiment, it is possible to reduce communication amount while collecting necessary imaging data.

Next, the collection device1will be explained. The collection device1includes a control unit2, a storage3, and a communication unit10. The communication unit10is a communication module that communicates with the terminal device(s)50, and operates by control of the control unit2.

The control unit2includes a reception unit21, a detection unit22, a computing unit23, and a transmitting unit24. The control unit2includes a computer that includes, for example, a Central Processing Unit (CPU), a Read Only Memory (ROM), a Random Access Memory (RAM), a Hard Disk Drive (HDD), an input/output port, and the like; and various circuits.

The CPU of the computer reads out and executes a program stored in the ROM, for example, so as to function as the reception unit21, the detection unit22, the computing unit23, and the transmitting unit24of the control unit2.

All or a part of the reception unit21, the detection unit22, the computing unit23, and the transmitting unit24of the control unit2may be constituted of hardware such as an Application Specific Integrated Circuit (ASIC) and a Field Programmable Gate Array (FPGA).

The storage3corresponds to the RAM and/or the HDD, for example. The RAM and the HDD are capable of storing therein information on vehicle information31, an imaging-data database32, and various programs. The collection device1may acquire the above-mentioned program and various kinds of information via another computer connected thereto by a wired or wireless network or a portable recording medium.

The vehicle information31stored in the storage3is information on each vehicle in which the corresponding terminal device50is provided.FIG. 4is a diagram illustrating a specific example of the vehicle information31. As illustrated inFIG. 4, the vehicle information31includes items of a vehicle ID, positional information, a camera position, and behavior information among other things.

The vehicle ID is an identifier for identifying a vehicle in which the terminal device50is provided. The positional information indicates a present location of a vehicle, and is updated at any time with the movement of the vehicle. As exemplified inFIG. 3, the camera position indicates a position of the camera61provided in a vehicle. The behavior information is information on a behavior of a vehicle, as described above.

Returning toFIG. 2, the reception unit21of the control unit2will be explained. The reception unit21receives information transmitted from the terminal device50. The information includes positional information indicating a present location of a vehicle, behavior information indicating a behavior of the vehicle, and imaging data among other things. The reception unit21stores in the storage3, as the vehicle information31, positional information and behavior information of a vehicle, and further stores, in the imaging-data database32, imaging data received from the terminal device50.

The detection unit22detects an event that is based on a behavior of a vehicle. As described above, the event may be an accident, traffic jam, a sudden stop, and a sudden steering among other things. The detection unit22detects, for example, an operation signal of an airbag from behavior information so as to detect, as an event, an accident of a vehicle.

One example of a detection unit on the collection device1side is illustrated inFIG. 2, a detection unit may be provided on the terminal device50side, and an event, such as an accident detection and a vehicle traffic jam, may be properly selected in using the detection unit on the collection device.1side or the terminal device50side.

When detecting reduction by more than a predetermined value in a vehicle speed or change more than a predetermined value of a steering angle, the detection unit22detects, as an event, a sudden stop or sudden steering. Moreover, when a plurality of vehicles repeats travelling and stopping in line on the same road, the detection unit22detects traffic jam as an event. The detection unit22may detect an event, such as an accident of a vehicle and traffic jam, on the basis of accident information and/or traffic information separately transmitted from an external server.

When detecting an event, the detection unit22generates event information on a type of the detected event, positional information on the occurrence point P of the event, an occurrence time point of the event, and the like, and informs the computing unit.23of the generated event information. When the event is traffic jam, the occurrence point P is the head of the traffic jam.

The computing unit23selects, as a passing vehicle, a vehicle passed through the occurrence point P before and after an occurrence time point of an event, or a vehicle that is going to pass through the occurrence point P. In other words, a passing vehicle includes a following vehicle and an on-coming vehicle, when the occurrence point P is an intersection, a vehicle travelling toward the intersection is selected as a passing vehicle.

As described above, arrangement positions and the provided number of the cameras61of vehicles are different.FIG. 5is a diagram illustrating one example a process to be executed by the computing unit23. InFIG. 5, a case will be explained in which the vehicle C1is provided with the front camera61a. The image-capturing axis ax1of the front camera61ais an advancing direction of the vehicle C1, and has a predetermined image-capturing range L in a left-right direction with reference to the image-capturing axis ax1.

The computing unit23computes, on the basis of a positional relation between the vehicle C1and the occurrence point P, an image-capturing time point at which the image-capturing range L includes the occurrence point P. Specifically, the computing unit23computes at any time, on the basis of a transition of a present location of the vehicle C1, an advancing direction of the vehicle C1so as to compute a transition of the image-capturing range L.

The computing unit23computes an image-capturing time point at which the image-capturing range L includes the occurrence point P. In the example illustrated inFIG. 5, a case is exemplified in which the vehicle C1is advancing straight, and the occurrence point P is included in imaging data at image-capturing time points between a start time point ts and an end time point te.

In other words, the computing unit23computes an image-capturing time point at which the image-capturing range L includes the occurrence point P, from a transition of a positional relation between the vehicle C1and the occurrence point P. In this case, the computing unit23may compute an image-capturing time point on the basis of a transition of an advancing direction of the vehicle C1.

In other words, regarding the image-capturing axis ax1and the image-capturing range L, when a steering angle of the vehicle C1is changed, a direction of the image-capturing axis ax1is changed in accordance with the change in the steering angle. Thus, the computing unit23is capable of correcting the image-capturing axis ax1and the image-capturing range L in accordance with the steering angle so as to compute an image-capturing time point. In other words, the computing unit23computes an image-capturing time point in consideration of a steering angle of the vehicle C1, so that it is possible to precisely compute an image-capturing time point. The direction of a vehicle may be directly detected because there presents in some cases a case where a steering angle and a direction of the vehicle do not coincide with each other.

As described above, the provided cameras61are different depending on a vehicle. Particularly, when a vehicle includes the plurality of cameras61having the different image-capturing axes ax, an image-capturing time point at which the occurrence point P is able to be captured is different for each of the cameras61.

Thus, the computing unit23may compute an image-capturing time point for each of the cameras61.FIG. 6is a diagram illustrating a specific example of a process to be executed by the computing unit23. A case will be explained in which the vehicle C1is provided with the front camera61a, the rear camera61b, the right-side camera61c, and the left-side camera61d. As indicated by using a dashed line inFIG. 6, assume that the vehicle C1travels along a travelling trajectory T that detours around the occurrence point P on the left side.

In the example illustrated inFIG. 6, the occurrence point P presents in front of the vehicle C1during a time interval from the start time point is to a switching time point tc1, and thus the computing unit23estimates that the occurrence point P is included in imaging data of the front camera61aduring the time interval.

Next, the occurrence point P presents on the right side of the vehicle C1during a time interval from the switching time point tc1to a switching time point tc2, the computing unit23estimates that the occurrence point P is included in imaging data of the right-side camera61c. In other words, at the switching time point tc1, a collection target of imaging data is switched from the front camera61ainto the right-side camera61c.

Next, the occurrence point P presents in the rear of the vehicle C1on and after the switching time point tc2, and thus the computing unit23estimates that the occurrence point P is included in imaging data of the rear camera61bduring a time interval from the switching time point tc2to the end time point te.

As described above, the collection device1is capable of grasping information on an arrangement position of the camera61for each of the terminal devices50so as to compute an image-capturing time point for each of the cameras61.

In other words, the collection device1according to the embodiment computes an image-capturing time point for each of the plurality of cameras61to be able to collect imaging data obtained by capturing the occurrence point P from various angles.

When transmitting a transmitting request by using broadcast communication, the computing unit23does not compute an image-capturing time point, but only selects a passing vehicle on the basis of positional information of the occurrence point P.

Returning toFIG. 2, the transmitting unit24will be explained. When the detection unit22has detected an event, the transmitting unit24transmits, to the terminal device50provided in a passing vehicle of the occurrence point P of the event, a transmitting request for imaging data obtained by capturing the occurrence point P.

The transmitting unit24transmits a transmitting request for imaging data to each of the terminal devices50. The transmitting request according to the present embodiment includes information on an image-capturing time point computed by the computing unit23.

In other words, the collection device1according to the present embodiment transmits, to each of the terminal devices50, a transmitting request for imaging data including the occurrence point P, which is captured at an image-capturing time point. Thus, imaging data transmitted from each of the terminal devices50includes the occurrence point P.

When transmitting a transmitting request by using broadcast communication, the transmitting unit24transmits a transmitting request including positional information on the occurrence point P. In this case, the terminal device50computes an image-capturing time point at which the occurrence point. P is included in imaging data, and further transmits, as target data, imaging data captured at the image-capturing time point.

As described above, the collection device1receives target data alone, and thus imaging data substantially having no relation to an event is excepted from a collection target, so that it is possible to reduce communication amount while collecting necessary imaging data.

As illustrated inFIG. 6, the collection device1may transmit a transmitting request while specifying an image-capturing time point for each of the cameras61. Thus, imaging data obtained by capturing the occurrence point P from various angles is able to be collected, so that it is possible to grasp an event more specifically.

For reducing communication amount in transmitting and receiving imaging data, the transmitting unit24may transmit a transmitting request for imaging data on a target region including the occurrence point P.

FIG. 7is a diagram illustrating a specific example of a target region. As illustrated inFIG. 7, in imaging data F, a target region Ft is a region including the occurrence point P, and has a field angle of a predetermined range whose center is the occurrence point P, for example.

Hereinafter, a case will be explained in which the collection device1computes the target region Ft, and a transmitting request including the target region Ft is transmitted; however, the terminal device50may compute the target region Ft.

In the example illustrated inFIG. 7, a case is exemplified in which the occurrence point P is an accident scene, and the target region Ft includes a range alone in which vehicles collide with each other. In other words, the transmitting unit24transmits a transmitting request of the target region Ft, and thus the terminal device50transmits the target region Ft alone.

Thus, the terminal device50does not transmit imaging data other than the target region Ft, so that it is possible to reduce communication amount. Therefore, it is possible to reduce communication amount while collecting necessary imaging data.

A case is assumed where the number of passing vehicles of the occurrence point P is large or is contrary small. When the number of passing vehicles is large, imaging data are able to be collected from the plurality of passing vehicles, and thus there presents possibility that imaging data are excessively collected. Meanwhile, when the number of passing vehicles is small, there presents possibility that necessary imaging data is not able to be collected.

Thus, the transmitting unit24may specify, in accordance with the number of passing vehicles, the number of data of imaging data for each of the terminal devices50so as to transmit a transmitting request. Specifically, the transmitting unit24specifies the number of data in such a manner that the number of data of imaging data transmitted from the one terminal device50is smaller as the number of passing vehicles is larger, so as to transmit a transmitting request.

On the other hand, the transmitting unit24specifies the number of data in such a manner that the number of data of imaging data transmitted from the one terminal device50is larger as the number of passing vehicles is smaller, so as to transmit a transmitting request.

Thus, when the number of passing vehicles is large, imaging data is allocated to each of the passing vehicles and the allocated data is transmitted, and thus communication amount per passing vehicle is able to be reduced. When the number of passing vehicles is small, it is possible to reliably collect necessary imaging data.

Furthermore, an image-capturing time point is computed to be shorter as the traveling speed of a passing vehicle is higher. Thus, the transmitting unit24may specify the number of data in accordance with, in addition to the number of passing vehicles, the traveling speed of a passing vehicle so as to transmit a transmitting request.

In this case, an image-capturing time point is shorter as the traveling speed of a passing vehicle is higher, and thus the transmitting unit24transmits a transmitting request for all of imaging data including the occurrence point P.

On the other hand, an image-capturing time point is longer as the traveling speed of a passing vehicle is lower, and thus the transmitting unit24transmits a transmitting request for a part of imaging data. Thus, it is possible to reduce communication amount while collecting necessary imaging data.

Next, a processing procedure to be executed by the terminal, device50according to the embodiment will be explained with reference toFIG. 8.FIG. 8is a flowchart illustrating a processing procedure to be executed by the terminal device50.

As illustrated inFIG. 8, for example, when a power source of the terminal device50is turned ON, the acquisition unit81starts to store imaging data in the imaging-data storing area91of the storage9(Step S101).

Subsequently, the acquisition unit81determines whether or not having acquired a transmitting request for imaging data (Step S102), when having acquired a transmitting request (Step S102: Yes), the selection unit83determines whether or not the occurrence point P to be a collection target of imaging data has been already passed (Step S103).

When the occurrence point P has not been passed yet (Step S103: No), the selection unit83makes a reservation to the camera61for capturing target data, which is able to capture the occurrence point P (Step S104). When reserved target data is captured, the transmitting unit84transmits the target data (Step S105).

On the other hand, when a transmitting request has not been acquired (Step S102: No), the process of Step S102is continuously executed. When the occurrence point P has been already passed (Step S103: Yes) the selection unit83selects target data from the imaging-data storing area91(Step S106), and s gifts the processing to a process of Step S105.

Next, a processing procedure to be executed by the collection device1according to the embodiment will be explained with reference toFIG. 9.FIG. 9is a flowchart illustrating a processing procedure to be executed by the collection device1.

As illustrated inFIG. 9, the reception unit21receives behavior information from each of the terminal devices50(Step S201). Subsequently, the detection unit22determines, on the basis of the behavior information, whether or not an event has occurred (Step S202).

When an event has occurred (Step S202: Yes), the computing unit23selects a passing vehicle on the basis of a transition of a positional relation between each of the terminal devices50and the occurrence point P (Step S203).

Subsequently, the computing unit23computes, for each of the terminal devices50, an image-capturing time point at which the occurrence point P is able to be captured (Step S204). Next, the transmitting unit24transmits, to the terminal device50provided in a target vehicle, a transmitting request for imaging data including the occurrence point P (Step S205).

The reception unit21receives imaging data that is based on the transmitting request (Step S206), and ends the processing. On the other hand, when an event has not occurred in the process of Step S202(Step S202: No), and the reception unit21continuously execute the process of Step S201.

When the transmitting request is transmitted by using broadcast communication, the collection device1transmits, to the plurality of terminal devices50, positional information of the occurrence point P, and receives imaging data corresponding to the transmitting request.

As described above, the terminal device50according to the embodiment includes the storage9, the acquisition unit81, the selection unit83, and the transmitting unit84. The storage9stores therein imaging data captured from the vehicle C (one example of moving body). The acquisition unit81acquires a transmitting request for imaging data transmitted from the collection device1(one example of external device) on the basis of positional information of the vehicle C.

The selection unit83selects, from among the imaging data stored in the storage9, target data that is imaging data corresponding to the transmitting request acquired by the acquisition unit81. The transmitting unit84transmits the target data selected by the selection unit83. Therefore, by employing the terminal device50according to the embodiment, it is possible to reduce communication amount while collecting necessary imaging data.

Note that, in the above-mentioned embodiment, the case has been explained in which the collection device1functions as a server device; however, the collection device1is needed to be a server device, and the collection device1may be integrated with each of the terminal devices50. In other words, function of the collection device1may be dispersed into each of the terminal devices50.