Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The vehicle video monitoring data transmission method provided by the application can be applied to the application environment shown in fig. 1. The system comprises a first terminal 102, a server 104 and a second terminal 106, wherein a vehicle-mounted platform is built on the server 104. The server 104 receives the accident occurrence location information sent by the first terminal 102, acquires associated vehicle information matched with the accident occurrence location information from a database of the server 104, the server 104 sends a video request to a second terminal 106 corresponding to the associated vehicle information, requests the second terminal 106 to send corresponding video monitoring data to the server 104 according to a preset time rule, and the server 104 receives the video monitoring data and forwards the video monitoring data to the first terminal 102. The first terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers, and the second terminal 106 may be a device that is installed in a vehicle and has functions of image capturing and storage.
In one embodiment, as shown in fig. 2, a method for transmitting vehicle video surveillance data is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step S202, receiving accident occurrence place information sent by the first terminal.
Specifically, when a traffic accident occurs on a highway and a user needs to check a video of a specified position on a driving road of a vehicle, the user needs to input accident occurrence place information at a first terminal, and the first terminal sends the accident occurrence place information to a server with a vehicle-mounted platform. The server receives accident occurrence place information sent by the first terminal. The accident occurrence place information is the longitude and latitude of an accident occurrence place information point which needs to be checked by a user. More specifically, the user inputting the accident location information at the first terminal may be: map information is displayed on a first terminal, and a user clicks a corresponding position on the map according to a place where a traffic accident occurs, thereby generating longitude and latitude information of the accident occurrence place information.
And step S204, acquiring the associated vehicle information matched with the accident site information.
Specifically, the accident occurrence time information sent by the first terminal is received first, wherein the accident occurrence time is a time point when a traffic accident occurs. The user inputs accident occurrence time information at the first terminal, and the first terminal sends the accident occurrence time information to a server with a built vehicle-mounted platform. And acquiring an index file, wherein the index file is address information, time information and license plate information of the vehicle uploaded by the second terminal, namely a current vehicle driving route and time information corresponding to each position point on the driving route, and the index file can embody the driving route of the current vehicle and corresponding driving time. And searching the associated vehicle information matched with the accident occurrence place information and the accident occurrence time information according to the index file. More specifically, the license plate information of which the distance from the address represented by the accident occurrence place information is within a first preset range and the time difference from the time represented by the accident occurrence time information is within a first preset time is searched in the index file. Namely searching the license plate information in a first preset range near the accident occurrence place information and in a first preset time near the accident occurrence time. For example, the license plate information within 50 meters around the longitude and latitude of the accident occurrence place information point and within 5 minutes before and after the accident occurrence time is searched in the index file. And taking the searched license plate information as the associated vehicle information.
And step S206, sending a video request instruction to the second terminal corresponding to the associated vehicle information, wherein the video request instruction is used for instructing the second terminal to send corresponding video monitoring data according to a preset time rule.
Specifically, the server built with the vehicle-mounted platform sends a video request instruction to the second terminal corresponding to the associated vehicle information found in the above step, and the video request instruction is used for instructing the second terminal to send video monitoring data within a second preset time of a time difference between the time of the second terminal and the time represented by the accident occurrence time information. After receiving the video request instruction, the second terminal can upload video data within a second preset time before and after the accident occurrence time to the vehicle-mounted platform. More specifically, after the second terminal receives the video request instruction, video data within three minutes before and after the accident occurrence time is uploaded to the vehicle-mounted platform. Or directly sending the video data in a second preset time before and after the accident occurrence time to the first terminal. More specifically, after the second terminal receives the video request instruction, video data within three minutes before and after the accident occurrence time is sent to the first terminal.
And step S208, receiving the video monitoring data sent by the second terminal, and forwarding the video monitoring data to the first terminal.
Specifically, a server built with a vehicle-mounted platform receives video monitoring data sent by a second terminal and forwards the video monitoring data to a first terminal, and the first terminal plays the video monitoring data to a user after receiving the video monitoring data so that the user can check the specific conditions when a traffic accident occurs.
According to the vehicle video monitoring data sending method, matched associated vehicle information is searched by receiving accident site information sent by a first terminal, a video request instruction is sent to a second terminal corresponding to the associated vehicle information, video monitoring data fed back by the second terminal according to a preset time rule based on the video request instruction are received, and finally the video monitoring data are transmitted to the first terminal for a user to check. In the embodiment, the associated vehicle information is searched through the accident site information input by the user, and then the second terminal corresponding to the associated vehicle information of the accident site is requested to upload the video monitoring data for the user to check. The second terminal does not need to upload real-time videos all the time, and all the videos of the second terminal do not need to be stored on the platform, so that the data processing and storing pressure of the vehicle-mounted platform can be reduced, the pressure of uploading the video data by the second terminal in real time can be reduced, and the flow is further saved. The real-time video and video of all vehicles in a certain range can be checked, and more information can be provided for users. If an accident occurs, besides the video of the accident vehicle, the video of other vehicles around the accident vehicle can be played back, so that the accident can be more comprehensively known.
In one embodiment, as shown in fig. 3, there is provided a method for generating an index file, including the steps of:
step S302, license plate information, address information and time information sent by the second terminal are obtained.
Specifically, the second terminal is started to operate, the second terminal acquires video monitoring data of the current vehicle, corresponding recorded address information and time information in real time, and stores the real-time video monitoring data, the corresponding address information and the corresponding time information into a storage medium of the second terminal. The storage medium of the second terminal may be a hard disk or an SD card. And the second terminal registers on the vehicle-mounted platform of the server and uploads license plate information, address information and time information to the vehicle-mounted platform in real time. And the server carrying the vehicle-mounted platform receives the license plate information, the address information and the time information sent by the second terminal in real time.
And step S304, generating an index file according to the license plate information, the address information and the time information.
Specifically, the server carrying the vehicle-mounted platform associates license plate information, address information and time information sent by the second terminal, generates an index file and stores the index file in a database of the server, so that the index file can be called when related vehicles are searched subsequently.
The method for generating the index file can completely store the real-time address information and the time information of the second terminal and generate the index file. The index file can be used for accurately searching related vehicles matched with the accident occurrence place information and the accident occurrence time, and further, the condition of the accident scene can be more accurately determined.
In one embodiment, as shown in fig. 4, a method for viewing video monitoring data of a vehicle after an accident in real time is provided, which comprises the following steps:
step S402, acquiring the real-time position information sent by the second terminal.
Specifically, after the traffic accident occurring on the road is processed, the user may need to check the subsequent congestion condition, road surface condition and subsequent progress condition of the accident occurring section. And the second terminal uploads the real-time position information of the current vehicle to the vehicle-mounted platform. Wherein the real-time location may be a longitude and latitude of the vehicle in real time. And the server carrying the vehicle-mounted platform acquires the real-time position information sent by the second terminal.
Step S404, determining whether the distance between the address indicated by the real-time location information and the address indicated by the accident occurrence location information is within a second preset range.
Specifically, whether the real-time position is within a second preset range near the address represented by the accident site information is judged according to the real-time position of the second terminal received by the server carrying the vehicle-mounted platform, that is, whether the current second terminal enters a certain range of the accident site information is determined. For example, it is determined whether the real-time location of the second terminal is within 100 meters of the surrounding venue information. Wherein the second predetermined range may be zero.
Step S406, if the current time is within the second preset range, sending a real-time video request obtaining instruction to the corresponding second terminal, where the real-time video request obtaining instruction is used to instruct the corresponding second terminal to send real-time video monitoring data.
Specifically, if the real-time position of the second terminal is in a second preset range near the address represented by the accident site information, the vehicle-mounted platform sends a real-time video acquisition request instruction to the corresponding second terminal, and the second terminal uploads the real-time video data acquired by the current second terminal to the server after receiving the real-time video acquisition request instruction. After receiving the real-time video acquisition request instruction, the second terminal can also directly send real-time video data to the first terminal.
Step S408, receiving the real-time video monitoring data sent by the second terminal, and forwarding the real-time video monitoring data to the first terminal.
Specifically, the server carrying the vehicle-mounted platform receives real-time video monitoring data sent by the second terminal, and then forwards the real-time video monitoring data to the first terminal, so that a user can check the subsequent congestion condition, road condition and subsequent progress condition of the accident occurring road section. When the second terminal sends real-time video monitoring data to the vehicle-mounted platform, the vehicle-mounted platform acquires real-time position information sent by the second terminal, judges whether the distance between the address represented by the real-time position and the address represented by the accident site information is within a second preset range again, and if the distance is within the second preset range, continues to send the real-time video monitoring data to the vehicle-mounted platform; and if the real-time video monitoring data is not in the second preset range, sending a real-time video stopping request instruction to the corresponding second terminal, wherein the real-time video stopping request instruction is used for indicating the corresponding second terminal to stop sending the real-time video monitoring data. Namely, when the second terminal leaves a second preset range near the accident site information, the real-time video monitoring data is stopped being uploaded to the vehicle-mounted platform. For example, when the second terminal leaves the range of 100 meters around the accident site information, the uploading of the real-time video monitoring data to the vehicle-mounted platform is stopped.
The method for checking the vehicle video monitoring data after the accident occurs in real time can check the real-time videos and videos of all vehicles within a certain range, and can provide more information for users. By checking the subsequent congestion condition, road surface condition and subsequent progress condition of the accident occurring road section after the accident occurs, road traffic can be better dredged.
It should be understood that although the various steps in the flow charts of fig. 2-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 5, there is provided a vehicle monitoring video data acquisition apparatus including: a receiving module 202, an obtaining module 204 and an instruction sending module 206, wherein:
a receiving module 202, configured to receive the accident location information sent by the first terminal.
And the obtaining module 204 is used for obtaining the associated vehicle information matched with the accident site information.
And the instruction sending module 206 is configured to send a video request instruction to the second terminal corresponding to the associated vehicle information, where the video request instruction is used to instruct the second terminal to send corresponding video monitoring data according to a preset time rule.
The vehicle monitoring video data acquisition device further includes: and a data forwarding module.
The data forwarding module is used for receiving the video monitoring data sent by the second terminal and forwarding the video monitoring data to the first terminal.
The vehicle monitoring video data acquisition device further includes: and an index file generation module.
The index file generation module is used for acquiring license plate information, address information and time information sent by the second terminal; and generating an index file according to the license plate information, the address information and the time information.
The obtaining module 204 further includes: the system comprises a receiving unit, an index file acquiring unit and a related vehicle information matching unit.
And the receiving unit is used for receiving the accident occurrence time information sent by the first terminal.
And the index file acquisition unit is used for acquiring the index file.
And the associated vehicle information matching unit is used for searching the associated vehicle information matched with the accident occurrence place information and the accident occurrence time information according to the index file.
The associated vehicle information matching unit further includes: the searching subunit and the associated vehicle information matching subunit.
And the searching subunit is used for searching the license plate information in the index file, wherein the distance between the index file and the address represented by the accident occurrence place information is within a first preset range, and the time difference between the index file and the time represented by the accident occurrence time information is within a first preset time.
And the associated vehicle information matching subunit is used for taking the license plate information as associated vehicle information.
The vehicle monitoring video data acquisition device further includes: and a real-time video monitoring data acquisition module.
The real-time video monitoring data acquisition module is used for acquiring real-time position information sent by the second terminal; judging whether the distance between the address represented by the real-time position information and the address represented by the accident occurrence place information is within a second preset range or not; if the current vehicle is within the second preset range, sending a real-time video acquisition request instruction to a second terminal corresponding to the corresponding vehicle, wherein the real-time video acquisition request instruction is used for indicating the corresponding second terminal to send real-time video monitoring data; and receiving the real-time video monitoring data sent by the second terminal, and forwarding the real-time video monitoring data to the first terminal.
The real-time video monitoring data acquisition module is also used for acquiring real-time position information sent by the second terminal; judging whether the distance between the address represented by the real-time position information and the address represented by the accident occurrence place information is within a second preset range or not; and if the real-time video monitoring data are not in the second preset range, sending a real-time video stopping request instruction to a second terminal corresponding to the corresponding vehicle, wherein the real-time video stopping request instruction is used for indicating the corresponding vehicle to stop sending the real-time video monitoring data.
For specific limitations of the vehicle monitoring video data acquisition device, reference may be made to the above limitations of the vehicle monitoring video data acquisition method, which are not described herein again. All or part of the modules in the vehicle monitoring video data acquisition device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing an index file. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a vehicle surveillance video data acquisition method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
receiving accident site information sent by a first terminal; acquiring associated vehicle information matched with the accident site information; and sending a video request instruction to a second terminal corresponding to the associated vehicle information, wherein the video request instruction is used for instructing the second terminal to send corresponding video monitoring data according to a preset time rule, receiving the video monitoring data sent by the second terminal, and forwarding the video monitoring data to the first terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring license plate information, address information and time information sent by a second terminal; and generating an index file according to the license plate information, the address information and the time information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving accident occurrence time information sent by a first terminal; acquiring the index file; and searching the associated vehicle information matched with the accident occurrence place information and the accident occurrence time information according to the index file.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
searching license plate information in an index file, wherein the distance between the index file and an address represented by accident occurrence place information is within a first preset range, and the time difference between the index file and the time represented by accident occurrence time information is within a first preset time; and taking the license plate information as associated vehicle information.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring real-time position information sent by a second terminal; judging whether the distance between the address represented by the real-time position information and the address represented by the accident site information is within a second preset range or not; if the current video monitoring data is within a second preset range, sending a real-time video acquisition request instruction to a corresponding second terminal, wherein the real-time video acquisition request instruction is used for indicating the corresponding second terminal to send real-time video monitoring data; and receiving real-time video monitoring data sent by the second terminal, and forwarding the real-time video monitoring data to the first terminal.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring real-time position information sent by a second terminal; judging whether the distance between the address represented by the real-time position information and the address represented by the accident site information is within a second preset range or not; and if the real-time video monitoring data are not in the second preset range, sending a real-time video stopping request instruction to the corresponding second terminal, wherein the real-time video stopping request instruction is used for instructing the corresponding second terminal to stop sending the real-time video monitoring data.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving accident site information sent by a first terminal; acquiring associated vehicle information matched with the accident site information; sending a video request instruction to a second terminal corresponding to the associated vehicle information, wherein the video request instruction is used for instructing the second terminal to send corresponding video monitoring data according to a preset time rule; and receiving video monitoring data sent by the second terminal, and forwarding the video monitoring data to the first terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring license plate information, address information and time information sent by a second terminal; and generating an index file according to the license plate information, the address information and the time information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving accident occurrence time information sent by a first terminal; acquiring the index file; and searching the associated vehicle information matched with the accident occurrence place information and the accident occurrence time information according to the index file.
In one embodiment, the computer program when executed by the processor further performs the steps of:
searching license plate information in an index file, wherein the distance between the index file and an address represented by accident occurrence place information is within a first preset range, and the time difference between the index file and the time represented by accident occurrence time information is within a first preset time; and taking the license plate information as associated vehicle information.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring real-time position information sent by a second terminal; judging whether the distance between the address represented by the real-time position information and the address represented by the accident site information is within a second preset range or not; if the current video monitoring data is within a second preset range, sending a real-time video acquisition request instruction to a corresponding second terminal, wherein the real-time video acquisition request instruction is used for indicating the corresponding second terminal to send real-time video monitoring data; and receiving real-time video monitoring data sent by the second terminal, and forwarding the real-time video monitoring data to the first terminal.
In one embodiment, the computer program when executed by the processor further performs the steps of:
acquiring real-time position information sent by a second terminal; judging whether the distance between the address represented by the real-time position information and the address represented by the accident site information is within a second preset range or not; and if the real-time video monitoring data are not in the second preset range, sending a real-time video stopping request instruction to the corresponding second terminal, wherein the real-time video stopping request instruction is used for instructing the corresponding second terminal to stop sending the real-time video monitoring data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.