CN107018371A - A kind of video acquisition control method and device - Google Patents

A kind of video acquisition control method and device Download PDF

Info

Publication number
CN107018371A
CN107018371A CN201710253567.3A CN201710253567A CN107018371A CN 107018371 A CN107018371 A CN 107018371A CN 201710253567 A CN201710253567 A CN 201710253567A CN 107018371 A CN107018371 A CN 107018371A
Authority
CN
China
Prior art keywords
collection port
collection
capture apparatus
video
port
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.)
Granted
Application number
CN201710253567.3A
Other languages
Chinese (zh)
Other versions
CN107018371B (en
Inventor
郎平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201710253567.3A priority Critical patent/CN107018371B/en
Publication of CN107018371A publication Critical patent/CN107018371A/en
Application granted granted Critical
Publication of CN107018371B publication Critical patent/CN107018371B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/66Remote control of cameras or camera parts, e.g. by remote control devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio 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/268Signal distribution or switching

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 invention discloses a kind of video acquisition control method and device, some collection ports to solve video capture device in the prior art cause to be supplied to the video data of user imperfect extremely, monitoring dead angle, the problem of reducing the validity of video monitoring occur.This method is determined behind the first collection port of operation irregularity in video capture device, the second collection port working properly is determined in multiple collection ports of the video capture device, and the first capture apparatus for distributing to the first collection port is distributed into the second collection port.So, even if the first collection port operation irregularity, this method can also make the video capture device collect the video data for distributing to the described first capture apparatus for gathering port by the second collection port working properly, it ensure that the integrality for being supplied to the video data of user, from without monitoring dead angle, the validity of video monitoring is improved.

Description

A kind of video acquisition control method and device
Technical field
The present invention relates to field of video monitoring, more particularly to a kind of video acquisition control method and device.
Background technology
With the continuous development of scientific technology, Video Supervision Technique has been applied in increasing scene, for example, pacified Anti- scene, conference scenario etc..In the Video Supervision Technique, video capture device collection video data is simultaneously supplied to user, So as to reach the purpose of video monitoring.
The video capture device includes multiple collection ports, wherein, each collection port is set with an outside shooting Standby connection, so as to form transmission of video passage all the way between the collection port and the capture apparatus.The video capture device When gathering video data, the video data in corresponding transmission of video passage is gathered by each collection port respectively.
At present, during video capture device collection video data, due to external environmental factor (such as thunder Hit, lightning etc.), the influence of equipment of itself factor (such as device aging) etc., be likely to result in the video capture device Some collection ports are abnormal, and cause the video capture device can not gather in the corresponding transmission of video passage in the collection port Video data, cause to be supplied to the video data of user imperfect, occur monitoring dead angle, reduce the effective of video monitoring Property.
The content of the invention
The present invention provides a kind of video acquisition control method and device, to solve video capture device in the prior art Some collection ports cause to be supplied to the video data of user imperfect extremely, monitoring dead angle occur, reduce video monitoring The problem of validity.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
In a first aspect, the embodiments of the invention provide a kind of video acquisition control method, including:
Determine the first collection port of operation irregularity in video capture device;
Determine that second gathers port in multiple collection ports of the video capture device, the second collection port is Collection port working properly in the video capture device;
The first capture apparatus for distributing to the first collection port is distributed into the second collection port.
With reference in a first aspect, in the first possible implementation of first aspect, determining the video capture device The first collection port of middle operation irregularity, including:
It is determined that in the setting duration before current time, the video capture device gathers port not by described first Collect video data.
With reference to the first possible implementation of first aspect or first aspect, second in first aspect is possible In implementation, determined in the multiple collection port before the second collection port, methods described also includes:
It is determined that in having distributed at least one capture apparatus of each collection port each capture apparatus transmission code stream;Its In, the transmission code stream of any one capture apparatus is the data volume waiting for transmission that the capture apparatus is shot within the unit interval.
With reference to second of possible implementation of first aspect, in the third possible implementation of first aspect In, the second collection port is determined in the multiple collection port, including:
At least one working properly collection port to be selected is determined in the multiple collection port;
In at least one described collection port to be selected, at least one target collection port is filtered out, wherein, distribute to The transmission code stream sum of at least one capture apparatus of each target collection port is less than or equal to code stream threshold value;
The second collection port is determined at least one described target collection port.
With reference to second of possible implementation of first aspect, in the 4th kind of possible implementation of first aspect In, first capture apparatus is distributed into the second collection port, including:
According to the transmission code stream of first capture apparatus and distributed to it is described second collection port at least one The transmission code stream of second capture apparatus, it is determined that distributing to the acquisition time of first capture apparatus in setting collection period;
In acquisition time in the setting collection period, first capture apparatus is distributed into second collection Port.
Second aspect, the embodiments of the invention provide a kind of video capture control device, including:
Determining unit, the first collection port for determining operation irregularity in video capture device;And
Determine that second gathers port in multiple collection ports of the video capture device, the second collection port is Collection port working properly in the video capture device;
Allocation unit, for the first capture apparatus for distributing to the first collection port to be distributed into second collection Port.
With reference to second aspect, in the first possible implementation of second aspect, the determining unit, it is determined that institute When stating the first collection port of operation irregularity in video capture device, specifically for:
It is determined that in the setting duration before current time, the video capture device gathers port not by described first Collect video data.
With reference to the first possible implementation of second aspect or second aspect, second in second aspect is possible In implementation, the determining unit is additionally operable to:
Determined in the multiple collection port it is described second collection port before, it is determined that having distributed to each collection port At least one capture apparatus in each capture apparatus transmission code stream;Wherein, the transmission code stream of any one capture apparatus is institute State the data volume waiting for transmission that capture apparatus is shot within the unit interval.
With reference to second of possible implementation of second aspect, in the third possible implementation of second aspect In, the determining unit, when the second collection port is determined in the multiple collection port, specifically for:
At least one working properly collection port to be selected is determined in the multiple collection port;
In at least one described collection port to be selected, at least one target collection port is filtered out, wherein, distribute to The transmission code stream sum of at least one capture apparatus of each target collection port is less than or equal to code stream threshold value;
The second collection port is determined at least one described target collection port.
With reference to second of possible implementation of second aspect, in the 4th kind of possible implementation of second aspect In, the allocation unit, specifically for:
According to the transmission code stream of first capture apparatus and distributed to it is described second collection port at least one The transmission code stream of second capture apparatus, it is determined that distributing to the acquisition time of first capture apparatus in setting collection period;
In acquisition time in the setting collection period, first capture apparatus is distributed into second collection Port.
Video acquisition control method provided in an embodiment of the present invention determines that first of operation irregularity in video capture device adopts Collect behind port, determine that second gathers port in multiple collection ports of the video capture device, and described the will be distributed to First capture apparatus of one collection port distributes to the second collection port;Wherein, the second collection port regards to be described Collection port working properly in frequency collecting device.So, even if the first collection port operation irregularity, this method can also make The video capture device is collected by the second collection port working properly and distributes to the first collection port The video data of capture apparatus, it is ensured that be supplied to the integrality of the video data of user, from without monitoring dead angle, is carried The high validity of video monitoring.
Brief description of the drawings
Fig. 1 is a kind of Organization Chart of video acquisition system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of video acquisition control method provided in an embodiment of the present invention;
Fig. 3 is the structural representation of video capture control device provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step it is described in detail, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
In the prior art during video capture device collection video data, due to external environmental factor (such as thunder Hit, lightning etc.), the influence of equipment of itself factor (such as device aging) etc., be likely to result in the video capture device Some collection ports are abnormal, and cause the video capture device can not gather the video of the corresponding capture apparatus in collection port Data, cause to be supplied to the video data of user imperfect, monitoring dead angle occur, reduce the validity of video monitoring.This hair Bright embodiment provides a kind of video acquisition control method and device, is adopted to solve some of video capture device in the prior art Collect port abnormal, cause to be supplied to the video data of user imperfect, monitoring dead angle occur, reduce the validity of video monitoring The problem of.Wherein, the method for the invention and device are based on same inventive concept, because method and device solves the principle of problem It is similar, therefore the implementation of apparatus and method can be with cross-reference, repetition part is repeated no more.
Video acquisition control method provided in an embodiment of the present invention determines that first of operation irregularity in video capture device adopts Collect behind port, determine that second gathers port in multiple collection ports of the video capture device, and described the will be distributed to First capture apparatus of one collection port distributes to the second collection port;Wherein, the second collection port regards to be described Collection port working properly in frequency collecting device.So, even if the first collection port operation irregularity, this method can also make The video capture device is collected by the second collection port working properly and distributes to the first collection port The video data of capture apparatus, it is ensured that be supplied to the integrality of the video data of user, from without monitoring dead angle, is carried The high validity of video monitoring.
In the embodiment of the present invention, can be, but not limited to for the above-mentioned video acquisition control method of execution is processor, wherein, institute It can be the processor in video capture device to state processor, or the individualism independently of the video capture device Processor.In embodiments of the present invention, it is described in detail so that executive agent is processor as an example.
In order to more clearly from describe the technical scheme of the embodiment of the present invention, below in conjunction with the accompanying drawings, to the embodiment of the present invention A kind of video acquisition control method and device provided are described in detail.
Fig. 1 shows that a kind of a kind of applicable possible video of video acquisition control method provided in an embodiment of the present invention is adopted Collecting system, the framework of the video acquisition system includes:Video capture device, processor and capture apparatus.Wherein,
The capture apparatus, for shooting, obtains video data.
Multiple collection ports are included in the video capture device, each collection port is assigned a shooting and set Standby, the video capture device, the capture apparatus for having distributed to the collection port by each gathering port processing is shot Video data.For example in Fig. 1, the video capture device includes collection port A and collection port B;The collection port A quilts It is assigned with capture apparatus A, the collection port B and capture apparatus B is assigned;The video capture device passes through the collection terminal Mouth A gathers the video data that the capture apparatus A is shot, and passes through the collection port B collections capture apparatus B shootings Video data.
Because the video capture device has distributed to the capture apparatus of the collection port by each collection port processing During the video data of shooting, it is necessary to assure connection is kept between the collection port and allocated capture apparatus;And when one When individual collection port is abnormal, in order to ensure that the video capture device can distribute to abnormal adopt by other collection port processings Collect the video data of the capture apparatus of port, it is necessary to each can successful connection between collection port and each capture apparatus. Therefore, one can be set between any one capture apparatus optionally, in the video acquisition system and all collection ports Individual switch, as shown in figure 1, the capture apparatus A and capture apparatus B and the collection port A and collection port B it Between be respectively provided with switch.
In the state of initial, each collection port is allocated a capture apparatus, each collection port and original allocation Capture apparatus between keep connection, i.e., the switch between each collection port and the capture apparatus of original allocation is to close, Switch between other capture apparatus is to disconnect.As shown in figure 1, in an initial condition, the collection port A is assigned The capture apparatus A, i.e., the switch between described collection port A and the capture apparatus A is closure, with the capture apparatus Switch between B is to disconnect;The capture apparatus B is assigned in the collection port B, i.e., described collection port B with it is described Switch between capture apparatus B is closure, and the switch between the capture apparatus A is to disconnect.
In the later stage, after multiple capture apparatus are assigned in some collection port, the video capture device is passing through this During gathering port processing video data, pass through the video data of some allocated capture apparatus of the collection port processing When, the switch between the capture apparatus and the collection port is closure, other allocated capture apparatus and the collection port Between switch be disconnect.As shown in figure 1, when the capture apparatus A and the bat is assigned in collection port A described in the later stage When taking the photograph equipment B, when the video capture device gathers the video data of the capture apparatus A shootings by the collection port A When, the switch between the capture apparatus A and the collection port A is closure, the capture apparatus B and the collection port Switch between A is to disconnect.
The processor, for it is determined that in the video capture device behind the collection port of operation irregularity, will distribute to The capture apparatus of the collection port of the operation irregularity distributes to a collection terminal working properly in the video capture device Mouthful.For example, processor described in Fig. 1 will be distributed to after the collection port A operation irregularities in the video capture device are determined The capture apparatus A of the collection port A distributes to the collection port B working properly, so that the video acquisition is set It is standby that the video data that the capture apparatus A is shot is gathered by the collection port B.Specifically, the processor is clapped described When taking the photograph device A and distributing to the collection port B, the processor can be directly by the collection port A and the capture apparatus A Between switch off after, by between the collection port B and the capture apparatus A switch close.
Optionally, the processor be able to can also be wrapped as shown in Figure 1 independently of the video capture device individualism It is contained in the video capture device.
By the above method, after operation irregularity occurs in a collection port in video capture device, the video is adopted The shooting for the collection port that collection equipment also can distribute to the operation irregularity by other collection port processings working properly is set Standby video data, it is ensured that be supplied to the integrality of the video data of user, from without monitoring dead angle, improves and regards The validity of frequency monitoring.
A kind of video acquisition control method provided in an embodiment of the present invention, it is adaptable to video acquisition system as shown in Figure 1 In processor.As shown in fig.2, the idiographic flow of this method includes:
Step 201:Processor determines the first collection port of operation irregularity in video capture device.
Wherein, there is each collection terminal in multiple collection ports, the multiple collection port in the video capture device Mouth has been assigned with least one capture apparatus.
When some collection port has been assigned with a capture apparatus, the capture apparatus is to be initially allocated to the collection port Capture apparatus;When some collection port has been assigned with multiple capture apparatus, initial point is included in the multiple capture apparatus The capture apparatus to the collection port matched somebody with somebody, and because other collection ports are abnormal, the later stage distributes to the bat of the collection port Take the photograph equipment.
The video data shot at each moment, each allocated one of capture apparatus of collection port processing, because This, under normal circumstances, the video capture device can collect video data at each moment by each collection port.
Under normal circumstances, the video capture device is collected and can be cached to after video data in register, therefore, can Choosing, the processor can judge whether the video capture device gathers port by described first by reading register Collect video data.
Optionally, in step 201, the processor is determined in the setting duration before current time, the video When collecting device does not collect video data by the described first collection port, that is, determine to work different in the video capture device Normal the first collection port.
Step 202:The processor determines the second collection port in multiple collection ports of the video capture device, The second collection port is collection port working properly in the video capture device.
Optionally, the processor is before step 202 is performed, and the processor determines to have distributed to each collection port At least one capture apparatus in each capture apparatus transmission code stream;Wherein, the transmission code stream of any one capture apparatus is institute State the data volume waiting for transmission that capture apparatus is shot within the unit interval.
Wherein, the transmission code stream of any one capture apparatus can be the processor according to regarding that the capture apparatus is shot What the current intelligence of frequency picture was calculated, i.e., calculated according to the pixel value situation of change of same pixel in two adjacent video picture 's;Can also the processor determined according to the data volume shot before the capture apparatus within the unit interval.
Because the current intelligence of scene residing for each capture apparatus constantly changes in a practical situation, cause every The current intelligence for the video pictures that individual capture apparatus is shot also is being continually changing, and therefore, the processor can be updated periodically The transmission code stream of each capture apparatus.For example, the processor can be flowed into every 10 minutes transmission codes to each capture apparatus Row once updates.In this manner it is ensured that the accuracy of the transmission code stream of each capture apparatus, and then ensure that the conjunction of video data Rationality and reliability.
Optionally, the processor can specifically be divided into three below step when performing step 202:
A1, the processor determine at least one working properly collection port to be selected in the multiple collection port.
A2, the processor filter out at least one target collection port at least one described collection port to be selected, Wherein, the transmission code stream sum for having distributed at least one capture apparatus of each target collection port is less than or equal to code stream threshold Value.
A3, the processor determine the second collection port at least one described target collection port.
Optionally, in above-mentioned steps A2, the processor at least one described collection port to be selected, filter out to A few target gathers port, and specific method can be:
The processor determines to have distributed at least one described collection port to be selected each collection port to be selected extremely The transmission code stream sum of a few capture apparatus;
The processor is respectively by each corresponding transmission code stream sum in collection port to be selected of determination and the code stream threshold Value is compared, and at least one the described target for filtering out corresponding transmission code stream sum less than or equal to the code stream threshold value is adopted Collect port.
Optionally, in above-mentioned steps A3, the processor determines described at least one described target collection port Second collection port, specific method can be divided into following two:
First method:Each target is adopted in the processor at least one target collection port according to having distributed to Collect the transmission code stream sum of at least one capture apparatus of port, determine the minimum target collection terminal of corresponding transmission code stream sum Mouthful;
The minimum target of the corresponding transmission code stream sum is gathered port as the described second collection by the processor Port.
Second method:The processor one target collection of random selection at least one described target collection port Port is used as the described second collection port.
Described second due to being determined by above two method gathers at least one allocated capture apparatus of port Transmission code stream sum is relatively small, therefore, and first in the first collection port that will subsequently distribute to operation irregularity shoots Equipment is distributed to behind the second collection port, continues to gather the first capture apparatus shooting by the described second collection port Video data, it is ensured that the quality of the video data of video capture device collection, it is ensured that the video counts collected According to reliability.
Optionally, when the capture apparatus for having distributed to the first collection port is multiple, at least one described target The quantity for the capture apparatus for distributing to the first collection port can be equal to by gathering the quantity of port.Now, described at least one Each target collection port in individual target collection port can be one second collection port, so that the follow-up processor will Multiple capture apparatus are respectively allocated at least one target collection port.
Optionally, when the processor determines collection port only one of which working properly in the multiple collection port When, the processor can skip the step of the transmission code stream sum at least one capture apparatus for determining to distribute to the collection port Suddenly, flow can be so saved, work effect is improved as the described second collection port directly using the collection port working properly Rate.
Step 203:The first capture apparatus that the processor will distribute to the first collection port distributes to described the Two collection ports.
Optionally, in step 203, first capture apparatus is distributed to second collection terminal by the processor Mouthful, it can specifically be divided into following two steps:
B1, the processor are according to the transmission code stream of first capture apparatus and have distributed to second collection The transmission code stream of at least one the second capture apparatus of port, sets it is determined that distributing to described first in setting collection period and shooting Standby acquisition time.
B2, the processor distribute first capture apparatus in the acquisition time in the setting collection period To the described second collection port.
Optionally, in above-mentioned steps B1, the processor determine the specific method of the acquisition time can be divided into Lower two kinds:
First method:The processor by the transmission code stream of first capture apparatus and it is described at least one second The ratio of the transmission code stream sum of capture apparatus, determines the first distribution ratio of the setting collection period;
The processor determines the acquisition time according to first distribution ratio.
For example, having distributed to the second collection second capture apparatus of port two, the transmission of first capture apparatus The ratio of the transmission code stream sum of code stream and described two second capture apparatus is 1:4 (i.e. described first distribution ratio be 1:4) it is, described When setting collection period as 1 second, the processor pressed 1 by 1 second:4 are divided into 200 milliseconds:800 milliseconds, the first count can be obtained The acquisition time for taking the photograph equipment is 200 milliseconds.
Second method:The processor by the transmission code stream of first capture apparatus and it is described at least one The ratio of the transmission code stream of each second capture apparatus in two capture apparatus, determines the second distribution ratio of the setting collection period;
The processor determines the acquisition time according to second distribution ratio.
For example, having distributed to the second collection second capture apparatus of port two, the transmission of first capture apparatus The ratio of the transmission code stream of each second capture apparatus is 1 in code stream and described two second capture apparatus:2:2 (i.e. described Two distribution ratios are 1:2:2), described when setting collection period as 1 second, the processor pressed 1 by 1 second:2:2 are divided into 200 milliseconds: 400 milliseconds:400 milliseconds, the acquisition time that can obtain first capture apparatus is 200 milliseconds.
Optionally,, can also be according to above-mentioned first when the processor determines the acquisition time in above-mentioned steps B1 Pass through the described second collection collectable video in port in distribution ratio or above-mentioned second distribution ratio, and the setting collection period The frame number of data, first determines to distribute to the frame number of first capture apparatus in the setting collection period, then according to every The time of frame determines the acquisition time.
For example, described set the cycle as 1 second, the video capture device is per second can be gathered by the described second collection port During 25 frame, the time per frame is 40 milliseconds.Example is adopted, first distribution ratio is 1:When 4, the processor divides 25 frames For 5 frames:20 frames, can obtain and distribute to the frame of the first capture apparatus 5 in the setting collection period;According to the time 40 of every frame Millisecond, the processor can determine that the acquisition time is 200 milliseconds.Or second distribution ratio is 1:2:It is described when 2 25 frames are divided into 5 frames by processor:10 frames:10 frames, first shooting can must be distributed in the setting collection period and is set Standby 5 frames;The processor is according to 40 milliseconds of the time per frame, it may be determined that the acquisition time is 200 milliseconds.
Optionally, the processor is when performing above-mentioned steps B2, and specific method can be, but not limited to be divided into following two:
The first:The processor can be risen in the continuous collection in any instant in the setting collection period In time, first capture apparatus is distributed into the second collection port.
For example, the collection period that sets is 1 second, when the acquisition time is 200 milliseconds, the processor can be in institute State and set collection period initial time as in continuous 200 milliseconds of starting point, by first capture apparatus and the described second collection Between port switch closure, will first capture apparatus distribute to it is described second collection port;Or, the processor First capture apparatus can also be adopted with described second in last continuous 200 milliseconds of the setting collection period Collect port between switch closure, will first capture apparatus distribute to it is described second collection port;Again or, the place Manage device can also in the setting cycle in the middle of a certain moment from continuous 200 milliseconds in, by first capture apparatus Described second collection port between switch close, will first capture apparatus distribute to it is described second collection port. Wherein, in the acquisition time that first capture apparatus is distributed to the second collection port, second collection Switch between port and the capture apparatus for having distributed to the second collection port is to disconnect;In the setting collection period The time in addition to the acquisition time in, the processor can by first capture apparatus with described second collection port Between switch off after, will have been distributed to according to setting rule in the capture apparatus of the second collection port with described second Gather the switch closure between port.
Second:The acquisition time can be divided into multiple periods by the processor, by the multiple period point It is scattered in the setting cycle, and first capture apparatus is distributed to described second within each period corresponding time Port is gathered, wherein the time of each period can be with equal in the multiple period, can also be unequal.
For example, the collection period that sets is 1 second, when the acquisition time is 200 milliseconds, the processor can first by The acquisition time is divided into the period of 5 equal times, i.e., the time of each period is 40 milliseconds;Then the processor Can be separated by the setting collection period in five 40 milliseconds of fixed duration will first capture apparatus and described the Two collection ports between switches closure, will first capture apparatus distribute to it is described second collection port.Wherein, upper State the switch between the second collection port and the capture apparatus for having distributed to the second collection port in five 40 milliseconds It is to disconnect;It is described setting collection period the time in addition to above-mentioned five 40 milliseconds in, the processor can will described in First capture apparatus and it is described second collection port between switch off after, according to setting rule will distribute to described second The switch in the capture apparatus of port between the described second collection port is gathered to close.Optionally, between 40 milliseconds of each two The duration being separated by can also be unequal.
Optionally, when first capture apparatus is distributed to the second collection port by the processor, except above-mentioned Outside the method being allocated according to the acquisition time, following method can also be included:The processor can be according to above-mentioned By the described second collection, port is collectable regards in one distribution ratio or above-mentioned second distribution ratio, and the setting collection period The frame number of frequency evidence, it is determined that after distributing to the frame number of first capture apparatus in the setting collection period, it is determined that distribution To the acquisition frame of first capture apparatus, the processor directly distributes first capture apparatus in the acquisition frame To the described second collection port.
For example, the video capture device it is per second by described second collection port can gather 25 frame when, adopt example, institute It is 1 to state the first distribution ratio:4 or second distribution ratio be 1:2:When 2, it can obtain and distribute to institute in the setting collection period State the frame of the first capture apparatus 5.Afterwards, video capture device passes through second collection terminal described in the setting collection period During the video data of preceding 5 frame of mouth collection (or last 5 frame or middle frame of arbitrary continuation 5), the processor is shot described first Equipment and it is described second collection port between switch close, will first capture apparatus distribute to second collection terminal Mouthful;Or, the video capture device described in the setting collection period passes through described second any non-company of collection port processing During the video data of 5 continuous frames, the processor gathers first capture apparatus and described second on the switch between port Closure, will first capture apparatus distribute to it is described second collection port.
By the above method, the processor by first capture apparatus distribute to it is described second collection port when, The processor can close the switch between first capture apparatus and the second collection port, so that described second adopts Collect the video data that the first capture apparatus described in port processing is shot.So, even if the first collection port operation irregularity, institute State video capture device and can also be collected by the working properly second collection port and distribute to the first collection port Capture apparatus video data, it is ensured that be supplied to the integrality of the video data of user, from without monitor dead angle, Improve the validity of video monitoring.
Using a kind of video acquisition control method provided in an embodiment of the present invention, processor determines work in video capture device Make behind the first abnormal collection port, determine that second gathers port in multiple collection ports of the video capture device, and The first capture apparatus for distributing to the first collection port is distributed into the second collection port;Wherein, described second adopt It is collection port working properly in the video capture device to collect port.So, even if the first collection port working is different Often, the video capture device can also be collected by the second collection port working properly and distribute to first collection The video data of the capture apparatus of port, it is ensured that be supplied to the integrality of the video data of user, from without monitoring Dead angle, improves the validity of video monitoring.
Based on above example, the processor determines first collection of operation irregularity in the video capture device Behind port, alarm signal can be sent to point out video capture device described in user to need to be repaired.Using in above example Method, before user is by the video capture device sent for maintenance, the video capture device can collect complete Video data, it is ensured that be supplied to the integrality of the video data of user, is supervised from video without monitoring dead angle, is improved The validity of control.
Based on above example, the embodiment of the present invention additionally provides a kind of video capture control device, the video acquisition control Device processed has the function of realizing a kind of video acquisition control method as shown in Figure 2, as shown in figure 3, the video acquisition is controlled Device 300 includes:Determining unit 301 and allocation unit 302, wherein,
The determining unit 301, the first collection port for determining operation irregularity in video capture device;And
Determine that second gathers port in multiple collection ports of the video capture device, the second collection port is Collection port working properly in the video capture device;
The allocation unit 302, it is described for the first capture apparatus for distributing to the first collection port to be distributed to Second collection port.
Optionally, the determining unit 301, it is determined that in the video capture device operation irregularity it is described first collection During port, specifically for:
It is determined that in the setting duration before current time, the video capture device gathers port not by described first Collect video data.
Optionally, the determining unit 301, is additionally operable to:
Determined in the multiple collection port it is described second collection port before, it is determined that having distributed to each collection port At least one capture apparatus in each capture apparatus transmission code stream;Wherein, the transmission code stream of any one capture apparatus is institute State the data volume waiting for transmission that capture apparatus is shot within the unit interval.
Optionally, the determining unit 301, when the second collection port is determined in the multiple collection port, tool Body is used for:
At least one working properly collection port to be selected is determined in the multiple collection port;
In at least one described collection port to be selected, at least one target collection port is filtered out, wherein, distribute to The transmission code stream sum of at least one capture apparatus of each target collection port is less than or equal to code stream threshold value;
The second collection port is determined at least one described target collection port.
Optionally, the allocation unit 302, specifically for:
According to the transmission code stream of first capture apparatus and distributed to it is described second collection port at least one The transmission code stream of second capture apparatus, it is determined that distributing to the acquisition time of first capture apparatus in setting collection period;
In acquisition time in the setting collection period, first capture apparatus is distributed into second collection Port.
Using a kind of video capture control device provided in an embodiment of the present invention, operation irregularity in video capture device is determined First collection port after, in multiple collection ports of the video capture device determine second gather port, and will distribution The first capture apparatus to the described first collection port distributes to the second collection port;Wherein, the second collection port For collection port working properly in the video capture device.So, even if the first collection port operation irregularity, also can The video capture device is collected by the second collection port working properly and distribute to the first collection port Capture apparatus video data, it is ensured that be supplied to the integrality of the video data of user, from without monitor dead angle, Improve the validity of video monitoring.
In summary, the embodiments of the invention provide a kind of video acquisition control method and device, in the method, processing Device is determined behind the first collection port of operation irregularity in video capture device, in multiple collection ports of the video capture device It is middle to determine that second gathers port, and the first capture apparatus for distributing to the first collection port is distributed into second collection Port;Wherein, the second collection port is collection port working properly in the video capture device.So, even if institute The first collection port operation irregularity is stated, this method can also make the video capture device pass through second collection working properly Video data of the port processing to the capture apparatus for distributing to the first collection port, it is ensured that be supplied to the video counts of user According to integrality, from without monitor dead angle, improve the validity of video monitoring.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.So, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of video acquisition control method, it is characterised in that including:
Determine the first collection port of operation irregularity in video capture device;
Determine that second gathers port in multiple collection ports of the video capture device, the second collection port is described Collection port working properly in video capture device;
The first capture apparatus for distributing to the first collection port is distributed into the second collection port.
2. the method as described in claim 1, it is characterised in that determine described of operation irregularity in the video capture device One collection port, including:
It is determined that in the setting duration before current time, the video capture device is not gathered by the described first collection port To video data.
3. method as claimed in claim 1 or 2, it is characterised in that determine that described second adopts in the multiple collection port Collect before port, methods described also includes:
It is determined that in having distributed at least one capture apparatus of each collection port each capture apparatus transmission code stream;Wherein, The transmission code stream of any one capture apparatus is the data volume waiting for transmission that the capture apparatus is shot within the unit interval.
4. method as claimed in claim 3, it is characterised in that second collection terminal is determined in the multiple collection port Mouthful, including:
At least one working properly collection port to be selected is determined in the multiple collection port;
In at least one described collection port to be selected, at least one target collection port is filtered out, wherein, distribute to each The transmission code stream sum of at least one capture apparatus of target collection port is less than or equal to code stream threshold value;
The second collection port is determined at least one described target collection port.
5. method as claimed in claim 3, it is characterised in that first capture apparatus is distributed into second collection terminal Mouthful, including:
According to the transmission code stream of first capture apparatus and distributed to it is described second collection port at least one second The transmission code stream of capture apparatus, it is determined that distributing to the acquisition time of first capture apparatus in setting collection period;
In acquisition time in the setting collection period, first capture apparatus is distributed into second collection terminal Mouthful.
6. a kind of video capture control device, it is characterised in that including:
Determining unit, the first collection port for determining operation irregularity in video capture device;And
Determine that second gathers port in multiple collection ports of the video capture device, the second collection port is described Collection port working properly in video capture device;
Allocation unit, for the first capture apparatus for distributing to the first collection port to be distributed into second collection terminal Mouthful.
7. device as claimed in claim 6, it is characterised in that the determining unit, it is determined that in the video capture device During the first collection port of operation irregularity, specifically for:
It is determined that in the setting duration before current time, the video capture device is not gathered by the described first collection port To video data.
8. device as claimed in claims 6 or 7, it is characterised in that the determining unit, is additionally operable to:
Determined in the multiple collection port it is described second collection port before, it is determined that having distributed to each collection port extremely The transmission code stream of each capture apparatus in a few capture apparatus;Wherein, the transmission code stream of any one capture apparatus is clapped to be described Take the photograph the data volume waiting for transmission that equipment is shot within the unit interval.
9. device as claimed in claim 8, it is characterised in that the determining unit, is determined in the multiple collection port During the second collection port, specifically for:
At least one working properly collection port to be selected is determined in the multiple collection port;
In at least one described collection port to be selected, at least one target collection port is filtered out, wherein, distribute to each The transmission code stream sum of at least one capture apparatus of target collection port is less than or equal to code stream threshold value;
The second collection port is determined at least one described target collection port.
10. device as claimed in claim 8, it is characterised in that the allocation unit, specifically for:
According to the transmission code stream of first capture apparatus and distributed to it is described second collection port at least one second The transmission code stream of capture apparatus, it is determined that distributing to the acquisition time of first capture apparatus in setting collection period;
In acquisition time in the setting collection period, first capture apparatus is distributed into second collection terminal Mouthful.
CN201710253567.3A 2017-04-18 2017-04-18 Video acquisition control method and device Active CN107018371B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710253567.3A CN107018371B (en) 2017-04-18 2017-04-18 Video acquisition control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710253567.3A CN107018371B (en) 2017-04-18 2017-04-18 Video acquisition control method and device

Publications (2)

Publication Number Publication Date
CN107018371A true CN107018371A (en) 2017-08-04
CN107018371B CN107018371B (en) 2020-02-14

Family

ID=59448397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710253567.3A Active CN107018371B (en) 2017-04-18 2017-04-18 Video acquisition control method and device

Country Status (1)

Country Link
CN (1) CN107018371B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664948A (en) * 2012-04-18 2012-09-12 杭州海康威视数字技术股份有限公司 Inter-gateway data storing system and method
CN102761710A (en) * 2011-04-29 2012-10-31 北京真视通科技股份有限公司 Audio/video intelligent switcher
CN105338258A (en) * 2014-06-26 2016-02-17 浙江大华技术股份有限公司 Video transmission method and device
US10127564B2 (en) * 2011-09-15 2018-11-13 Stephan HEATH System and method for using impressions tracking and analysis, location information, 2D and 3D mapping, mobile mapping, social media, and user behavior and information for generating mobile and internet posted promotions or offers for, and/or sales of, products and/or services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761710A (en) * 2011-04-29 2012-10-31 北京真视通科技股份有限公司 Audio/video intelligent switcher
US10127564B2 (en) * 2011-09-15 2018-11-13 Stephan HEATH System and method for using impressions tracking and analysis, location information, 2D and 3D mapping, mobile mapping, social media, and user behavior and information for generating mobile and internet posted promotions or offers for, and/or sales of, products and/or services
CN102664948A (en) * 2012-04-18 2012-09-12 杭州海康威视数字技术股份有限公司 Inter-gateway data storing system and method
CN105338258A (en) * 2014-06-26 2016-02-17 浙江大华技术股份有限公司 Video transmission method and device

Also Published As

Publication number Publication date
CN107018371B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
CN106412626B (en) A kind of processing method and processing device of live video
CN105791431B (en) A kind of distribution on line formula monitor video processing method for scheduling task and device
CN109308460B (en) Article detection method, system and computer readable storage medium
CN104394377B (en) A kind of fuzzy abnormal recognition methods of monitoring image and device
CN109819161A (en) A kind of method of adjustment of frame per second, device, terminal and readable storage medium storing program for executing
CN106162105B (en) A kind of camera parameters control method and device in video monitoring system
CN105407323A (en) Screen splitting method and device of monitor video
CN107295296B (en) Method and system for selectively storing and recovering monitoring video
CN104332153A (en) Video playing method and device
CN111447239B (en) Video stream playing control method, device and storage medium
CN110087121B (en) Avatar display method, avatar display apparatus, electronic device, and storage medium
CN110399831A (en) A kind of method for inspecting and device
CN101931775A (en) Video recording method and device
CN104751164A (en) Method and system for capturing movement trajectory of object
CN108063915A (en) A kind of image-pickup method and system
CN109740003A (en) A kind of archiving method and device
CN107124610A (en) A kind of method for video coding and device
CN106886746A (en) A kind of recognition methods and back-end server
CN107835381B (en) It is a kind of to generate dynamic call the roll of the contestants in athletic events as the method and device of preview graph
CN111970484B (en) Operation and maintenance system and operation and maintenance method suitable for video monitoring equipment
CN107018371A (en) A kind of video acquisition control method and device
CN107085845A (en) Image blurring detection method and device
US8903223B1 (en) Video driver over a network
CN113542909A (en) Video processing method and device, electronic equipment and computer storage medium
CN109040672B (en) Video playing method and device

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