Summary of the invention
In view of this, the invention provides fault of camera automatic testing method, device and system, to meet the need of market.
For achieving the above object, the invention provides following technical scheme:
A kind of fault of camera automatic testing method is characterized in that, comprising:
Obtain the video data of video camera;
Analyze described video data according to failure mode, judge therefrom whether described video camera breaks down.
A kind of monitoring equipment fault management method comprises:
Obtain the video data of video camera;
Analyze described video data according to failure mode, judge therefrom whether described video camera breaks down;
When described video camera breaks down, carry out fault and report for repairment.
A kind of fault of camera automatic checkout system comprises:
Acquiring unit is used to obtain the video data of video camera;
Judging unit is used for analyzing the video data that described acquiring unit obtains according to failure mode, judges therefrom whether described video camera breaks down.
A kind of monitoring equipment fault management system comprises:
Acquiring unit is used to obtain the video data of video camera;
Judging unit is used for analyzing the video data that described acquiring unit obtains according to failure mode, judges therefrom whether described video camera breaks down;
Report the unit for repairment, be used for when the described video camera of described judgment unit judges breaks down, carrying out fault and reporting for repairment.
A kind of fault of camera detects server automatically, comprising:
Acquiring unit is used to obtain the video data of video camera;
Judging unit is used for analyzing the video data that described acquiring unit obtains according to failure mode, judges therefrom whether described video camera breaks down.
A kind of monitoring equipment fault management server comprises:
Acquiring unit is used to obtain the video data of video camera;
Judging unit is used for analyzing the video data that described acquiring unit obtains according to failure mode, judges therefrom whether described video camera breaks down;
Report the unit for repairment, be used for when the described video camera of described judgment unit judges breaks down, carrying out fault and reporting for repairment.
From above-mentioned technical scheme as can be seen, the video data of video camera can be obtained, be analyzed to detection method of the present invention automatically, judges therefrom whether video camera breaks down, and overcome the ineffective problem of inspection method manually, satisfied the needs in market.
Embodiment
For quote and know for the purpose of, hereinafter the technical term of Shi Yonging, write a Chinese character in simplified form or abridge and be summarized as follows:
DVR:Digital Video Recorder, digital video recorder;
On behalf of The Cloud Terrace comprehensive (up and down), PTZ:Pan/Tilt/Zoom move and camera lens becomes doubly, zoom control.
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The embodiment of the invention discloses a kind of fault of camera automatic testing method, referring to Fig. 1, this method may further comprise the steps at least:
S11, obtain the video data of video camera;
S12, analyze described video data, judge therefrom whether video camera breaks down according to failure mode.
As seen, the video data of video camera can be obtained, be analyzed to the detection method of the embodiment of the invention automatically, judges therefrom whether video camera breaks down, and overcome the ineffective problem of inspection method manually, satisfied the needs in market.
Preferably, above-mentioned detection method also can comprise demonstration testing result step, knows the current detection result of video camera to make things convenient for the tester, and testing result can be recorded in the form of form in the database, inquires about the historical failure of video camera to make things convenient for the tester.
At present, general on the market video camera mostly is analog video camera or web camera.The raw video image of analog video camera output is an analog video image.When using analog video camera, generally need utilize DVR that its raw video image is carried out A/D and be converted to video data and then store, also to compress sometimes, digital coding and Network Transmission this video data; As for web camera, then be integrated video compression and Network Transmission processing module on the basis of analog video camera, the video image that makes it to export is the digital picture that can transmit in network, saved DVR it is carried out the process of A/D conversion, compression, coding.
When video camera was analog video camera, step S11 was specially by digital video video recorder DVR and obtains the raw video image of analog video camera, and utilized DVR that raw video image is carried out the A/D conversion, obtained video data.
The normal fault that occurs of video camera comprises video signal interruption, luminance video is unusual, PTZ is out of control etc., below will be described in detail at above-mentioned concrete fault.
One, video signal interruption fault detect:
In practice, video camera is that malicious sabotage, video transmission link go wrong etc. and the video breaks phenomenon of periodicity or continuation to occur because of front end platform, video camera operation irregularity, equipment or damage of components, people often.Referring to Fig. 2, the video signal interruption fault detection method specifically comprises:
S21, obtain the raw video image of analog video camera, and utilize DVR that raw video image is carried out the A/D conversion, obtain video data by DVR;
S22, from described video data, extract the code stream value,, judge described video camera generation video signal interruption fault when described code stream value during less than pre-set threshold value;
Under normal circumstances, the size of code stream is in the scope of DVR setting.And when vision signal took place to interrupt, the big young pathbreaker of code stream was far smaller than the code stream size under the normal condition.Therefore, can be scheduled to a threshold values,, can assert that the fault of video signal interruption has taken place video camera when the code stream value that from video data, extracts during less than this threshold values;
S23, the testing result of video camera is carried out report form statistics.
Two, the brightness abnormal failure detects
In practice, video camera often owing to camera fault, gain controlling disorder, lighting condition is unusual or artificial malice block etc. the picture that reason causes dark excessively, cross bright or blank screen, and picture is dark excessively, the mistake is bright or blank screen all belongs to the unusual category of brightness.
Referring to Fig. 3, brightness abnormal failure detection method is as follows:
S31, obtain the raw video image of analog video camera, and utilize DVR that raw video image is carried out the A/D conversion, obtain video data by DVR;
S 32, from above-mentioned video data, extract brightness data and it is weighted, draw the intensity level of the brightness data of described weighting, when described intensity level is not in default brightness level range, judge described video camera generation brightness abnormal failure;
S33, the testing result of video camera is carried out report form statistics.
When specific implementation, intensity level can be divided into 9 grades, after above-mentioned brightness data is weighted processing, determine that the brightness data after the weighting belongs to the scope of which intensity level.A default brightness level range is the normal scope of brightness such as the 3-6 level.When the brightness data of above-mentioned weighting is 4 grades, can judges that its brightness is normal, and when the brightness data of above-mentioned weighting is 1,2,7,8,9 grade, can judge that then its brightness is unusual.But, in view of video camera by day the brightness of captured image generally be higher than its brightness at captured image at night, in addition, brightness cloudy and fine captured image also is not quite similar.Therefore, the more rational practice be take all factors into consideration sunlight, day and night to the influence of brightness, pre-determine brightness level range.
Three, the PTZ hardover failure detects
Referring to Fig. 4, PTZ hardover failure detection method comprises the steps:
S41, to the analog video camera transmitting control commands;
S42, obtain the raw video image of analog video camera after sending above-mentioned control command, and utilize DVR that raw video image is carried out the A/D conversion, obtain the video data that above-mentioned video camera returns according to above-mentioned control command by DVR;
S43, the video data that sends before and after the above-mentioned control command is carried out diversity ratio, obtains difference value, when difference value less than pre-set threshold value, judge that the PTZ hardover failure takes place described video camera, promptly draw the conclusion that video camera can't be controlled according to control command;
S44, the testing result of video camera is carried out report form statistics.
Corresponding with above-mentioned detection method, the embodiment of the invention also discloses a kind of fault of camera automatic checkout system, Fig. 5 shows a kind of structure of this system, comprising:
Acquiring unit 501 is used to obtain the video data of video camera;
Judging unit 502 is used for analyzing the video data that acquiring unit 501 obtains according to failure mode, judges therefrom whether described video camera breaks down.
It is pointed out that acquiring unit 501 can obtain the video data of all video cameras in the supervisory control system, and judging unit 502 can adopt traversal or the mode of poll that the video data of above-mentioned video camera is carried out fault judgement; Perhaps, acquiring unit 501 adopts the mode of traversal or poll to obtain the video data of each video camera in the supervisory control system, and the video data of 502 pairs of above-mentioned each video cameras of judging unit carries out fault judgement.Certainly, can also there be other mode that video camera is detected, such as, for the video camera of key area and non-key area, can detect in different ways, when specific implementation, those skilled in the art can carry out flexible design according to actual needs, are not giving unnecessary details.
Before mention that the normal fault that occurs of video camera comprises video signal interruption, luminance video is unusual, PTZ is out of control etc., therefore, judging unit 502 also can comprise video signal interruption judging unit, luminance video abnormal deciding means and PTZ judging unit out of control etc.
Corresponding with above-mentioned detection method, referring to Fig. 6, the embodiment of the invention also discloses a kind of fault of camera and detect server 601 automatically, this server comprises:
Acquiring unit 602 is used to obtain the video data of video camera;
Judging unit 603 is used for analyzing the video data that acquiring unit 602 obtains according to failure mode, judges therefrom whether described video camera breaks down.
Meanwhile, the embodiment of the invention also discloses a kind of fault of camera management method, referring to Fig. 7, this method comprises:
S71, obtain the video data of video camera;
S72, analyze described video data, judge therefrom whether video camera breaks down according to failure mode;
S73, when described video camera breaks down, carry out fault and report for repairment.
When specific implementation, can send warning message at once when the discovery fault, start fault and report work for repairment, remind administrative staff in time the signalling trouble related personnel of front end picture pick-up device to be carried out maintenance of equipment; But simultaneity factor is automatic report generation real time record testing result and store in the mode of database also, makes things convenient for user inquiring historical failure record.
As seen, automatically detect and management method by above-mentioned video camera, can make accurate judgement and can send warning message the video fault that video camera occurs and start maintenance and report work for repairment, can make fast state to the numerous camera of supervisory control system in the very first time and grasp and can easily carry out maintaining the video camera that breaks down.On the one hand can improve system maintenance personnel's operating efficiency greatly, understand fault of camera technical support is provided for monitor staff's very first time on the other hand.
Corresponding with above-mentioned management method, the embodiment of the invention also discloses a kind of fault of camera management system, Fig. 8 shows a kind of structure of this system, comprising:
Acquiring unit 801 is used to obtain the video data of video camera;
Judging unit 802 is used for analyzing the video data that acquiring unit 801 obtains according to failure mode, judges therefrom whether described video camera breaks down;
Report unit 803 for repairment, be used for when judging unit 802 judges that described video camera breaks down, carrying out fault and reporting for repairment.
It is pointed out that acquiring unit 801 can obtain the video data of all video cameras in the supervisory control system, and judging unit 802 can adopt traversal or the mode of poll that the video data of above-mentioned video camera is carried out fault judgement; Perhaps, acquiring unit 801 adopts the mode of traversal or poll to obtain the video data of each video camera in the supervisory control system, and the video data of 802 pairs of above-mentioned each video cameras of judging unit carries out fault judgement.Certainly, can also there be other mode that video camera is detected, such as, for the video camera of key area and non-key area, can detect in different ways, when specific implementation, those skilled in the art can carry out flexible design according to actual needs, do not give unnecessary details at this.
Before mention that the normal fault that occurs of video camera comprises video signal interruption, luminance video is unusual, PTZ is out of control etc., therefore, judging unit 802 also can comprise video signal interruption judging unit, luminance video abnormal deciding means and PTZ judging unit out of control etc.
Corresponding with above-mentioned management method, referring to Fig. 9, the embodiment of the invention also discloses a kind of fault of camera management server 901, this server comprises:
Acquiring unit 902 is used to obtain the video data of video camera;
Judging unit 903 is used for analyzing the video data that acquiring unit 902 obtains according to failure mode, judges therefrom whether described video camera breaks down;
Report unit 904 for repairment, be used for when judging unit 903 judges that described video camera breaks down, carrying out fault and reporting for repairment.
Above-mentioned detection and management method have special meaning for existing internet alarm system platform.The internet alarm system platform possesses huge video monitoring system.In this video monitoring system, number of cameras may be thousands of, and monitor wall picture displayed limited amount in real time, and most camera chins are in the backstage video state, only just can access image when warning taking place or specific demand is arranged.Because the operator on duty can't carry out Real Time Observation one by one to all front passage, and when some camera review of the playback of needs is really arranged, if find that this passage is ineffective because of signal interruption, factor such as be blocked already, will handle for police service and bring great inconvenience.And watch-dog provided by the present invention and management method can be found fault in time, exactly, avoid the appearance of above-mentioned situation.
Each embodiment adopts the mode of going forward one by one to describe in this specification, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For the disclosed device of embodiment, because it is corresponding with the embodiment disclosed method, so description is fairly simple, relevant part partly illustrates referring to method and gets final product.
To the above-mentioned explanation of the disclosed embodiments, make this area professional and technical personnel can realize or use the present invention.Multiple modification to these embodiment will be conspicuous concerning those skilled in the art, and defined herein General Principle can realize under the situation that does not break away from the spirit or scope of the present invention in other embodiments.Therefore, the present invention will can not be restricted to these embodiment shown in this article, but will meet and principle disclosed herein and features of novelty the wideest corresponding to scope.