Video picture display method, device, terminal and storage medium based on GIS system

文档序号:1252965 发布日期:2020-08-21 浏览:17次 中文

阅读说明:本技术 基于gis系统的视频画面显示方法、装置、终端及存储介质 (Video picture display method, device, terminal and storage medium based on GIS system ) 是由 戴振民 于 2020-03-19 设计创作,主要内容包括:本发明提供一种基于GIS系统的视频画面显示方法,包括:获取行车记录仪当前时刻的当前视频帧、当前时刻的上一时刻的上一视频帧及所述当前时刻的下一时刻的下一视频帧;在地理信息系统的三维场景仿真平台界面上渲染车模型;根据上一时刻、当前时刻及下一时刻视频帧对应车辆经纬度坐标计算车模型当前时刻经纬度坐标并将对应视频帧加载至车模型,控制车模型行驶中播放。本发明还提供一种基于GIS系统的视频画面显示装置、终端及存储介质。本发明通过上一时刻、当前时刻及下一时刻视频帧对应车辆经纬度坐标计算车模型当前时刻经纬度坐标并加载当前视频帧至车模型,确保当前视频帧对应车辆位置与车模型位置同步移动,生动的显示了车模型模拟行驶过程。(The invention provides a video image display method based on a GIS system, which comprises the following steps: acquiring a current video frame of a vehicle event data recorder at the current moment, a previous video frame of the previous moment of the current moment and a next video frame of the next moment of the current moment; rendering a vehicle model on a three-dimensional scene simulation platform interface of a geographic information system; and calculating the longitude and latitude coordinates of the vehicle model at the current moment according to the longitude and latitude coordinates of the vehicle corresponding to the video frames at the previous moment, the current moment and the next moment, loading the corresponding video frames to the vehicle model, and controlling the vehicle model to play during running. The invention also provides a video picture display device, a terminal and a storage medium based on the GIS system. According to the invention, the longitude and latitude coordinates of the vehicle model at the current moment are calculated according to the longitude and latitude coordinates of the vehicle corresponding to the video frames at the previous moment, the current moment and the next moment, and the current video frame is loaded to the vehicle model, so that the synchronous movement of the vehicle position corresponding to the current video frame and the vehicle model position is ensured, and the simulated driving process of the vehicle model is vividly displayed.)

1. A video picture display method based on a GIS system is characterized by comprising the following steps:

acquiring a current video frame of a vehicle event data recorder at the current moment, a previous video frame of the previous moment of the current moment and a next video frame of the next moment of the current moment;

rendering a vehicle model on a three-dimensional scene simulation platform interface of a geographic information system;

according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame, the longitude and latitude coordinates of the vehicle model at the current moment are calculated;

loading the current video frame in the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment;

and controlling the vehicle model to play the current video frame in the running process.

2. The method of claim 1, wherein the calculating the longitude and latitude coordinates of the vehicle model at the current moment according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame comprises:

calculating a longitude coefficient and a latitude coefficient of the current moment;

calculating the relative offset of longitude and latitude at the current moment;

and calculating to obtain the longitude and latitude coordinates of the vehicle model at the current moment according to the longitude and latitude coefficient of the current moment, the longitude and latitude relative offset of the current moment, the previous longitude and latitude coordinates and the next longitude and latitude coordinates.

3. The method of claim 2, wherein the calculating the longitude coefficient for the current time and the latitude coefficient for the current time comprises:

the time of the current moment is differed from the time of the last moment to obtain a first difference value;

the time of the next moment is differenced with the time of the previous moment to obtain a second difference value;

calculating a quotient of the first difference and the second difference as a longitude coefficient of the current time and a latitude coefficient of the current time.

4. The method of claim 2, wherein said calculating the relative offset of latitude and longitude at the current time comprises:

acquiring longitude coordinates and latitude coordinates of a central point of the vehicle model at the current moment;

the longitude coordinate of the current moment is differed with the longitude coordinate of the current moment central point to obtain the relative longitude offset of the current moment;

and subtracting the latitude coordinate of the current moment and the latitude coordinate of the central point of the current moment to obtain the relative latitude offset of the current moment.

5. The method of claim 4, wherein the calculating the longitude and latitude coordinates of the vehicle model at the current time according to the longitude and latitude coefficients of the current time, the longitude and latitude relative offset of the current time, the previous longitude and latitude coordinate and the next longitude coordinate comprises:

multiplying the difference of the next longitude coordinate minus the previous longitude coordinate by the longitude coefficient of the current moment to obtain a first longitude value;

calculating the sum of the first longitude value and the last longitude coordinate and the longitude relative offset of the current moment to obtain the longitude coordinate of the current moment of the vehicle model;

multiplying the difference of the next latitude coordinate minus the previous latitude coordinate by the latitude coefficient of the current moment to obtain a first latitude value;

