Summary of the invention
The object of this invention is to provide a kind of method and apparatus of dynamic realtime road conditions query video, it utilizes the In-vehicle networking video recorder of magnanimity to provide video, and geographic position, temporal information and video packing are sent to the database server of specifying, the server of specifying is by video by the sequence of certain method, and user can by the real-time road in the section of the user terminal inquiry current matchings such as mobile phone.
To achieve these goals, the technical solution used in the present invention is:
A method for dynamic realtime road conditions query video, comprising:
S1, send inquiry request by user terminal to Platform Server, by user terminal interface input inquiry origin and stop the inquiry request in place, inquiry request comprises current geographical location information, temporal information and the video content data of terminal, and the road conditions query video asking to check target road section can be initiated at any time, also can check the road conditions video of target road section at any time;
S2, after Platform Server receives inquiry request, Platform Server receives the video of magnanimity from car-mounted terminal, the data layout of video data library storage is resolved to by Platform Server, then Data Matching the target road section meeting querying condition most can be gone out according to the map, search out the set of the navigation spots on inquiry circuit, the all videographs in all navigation spots certain limits are gone out according to the geographic position field searches of video from video database, described videograph includes the geographical location information field of video, and according to a definite sequence, the videograph found out is formed one section of video flowing, video flowing is turned back to user terminal, can show on user terminal interface after user terminal receiver, video stream, described video flowing can each of coverage goal section interval, the video record of optional position in target road section can be checked.
It is interconnected that described user terminal and Platform Server pass through data network.
Described user terminal is mobile phone or computer, for input inquiry condition, downloads the video flowing that display meets querying condition.
an equipment for dynamic realtime road conditions query video, comprises car-mounted terminal, Platform Server and user terminal:
Car-mounted terminal includes locating module, video acquisition module, first communication module and control module;
Platform Server comprises second communication module, parsing module, the database of data processing module and the videograph for storage administration, second communication module is for receiving the data from car-mounted terminal, and data are passed to parsing module, parsing module is used for the data layout data layout that data car-mounted terminal is uploaded being resolved to video data library storage, and data are passed to video recordings storehouse, data processing module, for the treatment of user's inquiry request, calculate user and inquire about circuit, search the navigation spots on inquiry circuit, and generate data query according to the set of navigation spots, the videograph meeting querying condition is searched from database, the geography information coordinate set of videograph according to inquiry is processed, composition video flowing, and by second communication module video stream to user terminal,
User terminal is used for input inquiry condition by user terminal interface, downloads the video flowing that display meets querying condition.
Described locating module is Beidou satellite navigation system or GPS or galileo satellite navigation system or GLONASS satellite navigation system, and locating module is also not limited only to above-mentioned positioning system simultaneously, and other positioning systems are also supported.
Described control module adopts ARM or DSP process chip.
Described first communication module and second communication module adopt the communication chip of GPRS, CDMA, WCDMA, CDMA2000, TD-SCDMA, TD-LTE or FDD-LTE network formats, first communication module and second communication module are also not limited only to the communication chip of above-mentioned network formats simultaneously, and the communication chip of other network formats is also supported.
What the database of described videograph adopted is that Mysql, Oracle, MongoDb, Cassandra have structure or structureless database.
That described first communication module and second communication module adopt is HTTP, TCP, Real-time Transport Protocol communicate with user terminal with Platform Server respectively.
Beneficial effect of the present invention: compared with prior art, this technology can overcome the short slab being only provided with videograph in existing supervisory system at ad-hoc locations such as crossings, makes the information gathered more extensively with accurate; Facilitate user and can start to inquire about the continuous videos record of assigned address in a period of time with the arbitrary time, make user can obtain real-time road conditions, thus can make and planning in advance; The continuous videos record inquired about in stretch journey in fixed time section can be started with optional position, comparatively large from main separation, user can be facilitated more greatly and understand road conditions situation in time according to self needing.
Embodiment
As shown in Figure 1, a kind of method of dynamic realtime road conditions query video, comprising:
S1, it is interconnected that user terminal and Platform Server pass through data network, user terminal sends inquiry request to Platform Server, by user terminal interface input inquiry origin and stop the inquiry request in place, inquiry request comprises the current geographical location information (geographic latitude and longitude information) of terminal, temporal information and video content data, and the road conditions query video asking to check target road section can be initiated at any time, also the road conditions video of target road section can be checked at any time, the circuit of described user's inquiry request refers to the set of the latitude and longitude coordinates of navigation spots in target line,
S2, after Platform Server receives inquiry request, Platform Server receives the video of magnanimity from car-mounted terminal, car-mounted terminal captured in real-time video also inserts gps data at periodic time point to video in conjunction with GPS information, carrying out compression is in real time transferred in Platform Server, the data layout of video data library storage is resolved to by Platform Server, Platform Server carries out time period screening to the video presentation record that video database returns in scope to be checked, the video presentation record meeting querying condition is carried out record ordering according to the direction order of longitude and latitude and time sequencing, target video fragment is intercepted out with temporal information from video file storehouse according to the geography information in video presentation record and return together with other result videos, then videograph is connected into continuous print video flowing, and the time point marked in video flowing and geographical location information, final video flows through RTP, TCP or http protocol turn back to user terminal, user can select specific geographic position or time point to check corresponding video segment at user terminal, then on user terminal interface can each of coverage goal section interval, the video record of optional position in target road section can be checked, thus road conditions can be understood in real time.
Described user terminal is mobile phone or computer, for input inquiry condition, downloads the video flowing that display meets querying condition.
an equipment for dynamic realtime road conditions query video, comprises car-mounted terminal, Platform Server and user terminal;
Car-mounted terminal includes locating module, video acquisition module, first communication module and control module, the geography information of the current present position of equipment described in locating module energy timing acquiring, geographic information data bag is sent to control module, video acquisition module records real-time video, video is preserved according to the form of certain length, timing or in real time and control module mutual, the video packets of data of piecemeal or live video stream are sent to control module, by control module, video data is sent to first communication module, the data that process video acquisition module and locating module send over, video data is added geography information, and the video data containing geography information is sent to the second communication module of Platform Server,
Platform Server comprises second communication module, parsing module, the database of data processing module and the videograph for storage administration, second communication module is for receiving the data from car-mounted terminal, and data are passed to parsing module, parsing module is used for the data layout data layout that data car-mounted terminal is uploaded being resolved to video data library storage, and data are passed to video recordings storehouse, data processing module, for the treatment of user's inquiry request, calculate user and inquire about circuit, search the navigation spots on inquiry circuit, and generate data query according to the set of navigation spots, the videograph meeting querying condition is searched from database, videograph is carried out process composition video flowing according to the geography information coordinate set of inquiry, described video flowing is based on the geographical location information in videograph and temporal information, according to the continuous videos that continuous time, spatial order combined, and by second communication module video stream to user terminal,
User terminal is used for input inquiry condition by user terminal interface, downloads the video flowing that display meets querying condition.
Described locating module is Beidou satellite navigation system or GPS or galileo satellite navigation system or GLONASS satellite navigation system, and locating module is also not limited only to above-mentioned positioning system simultaneously, and other positioning systems are also supported.
Described control module adopts ARM or DSP process chip.
Described first communication module and second communication module adopt the communication chip of GPRS, CDMA, WCDMA, CDMA2000, TD-SCDMA, TD-LTE or FDD-LTE network formats, first communication module and second communication module are also not limited only to the communication chip of above-mentioned network formats simultaneously, and the communication chip of other network formats is also supported.
What the database of described videograph adopted is that Mysql, Oracle, MongoDb, Cassandra have structure or structureless database.
That described first communication module and second communication module adopt is HTTP, TCP, Real-time Transport Protocol communicate with user terminal with Platform Server respectively.
Implementation process of the present invention:
The first step, the geography information of the current present position of equipment described in car-mounted terminal locating module energy timing acquiring, geographic information data bag is sent to control module, video acquisition module records real-time video, video is preserved according to the form of certain length, timing or in real time and control module mutual, the video packets of data of piecemeal or live video stream are sent to control module, by control module, video data is sent to first communication module, the data that process video acquisition module and locating module send over, video data is added geography information, and the video data containing geography information is sent to the second communication module of Platform Server, second step, because first communication module and second communication module use GPRS, CDMA, WCDMA, CDMA2000, TD-SCDMA, the communication chip of the network formats such as TD-LTE or FDD-LTE, and use TCP or HTTP to set up logic connecting link between Platform Server, data communication is carried out by the message content of arranging form, or real-time can send to control module to Platform Server by data network and resolve resume module the timing of the video data of car-mounted terminal, parsing module is used for the form Digital video resolution that car-mounted terminal sends being become database purchase, be delivered to video database, video database is used for store video record, each videograph comprises geographic position field and shooting time field, 3rd step, be connected with Platform Server by data network, can at the interface of user terminal input start address and destination address, it can be place name, organization names, building title or traffic station roll-call etc., or reconnaissance determination origin and objective from map, the inquiry request comprising origin and objective is packaged into Packet Generation to Platform Server, user terminal is mobile phone or PAD or onboard system or PC, interconnected by data network between user terminal and Platform Server, use wired or wireless connection access communications network, the mode of TCP or HTTP and Platform Server is used to set up logic connecting link, data communication is carried out by the message content of arranging form, 4th step, data processing module is for the treatment of user's inquiry request, data search generates the route mated most according to the map, and the navigation spots searched according to route within the scope of target route, generate the set of target road section navigation spots, set based on navigation spots generates the query video request based on geographic position, inquiry request is initiated to video database, to the videograph that data base querying returns, sort by the address location field of sequence of positions to videograph of route, result videograph is formed complete continuous print video flowing according to ranking results, finally video stream to second communication module, 5th step, is sent to the video flowing of the process of data processing module on user terminal by second communication module.
Beneficial effect of the present invention: compared with prior art, this technology can overcome the short slab being only provided with videograph in existing supervisory system at ad-hoc locations such as crossings, makes the information gathered more extensively with accurate; Facilitate user and can start to inquire about the continuous videos record of assigned address in a period of time with the arbitrary time, make user can obtain real-time road conditions, thus can make and planning in advance; The continuous videos record inquired about in stretch journey in fixed time section can be started with optional position, comparatively large from main separation, user can be facilitated more greatly and understand road conditions situation in time according to self needing.