CN109982008B - Round-robin switching method and device and electronic equipment - Google Patents
Round-robin switching method and device and electronic equipment Download PDFInfo
- Publication number
- CN109982008B CN109982008B CN201711464726.0A CN201711464726A CN109982008B CN 109982008 B CN109982008 B CN 109982008B CN 201711464726 A CN201711464726 A CN 201711464726A CN 109982008 B CN109982008 B CN 109982008B
- Authority
- CN
- China
- Prior art keywords
- group
- camera
- round
- equipment
- window
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/268—Signal distribution or switching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
The embodiment of the invention provides a polling switching method, a polling switching device and electronic equipment, which are applied to a monitoring terminal communicated with a plurality of camera devices, and the method comprises the following steps: dividing a plurality of image pickup apparatuses into a plurality of apparatus groups; establishing a plurality of window groups, and associating each equipment group with each window group; acquiring the stream establishing duration of each camera in each equipment group aiming at each equipment group; sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device; and performing round inspection on the sequenced camera equipment, decoding data streams sent by the round-inspected camera equipment, and sequentially displaying the data streams in each pane of the window group corresponding to the equipment group according to a preset direction. The round inspection switching scheme realizes round inspection based on the window group, avoids the problem of low efficiency caused by scene switching in the prior art, sequentially displays in each pane of the corresponding window group according to the flow establishing duration of each camera device, and achieves the regular presentation effect.
Description
Technical Field
The invention relates to the technical field of computer vision, in particular to a polling switching method and device and electronic equipment.
Background
For the decoding and splicing control device, the decoding and splicing control device is generally applied to a larger complex, such as occasions of public security, transportation, prisons, hospitals, large stores and the like. In such a large-scale situation, the decoding device generally has only a few cameras, but the number of cameras is hundreds or thousands, and even tens of thousands or hundreds of thousands of cameras are available when a province layout is involved.
The current market supports products in the following ways: VO-based round robin, window/pane-based round robin, scene-based round robin on DMC (Digital Media Controller). Several existing schemes have certain defects, for example, in a VO polling scheme based on DMC, DMC cannot freely arrange windows according to user preference because VO is fixed, and the number of windows is limited; the round cutting scheme based on windows/panes has a narrow round-trip range and can be performed in only one pane; the polling scheme based on scene switching has the disadvantages of slow scene switching and low efficiency. Therefore, how to design a polling switching method with high efficiency and low maintenance cost in a large scene needs to be solved urgently.
Disclosure of Invention
In view of the above, the present invention provides a polling switching method, a polling switching device and an electronic apparatus to solve the above problems.
A preferred embodiment of the present invention provides a polling switching method applied to a monitor terminal communicating with a plurality of image pickup apparatuses, including:
dividing the plurality of image pickup apparatuses into a plurality of apparatus groups;
establishing a plurality of window groups, and associating each equipment group with each window group;
acquiring the stream establishing duration of each camera device in each device group aiming at each device group;
sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device;
and performing round-trip on the sequenced camera equipment, decoding the data streams sent by the camera equipment in round-trip, and sequentially displaying the decoded images in each pane of the window group corresponding to the equipment group according to a preset direction.
Further, the method further comprises:
establishing a cross chain table, wherein the cross chain table comprises a plurality of storage spaces, and each storage space comprises a plurality of storage units;
for each window group, storing the information of the window group in a designated storage unit in a corresponding storage space;
and storing the information of each pane in the window group in other storage units except the specified storage unit in the storage space.
Further, the monitoring device includes a management platform and a decoding device, the decoding device is connected to each of the image capturing devices, and the step of obtaining, for each of the device groups, a stream establishment duration of each of the image capturing devices in the device group includes:
the management platform sends monitoring establishment information to the decoding equipment;
the decoding equipment sends a negotiation request to the camera equipment corresponding to the monitoring establishment information according to the monitoring establishment information;
the decoding equipment decodes the data stream after receiving the data stream returned by the camera equipment based on the negotiation request, counts the time interval from the sending of the negotiation request to the completion of the decoding, takes the time interval as the stream establishing time interval of the camera equipment, and sends the stream establishing time interval to the management platform;
and the management platform receives and stores the flow establishing duration.
Further, each of the panes includes an abscissa and an ordinate, the step of performing round-robin on the sorted image capturing apparatuses, decoding data streams sent by the round-robin image capturing apparatuses, and sequentially displaying images obtained by decoding the data streams in each of the panes of the window group corresponding to the apparatus group in a preset direction includes:
performing round inspection on the sequenced camera equipment, and receiving data streams sent by the camera equipment in round inspection;
and decoding the received data stream, and displaying the decoded image in the corresponding pane according to the direction from small to large of the abscissa and/or the ordinate of each pane in the window group corresponding to the equipment group.
Further, the method further comprises;
and for each pane, when the information of the pane is detected to be changed, modifying the storage information in the storage unit of the pane in the cross linked list according to the change information.
Further, the method further comprises:
for each equipment group, re-obtaining the stream establishing duration of each camera in the equipment group at intervals of a preset period;
and adjusting the sequence of the camera devices in the device group according to the obtained flow establishing duration of each camera device, and performing round trip on each camera device according to the adjusted sequence.
Further, the method further comprises:
detecting whether the flow establishing time length corresponding to the camera equipment exceeds a preset threshold value or not for each camera equipment;
and if the preset threshold value is exceeded, sending out prompt information to prompt the user.
Another preferred embodiment of the present invention provides a polling switching apparatus applied to a monitor terminal communicating with a plurality of image pickup devices, the apparatus including:
a dividing module configured to divide the plurality of image pickup apparatuses into a plurality of apparatus groups;
the establishing module is used for establishing a plurality of window groups and associating each equipment group with each window group;
a stream establishing time length obtaining module, configured to obtain, for each device group, a stream establishing time length of each camera device in the device group;
the sorting module is used for sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device;
and the round-robin module is used for round-robin the sequenced camera devices, decoding the data streams sent by the camera devices in round-robin mode, and sequentially displaying the decoded images in each pane of the window group corresponding to the device group according to a preset direction.
Another preferred embodiment of the present invention provides an electronic device, including:
a memory;
a processor; and
a round robin switching device including one or more software functional modules stored in the memory and executed by the processor, the round robin switching device comprising:
a dividing module configured to divide the plurality of image pickup apparatuses into a plurality of apparatus groups;
the establishing module is used for establishing a plurality of window groups and associating each equipment group with each window group;
a stream establishing time length obtaining module, configured to obtain, for each device group, a stream establishing time length of each camera device in the device group;
the sorting module is used for sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device;
and the round-robin module is used for round-robin the sequenced camera devices, decoding the data streams sent by the camera devices in round-robin mode, and sequentially displaying the decoded images in each pane of the window group corresponding to the device group according to a preset direction.
Another preferred embodiment of the present invention provides a computer-readable storage medium, which stores instructions that, when executed, implement the round robin handover method described above.
According to the round-robin switching method, the round-robin switching device and the electronic equipment, the plurality of camera devices are divided into the plurality of equipment groups, and the plurality of window groups are established to be respectively associated with the plurality of equipment groups. And acquiring the stream establishing time length of each camera in each equipment group to sequence the cameras in the equipment group, performing round-robin on the sequenced cameras, decoding the data stream sent by the round-robin cameras, and sequentially displaying the data stream in each pane of the window group corresponding to the equipment group according to a preset direction. According to the round-robin switching scheme provided by the invention, the round-robin of the camera equipment corresponding to the window group is realized for each window group by dividing the window group into a plurality of window groups, so that the problem of low efficiency caused by scene switching in the prior art is solved. And the camera devices are sequentially subjected to polling according to the flow establishing duration of the camera devices, and images of the camera devices which are polled in a polling mode are displayed in panes according to the preset direction, so that the regular presentation effect is achieved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic view of an application scenario of the round robin switching method according to a preferred embodiment of the present invention.
Fig. 2 is a schematic structural block diagram of a monitoring terminal according to a preferred embodiment of the present invention.
Fig. 3 is a flowchart of a polling switching method according to a preferred embodiment of the invention.
Fig. 4 is another flowchart of the polling switching method according to the preferred embodiment of the invention.
FIG. 5 is a schematic architecture of the cross-linked list provided by the preferred embodiment of the present invention.
Fig. 6 is a flowchart of the substeps of step S105 in fig. 3.
Fig. 7 is a diagram of the effect of video wall presentation in a scenario based on scene switching in the prior art.
Fig. 8 is a flowchart of the substeps of step S109 in fig. 3.
Fig. 9 is a view illustrating a video wall display effect under the polling switching method according to the preferred embodiment of the invention.
Fig. 10 is a view illustrating another effect of the video wall display under the polling switching method according to the preferred embodiment of the invention.
Fig. 11 is another flowchart of the polling switching method according to the preferred embodiment of the invention.
Fig. 12 is a functional block diagram of a polling switching device according to a preferred embodiment of the present invention.
Icon: 100-a monitoring terminal; 110-a round trip switching device; 111-a partitioning module; 112-establishing a module; 113-a flow establishing duration obtaining module; 114-a sorting module; 115-polling module; 120-a processor; 130-a memory; 200-image pickup apparatus.
Detailed Description
The inventor finds that the conventional common round-robin switching schemes mainly include modes such as VO-based round-robin on DMC, window/pane-based round-robin, and scene-switching-based round-robin. The various polling manners have certain defects, and taking the polling manner based on scene switching as an example, the polling manner based on scene switching is to configure a window in each scene, bind a camera, and then combine a series of scenes into a scene list. When the scenes in the scene list are switched one by one in sequence, the switching of the cameras in the window is realized, and thus the round trip is realized. In the method, the polling switching is realized by scene switching, the windows in one scene are required to be completely closed and then windows in another scene are re-created, and the camera resources are set up live on the windows one by one after the windows are re-established. The time consumed in the process is long, and the scene switching mode needs to store a plurality of scene resources aiming at different scene configurations, needs to maintain the plurality of resources, and is inconvenient to use.
In the prior art, in the display of the picture on the wall, because the camera establishes the live scene on the window in a completely asynchronous mode, the picture is displayed on the display screen by completely depending on the factors of time interaction with the camera and the transmission speed of the data I frame in the realization process, and the mode has the condition of disordered display and poor sensory experience for users.
Based on the above research, embodiments of the present invention provide a round robin switching scheme based on window groups, in which a device group including a plurality of image capturing devices is associated with a window group including a plurality of panes, so as to implement switching based on the window group, thereby avoiding unnecessary consumption caused by scene switching. And the sequential round-trip is realized according to the stream establishing duration of each camera device, and each camera device is sequentially displayed in each pane in the corresponding window group according to the preset direction, so that the effect of regularity in display is achieved.
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. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present invention without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "disposed," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
Fig. 1 is a schematic view of an application scenario of a round robin switching method according to an embodiment of the present invention. The scene includes the monitor terminal 100 and the image pickup apparatus 200. The monitoring terminal 100 is communicatively connected to the image pickup apparatus 200 through a network to perform data communication or interaction. In the present embodiment, the image pickup apparatus 200 includes a plurality of image pickup apparatuses 200, and the plurality of image pickup apparatuses 200 are communicatively connected to the monitoring terminal 100. In this embodiment, the image capturing apparatus 200 may be a terminal apparatus such as a camera or a video camera having an image capturing function. The monitoring terminal 100 is a terminal device of a command center that includes a television wall, and the monitoring terminal 100 can receive and decode data streams sent by the respective camera devices 200 to display on the television wall. The monitoring terminal 100 may be, but is not limited to, a computer, a tablet computer, etc.
Referring to fig. 2, a schematic structural block diagram of an electronic device according to an embodiment of the present invention is shown. In this embodiment, the electronic device may be the monitoring terminal 100, and the monitoring terminal 100 includes the polling switch device 110, the processor 120, and the memory 130. The memory 130 is electrically connected to the processor 120 directly or indirectly, so as to implement data transmission or interaction. The polling switch device 110 includes at least one software function module, which may be stored in the memory 130 in the form of software or firmware or solidified in the operating system of the monitoring terminal 100. The processor 120 is configured to execute an executable module stored in the memory 130, such as a software functional module or a computer program included in the polling switch device 110.
Please refer to fig. 3, which is a flowchart illustrating a polling switching method applied to the monitoring terminal 100 according to an embodiment of the present invention. It should be noted that the method provided by the present invention is not limited by the specific sequence shown in fig. 3 and described below. The respective steps shown in fig. 3 will be described in detail below.
Step S101, the plurality of image pickup apparatuses 200 are divided into a plurality of apparatus groups.
Step S103, a plurality of window groups are established, and each device group is associated with each window group.
In the embodiment, in order to reduce the defects in resource configuration and time consumption caused by the switching process of closing and creating a window due to switching from one scene to another scene in scene switching, a round robin switching scheme based on window groups is provided. Alternatively, a plurality of image pickup apparatuses 200 that are communicatively connected may be divided into a plurality of apparatus groups in advance. In practice, the image pickup apparatuses 200 may be divided according to the spatial positions where the image pickup apparatuses 200 are provided, for example, a plurality of image pickup apparatuses 200 provided on the same floor of a mall may be divided into the same apparatus group, a plurality of image pickup apparatuses 200 provided on the same floor of a hospital may be divided into the same apparatus group, or the image pickup apparatuses 200 may be divided according to other factors.
Further, a plurality of window groups are established, wherein each window group comprises a plurality of panes. Each pane carries coordinate values, including an abscissa and an ordinate. The abscissa and ordinate of each pane determine the position of the pane on the television wall. And displaying each pane on the television wall according to the configured coordinate value of each pane.
In this embodiment, each device group is associated with each window group, where each window group may be associated with one device group or a plurality of device groups, and is not limited in this embodiment. In this embodiment, the purpose of associating the device groups and the window groups is that the data stream acquired by the image capturing device 200 in a certain subsequent device group can be decoded by the monitoring terminal 100 and then displayed in the pane in the window group associated with the device group on the television wall, that is, the round trip of the image capturing device 200 corresponding to the device group is realized based on each window group.
In this embodiment, since the window group polling scheme in the scene is adopted, although the scene switching process is reduced, the complexity of resource maintenance for implementing respective services for a plurality of window groups is increased. In an implementation process, referring to fig. 4, in order to manage information of a plurality of window groups, the polling switching method provided in this embodiment further includes the following steps:
step S201, a cross linked list is established, where the cross linked list includes a plurality of storage spaces, and each storage space includes a plurality of storage units.
Step S203, for each of the window groups, storing information of the window group in a designated storage unit in a corresponding storage space.
Step S205, storing the information of each pane in the window group in other storage units in the storage space except the designated storage unit.
In this embodiment, when round-robin based on window groups in a scene is implemented, each device group may be bound to each window group, and multiple binding relationships are involved in round-robin of multiple window groups.
In this embodiment, an orthogonal list is first established, where the orthogonal list includes a plurality of storage spaces, and each storage space includes a plurality of storage units. The memory cell array has the advantages that a plurality of memory spaces form an array form and are arranged into a plurality of rows, and each row of memory spaces comprises memory cells arranged in a plurality of columns.
And for each group of window groups, storing the information of the window group in a designated storage unit in the corresponding storage space. The information of the window groups includes index information of each window group, index information of each pane included in each window group, the number of panes in each window group, the number of corresponding device groups, information of the image pickup device 200 in each device group, such as an installation position of the image pickup device 200, an identifier of the image pickup device 200, and the like. The designated storage unit may be a first storage unit of the storage space, or may be a last storage unit of the storage space, and the embodiment is not particularly limited. However, in consideration of the fact that in the specific implementation, the window groups are conveniently queried, and the specified storage unit is the first storage unit of the storage space without loss of generality. In this way, the first storage unit of each storage space stores information of each window group, and the first storage unit of each storage space can be used as an index of each window group. The information of each pane in the window group is stored in other storage units in the storage space except for the designated storage unit, for example, as shown in fig. 5, information of a certain window group is stored in V1, followed by information of panes contained in the window group stored in 1, 2, and 3, respectively. The information of each pane may include coordinate values of each pane, information of the image pickup apparatus 200 to which the pane corresponds, and the like.
Therefore, when information of a certain pane needs to be accessed, the storage space where the window group is located can be found through the index of the window group where the pane is located, and then the position where the pane is located can be found in the storage space. The corresponding object can be found without traversing the linked lists one by one like the common singly linked list or the traditional cross linked list.
In this embodiment, when the window groups with large traffic are stored in round robin mode, in order to improve subsequent searching efficiency, a hash algorithm may be used to determine a storage space of each window group in the cross chain table. For the hash algorithm, reference may be made to the prior art to obtain more information, which is not described in this embodiment.
Further, when the round trip of the image pickup apparatus 200 in a certain apparatus group is stopped or a certain image pickup apparatus 200 is deleted from the monitored object, the information of the pane corresponding to the image pickup apparatus 200 in the storage space corresponding to the window group may be deleted from the cross-linked list, thereby effectively managing the resources.
Step S105, for each of the device groups, obtains a stream establishment time length of each of the image pickup devices 200 in the device group.
Step S107, sorting the image pickup apparatuses 200 in the apparatus group by the streaming time length corresponding to each image pickup apparatus 200.
Referring to fig. 6, in the present embodiment, the step S105 may include four sub-steps of step S1051, step S1053, step S1055 and step S1057.
Step S1051, the management platform sends monitoring establishment information to the decoding device.
In step S1053, the decoding apparatus transmits a negotiation request to the image pickup apparatus 200 corresponding to the monitoring establishment information, according to the monitoring establishment information.
Step S1055, after receiving the data stream returned by the image capturing apparatus 200 based on the negotiation request, the decoding apparatus decodes the data stream, counts a time interval from the start of sending the negotiation request to the completion of decoding, takes the time interval as a stream establishing time interval of the image capturing apparatus 200, and sends the stream establishing time interval to the management platform.
Step S1057, the management platform receives and stores the flow establishing duration.
In the scenario polling switching scheme used in the prior art, the resource on-wall map of the image capturing apparatus 200 is completely negotiated between the monitoring apparatus and the image capturing apparatus 200, and the negotiation and the flow are requested to be performed on the wall. This approach has the disadvantage that it is not guaranteed in a round robin application which window can be decoded first on the wall because of the network or the camera device 200 itself, so that a picture confusion occurs, as shown in fig. 7. In view of such problems, the present embodiment proposes a scheme of polling the image pickup apparatuses 200 for the upper wall according to the build-up time length of each image pickup apparatus 200.
Alternatively, in the present embodiment, a field indicating the streaming time length is set, and the field indicates the time length required for each image pickup apparatus 200 to actually decode and display on the television wall from the start of the setup negotiation. In this embodiment, the monitoring terminal 100 includes a management platform and a decoding device, and in order to accurately count the time taken by each image capturing device 200 to establish real-time monitoring, a communication message needs to be added between the management platform and the decoding device, and the decoding device informs the management platform of the time taken by the current image capturing device 200 to play a live picture on a final television wall from the start of establishing a negotiation. Specifically, the management platform transmits, to the decoding apparatus, monitoring establishment information including information of the image pickup apparatus 200 that requires establishment of real-time monitoring, such as an IP address of the image pickup apparatus 200, an identification of the image pickup apparatus 200, and the like. After receiving the monitoring establishment information, the decoding apparatus sends a negotiation request to the corresponding image capturing apparatus 200 according to the relevant information of the image capturing apparatus 200 carried in the monitoring establishment information. The image capturing apparatus 200 establishes a negotiation with the decoding apparatus based on the negotiation request, and converts an image acquired by itself into a data stream and transmits the data stream to the decoding apparatus. The decoding apparatus decodes the data stream transmitted by the image pickup apparatus 200 upon receiving the data stream. And the time length of the interval from the start of sending the negotiation request to the completion of decoding the received data stream is counted, and the time length is used as the stream establishing time length of the image pickup apparatus 200. And sending the flow establishing time length corresponding to the image pickup device 200 to a management platform, and storing the flow establishing time length by the management platform.
In the present embodiment, in order to ensure normal operation of the image capturing apparatus 200 that performs communication, the round trip switching method provided by the present embodiment further includes the steps of:
for each image pickup device 200, detecting whether the flow establishing time length corresponding to the image pickup device 200 exceeds a preset threshold value, and if so, sending a prompt message to prompt a user.
In the present embodiment, it is considered that the polling switching may be caused to be problematic because the flow establishment time of the image capturing apparatus 200 may be affected by a network environment, or an apparatus damage or the like. Therefore, for each image pickup apparatus 200, it is detected whether the flow establishing time length corresponding to the image pickup apparatus 200 exceeds a preset threshold value, and if the flow establishing time length exceeds the preset threshold value, a prompt message is sent to prompt a user, so that the user can conveniently find out the cause of the fault, and a higher-quality polling effect is presented.
In order to avoid the problem of confusion of existing top wall screens, in the present embodiment, the image pickup apparatuses 200 are sorted according to the acquired streaming time durations of the image pickup apparatuses 200. Alternatively, the image pickup apparatuses 200 are sorted in the order of the stream creation time periods from small to large.
Step S109, performing round trip on each sequenced image capture apparatus 200, decoding data streams sent by each image capture apparatus 200, and sequentially displaying images obtained after decoding in each pane of the window group corresponding to the apparatus group in a preset direction.
Referring to fig. 8, in the present embodiment, the step S109 may include two substeps, i.e., a step S1091 and a step S1093.
In step S1091, round trips are performed on the sorted image pickup apparatuses 200, and data streams transmitted by the image pickup apparatuses 200 are received.
Step S1093, decoding the received data stream, and displaying the decoded image in the corresponding pane according to the direction from small to large of the abscissa and/or the ordinate of each pane in the window group corresponding to the device group.
Alternatively, in this embodiment, round-robin is performed on each image capturing apparatus 200 sorted in a certain window group, and a data stream sent by each image capturing apparatus 200 round-robin is received and decoded. And sequentially displayed in a preset direction in each window of the window group corresponding to the device group in which the image pickup device 200 is located.
From the above, each pane in each window group carries coordinate values, including abscissa and ordinate. In decoding the data stream of the image pickup apparatus 200 for display on the wall, in order to avoid display confusion, the received data stream may be displayed in the corresponding pane in a direction from the small to the large of the abscissa and/or the ordinate of each pane. For example, a window group includes 3 × 3 and 9 panes, and a two-dimensional coordinate system is established with the upper left corner of the television wall as the origin of the coordinate axis, so that the coordinate values of the 9 panes can be determined. And after the data stream is received and decoded by performing round-robin according to the sequence from small to large of the stream building time length, sequentially displaying the decoded pictures in the corresponding panes in a display mode from left to right and from top to small in the 9 panes. Thus, since the stream creation time of the image capturing apparatus 200 corresponding to the previous pane is always shorter than the stream creation time of the image capturing apparatus 200 corresponding to the next pane, there is a relatively long polling interval between the previous screen and the next screen, and the processor 120 has enough time to process the sorting problem in this polling interval. This may result in a regular display, as shown in fig. 9.
In the present embodiment, in addition to the round-robin in each window group to round-robin display of each image pickup apparatus 200 as described above, a specified image pickup apparatus 200 may be selected to display a real-time monitoring screen of the specified image pickup apparatus 200 on a television wall. For example, as shown in fig. 10, a polling screen of a window group may be displayed on both the left and right sides of a television wall, and a real-time monitoring screen of the specified image pickup apparatus 200 may be displayed at a middle position of the television wall. Therefore, the global monitoring can be controlled to some extent, and important real-time monitoring objects cannot be missed.
In this way, in the process of establishing the cross linked list, round-robin resources and real-time monitoring of each window group can be grouped and distinguished on the aspect of resource management, and the corresponding resource groups can be directly accessed in the access process without distinguishing the resources one by one from the resource stack according to the resource IDs like a single linked list and then sorting the resources. Thus, great convenience is provided for resource scheduling.
In this embodiment, when performing resource maintenance, in addition to the above-described storage and deletion of configuration information, processes such as addition, movement, and modification of information of each pane in the round-robin process are also included. In order to guarantee the control efficiency of each node, the information of the window groups and the panes can be stored in the database and can be synchronized into the cache at the same time, so that the system can be quickly used during running. This involves the need for a mechanism to allow memory data to be accurately modified quickly when changes are made to the pane information. In this embodiment, a design mode of an observer mode is adopted, including an observer and a listener, where the observer is a video wall mentioned in this embodiment, and the listener is a management module of the cross linked list in this embodiment.
Optionally, the method further comprises the following steps:
and for each pane, when the display information of the pane is detected to be changed, modifying the storage information in the storage unit of the pane in the cross linked list according to the change information.
For each pane on the television wall, when the television wall detects that the display information of a certain pane changes, for example, the information of the camera device 200 corresponding to the pane changes, the coordinate value of the pane changes, and the like, the change information is sent to the management module of the cross linked list. After receiving the change information sent by the television wall, the management module of the cross linked list searches the corresponding storage unit so as to modify the information of the corresponding pane stored in the storage unit. Therefore, the modification triggering event can be responded independently without processing the whole configuration information, so that the efficiency can be improved to a great extent, and the user experience is enhanced.
In this embodiment, considering that the stream establishment duration of the device may be affected by a change in a network environment or a reason of the device itself, so that the display efficiency cannot be regularly presented, please refer to fig. 11, where the polling switching method in this embodiment further includes the following steps:
step S301, for each device group, reacquiring the flow establishment duration of each image capture device 200 in the device group at intervals of a preset period.
In step S303, the sequence of the image capturing apparatuses 200 in the apparatus group is adjusted according to the obtained flow establishing duration of each image capturing apparatus 200, and the image capturing apparatuses 200 are subjected to round robin in the adjusted sequence.
In this embodiment, for each image capturing apparatus 200 in each apparatus group, the flow establishing duration of each image capturing apparatus 200 in the apparatus group is obtained again at intervals of a preset period, for example, at intervals of three rounds of patrol processes, or at intervals of four rounds of patrol processes, and the specific obtaining step of the flow establishing duration may refer to the above description, and is not described here again.
And readjusts the sorting of the plurality of image pickup apparatuses 200 in the apparatus group according to the newly obtained streaming time length of each image pickup apparatus 200, and rounds each image pickup apparatus 200 in the adjusted sorting until the data stream of each image pickup apparatus 200 is decoded for display. Thus, it is possible to avoid the influence of environmental factors or device factors on the ranking of the image capturing device 200 and thus on the presentation effect.
The polling switching scheme provided by the embodiment of the invention avoids the defects of maintenance of a large amount of scene resources, configuration of scene switching resources and the like caused by the fact that polling is realized by the conventional scene switching method. The process of scene switching is omitted, so that the configuration and the round inspection of the window group in the same scene are realized, unnecessary consumption is reduced, and the efficiency is improved. And by sequencing the stream building duration required by the camera devices 200 to build a live scene, the pictures corresponding to the camera devices 200 are always played on the television wall from left to right and from top to bottom in the window group in the process of building the live scene, so that an organized and regular effect is presented to the sense of the user.
Referring to fig. 12, a functional block diagram of a polling switch device 110 applied to the monitoring terminal 100 according to an embodiment of the present invention is shown. The device comprises a dividing module 111, an establishing module 112, a flow establishing duration obtaining module 113, a sorting module 114 and a round-robin module 115.
The dividing module 111 is configured to divide the plurality of image capturing apparatuses 200 into a plurality of apparatus groups. The dividing module 111 may be configured to perform step S101 shown in fig. 3, and a detailed description of step S101 may be referred to for a specific operation method.
The establishing module 112 is configured to establish a plurality of window groups and associate each of the device groups with each of the window groups. The establishing module 112 may be configured to execute step S103 shown in fig. 3, and the detailed description of step S103 may be referred to for a specific operation method.
The flow establishing duration acquiring module 113 is configured to acquire, for each of the device groups, a flow establishing duration of each of the image capturing devices 200 in the device group. The flow establishing duration obtaining module 113 may be configured to execute step S105 shown in fig. 3, and the detailed description of step S105 may be referred to for a specific operation method.
The sorting module 114 is configured to sort the image capturing apparatuses 200 in the apparatus group according to the flow establishing duration corresponding to each image capturing apparatus 200. The sorting module 114 may be configured to execute step S107 shown in fig. 3, and the detailed description of step S107 may be referred to for a specific operation method.
The polling module 115 is configured to perform polling on the sorted image capturing apparatuses 200, decode data streams sent by the sequenced image capturing apparatuses 200, and sequentially display images obtained after decoding in each pane of the window group corresponding to the apparatus group according to a preset direction. The polling module 115 may be configured to execute step S109 shown in fig. 3, and a detailed description of the step S109 may be referred to for a specific operation method.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method, and will not be described in too much detail herein.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by hardware, or by software plus a necessary general hardware platform. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method according to the implementation scenarios of the present invention.
In summary, the polling switching method, the polling switching apparatus, and the electronic device provided in the embodiments of the present invention divide the plurality of image capturing devices 200 into a plurality of device groups, and establish a plurality of window groups to be respectively associated with the plurality of device groups. And obtaining the stream establishing time length of each image pickup device 200 in each device group to sort the image pickup devices 200 in the device group, performing round-robin on the sorted image pickup devices 200, decoding the data stream sent by the round-robin image pickup devices 200, and sequentially displaying the decoded data stream in each pane of the window group corresponding to the device group according to the preset direction. The round-robin switching scheme provided by the invention realizes the round-robin of the camera device 200 corresponding to the window group aiming at each window group by dividing the window group into a plurality of window groups, thereby avoiding the problem of low efficiency caused by scene switching in the prior art. And sequentially polling the camera devices 200 according to the stream establishing duration of the camera devices 200, decoding the data streams of the camera devices 200 polled in turns according to the preset direction, and displaying the decoded data streams in the panes, so that a regular presentation effect is achieved.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative and, for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. A round robin switching method applied to a monitor terminal that communicates with a plurality of image pickup apparatuses, the method comprising:
dividing the plurality of image pickup apparatuses into a plurality of apparatus groups;
establishing a plurality of window groups, and associating each equipment group with each window group;
acquiring the stream establishing duration of each camera device in each device group aiming at each device group;
sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device;
and performing round-trip on the sequenced camera equipment, decoding the data streams sent by the camera equipment in round-trip, and sequentially displaying the decoded images in each pane of the window group corresponding to the equipment group according to a preset direction.
2. The round trip switching method according to claim 1, characterized by further comprising:
establishing a cross chain table, wherein the cross chain table comprises a plurality of storage spaces, and each storage space comprises a plurality of storage units;
for each window group, storing the information of the window group in a designated storage unit in a corresponding storage space;
and storing the information of each pane in the window group in other storage units except the specified storage unit in the storage space.
3. The round robin switching method according to claim 1, wherein the monitoring terminal includes a management platform and a decoding device, the decoding device is connected to each of the image capturing devices, and the step of obtaining, for each of the device groups, a flow establishment duration of each of the image capturing devices in the device group includes:
the management platform sends monitoring establishment information to the decoding equipment;
the decoding equipment sends a negotiation request to the camera equipment corresponding to the monitoring establishment information according to the monitoring establishment information;
the decoding equipment decodes the data stream after receiving the data stream returned by the camera equipment based on the negotiation request, counts the time interval from the sending of the negotiation request to the completion of the decoding, takes the time interval as the stream establishing time interval of the camera equipment, and sends the stream establishing time interval to the management platform;
and the management platform receives and stores the flow establishing duration.
4. The round robin switching method according to claim 1, wherein each pane includes an abscissa and an ordinate, and the round robin for the sorted image capturing apparatuses decodes data streams sent by the round robin for the image capturing apparatuses, and sequentially displays images obtained by decoding in each pane of a window group corresponding to the apparatus group in a preset direction, includes:
performing round inspection on the sequenced camera equipment, and receiving data streams sent by the camera equipment in round inspection;
and decoding the received data stream, and displaying the decoded image in the corresponding pane according to the direction from small to large of the abscissa and/or the ordinate of each pane in the window group corresponding to the equipment group.
5. A round trip switching method according to claim 2, characterized in that the method further comprises;
and for each pane, when the information of the pane is detected to be changed, modifying the storage information in the storage unit of the pane in the cross linked list according to the change information.
6. The round trip switching method according to claim 1, characterized by further comprising:
for each equipment group, re-obtaining the stream establishing duration of each camera in the equipment group at intervals of a preset period;
and adjusting the sequence of the camera devices in the device group according to the obtained flow establishing duration of each camera device, and performing round trip on each camera device according to the adjusted sequence.
7. The round trip switching method according to claim 1, characterized by further comprising:
detecting whether the flow establishing time length corresponding to the camera equipment exceeds a preset threshold value or not for each camera equipment;
and if the preset threshold value is exceeded, sending out prompt information to prompt the user.
8. A wheel patrol switching apparatus, applied to a monitor terminal communicating with a plurality of image pickup devices, comprising:
a dividing module configured to divide the plurality of image pickup apparatuses into a plurality of apparatus groups;
the establishing module is used for establishing a plurality of window groups and associating each equipment group with each window group;
a stream establishing time length obtaining module, configured to obtain, for each device group, a stream establishing time length of each camera device in the device group;
the sorting module is used for sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device;
and the round-robin module is used for round-robin the sequenced camera devices, decoding the data streams sent by the camera devices in round-robin mode, and sequentially displaying the decoded images in each pane of the window group corresponding to the device group according to a preset direction.
9. An electronic device, comprising:
a memory;
a processor; and
a round robin switching device including one or more software functional modules stored in the memory and executed by the processor, the round robin switching device comprising:
a dividing module configured to divide the plurality of image pickup apparatuses into a plurality of apparatus groups;
the establishing module is used for establishing a plurality of window groups and associating each equipment group with each window group;
a stream establishing time length obtaining module, configured to obtain, for each device group, a stream establishing time length of each camera device in the device group;
the sorting module is used for sorting the camera devices in the device group according to the flow establishing duration corresponding to each camera device;
and the round-robin module is used for round-robin the sequenced camera devices, decoding the data streams sent by the camera devices in round-robin mode, and sequentially displaying the decoded images in each pane of the window group corresponding to the device group according to a preset direction.
10. A computer-readable storage medium having stored thereon instructions that, when executed, implement the round robin handover method of any one of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711464726.0A CN109982008B (en) | 2017-12-28 | 2017-12-28 | Round-robin switching method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711464726.0A CN109982008B (en) | 2017-12-28 | 2017-12-28 | Round-robin switching method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109982008A CN109982008A (en) | 2019-07-05 |
CN109982008B true CN109982008B (en) | 2021-07-20 |
Family
ID=67075220
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711464726.0A Active CN109982008B (en) | 2017-12-28 | 2017-12-28 | Round-robin switching method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109982008B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111522476B (en) * | 2020-03-23 | 2022-04-08 | 浙江大华技术股份有限公司 | Method, device, computer device and storage medium for monitoring window switching |
CN112437264B (en) * | 2020-11-12 | 2021-12-31 | 珠海大横琴科技发展有限公司 | Monitoring video processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5880775A (en) * | 1993-08-16 | 1999-03-09 | Videofaxx, Inc. | Method and apparatus for detecting changes in a video display |
CN103544130A (en) * | 2013-10-24 | 2014-01-29 | 北京时代奥视数码技术有限公司 | Multi-window display device and multi-window display method |
CN105245937A (en) * | 2015-09-30 | 2016-01-13 | 武汉科优达科技有限公司 | Video scene control system and method |
CN106572329A (en) * | 2016-10-14 | 2017-04-19 | 中国石油大学(华东) | Precise recognition system for video monitoring image |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2362284A (en) * | 2000-05-12 | 2001-11-14 | Dedicated Micros Ltd | Multiplexing and encoding images from muliple surveillance cameras |
US8013738B2 (en) * | 2007-10-04 | 2011-09-06 | Kd Secure, Llc | Hierarchical storage manager (HSM) for intelligent storage of large volumes of data |
CN101459829B (en) * | 2008-12-25 | 2011-05-04 | 杭州恒生数字设备科技有限公司 | Full digital monitoring system with low latency |
CN101616016B (en) * | 2009-08-07 | 2011-11-16 | 杭州华三通信技术有限公司 | Method, device and system for group switch in monitoring systems |
CN102811342B (en) * | 2011-06-02 | 2016-06-15 | 华为软件技术有限公司 | Video profile cut control, equipment and system |
CN202617277U (en) * | 2011-12-23 | 2012-12-19 | 北京易华录信息技术股份有限公司 | Large screen video inspection system |
CN102710745B (en) * | 2012-04-25 | 2015-10-14 | 浙江宇视科技有限公司 | A kind of live wheel blanking method and device |
CN103413471B (en) * | 2013-08-14 | 2015-07-15 | 苏州阔地网络科技有限公司 | Method and system for controlling network synchronous classroom |
CN105100715B (en) * | 2015-06-11 | 2018-09-18 | 福建星网物联信息系统有限公司 | A kind of monitoring device video switching method and device |
CN205050498U (en) * | 2015-09-25 | 2016-02-24 | 苏州工业园区小步电子科技有限公司 | Information display combined system |
CN105450651B (en) * | 2015-12-04 | 2021-07-02 | 浙江宇视科技有限公司 | Method and device for monitoring dynamic routing of video code stream |
-
2017
- 2017-12-28 CN CN201711464726.0A patent/CN109982008B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5880775A (en) * | 1993-08-16 | 1999-03-09 | Videofaxx, Inc. | Method and apparatus for detecting changes in a video display |
CN103544130A (en) * | 2013-10-24 | 2014-01-29 | 北京时代奥视数码技术有限公司 | Multi-window display device and multi-window display method |
CN105245937A (en) * | 2015-09-30 | 2016-01-13 | 武汉科优达科技有限公司 | Video scene control system and method |
CN106572329A (en) * | 2016-10-14 | 2017-04-19 | 中国石油大学(华东) | Precise recognition system for video monitoring image |
Also Published As
Publication number | Publication date |
---|---|
CN109982008A (en) | 2019-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6753902B2 (en) | Storage management of data streamed from video source devices | |
JP6421422B2 (en) | Video analysis device, monitoring device, monitoring system, and video analysis method | |
US20190332522A1 (en) | Microservice platform with messaging system | |
EP3197167B1 (en) | Image transmission method and apparatus | |
JP2007158553A (en) | Multi-codec camera system and image acquisition program | |
CN109982008B (en) | Round-robin switching method and device and electronic equipment | |
US10199074B2 (en) | Techniques for selecting frames for decode in media player | |
TWI540890B (en) | Method and apparatus for processing motion video | |
BRPI0517845B1 (en) | METHOD AND APPARATUS FOR CONTROLING A VIDEO SURVEILLANCE DISPLAY | |
JP2016534674A (en) | Video product sharing apparatus and method | |
KR101782453B1 (en) | Method, device and system for controlling video play | |
CN109992264A (en) | Window management method | |
US20160142778A1 (en) | Network camera, network camera control terminal, and video recording/delivering system | |
TWI684360B (en) | Method and apparatus for visualizing information of a digital video stream | |
CN104349221A (en) | Communication apparatus that performs streaming distribution, information processing apparatus, and controlling method thereof | |
CN104092976A (en) | Method for achieving environment device monitoring system warning and video monitoring system linkage | |
JP5962117B2 (en) | Video selection method in an environment with multiple image compression methods | |
CN107018360B (en) | A kind of adding method of IPC, apparatus and system | |
CN110035253B (en) | Decoding on-wall control method and device | |
CN104954718A (en) | Mobile intelligent terminal and image recording method thereof | |
JP2006211459A (en) | Video image output system and control program for outputting video image | |
US20160191884A1 (en) | Image playback method and image surveillance system thereof | |
CN107734278B (en) | Video playback method and related device | |
CN106603977B (en) | Video acquisition method and device based on Linux multi-core environment | |
US10063735B2 (en) | Image file management method, image capturing device, image storage device, and computer readable medium thereof |
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 |