and calculating the sum of the first latitude value and the last latitude coordinate and the relative latitude offset of the current moment to obtain the latitude coordinate of the vehicle model at the current moment.

6. The method of any one of claims 1 to 5, wherein said loading the current video frame into the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current time comprises:

acquiring video elements in the current video frame;

and loading the video elements into the vehicle model as entity materials.

7. The method according to any one of claims 1 to 5, wherein in controlling the playing of the current video frame during the driving of the vehicle model, the method further comprises:

acquiring longitude and latitude coordinates of the vehicle model at the current moment; acquiring a white mold, a fine mold and oblique photography which are stored in advance according to the longitude and latitude coordinates of the current moment; loading the white model, the fine model and the oblique photography to the periphery of the current driving road of the vehicle model on a three-dimensional scene simulation platform interface of the geographic information system; or

Acquiring vehicle information in a road where the longitude and latitude coordinates of the vehicle model at the current moment are located; rendering a corresponding vehicle model on a three-dimensional scene simulation platform interface of the geographic information system based on the vehicle information; and loading the corresponding vehicle models in the same direction or opposite directions appearing in the current video frame onto the current driving road.

8. A GIS system-based video picture display apparatus, comprising:

the acquisition module is used for acquiring a current video frame of the automobile data recorder at the current moment, a previous video frame of the current moment and a next video frame of the current moment;

the rendering module is used for rendering the vehicle model on a three-dimensional scene simulation platform interface of the geographic information system;

the calculation module is used for calculating the longitude and latitude coordinates of the vehicle model at the current moment according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame;

the loading module is used for loading the current video frame into the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment;

and the control module is used for controlling the current video frame to be played in the driving process of the vehicle model.

9. A terminal characterized in that it comprises a processor for implementing a video picture display method based on a GIS system according to any one of claims 1 to 7 when executing a computer program stored in a memory.

10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the GIS system-based video screen display method according to any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of video acquisition and processing, in particular to a video picture display method, a video picture display device, a video picture display terminal and a storage medium based on a GIS (geographic information system).

Background

Although the development of automobile data recorders and Geographic Information systems (GIS systems for short) is mature at home and abroad, it is not negligible that the integration of the automobile data recorders and the GIS systems has many problems to be solved. The main problems are that, because the video content of the automobile data recorder is in the first view angle, the relevance between the video content and the GIS and the geography is small, moreover, most videos integrated into the GIS are aerial-shot at fixed points by an unmanned aerial vehicle, videos shot by the unmanned aerial vehicle are generally displayed in a plane or terrain form after 90 degrees of overlooking, however, the automobile data recorder adopts the vehicle driving process of shooting at the head-up angle, the head-up angle can not avoid the phenomena of shielding and the like among vehicles, so that the scene design is difficult, other products are more frequently that video contents are independently placed and are displayed by cutting off with the GIS, the visual focus of a user needs to be switched back and forth between the video and the GIS, the user experience is poor, in combination with the whole GIS scene, the vehicle model has serious disjointed feeling, and the video content in the automobile data recorder and the vehicle model and the advancing route in the GIS system cannot be well mapped.

Disclosure of Invention

In view of the above, it is necessary to provide a video image display method, device, terminal and storage medium based on a GIS system, which calculates the longitude and latitude coordinates of the vehicle model at the current time according to the longitude and latitude coordinates of the vehicle corresponding to the video frames acquired by the vehicle event data recorder, and loads the current video frames into the vehicle model, so as to well form a mapping relationship between the video contents in the vehicle event data recorder and the vehicle model and the traveling route in the GIS system.

The first aspect of the present invention provides a video image display method based on a GIS system, the method comprising:

acquiring a current video frame of a vehicle event data recorder at the current moment, a previous video frame of the previous moment of the current moment and a next video frame of the next moment of the current moment;

rendering a vehicle model on a three-dimensional scene simulation platform interface of a geographic information system;

according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame, the longitude and latitude coordinates of the vehicle model at the current moment are calculated;

loading the current video frame in the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment;

and controlling the vehicle model to play the current video frame in the running process.

Preferably, the calculating the longitude and latitude coordinates of the vehicle model at the current moment according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame includes:

calculating a longitude coefficient and a latitude coefficient of the current moment;

calculating the relative offset of longitude and latitude at the current moment;

and calculating to obtain the longitude and latitude coordinates of the vehicle model at the current moment according to the longitude and latitude coefficient of the current moment, the longitude and latitude relative offset of the current moment, the previous longitude and latitude coordinates and the next longitude and latitude coordinates.

Preferably, the calculating the longitude coefficient of the current time and the latitude coefficient of the current time includes:

the time of the current moment is differed from the time of the last moment to obtain a first difference value;

the time of the next moment is differenced with the time of the previous moment to obtain a second difference value;

