Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1, as can be seen from fig. 1, a broadband blocking processing method for shipborne satellite communication video transmission according to an embodiment of the present invention is used for processing a transmission frame rate of a shipborne surveillance video at a marine party and then sending the processed transmission frame rate back to a terrestrial party, and includes the following steps:
step S101: dividing a target monitoring picture monitored by a party at sea into a plurality of target monitoring grids with the same area and forming a target rectangular coordinate grid graph, wherein different target monitoring grids correspond to different monitoring places.
The ship monitoring method comprises the steps that a marine party (the marine party means the party located on a marine ship, the monitoring range of the marine party comprises various places of the ship and designated sea environments around the marine party) monitors the ship for 24 hours all day long, dynamic video data are displayed as target monitoring pictures, and when a ship-borne monitoring video is transmitted back to a land party (the land party means the party located on the land and receiving the ship-borne monitoring video transmitted back by the marine party), in order to effectively reduce the problem of ship-borne satellite communication broadband blockage, the ship-borne monitoring video needs to be processed and then transmitted back to the land party, namely the ship-borne monitoring video cannot be transmitted back to the land party in percentage.
The target rectangular coordinate grid graph is a rectangular coordinate system graph, the abscissa is represented by X, the ordinate is represented by Y, the coordinates (0, 0) of the origin of coordinates are in the lower left corner of the target rectangular coordinate grid graph, the largest coordinate point is in the upper right corner of the target rectangular coordinate grid graph, if (3, 3) is the largest coordinate point, and the coordinate range of each target monitoring grid is determined by the coordinates of four vertexes of the target monitoring grid.
For example, the target monitoring screen is equally divided into 9 parts, that is, 9 grids (which may be set as 16 grids according to circumstances), and sequentially divided into grids 1 to 9, and the vertex X, Y coordinates of each part of the target monitoring screen are set according to the display with the lower left corner boundary of the target monitoring screen as the origin, and (c) is set as (
,
) The maximum coordinate of the target monitoring video range is set as (
,
)。
Different target monitoring grids correspond to different monitoring places, so that not only are different places observed by workers conveniently, but also places which are focused by the workers are detected conveniently.
Step S102: and judging whether a target mouse pointer on the target monitoring picture is positioned in a range corresponding to the target rectangular coordinate grid image.
When a monitoring worker views the monitoring video, the monitoring worker can use a mouse to view the monitoring video, a pointer of the mouse moves and clicks on each target monitoring grid, if the target mouse pointer is located in a range corresponding to the target rectangular coordinate grid diagram, the fact that the monitoring video is being viewed by the worker is indicated, and if not, the fact that no monitoring video is being viewed by the worker is indicated.
In this step, the method for determining whether the target mouse pointer on the target monitoring picture is located in the range corresponding to the target rectangular coordinate grid map is as follows:
obtaining the coordinate position (X, Y) of the target mouse pointer, and calculating (X, Y) - ((Y))
,
) If (X-
) And (Y-
) And if the corresponding difference values are less than 0, judging that the target mouse pointer is in the range corresponding to the target rectangular coordinate grid image, otherwise, judging that the target mouse pointer is out of the range corresponding to the target rectangular coordinate grid image.
Step S103: and if the target mouse pointer on the target monitoring picture is positioned in the range corresponding to the target rectangular coordinate grid image, acquiring the relevant data of the target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid image.
Step S104: and adjusting the video transmission frame rate corresponding to each target monitoring grid according to the relevant data of the target mouse, and transmitting the video transmission frame rate back to the land party.
The target mouse related data comprises target mouse pointer dwell time, target mouse click frequency and target fast-backward fast-forward use time. In this step, the target monitoring grid with a long target mouse pointer dwell time, the target monitoring grid with a large target mouse click frequency, and the target monitoring grid with a long target mouse fast-backward fast-forward use time are the target monitoring grids that are focused by monitoring personnel, and videos of places corresponding to the target monitoring grids focused by the monitoring personnel need to be transmitted back to the land party at a high video transmission frame rate.
If the target mouse pointer on the target monitoring picture is not located in the range corresponding to the target rectangular coordinate grid image, the data related to the target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid image does not need to be acquired.
In this embodiment, optionally, the obtaining of the relevant data of the target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid diagram includes:
firstly, acquiring the stay time of a target mouse pointer corresponding to each target monitoring grid in the target rectangular coordinate grid graph every other preset time.
The preset time is an empirical threshold, and may be selected as an interval time in the order of milliseconds, or may also be selected as tens of minutes or one hour. Within a preset time length, the time length of the mouse staying in each target monitoring grid is different, and the longer the staying time is, the greater the attention degree of the monitoring staff to the target monitoring grid is.
Secondly, multiplying the stay time of each target mouse pointer by a preset first weight value respectively to obtain a first mouse weight score corresponding to each target monitoring grid.
In this step, a first weight value is set for the stay time of the target mouse pointer, and the first weight value may be 10%. For example, if the dwell time of the target mouse pointer corresponding to one target monitoring grid is 10 minutes, the corresponding first mouse weight score is as follows: 10 × 10% = 1.
In this embodiment, optionally, the obtaining of the relevant data of the target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid diagram includes:
firstly, acquiring the target mouse click frequency corresponding to each target monitoring grid in the target rectangular coordinate grid graph every preset time.
And in a preset time, the click frequency of the target mouse staying in each target monitoring grid by the mouse is different, and the higher the click frequency is, the higher the attention degree of the monitoring staff to the target mouse is.
Secondly, multiplying the click frequency of each target mouse by a preset second weight value to obtain a second mouse weight score corresponding to each target monitoring grid.
In this step, a second weight value is set for the target mouse click frequency, and the second weight value may be selected to be 20%. For example, if the target mouse click frequency corresponding to one target monitoring grid is 100 times, the corresponding first mouse weight score is: 100 × 20% = 20.
In this embodiment, optionally, the obtaining of the relevant data of the target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid diagram includes:
firstly, acquiring target fast-backing and fast-forwarding use time corresponding to each target monitoring grid in the target rectangular coordinate grid graph every preset time.
In a preset time length, the target fast-backward and fast-forward use time lengths of the mouse corresponding to the target monitoring grids are different, and the larger the target fast-backward and fast-forward use time length is, the larger the attention degree of a monitoring worker to the target fast-backward and fast-forward use time length is.
Secondly, multiplying each target fast-backward fast-forward using time length by a preset third weight value respectively to obtain a third mouse weight score corresponding to each target monitoring grid.
In this step, a second weight value is set for the target fast rewinding and fast forwarding use duration, and a third weight value may be 70%. For example, if the target fast-backward fast-forward usage duration corresponding to one target monitoring grid is 5 minutes, the corresponding first mouse weight score is: 5 × 70% = 3.5.
In this embodiment, optionally, the adjusting the video transmission frame rate corresponding to each target monitoring grid according to the target mouse related data and then transmitting the video transmission frame rate back to the land party includes:
firstly, summing the first mouse weight score, the second mouse weight score and the third mouse weight score corresponding to each target monitoring grid to obtain a target mouse weight total score corresponding to each target monitoring grid.
Secondly, adjusting the video transmission frame rate corresponding to each target monitoring grid and transmitting the video transmission frame rate to the land party according to the target mouse weight total score corresponding to each target monitoring grid.
In this embodiment, optionally, the adjusting the video transmission frame rate corresponding to each target monitoring grid according to the target mouse weight total score corresponding to each target monitoring grid, and then transmitting the video transmission frame rate back to the terrestrial party includes:
firstly, dividing each target monitoring grid into different transmission grade categories according to the target mouse weight total score corresponding to each target monitoring grid, wherein the transmission grade categories comprise a first transmission grade category, a second transmission grade category and a third transmission grade category.
Secondly, according to the transmission grade category corresponding to each target monitoring grid, adjusting the video transmission frame rate corresponding to each target monitoring grid and transmitting the video transmission frame rate to a land party.
Wherein the total target mouse weight score corresponding to the first transmission class is greater than the total target mouse weight score corresponding to the second transmission class, and the total target mouse weight score corresponding to the second transmission class is greater than the total target mouse weight score corresponding to the third transmission class.
In this embodiment, optionally, the adjusting the video transmission frame rate corresponding to each target monitoring grid according to the transmission level category corresponding to each target monitoring grid, and then transmitting the video transmission frame rate back to the terrestrial party includes:
firstly, according to the transmission grade category corresponding to each target monitoring grid, obtaining a frame rate transmission coefficient corresponding to each target monitoring grid, wherein the frame rate transmission coefficient comprises a first frame rate transmission coefficient, a second frame rate transmission coefficient and a third frame rate transmission coefficient.
The first frame rate transmission coefficient may be selected to be 100%, the second frame rate transmission coefficient may be selected to be 95%, and the third frame rate transmission coefficient may be selected to be 90%.
Secondly, multiplying the transmission grade type corresponding to each target monitoring grid by the frame rate transmission coefficient corresponding to the target monitoring grid to obtain a target video transmission frame rate corresponding to each target monitoring grid. If the target video transmission frame rate is lower than 25Hz by using the second frame rate transmission coefficient and the third frame rate transmission coefficient, the target video transmission frame rate is adjusted to 25Hz and then transmitted.
Wherein the first frame rate transmission coefficient corresponds to the first transmission class, the second frame rate transmission coefficient corresponds to the second transmission class, and the third frame rate transmission coefficient corresponds to the third transmission class.
Referring to fig. 2, as can be seen from fig. 2, a broadband blocking processing apparatus 100 for shipborne satellite communication video transmission according to an embodiment of the present invention is configured to send a processed frame rate of a shipborne surveillance video at sea back to a terrestrial party, and includes:
the grid coordinate division module 10 is configured to divide a target monitoring picture monitored by a party at sea into a plurality of target monitoring grids with the same area and form a target rectangular coordinate grid graph, where different target monitoring grids correspond to different monitoring places.
And the mouse position judging module 20 is configured to judge whether a target mouse pointer on the target monitoring picture is located in a range corresponding to the target rectangular coordinate grid map.
A mouse data obtaining module 30, configured to obtain, when a target mouse pointer on the target monitoring screen is located in a range corresponding to the target rectangular grid map, target mouse related data corresponding to each target monitoring grid in the target rectangular grid map.
And the video frame rate processing module 40 is configured to adjust a video transmission frame rate corresponding to each target monitoring grid according to the target mouse related data, and transmit the adjusted video transmission frame rate back to the land party.
FIG. 3 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may specifically be a terminal, and may also be a server. As shown in fig. 3, the computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may further store a computer program, which when executed by the processor, causes the processor to implement the above-mentioned method for processing broadband blocking for video transmission of shipborne satellite communication. The internal memory may also store a computer program that, when executed by the processor, causes the processor to perform the above-described method for broadband congestion processing for video transmission in satellite-based communications. Those skilled in the art will appreciate that the architecture shown in fig. 3 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 another embodiment, a computer device is presented, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of:
dividing a target monitoring picture monitored by a party at sea into a plurality of target monitoring grids with the same area and forming a target rectangular coordinate grid graph, wherein different target monitoring grids correspondingly monitor different places; judging whether a target mouse pointer on the target monitoring picture is located in a range corresponding to the target rectangular coordinate grid image; if so, acquiring relevant data of a target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid graph; and adjusting the video transmission frame rate corresponding to each target monitoring grid according to the relevant data of the target mouse, and transmitting the video transmission frame rate back to the land party.
In another embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
dividing a target monitoring picture monitored by a party at sea into a plurality of target monitoring grids with the same area and forming a target rectangular coordinate grid graph, wherein different target monitoring grids correspond to different monitoring places; judging whether a target mouse pointer on the target monitoring picture is located in a range corresponding to the target rectangular coordinate grid image; if yes, obtaining relevant data of a target mouse corresponding to each target monitoring grid in the target rectangular coordinate grid graph; and adjusting the video transmission frame rate corresponding to each target monitoring grid according to the relevant data of the target mouse, and transmitting the video transmission frame rate to the land party.
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 a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the program is executed. 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 invention divides the target monitoring picture monitored by the maritime party into a plurality of target monitoring grids with the same area and forms a target rectangular coordinate grid chart, and different target monitoring grids correspondingly monitor different places, then judging whether a target mouse pointer on the target monitoring picture is positioned in a range corresponding to the target rectangular coordinate grid image, if so, acquiring target mouse related data corresponding to each target monitoring grid in the target rectangular coordinate grid image, and finally according to the target mouse related data, adjusting the video transmission frame rate corresponding to each target monitoring grid and transmitting the video transmission frame rate back to the land party, the method can reduce the number of data transmission in the same time, effectively reduce the problem of shipborne satellite communication broadband blockage, and also avoid the condition that the important shipborne monitoring picture is missed on the land side.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure 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 present application. 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.