Summary of the invention
The application provides a kind of optimization method and device of video monitoring, can arbitrate, avoid the conflict that video calls to the monitoring request of user, promotes the service efficiency of video system bandwidth.
According to the first aspect of the application, the application provides a kind of optimization method of video monitoring, comprise: calculate user at the weights of moment T, it comprises: superpose income value in the Permission Levels of user and described user at the quantized value of the importance degree of moment T by allocating in advance; Described user be added with pre-assigned camera weighted value at the weights of moment T, what obtain user calls weights; Receive the video call request of each user, described call request carry described in user call weights; According to the described size calling weights, by described user to sorting from front to back, obtain the call request queue of user; According to the total bandwidth of video monitoring, from described call request queue, the cumulative total value of bandwidth shared by the forward and video call request of selected and sorted is less than the maximum N number of user of the number of described total bandwidth, described N be greater than 1 integer; Respond the call request of described N number of user.
According to the second aspect of the application, the application provides a kind of optimization device of video monitoring, comprise: computing unit, for calculating the weights of user at moment T, it comprises: superpose income value in the Permission Levels of user and described user at the quantized value of the importance degree of moment T by allocating in advance; Superpositing unit, for described user being added with pre-assigned camera weighted value at the weights of moment T, what obtain user calls weights; Receiving element, for receiving the video call request of each user, described call request carry described in user call weights; Sequencing unit, for calling the size of weights described in basis, by described user to sorting from front to back, obtains the queue of user's call request; Selected cell, for the total bandwidth according to video monitoring, from the queue of described user's call request, the cumulative total value of bandwidth shared by the forward and video call request of selected and sorted is less than the maximum N number of user of the number of described total bandwidth, described N be greater than 1 integer; Response unit, for responding the call request of described N number of user.
The optimization method of the video monitoring that the application provides and device, what calculate user according to the Permission Levels of user, user at the importance degree of moment T and camera weighted value calls weights, size according to calling weights sorts to user, in total bandwidth range allowing to call, choose the user that multiple sequence is forward as far as possible, the maximization of the bandwidth availability ratio to video monitoring can be reached, avoid the conflict that video calls simultaneously.
Embodiment
By reference to the accompanying drawings the present invention is described in further detail below by embodiment.
In the embodiment of the present application, provide a kind of optimization method and device of video monitoring, can arbitrate the monitoring request of user, avoid the conflict that video calls, promote the service efficiency of video system bandwidth.
Embodiment one:
Please refer to Fig. 1, Fig. 1 is the method flow diagram of the embodiment of the present invention one.As shown in Figure 1, a kind of optimization method of video monitoring, can comprise the following steps:
101, the weights of user at moment T are calculated.
User comprises at the weights of moment T: superpose income value in the Permission Levels of user and described user at the quantized value of the importance degree of moment T by allocating in advance.
Suppose that user is A1, then A1=P+M+E at the weights of moment T, wherein, P is user right rank, and M is the quantized value of the importance degree of moment T.In an embodiment, special occasions mark E can also be added, such as need emergency open to certain user to the calling of video monitoring time, user can be added in the weights of moment T, to increase the weights of this user at moment T.
102, user be added with pre-assigned camera weighted value at the weights of moment T, what obtain user calls weights.
Also add the weighted value of camera in the embodiment of the present application, in conjunction with camera weighted value, when calling the video of job site outbalance, the weight rank called can correspondingly shift to an earlier date.
103, receive the video call request of each user, call request carry described in user call weights.
104, call weights size described in basis, described user is sorted from front to back, obtains the call request queue of user.
In an embodiment, when calling weights described in each user and being equal, sort according to the time order and function order initiating to call.
105, according to the total bandwidth of video monitoring, from the queue of described user's call request, the cumulative total value of bandwidth shared by the forward and video call request of selected and sorted is less than the maximum N number of user of the number of described total bandwidth, described N be greater than 1 integer.
106, the call request of described N number of user is responded.
Please refer to Fig. 2, in one embodiment, in such as, a certain moment after the T moment, initiate calling Video Monitoring Terminal with new user, now, the weights that call of new user add in the lump and consider, the application's method also comprises step:
107, the video call request of new user is received.
108, the size that each calls weights is again compared.
109, described new user is updated in the queue of described user's call request.
In one embodiment, comprise after described new user being updated in the queue of described user's call request:
110a, new user is updated to position in call request queue and the N number of user last customer location that sorts and compares, if the name placement of new user rearward, then perform step 110b, otherwise perform step 110c.
110b, refuse the video call request of described new user.
110c, respond the video call request of described new user.
Because the total bandwidth in video monitoring is constant, after adding new user's call request, the medium response to be called of call request queue can be updated to, but simultaneously in order to avoid too much request takies the collapse that broadband causes occurring video monitoring system, the call request platoon ratio that the embodiment of the present application obtains in being called the sorting position of new user and last time comparatively, if sequence is after aforementioned N number of user, then refuse the video call request of described new user, if before N number of user or middle, then respond the video call request of described new user, reach the high object preferentially seized, realize the effect of arbitration.
In an embodiment, the call request responding described N number of user comprises: put in order according to the user of described user's call request queue, responds the call request of described N number of user successively.
The optimization method of the video monitoring that the embodiment of the present application one provides, what calculate user according to the Permission Levels of user, user at the importance degree of moment T and camera weighted value calls weights, size according to calling weights sorts to user, in total bandwidth range allowing to call, choose the user that multiple sequence is forward as far as possible, the maximization of the bandwidth availability ratio to video monitoring can be reached, avoid the conflict that video calls simultaneously.
Embodiment two:
Accordingly, the application also provides a kind of optimization device of video monitoring, please refer to Fig. 3, and Fig. 3 is apparatus structure schematic diagram of the invention process.As shown in Figure 3, the optimization device of video monitoring can comprise:
Computing unit 20, for calculating the weights of user at moment T, it comprises: superpose income value in the Permission Levels of user and described user at the quantized value of the importance degree of moment T by allocating in advance.
Superpositing unit 21, for described user being added with pre-assigned camera weighted value at the weights of moment T, what obtain user calls weights.
Receiving element 22, for receiving the video call request of each user, described call request carry described in user call weights.
Sequencing unit 23, for calling the size of weights described in basis, by described user to sorting from front to back, obtains the queue of user's call request.
Selected cell 24, for the total bandwidth according to video monitoring, from the queue of described user's call request, the cumulative total value of bandwidth shared by the forward and video call request of selected and sorted is less than the maximum N number of user of the number of described total bandwidth, described N be greater than 1 integer.
Response unit 25, for responding the call request of described N number of user.
Please also refer to Fig. 4, in an embodiment, the optimization device of the video monitoring of the application can also comprise:
Second receiving element 26, for receiving the video call request of new user.
Updating block 27, for again comparing the size that each calls weights, and is updated to described new user in the queue of described user's call request.
In an embodiment, the optimization device of the video monitoring of the application can also comprise:
Comparing unit 28, compares for described new user being updated to position in described call request queue and the more described N number of user last customer location that sorts.
First message processing unit 29, for the name placement as described new user rearward, then nips off the video call request of described new user.
Second message processing unit 30, forward for the name placement as described new user, then respond the video call request of described new user.
In an embodiment, in the optimization device of the video monitoring of the application, sequencing unit 23 also comprises: time-sequencing module 230, for when calling weights described in each user and being equal, sorts according to the time order and function order initiating to call.
Response unit 25 specifically for:
Put in order according to the user of described user's call request queue, respond the call request of described N number of user successively.
The optimization device of the video monitoring that the embodiment of the present application two provides, what calculate user according to the Permission Levels of user, user at the importance degree of moment T and camera weighted value calls weights, size according to calling weights sorts to user, in total bandwidth range allowing to call, choose the user that multiple sequence is forward as far as possible, the maximization of the bandwidth availability ratio to video monitoring can be reached, avoid the conflict that video calls simultaneously.
Above content is in conjunction with concrete execution mode further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made.