and calculating the quotient of the first difference value and the second difference value as the longitude coefficient of the current time and the latitude coefficient of the current time.

Preferably, the calculating the longitude and latitude relative offset of the current time includes:

acquiring longitude coordinates and latitude coordinates of a central point of the vehicle model at the current moment;

the longitude coordinate of the current moment is differed with the longitude coordinate of the current moment central point to obtain the relative longitude offset of the current moment;

and subtracting the latitude coordinate of the current moment and the latitude coordinate of the central point of the current moment to obtain the relative latitude offset of the current moment.

Preferably, the obtaining of the longitude and latitude coordinate of the vehicle model at the current time by calculating according to the longitude and latitude coefficient of the current time, the longitude and latitude relative offset of the current time, the previous longitude and latitude coordinate, and the next longitude and latitude coordinate includes:

multiplying the difference of the next longitude coordinate minus the previous longitude coordinate by the longitude coefficient of the current moment to obtain a first longitude value;

calculating the sum of the first longitude value and the last longitude coordinate and the longitude relative offset of the current moment to obtain the longitude coordinate of the current moment of the vehicle model;

multiplying the difference of the next latitude coordinate minus the previous latitude coordinate by the latitude coefficient of the current moment to obtain a first latitude value;

and calculating the sum of the first latitude value and the last latitude coordinate and the relative latitude offset of the current moment to obtain the latitude coordinate of the vehicle model at the current moment.

Preferably, the loading the current video frame in the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment comprises:

acquiring video elements in the current video frame;

and loading the video elements into the vehicle model as entity materials.

Preferably, in the process of controlling the vehicle model to play the current video frame during the driving process, the method further includes:

acquiring longitude and latitude coordinates of the vehicle model at the current moment; acquiring a white mold, a fine mold and oblique photography which are stored in advance according to the longitude and latitude coordinates of the current moment; loading the white model, the fine model and the oblique photography to the periphery of the current driving road of the vehicle model on a three-dimensional scene simulation platform interface of the geographic information system on the geographic information system; or

Acquiring vehicle information in a road where the longitude and latitude coordinates of the vehicle model at the current moment are located; rendering a corresponding vehicle model on a three-dimensional scene simulation platform interface of the geographic information system based on the vehicle information; and loading the corresponding vehicle models in the same direction or opposite directions appearing in the current video frame onto the current driving road.

A second aspect of the present invention provides a video screen display device based on a GIS system, the device comprising:

the acquisition module is used for acquiring a current video frame of the automobile data recorder at the current moment, a previous video frame of the current moment and a next video frame of the current moment;

the rendering module is used for rendering the vehicle model on a three-dimensional scene simulation platform interface of the geographic information system;

the calculation module is used for calculating the longitude and latitude coordinates of the vehicle model at the current moment according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame;

the loading module is used for loading the current video frame into the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment;

and the control module is used for controlling the current video frame to be played in the driving process of the vehicle model.

A third aspect of the present invention provides a terminal comprising a processor for implementing the GIS system based video picture display method when executing a computer program stored in a memory.

A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the GIS system-based video screen display method.

In summary, the video frame display method, the video frame display device, the video frame display terminal and the video frame display storage medium based on the GIS system according to the present invention obtain a current video frame of a current time of a vehicle event data recorder, a previous video frame of a previous time of the current time and a next video frame of a next time of the current time; rendering a vehicle model on a three-dimensional scene simulation platform interface of a geographic information system; according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame, the longitude and latitude coordinates of the vehicle model at the current moment are calculated; loading the current video frame in the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment; and controlling the vehicle model to play the current video frame in the running process. On one hand, according to the current longitude and latitude coordinates of the vehicle corresponding to the current video frame, the longitude and latitude coordinates of the vehicle model at the current moment are calculated according to the previous longitude and latitude coordinates of the vehicle corresponding to the previous video frame and the next longitude and latitude coordinates of the vehicle corresponding to the next video frame, so that the synchronous movement of the position of the current video frame and the position of the vehicle model is ensured; on the other hand, the current video frame is loaded in the vehicle model according to the longitude and latitude coordinates of the vehicle model at the current moment, so that the vehicle model in the GIS system forms mapping association of real-time geographic positions, the video content is synchronized, the simulated driving process of the vehicle model is vividly displayed, and meanwhile, the video content in the driving recorder and the vehicle model and the driving route in the GIS system form a mapping relationship well.

Drawings

Fig. 1 is a flowchart of a video image display method based on a GIS system according to an embodiment of the present invention.

Fig. 2 is a structural diagram of a video screen display device based on the GIS system according to a second embodiment of the present invention.

Fig. 3 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.

The following detailed description will further illustrate the invention in conjunction with the above-described figures.

Detailed Description

In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.

Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:量子数据存储方法、读取方法、装置及计算设备

网友询问留言

已有0条留言

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

精彩留言,会给你点赞!