CN109729287B - Method and device for monitoring perimeter area, computing equipment and storage medium - Google Patents
Method and device for monitoring perimeter area, computing equipment and storage medium Download PDFInfo
- Publication number
- CN109729287B CN109729287B CN201811490311.5A CN201811490311A CN109729287B CN 109729287 B CN109729287 B CN 109729287B CN 201811490311 A CN201811490311 A CN 201811490311A CN 109729287 B CN109729287 B CN 109729287B
- Authority
- CN
- China
- Prior art keywords
- picture
- camera
- video
- monitoring
- monitoring video
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 258
- 238000000034 method Methods 0.000 title claims abstract description 33
- 238000003860 storage Methods 0.000 title claims abstract description 16
- 238000005520 cutting process Methods 0.000 claims description 14
- 230000000694 effects Effects 0.000 abstract description 5
- 238000007689 inspection Methods 0.000 abstract description 5
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000009191 jumping Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Landscapes
- Closed-Circuit Television Systems (AREA)
Abstract
The invention discloses a method and a device for monitoring a perimeter area, computing equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining a surveillance video of a current camera and a surveillance video of a first adjacent camera, and switching a picture of the surveillance video of the current camera on a playing interface into a picture of the surveillance video of the first adjacent camera according to a preset speed according to the overlapping condition of the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera after the one or more frames of the surveillance video of the current camera are played. In the technical scheme, the position of the camera is arranged and the playing mode of the monitoring video is set, so that the monitoring video of the current camera is switched to the monitoring video of the first adjacent camera when the playing of the monitoring video is finished, continuous splicing display of the monitoring videos of the two adjacent cameras is realized, the effect of continuous splicing and inspection along the monitoring boundary is achieved when the user watches the monitoring videos, and the user experience is improved.
Description
Technical Field
The embodiment of the invention relates to the field of video monitoring, in particular to a method and a device for monitoring a perimeter area, computing equipment and a storage medium.
Background
The existing video monitoring system generally refers to the simultaneous viewing of multiple windows or the careful viewing of a certain path. There is also a polling mode, which displays all cameras in turn according to a certain sequence, but when the polling mode is checked, there is no coherence between the cameras, the switching from the monitoring scene of one camera to the monitoring scene of another camera is abrupt, the user does not know whether there is a monitoring blind area or a monitoring overlapping area between two cameras, the whole scene cannot be monitored comprehensively, and the user experience is low.
Disclosure of Invention
The embodiment of the invention provides a method and a device for monitoring a perimeter area, computing equipment and a storage medium, which are used for realizing continuous inspection along a monitoring boundary and realizing better user experience.
The embodiment of the invention provides a method for monitoring a perimeter area, which comprises the following steps:
acquiring a monitoring video of a current camera and a monitoring video of a first adjacent camera, wherein the first adjacent camera is a first camera which is determined according to a tour direction and is positioned behind the current camera;
after one or more frames of the monitoring video of the current camera are played, switching the picture of the monitoring video of the current camera to the picture of the monitoring video of the first adjacent camera according to a preset speed on the playing interface according to the overlapping condition of the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera.
In the technical scheme, the position of the camera is arranged and the playing mode of the monitoring video is set, so that the monitoring video of the current camera is switched to the monitoring video of the first adjacent camera when the playing of the monitoring video is finished, continuous splicing display of the monitoring videos of the two adjacent cameras is realized, the effect of continuous splicing and inspection along the monitoring boundary is achieved when the user watches the monitoring videos, and the user experience is improved. In addition, when the picture of the monitoring video of the current camera is switched to the picture of the monitoring video of the first adjacent camera, the picture of the monitoring video is preprocessed, the preprocessed video is sent to the client, the client only needs to display the received video, namely, in the scheme, the server only splices the video resources when the client displays the video resources, the spliced resources are sent to the client for the client to display, the resources occupied for the client to display are unchanged, and the monitoring videos are independent in the camera and the monitoring storage device, so that the complexity of system function coding and storage is reduced.
Optionally, the switching the picture of the surveillance video of the current camera on the playing interface to the picture of the surveillance video of the first adjacent camera according to a preset speed according to the overlapping condition of the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera includes:
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have overlapped pictures, cutting the picture of the monitoring video of the current camera according to a first preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the first preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface;
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera are not overlapped, cutting the picture of the monitoring video of the current camera according to a second preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the second preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
In the above technical scheme, for the overlapping condition of the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera, the switching mode of the surveillance videos of the adjacent cameras is divided into two modes, so that the playing interface is switched to the surveillance video of the first adjacent camera after the surveillance video of the current camera is played.
Optionally, the first preset speed is determined according to the picture width of the monitoring video of the current camera, the width of the overlapped picture, and the frame number of the monitoring video of the current camera; the second preset speed is determined according to the picture width of the monitoring video of the current camera and the frame number of the monitoring video of the current camera.
Optionally, the first preset speed is determined according to a difference between a width of the monitoring video of the current camera and a width of the overlapped picture, and a frame number of the monitoring video of the current camera.
According to the technical scheme, the switching mode of the monitoring video of the current camera and the monitoring video of the first adjacent camera on the playing interface is provided, the effect of continuous splicing and inspection tour along the monitoring boundary is achieved when a user watches the monitoring video, and the user experience is improved.
Optionally, after the switching the picture of the surveillance video of the current camera on the play interface to the picture of the surveillance video of the first adjacent camera according to the preset speed, the method further includes:
and determining the monitoring video of the first adjacent camera as the monitoring video of the current camera, and continuously switching the picture of the monitoring video of the current camera on the playing interface to the picture of the monitoring video of the first adjacent camera according to a preset speed until a stop instruction is received.
According to the technical scheme, the plurality of camera monitoring videos are sequentially played in a circulating mode until a stop instruction is received, so that the effect of continuously splicing and inspecting along the monitoring boundary is achieved when a user watches the monitoring videos, and the user experience is improved.
Correspondingly, the embodiment of the invention also provides a device for monitoring the perimeter area, which comprises:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a monitoring video of a current camera and a monitoring video of a first adjacent camera, and the first adjacent camera is a first camera which is determined according to a tour direction and is positioned behind the current camera;
and the processing unit is used for switching the picture of the monitoring video of the current camera to the picture of the monitoring video of the first adjacent camera according to a preset speed according to the overlapping condition of the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera after one or more frames of the monitoring video of the current camera are played.
Optionally, the processing unit is specifically configured to:
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have overlapped pictures, cutting the picture of the monitoring video of the current camera according to a first preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the first preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface;
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera are not overlapped, cutting the picture of the monitoring video of the current camera according to a second preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the second preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
Optionally, the first preset speed is determined according to the picture width of the monitoring video of the current camera, the width of the overlapped picture, and the frame number of the monitoring video of the current camera; the second preset speed is determined according to the picture width of the monitoring video of the current camera and the frame number of the monitoring video of the current camera.
Optionally, the processing unit is further configured to:
after the picture of the surveillance video of the current camera on the playing interface is switched to the picture of the surveillance video of the first adjacent camera according to the preset speed, determining the surveillance video of the first adjacent camera as the surveillance video of the current camera, and continuously switching the picture of the surveillance video of the current camera on the playing interface to the picture of the surveillance video of the first adjacent camera according to the preset speed until a stop instruction is received.
Correspondingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for monitoring the perimeter area according to the obtained program.
Accordingly, embodiments of the present invention also provide a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is caused to execute the method for monitoring the perimeter area.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a system architecture suitable for an annular region according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of another system architecture suitable for use in an annular region according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a system architecture suitable for a bar-shaped area according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for monitoring a perimeter area according to an embodiment of the present invention;
FIG. 5a shows the overlapping of the surveillance video frames of two adjacent cameras;
FIG. 5b is a view of two adjacent cameras showing no overlapping images;
fig. 6a to fig. 6c are schematic diagrams illustrating a process of switching surveillance videos according to an embodiment of the present invention;
fig. 7a to fig. 7c are schematic diagrams illustrating another surveillance video switching process according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a method for monitoring a perimeter area according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a device for monitoring a perimeter area according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 schematically shows a system architecture to which the method for providing perimeter area monitoring according to the embodiment of the present invention is applied, where the system architecture may be applied to a ring area, and the system architecture may include a plurality of cameras 101, a monitoring storage device 102, and a client 103, which are connected through a data line or a network. The plurality of cameras 101 face the monitoring area, which is inside the border, i.e. all cameras 201 face inside the border.
The camera 101: are arranged on the border of the monitored area. The plurality of cameras 101 face a monitoring area (the monitoring direction is perpendicular to the extending direction of the monitoring area boundary) according to the same height and the same pitch angle, are numbered sequentially from a first camera 101 in a certain direction (clockwise or anticlockwise), and are connected end to form a closed loop from 1 to N. Each camera has a view field that is partially overlapping in direction with the view fields of its left and right neighbors, as shown in fig. 1.
Monitoring the storage device 102: establishing data connection with the camera 101 and the client 103, and storing audio and video information acquired by the camera 101; is responsible for receiving client 103 commands and providing video data to the client 103.
The client terminal 103: the monitoring video of the camera 101 can be obtained from the monitoring storage device 102, and is played and displayed on the playing interface.
As an optional solution, the embodiment of the present invention further provides another system architecture to which the method for monitoring a perimeter area is applied, where the system architecture may be applied to a ring area, and the system architecture may include a plurality of cameras 201, a monitoring storage device 202, and a client 203. As shown in fig. 2, the plurality of cameras 201 face the monitoring area, and the monitoring area is outside the boundary, that is, all the cameras 201 face the outside of the boundary.
As an alternative, the embodiment of the present invention further provides another system architecture to which the method for monitoring the perimeter area is applied, where the system architecture may be applied to a strip-shaped area, such as an expressway. The system architecture may include a plurality of cameras 301, a monitoring storage device 302, and a client 303, where the cameras 301 are arranged in the same direction, but not end-to-end to form a closed loop, as shown in fig. 3. Of course, two sets of cameras 301 in different directions may be disposed on two sides of the bar-shaped area, or other settings beneficial for acquiring the monitoring videos may be disposed.
Based on the above system architecture, fig. 4 exemplarily shows a flow of a method for monitoring a perimeter area, which can be performed by a device for monitoring a perimeter area according to an embodiment of the present invention.
In the system architecture, the monitoring directions of all the cameras are perpendicular to the extending direction of the boundary of the monitoring area, and the visual field ranges of the adjacent cameras are partially overlapped in the extending direction of the boundary of the monitoring area. After the tour direction is determined, the playing sequence of the videos shot by each camera on the playing interface is determined, and the following process is performed.
The first adjacent camera is a first camera which is located behind the current camera and determined according to the tour direction.
It should be noted that, the current camera and the first adjacent camera are two adjacent cameras, the monitoring directions of the two adjacent cameras are both toward the monitoring area, and the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera may have an overlapping picture or may not have an overlapping picture. The specific situation is as follows:
when the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera have overlapped pictures, as shown in fig. 5a, the thin solid line represents a picture 1, which is the picture shot by the current camera; the dashed line represents frame 2, which is the frame taken by the first adjacent camera; the bold solid line represents the video playing interface, that is, in fig. 5a, the current video playing interface plays the frame 1 and includes a part of the frame 2, that is, the overlapped frame of the two.
When the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera have no overlapping picture, as shown in fig. 5b, the thin solid line represents picture 1, which is the picture shot by the current camera; the dashed line represents frame 2, which is the frame taken by the first adjacent camera; the thick solid line represents the video playing interface, that is, in fig. 5b, only frame 1 is played in the current video playing interface.
Here, according to the overlapping situation of the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera, the switching manner can be divided into two cases:
the first condition is as follows: when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have overlapped pictures, the picture of the monitoring video of the current camera is cut according to a first preset speed, and the picture of the monitoring video of the first adjacent camera is displayed in a moving mode according to the first preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
Case two: when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera are not overlapped, the picture of the monitoring video of the current camera is cut according to a second preset speed, and the picture of the monitoring video of the first adjacent camera is displayed in a moving mode according to the second preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
The first preset speed and the second preset speed may be set to be a horizontal preset speed or a vertical preset speed according to experience. When the first and second preset speeds are horizontal preset speeds, the following embodiments can be explained.
Here, the first preset speed is determined according to a picture width of the monitoring video of the current camera, a width of the overlapped picture, and a frame number of the monitoring video of the current camera. Further, the first preset speed is determined according to the difference value between the width of the monitoring video of the current camera and the width of the overlapped picture, and the frame number of the monitoring video of the current camera.
Illustratively, this may be as shown in equation (1).
The above formula (1) is:
V1=ΔX1/N……………………(1)
wherein, V1Presetting the speed, Δ X, for the first level1The difference value of the width of the monitoring video of the current camera and the width of the overlapped picture is obtained; and N is the frame number of the monitoring video of the current camera, namely the frame generation number in the monitoring video of the current camera, and is determined according to the playing time of the monitoring video of the current camera.
The first horizontal preset speed determined according to the formula (1) can meet the requirement, when the playing of the monitoring video of the current camera is finished, the monitoring video of the first adjacent camera is just played on the playing interface, and the continuous splicing display of the monitoring videos of the two adjacent cameras is realized.
The second preset speed is determined according to the picture width of the monitoring video of the current camera and the frame number of the monitoring video of the current camera.
Illustratively, this may be as shown in equation (2).
The above formula (2) is:
V2=ΔX2/N……………………(2)
wherein, V2Presetting the speed, Δ X, for the second level2The frame width of the monitoring video of the current camera is defined, and the N is the frame number of the monitoring video of the current camera, namely the frame generation number in the monitoring video of the current camera, and is determined according to the playing time of the monitoring video of the current camera.
The second horizontal preset speed determined according to the formula (2) can meet the requirement that when the playing of the monitoring video of the current camera is finished, the monitoring video of the first adjacent camera is just played on the playing interface, and the continuous splicing display of the monitoring videos of the two adjacent cameras is realized.
As an implementation manner, when the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera have overlapping pictures, refer to fig. 6a, where a thin solid line indicates a picture 1, which is a picture taken by the current camera; the dashed line represents frame 2, which is the frame taken by the first adjacent camera; the bold solid line represents the playing interface of the video, that is, in fig. 6a, the current playing interface of the video is frame 1 and includes a part of frame 2 (the overlapped frame of the two). The frame number of the monitoring video of the current camera is N, and the difference value between the width of the picture 1 and the width of the overlapped picture is Delta X1When the monitoring video of the current camera is played completely, the playing interface is switched from the picture 1 to the picture 2, and the speed V needs to be preset according to the first level1(V1=ΔX1and/N) cutting a picture 1 of the monitoring video of the current camera, and pulling a picture 2 into a playing interface in the horizontal direction according to the overlapped pictures. For better understanding of the embodiment of the present invention, fig. 6b and 6c show that the frame of the surveillance video of the current camera on the playing interface is switched to the frame of the surveillance video of the first adjacent camera according to the first horizontal preset speed according to the overlapped frames.
In addition, the current camera and the first adjacent camera can be reasonably arranged to realize that the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have no overlapping pictures, that is, when the two have no overlapping pictures, as shown in fig. 7a, a thin solid line represents a picture 1, which is a picture shot by the current camera; the dashed line represents frame 2, which is the frame taken by the first adjacent camera; the thick solid line represents the playing interface of the video, and the current playing interface of the video does not include the frame 2. Fig. 7b and 7c show that the picture of the monitoring video of the current camera on the playing interface is at the second horizontal preset speed V2(V2=ΔX2and/N) switching to the picture of the monitoring video of the first adjacent camera.
It should be noted that the width of the screen in the above embodiments is understood as the width in the horizontal direction of the playing interface.
Of course, when the first preset speed and the second preset speed are vertical preset speeds, there are:
the first preset speed is determined according to the picture height of the monitoring video of the current camera, the height of the overlapped pictures and the frame number of the monitoring video of the current camera. And the second preset speed is determined according to the picture height of the monitoring video of the current camera and the frame number of the monitoring video of the current camera. The specific implementation manner may refer to the above embodiments, which are not described herein again.
The above embodiment explains the switching between the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera, that is, the surveillance video of the current camera is switched to the surveillance video of the first adjacent camera, so that the user can continuously watch the surveillance video of the current camera and the surveillance video of the first adjacent camera on one play interface. Optionally, after the picture of the surveillance video of the current camera on the playing interface is switched to the picture of the surveillance video of the first adjacent camera according to the preset speed, the surveillance video of the first adjacent camera may be determined as the surveillance video of the current camera, and the picture of the surveillance video of the current camera on the playing interface is continuously switched to the picture of the surveillance video of the first adjacent camera according to the preset speed until the stop instruction is received.
Specifically, it can be seen from Table 1 that the time period is 0 to T1The monitoring video of the current camera is a video segment 1, the monitoring video of the first adjacent camera is a video segment 2, and the monitoring video is in a time period of 0-T1Playing the video segment 1, gradually switching the picture of the video segment 1 in the playing interface to the picture of the video segment 2 according to a preset speed (a first preset speed or a second preset speed) while playing the video segment 1, and at T1The handover is completed at that time. In a time period T1~T2When the monitoring video of the current camera is a video segment 2, the monitoring video of the first adjacent camera is a video segment 3, and the time period T is1~T2Playing the video segment 2, and gradually switching the picture of the video segment 2 of the playing interface to the picture of the video segment 3 according to the preset speed while playing the video segment 2And at T2Switching is completed all the time; and so on.
When a plurality of cameras form a ring-shaped area as shown in fig. 1 or fig. 2, after the monitoring video (video segment n) of the last camera is played on the playing interface, the picture of the video segment n is gradually switched to the video segment 1 again (where n is the number of cameras in the ring-shaped area, n is greater than or equal to 3), and the monitoring video is displayed in the ring-shaped area at TnThe handover is completed at that time.
When the plurality of cameras form a linear region as shown in fig. 3, after the monitoring video (video segment n) of the last camera is played on the playing interface, the monitoring video is directly skipped back to the monitoring video of the first camera. Equivalently, directly jumping to the video segment 1 after playing the video segment n (wherein n is the number of cameras in a linear region, and n is more than or equal to 2).
TABLE 1
| Time period | Camera 1 | Camera 2 | Camera 3 | Camera 4 | …… | |
| 0~T1 | Video segment 1 | |||||
| T1~T2 | Video segment 2 | |||||
| T2~T3 | Video segment 3 | |||||
| T3~T4 | Video segment 4 | |||||
| …… | ||||||
| Tn-1~Tn | Video segment n |
In the above embodiment, if the currently played video is the video segment 2, the video segment 2 is understood as the surveillance video of the current camera, the video segment 3 is understood as the surveillance video of the first adjacent camera, and the video segment 2 is switched to the video segment 3 according to the first preset speed or the second preset speed, then the video segment 3 is understood as the surveillance video of the current camera, and the video segment 4 is understood as the surveillance video of the first adjacent camera, and by such a loop, the loop playing of the surveillance video of the cameras in the whole surveillance area is completed, or the playing is stopped after the stop instruction is received.
The invention provides an implementation mode, wherein according to the boundary of a monitoring area, the monitoring direction of each camera is set to be perpendicular to the tangential direction of the boundary of the monitoring area, a continuous patrol direction is determined, the monitoring videos of each camera are sequentially acquired according to the continuous patrol direction, the pictures of the monitoring videos of adjacent cameras in a playing interface are spliced, the spliced video picture is subjected to translational cutting towards one end opposite to the patrol direction, the video picture subjected to translational cutting is displayed on the playing interface, and the operation is continued until the monitoring videos of all the cameras are sequentially displayed on the playing interface. In the scheme, the number of the cameras can be at least three, splicing operation is carried out when the monitoring videos of the adjacent cameras are only displayed on the playing interface, the occupied splicing resources and the occupied display resources are unchanged all the time, unnecessary operation is reduced, the cameras are independent when the monitoring videos are shot and stored, and the complexity of coding and storing is reduced.
In order to better explain the embodiment of the present invention, the following describes the flow of the perimeter region monitoring method in a specific implementation scenario, as shown in fig. 8, specifically as follows:
and step 801, numbering the cameras in each group along the monitoring direction, and determining the relative position relation of the fields of vision of the adjacent cameras.
And 803, according to the overlapping condition of the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera, cutting the picture of the monitoring video of the current camera, and displaying the picture of the monitoring video of the first adjacent camera on the playing interface.
Since the specific implementation of this embodiment has been described in other embodiments, it is not described herein.
In the above embodiment, the positions of the cameras are arranged and the playing mode of the surveillance video is set, so that the surveillance video of the current camera is switched to the surveillance video of the first adjacent camera when the playing of the surveillance video is completed, continuous splicing display of the surveillance videos of the two adjacent cameras is realized, the effect of continuous splicing inspection along the surveillance boundary is achieved when the user watches the surveillance video, and the user experience is improved.
In addition, only when the client displays the video, the server splices the video resources and sends the spliced resources to the client for displaying by the client, the display resources occupied by the client are unchanged, the splicing resources of the server are unchanged, unnecessary operations are reduced, and the monitoring videos are independent in the camera and the monitoring storage device, so that the complexity of coding and storing is reduced.
Based on the same inventive concept, fig. 9 exemplarily shows a structure of an apparatus for perimeter area monitoring, which may perform a flow of a method for perimeter area monitoring according to an embodiment of the present invention.
An obtaining unit 901, configured to obtain a surveillance video of a current camera and a surveillance video of a first adjacent camera, where the first adjacent camera is a first camera located behind the current camera and determined according to a tour direction;
the processing unit 902 is configured to, after one or more frames of the surveillance video of the current camera are played, switch the picture of the surveillance video of the current camera to the picture of the surveillance video of the first adjacent camera according to a preset speed on the play interface according to an overlapping condition of the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera.
Optionally, the processing unit 902 is specifically configured to:
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have overlapped pictures, cutting the picture of the monitoring video of the current camera according to a first preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the first preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface;
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera are not overlapped, cutting the picture of the monitoring video of the current camera according to a second preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the second preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
Optionally, the first preset speed is determined according to the picture width of the monitoring video of the current camera, the width of the overlapped picture, and the frame number of the monitoring video of the current camera; the second preset speed is determined according to the picture width of the monitoring video of the current camera and the frame number of the monitoring video of the current camera.
Optionally, the first preset speed is determined according to a difference between a width of the monitoring video of the current camera and a width of the overlapped picture, and a frame number of the monitoring video of the current camera.
Optionally, the processing unit is further configured to:
after the picture of the surveillance video of the current camera on the playing interface is switched to the picture of the surveillance video of the first adjacent camera according to the preset speed, determining the surveillance video of the first adjacent camera as the surveillance video of the current camera, and continuously switching the picture of the surveillance video of the current camera on the playing interface to the picture of the surveillance video of the first adjacent camera according to the preset speed until a stop instruction is received.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the method for monitoring the perimeter area according to the obtained program.
Based on the same inventive concept, the embodiment of the present invention further provides a computer-readable non-volatile storage medium, which includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer is enabled to execute the method for monitoring the perimeter area.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
Claims (10)
1. A method of perimeter area monitoring, comprising:
acquiring a monitoring video of a current camera and a monitoring video of a first adjacent camera, wherein the first adjacent camera is a first camera which is determined according to a tour direction and is positioned behind the current camera;
after one or more frames of the monitoring video of the current camera are played, switching the picture of the monitoring video of the current camera on a playing interface to the picture of the monitoring video of the first adjacent camera according to a preset speed according to the overlapping condition of the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera;
the switching the picture of the surveillance video of the current camera on the playing interface to the picture of the surveillance video of the first adjacent camera according to a preset speed according to the overlapping condition of the picture of the surveillance video of the current camera and the picture of the surveillance video of the first adjacent camera includes:
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have overlapped pictures, cutting the picture of the monitoring video of the current camera according to a first preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the first preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface;
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera are not overlapped, cutting the picture of the monitoring video of the current camera according to a second preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the second preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
2. The method of claim 1, wherein the first preset speed is determined according to a picture width of the surveillance video of the current camera, a width of the overlapped picture, a number of frames of the surveillance video of the current camera; the second preset speed is determined according to the picture width of the monitoring video of the current camera and the frame number of the monitoring video of the current camera.
3. The method of claim 2, wherein the first preset speed is determined according to a difference between a width of the monitoring video of the current camera and a width of the overlapped picture, a number of frames of the monitoring video of the current camera.
4. The method according to any one of claims 1 to 3, wherein after the switching the picture of the surveillance video of the current camera to the picture of the surveillance video of the first adjacent camera according to the preset speed on the playing interface, the method further comprises:
and determining the monitoring video of the first adjacent camera as the monitoring video of the current camera, and continuously switching the picture of the monitoring video of the current camera on the playing interface to the picture of the monitoring video of the first camera behind the current camera according to a preset speed until a stop instruction is received.
5. A perimeter area monitoring apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a display unit, wherein the acquisition unit is used for acquiring a monitoring video of a current camera and a monitoring video of a first adjacent camera, and the first adjacent camera is a first camera which is determined according to a tour direction and is positioned behind the current camera;
the processing unit is used for switching the picture of the monitoring video of the current camera on a playing interface into the picture of the monitoring video of the first adjacent camera according to a preset speed according to the overlapping condition of the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera after one or more frames of the monitoring video of the current camera are played;
the processing unit is specifically configured to:
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera have overlapped pictures, cutting the picture of the monitoring video of the current camera according to a first preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the first preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface;
when the picture of the monitoring video of the current camera and the picture of the monitoring video of the first adjacent camera are not overlapped, cutting the picture of the monitoring video of the current camera according to a second preset speed, and moving and displaying the picture of the monitoring video of the first adjacent camera according to the second preset speed until all the monitoring videos of the first adjacent camera are displayed on the playing interface.
6. The apparatus of claim 5, wherein the first preset speed is determined according to a picture width of the surveillance video of the current camera, a width of the overlapped picture, a number of frames of the surveillance video of the current camera; the second preset speed is determined according to the picture width of the monitoring video of the current camera and the frame number of the monitoring video of the current camera.
7. The apparatus of claim 6, wherein the first preset speed is determined according to a difference between a width of the monitoring video of the current camera and a width of the overlapped picture, a number of frames of the monitoring video of the current camera.
8. The apparatus of any of claims 5 to 7, wherein the processing unit is further to:
after the picture of the surveillance video of the current camera on the playing interface is switched to the picture of the surveillance video of the first adjacent camera according to the preset speed, determining the surveillance video of the first adjacent camera as the surveillance video of the current camera, and continuously switching the picture of the surveillance video of the current camera on the playing interface to the picture of the surveillance video of the first camera behind the current camera according to the preset speed until a stop instruction is received.
9. A computing device, comprising:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory to execute the method of any one of claims 1 to 4 in accordance with the obtained program.
10. A computer-readable non-transitory storage medium including computer-readable instructions which, when read and executed by a computer, cause the computer to perform the method of any one of claims 1 to 4.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811490311.5A CN109729287B (en) | 2018-12-06 | 2018-12-06 | Method and device for monitoring perimeter area, computing equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811490311.5A CN109729287B (en) | 2018-12-06 | 2018-12-06 | Method and device for monitoring perimeter area, computing equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109729287A CN109729287A (en) | 2019-05-07 |
| CN109729287B true CN109729287B (en) | 2021-06-15 |
Family
ID=66295878
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811490311.5A Active CN109729287B (en) | 2018-12-06 | 2018-12-06 | Method and device for monitoring perimeter area, computing equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109729287B (en) |
Families Citing this family (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110177258A (en) * | 2019-06-28 | 2019-08-27 | Oppo广东移动通信有限公司 | Image processing method, image processing apparatus, server, and storage medium |
| CN110278413A (en) * | 2019-06-28 | 2019-09-24 | Oppo广东移动通信有限公司 | Image processing method, image processing apparatus, server, and storage medium |
| CN114245081A (en) * | 2021-12-23 | 2022-03-25 | 湖北襄开电力设备有限公司 | Unmanned aerial vehicle video picture platform monitored control system |
| CN114630081B (en) * | 2022-03-17 | 2024-03-26 | 重庆紫光华山智安科技有限公司 | Video playing sequence determining method, device, equipment and medium |
| CN114401378A (en) * | 2022-03-25 | 2022-04-26 | 北京壹体科技有限公司 | Multi-segment video automatic splicing method, system and medium for track and field projects |
| CN116366913B (en) * | 2023-05-19 | 2023-08-18 | 杭州华橙软件技术有限公司 | Video playing method, computer equipment and storage medium |
| CN119094904A (en) * | 2024-11-05 | 2024-12-06 | 广东恩威视科技有限公司 | A multi-angle monitoring camera and image processing method |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202565409U (en) * | 2012-05-25 | 2012-11-28 | 黑龙江大学 | Surveillance video real-time splicing device |
| US20160005280A1 (en) * | 2014-07-07 | 2016-01-07 | Google Inc. | Method and Device for Processing Motion Events |
| CN107249123A (en) * | 2017-08-04 | 2017-10-13 | 江苏云光智慧信息科技有限公司 | A kind of video frequency monitoring method based on video-splicing technology |
-
2018
- 2018-12-06 CN CN201811490311.5A patent/CN109729287B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN202565409U (en) * | 2012-05-25 | 2012-11-28 | 黑龙江大学 | Surveillance video real-time splicing device |
| US20160005280A1 (en) * | 2014-07-07 | 2016-01-07 | Google Inc. | Method and Device for Processing Motion Events |
| CN107249123A (en) * | 2017-08-04 | 2017-10-13 | 江苏云光智慧信息科技有限公司 | A kind of video frequency monitoring method based on video-splicing technology |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109729287A (en) | 2019-05-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109729287B (en) | Method and device for monitoring perimeter area, computing equipment and storage medium | |
| CN105915937B (en) | Panoramic video playing method and device | |
| RU2718413C2 (en) | Information processing device, image forming device, control methods thereof and non-volatile computer-readable data storage medium | |
| US9712747B2 (en) | Method and camera for producing an image stabilized video | |
| US20220182595A1 (en) | Optical flow based omnidirectional stereo video processing method | |
| CN112383820B (en) | Method for identifying horizontal and vertical screens of screen projection equipment, storage medium and terminal equipment | |
| EP3516862B1 (en) | Systems and methods for exposure control | |
| CN106331530B (en) | A kind of simultaneously and rapidly switching display methods of video wall, decoding device | |
| US20180152664A1 (en) | Display apparatus, control method therefor, and storage medium | |
| US20180102082A1 (en) | Apparatus, system, and method for video creation, transmission and display to reduce latency and enhance video quality | |
| CN112567735A (en) | Multi-video signal pre-monitoring method and multi-video signal pre-monitoring system | |
| CN112422888A (en) | Video splicing method and device, electronic equipment and computer readable storage medium | |
| CN107231537B (en) | A kind of picture-in-picture switching method and apparatus | |
| CN109660759B (en) | Method, device, system and equipment for monitoring perimeter area and storage medium | |
| CN107734278B (en) | Video playback method and related device | |
| CN113938617A (en) | Multi-channel video display method and equipment, network camera and storage medium | |
| US9438808B2 (en) | Image capture control apparatus, method of limiting control range of image capture direction, and storage medium | |
| CN113408440A (en) | Video data jam detection method, device, equipment and storage medium | |
| CN112037127A (en) | Privacy shielding method and device for video monitoring, storage medium and electronic device | |
| CN117499728A (en) | Monitoring picture display method, device, equipment and medium | |
| CN116761017A (en) | High availability method and system for video real-time rendering | |
| US20210092344A1 (en) | Display control apparatus, method for controlling display control apparatus, and storage medium | |
| CN113938752A (en) | Processing method and device | |
| JP2023019086A (en) | Transmission control device, transmission control device operation method, and program | |
| CN108683842B (en) | Panoramic camera and method and device for outputting panoramic video |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |