CN102227127B - Automatic multimedia material defect detection and quality analysis method - Google Patents

Automatic multimedia material defect detection and quality analysis method Download PDF

Info

Publication number
CN102227127B
CN102227127B CN201110167301XA CN201110167301A CN102227127B CN 102227127 B CN102227127 B CN 102227127B CN 201110167301X A CN201110167301X A CN 201110167301XA CN 201110167301 A CN201110167301 A CN 201110167301A CN 102227127 B CN102227127 B CN 102227127B
Authority
CN
China
Prior art keywords
frame
signal
defect
defective
model
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.)
Expired - Fee Related
Application number
CN201110167301XA
Other languages
Chinese (zh)
Other versions
CN102227127A (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.)
Tianjin University of Technology
Original Assignee
Tianjin University of Technology
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 Tianjin University of Technology filed Critical Tianjin University of Technology
Priority to CN201110167301XA priority Critical patent/CN102227127B/en
Publication of CN102227127A publication Critical patent/CN102227127A/en
Application granted granted Critical
Publication of CN102227127B publication Critical patent/CN102227127B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention provides an automatic multimedia material defect detection and quality analysis method. The method comprises the following steps: establishment of media material defect model set; detection of media material defect; analysis of media material quality; detection of media material defect and preservation of quality analysis result. Software which is realized based on the method in the invention can reach an effect of real-time processing in a present mainstream computer, and is used for digitlization recovery of mass simulation media material accumulated in history and pretreatment of a storage system. The method in the invention provides real-time automatic defect detection (comprising defect types, frame number, time stamp/fragment information, defect position and the like) for simulation material recovery and necessary low layer quality information (comprising video audio signal to noise ratio, video audio bandwidth, video audio mean value and the like) which media compression storage needs. Based on the information, tasks of media material recovery repairing, video audio compression and digitlization storage and the like can be carried out manually or automatically.

Description

Full-automatic multimedia material defects detection and mass analysis method
Technical field
The present invention relates to multimedia technology, relate in particular to simulation ARTBEATS DESKTOP TECHNOLOGY NTSC defects detection and recovery and digitlization memory technology.
Background technology
Motion picture technique resulted from for 19 end of the centurys, and maturation also developed so far in 20th century; Broadcast television technique occurs a little later, and greatly about resulting from the World War II later stage, and development so far.Medium such as early stage film, TV, disc all are to be stored in such as on the analog storage mediums such as cinefilm, video tape, simulation disc record.As time goes on the media materials that is stored on these simulation mediums reaches increasing of access times, aging, damaged gradually, thereby causes quality to descend.Its outstanding characteristics show as various media materials generation of defects, for example since the video tape damage or stain the complete or various partial frame contents disappearances of the frame of video that causes, the aging content frame quality that causes of video tape descend (as cut, frame roll, be off color normal) etc.
Since the eighties in 20th century, computer and digital media technology have got into the high speed development stage.Because digital storage technique possesses characteristics such as memory capacity is big, easy to use, information is difficult for losing, the storage of a lot of media materials carries out the transition to the employing digital storage media by simulation gradually.To today nearly all medium all be to be stored on the digital device.But, a large amount of early stage primary analog media materials, As time goes on, its historical value is more and more important, is faced with again simultaneously and As time goes on reaches the unfavorable of safeguard measure, causes quality to descend even the risk of irrecoverable regeneration is arranged.According to the authoritative department research report, Europe has millions of hours analog media material to face this kind crisis, and China faces such problem equally as a big country.A large amount of at present early stage films and television programs, documentary film, as part of history, precious.In time rescuing these data, utilize the storage of advanced computer and digital technology as early as possible, recover these data, is the important topic that radio, film and television industry faces now.
On the other hand, because historical accumulation, this early simulation media materials quantity and huge (in 1,000,000 hours) thereof that await rescuing preservation utilize the method for manual detection and recovery consuming time costly.Therefore, full-automatic multimedia material defects detection, recovery and a digitlization storage system are demanded urgently occurring.
Summary of the invention
The present invention seeks to retain a large amount of, precious analog media materials in history in order in time to rescue protection; Utilize the high-tech digital means automatically its quality to be carried out preanalysis; Detect wherein all kinds of video defectives and video (comprising signal to noise ratio, bandwidth, active zone, mean value etc.), audio frequency low layer quality information (comprising signal to noise ratio, bandwidth, mean value etc.) are provided; Be the necessary information of reprocessing work such as further recovery, reconstruction, compressed encoding preparation; So, a kind of full-automatic multimedia material defects detection and mass analysis method are proposed.
First technical problem that the present invention will solve is to analyze existing various standard analog media materials after longer-term storage; Owing to reasons such as environmental change, storage medium wear out, breakages; The defective of all types of video contents that cause, and set up the perfect video defect model of a cover.
Second technical problem that the present invention will solve is according to setting up good analog video defect model, proposing the effective detection method of a cover and detect in real time.
The 3rd technical problem that the present invention will solve provides a cover full-automatic video audio frequency gross information analysis algorithm.
For this reason, full-automatic multimedia material defects detection provided by the invention and mass analysis method comprise:
1st, the foundation of media materials defect model collection;
2nd, the foundation of media materials quality analysis index set;
3rd, the detection of media materials defective;
4th, media materials quality analysis;
5th, preserve the detection and the quality analysis result of media materials defective.
Wherein, the 1st the step described media materials defect model collection comprise:
11st, inefficacy frame defect model, the video frame content of this model lacks fully, is substituted by some rambling signals;
1.2nd, the capable inefficacy frame defect of I type model, the video defective of this model is a unit with " OK ", impaired capable information lacks fully, non-impaired capable information keeps fully, and the row of damage with do not have special relevancy in the ranks;
1.3rd, the capable inefficacy frame defect of II type model, the video defective of this model is a unit with " OK ", impaired capable information lacks fully, and in the affected area in the ranks information much at one, the line-to-line correlation degree is extremely strong;
1.4th, the capable inefficacy frame defect of III type model; The video defective of this model is a unit with " OK "; Impaired capable information lacks fully, and the capable internal information regularity of affected area squints to the right, forms the black triangle of a no signal thus on the affected area left side;
1.5th, the capable inefficacy frame defect of IV type model; The video defective characteristics of this model move to left for whole frame; Stay a no signal black region on whole frame the right, defective is a unit with " OK " simultaneously, impaired capable message part disappearance; And affected area is whole relatively, and frame is parallel moves to right, and impaired capable left part also has a no signal black region simultaneously;
1.6th, cut type defect model, the video defective characteristics of this model are not lost for whole frame information fully, but increase the horizontal cut shape content of fixed-site or variation on the video image;
1.7th, interframe roll type defect model, the characteristics of the video defective of this model do, shows the parts of images of adjacent two frames in the frame simultaneously, and the motion up or down of rolling in time of two interframe partitioning portions, time remaining at 0.5 second between the several seconds;
1.8th, cross-color type defect model, the notable feature of the video defective of this model be a certain be that the field color of unit is unusual with " OK ", its reason is this standard signal part phase information disappearance.
The 2nd step, described media materials quality analysis index set comprised:
2.1st, video signal frame mean value and effective coverage are detected;
2.2nd, the bandwidth of video signal;
2.3rd, vision signal signal to noise ratio;
2.4th, audio signal frame mean value;
2.5th, audio signal bandwidth;
2.6th, audio signal signal to noise ratio.
The 3rd step detection algorithm of described media materials defective is:
3.1st, inefficacy frame defect model detection algorithm utilizes inter-frame correlation information, detects failpoint set in the frame, then based on the distribution and the density of failpoint, judges whether this frame is the inefficacy frame;
3.2nd, the capable inefficacy frame defect of I type model detection algorithm is 1 dimensional signal with frame greyscale image transitions to be detected, and wherein line number is an independent variable, and every capable grey scale pixel value accumulated value is a dependent variable; On this basis of signals, investigate interframe, line-to-line correlation information, and combine motion compensation in the ranks then, the final inefficacy row of judging such defective that detects;
3.3rd, the capable inefficacy frame defect of II type model detection algorithm is 1 dimensional signal with frame greyscale image transitions to be detected, and wherein line number is an independent variable, and every capable grey scale pixel value accumulated value is a dependent variable; Then on this basis of signals, according to correlation information in the ranks in the frame,, detect defective candidate row in the frame in conjunction with frame-to-frame correlation information, from detecting the row beginning of losing efficacy, search up and down adopts the method for region growing to detect all defect zone in this frame at last;
3.4th, the capable inefficacy frame defect of III type model detection algorithm utilizes line-to-line correlation property and frame-to-frame correlation information, detects candidate row; Because this type of defective possesses displacement in the ranks, when calculating line-to-line correlation property, candidate row is searched in adjacent ± row, and the correlation maximum between calculating two row is as line-to-line correlation property; This candidate row possesses the characteristics of interior high correlation of row and interframe low correlation; According to area distribution, the degree of correlation of candidate row, confirm the existence zone of such defective then;
3.5th, the capable inefficacy frame defect of IV type model detection algorithm through detecting left side black characteristic area in the frame, goes out the defective candidate regions with image segmentation, and promptly the left side detects the set of the row of black region; Utilize the interframe histogram comparison of candidate regions then, confirm the existence zone of such defective;
3.6th, cut type defect model detection algorithm in frame, detect the linear object of width less than 4 pixels, and binaryzation is as template; On this template basis, utilize the Hough conversion then, detect the x wire shaped object, filter out the linear object of all the other directions; At last, utilize morphology open-close operator to carry out motion compensation, x wire shaped object concentration filter falls because the line that object of which movement causes in the frame stays because the line that defective produces from detecting; Utilize median filter method to filter out isolated pixel at last, stay the position that scratch defects exists;
3.7th, interframe roll type defect model detection algorithm utilizes in the frame correlation in the ranks, the part that two frames are connected before and after detecting; In continuous frame group, follow the tracks of the position of detecting this part then, till this part disappears, thereby obtain the position of frame roll and the frame fragment of rolling thereof;
3.8th, cross-color type defect model detection algorithm is 1 dimensional signal with 2 dimension image transitions, and wherein line number is an independent variable; Every capable grey scale pixel value accumulated value is a dependent variable, then on this basis, is unit with " OK "; According to frame-to-frame correlation, detect the zone of color exception.
The 4th step, said media materials mass analysis method was:
4.1st, video signal frame mean value and effective coverage detection method; Frame interior pixel gray value histogram; With its 5% pixel value is decision threshold, investigate laterally and the longitudinal boundary district, if so this row or row pixel value all less than this threshold value; Then be judged as the marginal zone of no signal, remaining area is an active zone; Calculating pixel average gray in active zone is vision signal mean value;
4.2nd, bandwidth of video signal evaluation method at first utilizes FFT by row rated output spectrum, then each row power spectrum in the frame is asked average; Obtain the bandwidth of this two field picture according to the frame inner average power spectrum: the low frequency of bandwidth is made as 0, and high frequency points is defined as the lower limit that makes average power spectra reach 95% frequency;
4.3rd, vision signal signal-to-noise ration estimation method at first utilizes the Daubechies small echo to carry out multiple dimensioned decomposition picture frame; Adopt two kinds of approach to carry out Noise Estimation according to the wavelet coefficient after decomposing is comprehensive: a kind of method that adopts the noise singular point, promptly investigate the correlation of the different scale coefficient of wavelet decomposition of same pixel point and confirm singular point; Another kind utilizes the method for threshold decision, and the noise variance of promptly estimating according to previous frame is as threshold parameter, investigates the coefficient after the wavelet decomposition; In conjunction with the result of two kinds of Noise Estimation, adopt its combined information, estimated noise energy calculates the signal to noise ratio of vision signal at last;
4.4th, audio signal frame mean value calculation method, audio signal mean value are defined as the mean value of amplitude of the audio fragment of corresponding certain frame of video;
4.5th, audio signal bandwidth evaluation method, audio signal bandwidth calculate based on the FFT conversion, the frequency between the power spectrum 5%~95% after the audio fragment FFT conversion are defined as the bandwidth of this audio fragment;
4.6th, audio signal signal-to-noise ration estimation method supposes that at first (HFS) is noise bandwidth beyond the audio bandwidth, utilizes audio bandwidth information then, and the audio power spectrum calculates noise power spectrum, thereby calculates the audio frequency signal to noise ratio.Advantage of the present invention and good effect:
The present invention adopts advanced computer video analytical technology, in real time, automatically detects all kinds of video defectives, the video quality analytical information is provided simultaneously, for rear end video recovery, compression, storage are submitted necessary information.Because the historical analog media material that accumulates out magnanimity, it is low that the use manual type is carried out detection efficiency, wastes time and energy, and adopts solution of the present invention, can practice thrift great amount of cost and social resources.
Description of drawings
Fig. 1 illustrates system architecture diagram of the present invention;
Fig. 2 illustrates Media Analysis subsystem architecture figure of the present invention
Fig. 3 illustrates the present invention about video defect detecting system framework
Fig. 4 illustrates the present invention about inefficacy frame defect model, testing result and detection method
Fig. 5 illustrates model, testing result and the detection method of the present invention about row defective I type
Fig. 6 illustrates model, testing result and the detection method of the present invention about row defective II type
Fig. 7 illustrates model, testing result and the detection method of the present invention about row defective III type
Fig. 8 illustrates model, testing result and the detection method of the present invention about row defective IV type
Fig. 9 illustrates the present invention about cut type defect model, testing result and detection method
Figure 10 illustrates the present invention about interframe roll type defect model, testing result and detection method
Figure 11 illustrates the present invention about cross-color type defect model, testing result and detection method
Figure 12 illustrates the present invention about the video signal-to-noise ratio computational methods
Figure 13 illustrates the present invention about the audio frequency signal-noise ratio computation method
Embodiment
One, full-automatic multimedia material defects detection provided by the invention and mass analysis method comprise:
1st, the foundation of media materials defect model collection;
2nd, the foundation of media materials quality analysis index set;
3rd, the detection of media materials defective;
4th, media materials quality analysis;
5th, preserve the detection and the quality analysis result of media materials defective.
Implement in the software in the present invention, being converted into resolution after the analog video collection is the 352x288 video frame images, and all algorithms are directed to this resolution video and handle.
1, media materials defect model collection
Comprise:
● inefficacy frame model.The type defect model and testing result are illustrated by Fig. 4.Visible by figure, such defective full frame holds disappearance fully, is substituted by some rambling signals.
● all kinds of capable inefficacy frame models comprise,
The capable inefficacy frame of ■ I type model.The type defect model and testing result are illustrated by Fig. 5.Visible by figure, the type defective is a unit with " OK ", and impaired capable information lacks fully, and non-impaired capable information keeps fully, and does not have correlation between the damage every trade.
The capable inefficacy frame of ■ II type model.The type defect model, testing result are illustrated by Fig. 6.Visible by figure, the type defective is a unit with " OK ", and impaired capable information lacks fully, and affected area in the ranks information much at one, the line-to-line correlation degree is extremely strong.
The capable inefficacy frame of ■ III type model.The type defect model and testing result are illustrated by Fig. 7.Visible by figure, the type defective is a unit with " OK ", and impaired capable information lacks fully, and affected area row internal information regularity squints to the right, forms the black triangle of a no signal thus on the affected area left side.
■ IV type inefficacy frame model.The type defect model and testing result are illustrated by Fig. 8.Visible by figure, such defective characteristics are that whole frame moves to left; The message one no signal black region on frame the right, defective is a unit with " OK " simultaneously, impaired capable message part disappearance; And affected area is parallel to move to right, and impaired capable left part also has a no signal black region simultaneously.
● cut type defect model and detection thereof.Such defect model and testing result are illustrated by Fig. 9.Visible by figure, such defective characteristics are that whole frame information is not lost, but increases fixing or dynamic laterally cut shape content on the video image.
● interframe roll type defect model and detection thereof.Such defect model and testing result are illustrated by Figure 10.Visible by figure; The characteristics of such defective do and since certain the time base information errors or lose, cause the parts of images that shows adjacent two frames in the frame simultaneously; And (or the downwards) motion of rolling in time upwards of two interframe partitioning portions, time remaining have 0.5 second and do not wait to the several seconds.
● cross-color type defect model and detection thereof.Such defect model and testing result are illustrated by Figure 11.Such defective generally appears in the video of SCEMA standard, and its reason is the disappearance of this standard signal type phase place.Visible by figure, it is characterized by a certain is the field color unusual (being generally purple) of unit with " OK ".
2, media materials quality analysis index set comprises:
● video signal frame mean value and effective coverage are detected;
● the bandwidth of video signal;
● the vision signal signal to noise ratio;
● audio signal frame mean value;
● audio signal bandwidth;
● the audio signal signal to noise ratio.
3, the detection of media materials defective comprises:
● inefficacy frame defect detection algorithm.The type defect inspection method block diagram is illustrated by Fig. 4.Detection method is:
■ at first utilizes inter-frame correlation information, detects failpoint set in the frame.For this reason, definition failpoint template does,
M i , j t = 1 if min ( | x i , j t - x i , j t - 1 | , | x i , j t - x i , j t + 1 | ) > 150 0 else
Here, t is a temporal information, and (i j) is coordinate, and x is a frame interior pixel gray value
■ judges then based on the distribution and the density of failpoint whether the inefficacy frame exists.
Entire frame is divided into 22x12 sub regions (each subregion size is 12x16).Surpass 80% of this row subregion number if contain the subregion of failpoint in the same lines, it is capable to define this subregion behavior inefficacy subregion; If such inefficacy subregion line number surpasses all subregion line numbers 50%, judge then whether this frame is the inefficacy frame
● all kinds of capable inefficacy frame defect detection algorithms, comprise,
The capable inefficacy frame defect of ■ I type detects.The type defect inspection method block diagram is illustrated by Fig. 5.Detection method is:
◆ be 1 dimensional signal (every capable grey scale pixel value adds up) at first with frame greyscale image transitions to be detected
y ( i ) = 1 N Σ j = 0 N - 1 x ( i , j )
Here, i is a row-coordinate, and j is the row coordinate, and x is a frame interior pixel gray value, and N is the row number of pixels
◆ between definition frame-the line-to-line correlation function:
H ( i , k ) = 1 if min ( | y t ( i ) - y t - 1 ( i + k ) | , | y t ( i ) - y t + 1 ( i + k ) | ) > min ( | y t - 1 ( i + k ) - y t + 1 ( i + k ) | , 20 ) 0 else
Here, t is a temporal information, and k is shift factor in the ranks, and i is a row-coordinate.
◆ at last according to interframe-line-to-line correlation function,, carry out motion compensation simultaneously, confirm the existence zone of the type defective in conjunction with the information after frame 1 dimensionization of front and back.
Frame difference degree before the definition: D 0 ( i , k ) = 1 N Σ j = - 4 4 ( | y t ( i + j ) - y t - 1 ( i + j + k ) | * H ( i + j , k ) ) If N ≠ 0 0 Else
Definition back frame difference degree: D 1 ( i , k ) = 1 N Σ j = - 4 4 ( | y t ( i + j ) - y t - 1 ( i + j + k ) | * H ( i + j , k ) ) If N ≠ 0 0 Else
Here, N = Σ j = - 4 4 H ( i + j , k )
Frame difference degree motion compensation before the definition: Z 0 ( i ) = Min k = - 10 10 ( D 0 ( i , k ) )
The frame difference degree motion compensation of definition back: Z 1 ( i ) = Min k = - 10 10 ( D 1 ( i , k ) )
Decision rule function: min (Z 0(i), Z 1(i))>min (| y T+1(i)-y T-1(i) |+15,30), promptly satisfy the capable defective row that is of i like this formula
The capable inefficacy frame defect of ■ II type detects.The type defect inspection method block diagram is illustrated by Fig. 6.Detection method is:
◆ be 1 dimensional signal (every capable grey scale pixel value adds up) at first with frame greyscale image transitions to be detected
y ( i ) = 1 N Σ j = 0 N - 1 x ( i , j )
Here, i is a row-coordinate, and j is the row coordinate, and x is a frame interior pixel gray value, and N is the row number of pixels
◆ then according to correlation information in the ranks in the frame, in conjunction with frame-to-frame correlation information, detect defective candidate row in the frame, this candidate row satisfies the characteristics of high correlation and interframe low correlation in the ranks;
In the ranks high correlation requires to satisfy simultaneously:
T 1 ( i ) = max k = - 5 5 ( | y ( i ) - y ( i + k + 1 ) | < 3
T 2 ( i ) = max j = 0 N ( 1 11 &Sigma; k = - 5 5 | x ( i , j ) - x ( i + k , j ) | < 20
Here, k is the line displacement factor
The interframe low correlation requires to satisfy:
min(d 0,d 1)>T 2*(T 1+0.5)
Here,
d 0 = 1 N &Sigma; j = 0 N - 1 | x t ( i , j ) - x t - 1 ( i , j ) |
d 1 = 1 N &Sigma; j = 0 N - 1 | x t ( i , j ) - x t - 1 ( i , j ) | ,
Wherein t is a temporal information
◆ begin to search for up and down from candidate row at last, all and defect area are adjacent, and have the row of high correlation to bring in the defect area with candidate row
The capable inefficacy frame defect of ■ III type detects.The type defect inspection method block diagram is illustrated by Fig. 7.Detection method is:
◆ at first utilize line-to-line correlation property and frame-to-frame correlation information, detect candidate row.Because this type of defective possesses displacement in the ranks, when calculating line-to-line correlation property, parallel moves wherein delegation among a small circle, and the correlation maximum after calculating is moved between two row is as line-to-line correlation property.This candidate row possesses the characteristics of interior high correlation of row and interframe low correlation;
The displacement degree of correlation between definition line:
k ( i ) = min ( 1 N &Sigma; j = 0 N - 1 | x ( i , j ) - x ( i + 1 , j ) | , 1 N - 1 &Sigma; j = 0 N - 2 | x ( i , j ) - x ( i + 1 , j + 1 ) |
Here, i is a row-coordinate, and j is the row coordinate, and x is a frame interior pixel gray value, and N satisfies for the capable requirement of row number of pixels candidate defect simultaneously:
min(k(i)-k(i-1),k(i)-k(i+1))>5
max j = 1 10 ( k ( i - j ) ) - min j = 1 10 ( k ( i - j ) ) < 3
◆ begin to search for up and down from candidate row at last, all and defect area are adjacent, and have the row of high correlation to bring in the defect area with candidate row
■ IV type inefficacy frame defect detects.The type defect inspection method block diagram is illustrated by Fig. 8.Detection method is:
◆ at first, image segmentation is gone out defective candidate regions (being the set that the left side detects the row of black region) through detecting left side black characteristic area in the frame;
Definition black region detection threshold is:
T = min ( max i ( 1 N &Sigma; k = 0 i H ( k ) < 0.05 ) , 50 )
Here H (k) is a histogram, and N is a frame interior pixel number.Utilize this thresholding, obtain the black candidate region
M ( i , j ) = 1 if x ( i , j ) < T 0 else
◆ (i j) and line-to-line correlation property, obtains defective candidate regions (with behavior unit) to utilize following formula M then.All row of this zone require to satisfy simultaneously:
1. the low in the ranks degree of correlation
2. (M (i, j)=1) is no less than 5 to detect black picture element on the left of the row
◆ last, utilize the interframe histogram comparison of defective candidate regions, confirm the existence zone of such defective.
● cut type defects detection algorithm.Such defect inspection method block diagram is illustrated by Fig. 9.Detection method is:
■ at first detects the linear object of width less than 4 pixels in frame, and binaryzation is as template; For this reason, have to give a definition:
| | x &rho; - y &rho; | | = ( x r - y r ) 2 + ( x g - y g ) 2 + ( x b - y b ) 2
d 0 ( i , j ) = | | x &rho; ( i , j ) - x &rho; ( i - 2 , j ) | |
d 1 ( i , j ) = | | x &rho; ( i , j ) - x &rho; ( i + 2 , j ) | |
d 2 ( i , j ) = | | x &rho; ( i + 2 , j ) - x &rho; ( i - 2 , j ) | |
M 1 ( i , j ) = 1 if min ( d 0 ( i , j ) , d 1 ( i , j ) ) > 1.5 * ( d 2 ( i , j ) + 10 ) 0 else
M 2 ( i , j ) = 1 if min ( | x t ( i , j ) - x t - 1 ( i , j ) | , | x t ( i , j ) - x t + 1 ( i , j ) | ) > 40 0 else
M=M 1⌒M 2
Here, i is a row-coordinate, and j is the row coordinate, x r, x g, x b, being pixel R, G, B component, t is a temporal information
■ on this template basis, utilizes the Hough conversion then, detects the x wire shaped object, filters out the linear object of all the other directions;
■ utilizes morphology open-close operator to carry out motion compensation then, and x wire shaped object concentration filter falls because the line that object of which movement causes in the frame stays because the line that defective produces from detecting;
■ utilizes median filter method to filter out isolated pixel at last, stays the position that scratch defects exists.
● interframe roll type defects detection algorithm.Such defect inspection method block diagram is illustrated by Figure 10.Detection method is:
■ at first utilizes in the frame correlation in the ranks, the part that two frames are connected before and after detecting (if existence); For this reason, just like giving a definition,
y ( i ) = 1 N &Sigma; j = 0 N | x ( i , j ) - x ( i + 1 , j ) |
T = max ( 1 N &Sigma; j = 0 N | x ( 1 , j ) - x ( M - 1 , j ) | , 50 )
y ( k ) = max i ( y ( i ) ) , y ( i ) > T
Here, i is a row-coordinate, and j is the row coordinate, and M is the number of row, and N is the number of every capable pixel, and k connects row (if y (k)>T, this row exists, otherwise does not exist) for rolling interframe
■ follows the tracks of the position (k (t)) of detecting this part then in continuous frame group, and calculates the transformation range of its rolling, till this part disappears, thereby obtains the position of frame roll and the frame fragment of rolling thereof.
● cross-color type defects detection algorithm.Such defect inspection method block diagram is illustrated by Figure 11.Detection method is:
■ at first with 2 the dimension image transitions be 1 dimensional signal (line number is a dimension, be worth for this row pixel with)
y ( i ) = 1 N &Sigma; j = 0 N - 1 x ( i , j )
Here, i is a row-coordinate, and j is the row coordinate, and x is a frame interior pixel gray value, and N is the row number of pixels
■ then on this basis, according to frame-to-frame correlation, the zone (is unit with " OK ") of detecting color exception defines for this reason:
T(i)=max(|y t(i)-y t-1(i)|,|y t(i)-y t+1(i)|)
Defective row judgment criterion is:
min ( y r t ( i ) - y r t - 1 ( i ) , y r t ( i ) - y r t + 1 ( i ) ) > T ( i )
min ( y g t - 1 ( i ) - y g t ( i ) , y g t + 1 ( i ) - y g t ( i ) ) > T ( i )
min ( y b t - 1 ( i ) - y b t ( i ) , y b t + 1 ( i ) - y b t ( i ) ) > T ( i )
Here, y r, y g, y b, be 1 dimensional signal R, G, B component, i is a line number, T (i) is a decision threshold.
4, media materials quality analysis; Comprise:
● video signal frame mean value and effective coverage are detected.
■ is in detecting the video active zone; The higher limit (utilizing histogram distribution to obtain) of utilizing 5% minimum pixel value set in the frame is as threshold value; Investigate and laterally reach the longitudinal boundary district; If this row (row) is so pixel value all less than this threshold value, then is judged as the marginal zone of no signal, remaining area is an active zone.
Definition: Min k ( &Sigma; i = 0 k H ( i ) > 1 20 &Sigma; i = 0 255 H ( i ) )
Here, H (i) is a histogram in the frame, and k is a decision threshold.
■ is the calculating pixel average gray in active zone, is vision signal mean value.
VL = 1 MN &Sigma; i = 0 N - 1 &Sigma; j = 0 M - 1 x ( i , j )
Here, N is a line number, and M is a columns.
● the bandwidth of video signal.When calculating video bandwidth,
■ at first utilizes FFT by row rated output spectrum, then each row power spectrum in the frame is asked average.
P ( f ) = 1 N &Sigma; i = 0 N - 1 P i ( f )
Here P i(f) be the capable power spectrum of i, N is a line number
■ obtains the bandwidth of this two field picture according to the frame inner average power spectrum: the low frequency of bandwidth is made as 0, and high frequency points is defined as the lower limit that makes average power spectra reach 95% frequency
f high = max f ( &Sigma; i = 0 f P ( i ) < 19 20 &Sigma; i = 0 &infin; P ( i ) )
f low=0
● the vision signal signal to noise ratio.The vision signal snr computation is utilized method of wavelet, and flow process is illustrated by Figure 12.
■ at first utilizes the Daubechies small echo to carry out multiple dimensioned decomposition picture frame;
W 2 i f ( x , y ) = f * &psi; 2 j ( x , y )
■ adopts two kinds of approach to carry out Noise Estimation based on the wavelet coefficient after decomposing is comprehensive:
◆ a kind of method that adopts the noise singular point, promptly investigate the correlation of the different scale coefficient of wavelet decomposition of same pixel point and confirm singular point;
S ( x , y ) = W 2 j ( x , y ) W 2 j + 1 ( x , y )
S s={(x,y)|S(x,y)>t s}
◆ another kind utilizes the method for threshold decision, and the noise variance of promptly estimating according to previous frame (σ) is as threshold parameter, investigates the coefficient after the wavelet decomposition.
t c=kσ
S c = { ( x , y ) | W 2 j ( x , y ) < t c }
◆ combine the result of two kinds of Noise Estimation, adopt its combined information, estimated noise energy calculates the signal to noise ratio of vision signal at last.
S=S t⌒S c
P noise = &Sigma; ( x , y ) &Element; S W 2 j ( x , y )
SNR = 10 * ( &Sigma; ( x , y ) &Element; I f ( x , y ) - P noise P noise )
● audio signal frame mean value.Audio signal mean value is defined as the mean value of amplitude of the audio fragment of corresponding certain frame of video.
AL = 1 N &Sigma; i = 0 N - 1 x ( i )
● audio signal bandwidth.Audio signal bandwidth is calculated based on the FFT conversion, the frequency between the power spectrum 5%~95% after the audio fragment FFT conversion is defined as the bandwidth of this audio fragment.
f low = min f ( &Sigma; i = 0 f P ( i ) > 1 20 &Sigma; i = 0 &infin; P ( i ) )
f high = max f ( &Sigma; i = 0 f P ( i ) < 19 20 &Sigma; i = 0 &infin; P ( i ) )
● the audio signal signal to noise ratio.The audio frequency signal to noise ratio is utilized the method for FFT conversion, and flow process is illustrated by Figure 13.During calculating,
■ supposes that at first (HFS) is noise bandwidth beyond the audio bandwidth
f high = max f ( &Sigma; i = 0 f P ( i ) < 19 20 &Sigma; i = 0 &infin; P ( i ) )
■ utilizes audio bandwidth information then, and the audio power spectrum calculates noise power spectrum, thereby calculates the audio frequency signal to noise ratio.
P noise = &Sigma; i = f f sample / 2 p ( i )
P N = f sample / 2 f sample / 2 - f hight * P noise
SNR = 10 * log ( &Sigma; i = 0 f sample / 2 p ( i ) - P N P N ) .
Two, introduce exemplary real-time example with the lower part
Present embodiment be run on Linux platform, multithreading, based on the software architecture of plug-in unit.
Fig. 1 illustrates present embodiment software architecture figure.Can know by figure,
● present embodiment software mainly is made up of 4 modules:
■ main program module, this module major function be application initialization, Memory Allocation, dynamic load, following each sub-function module is set.This module can comprise startup by remote computer through socket control, suspend, stop, disposing and be provided with etc.
■ data acquisition submodule, this module are the dynamic base card format, by the main program dynamic load, operate in the independent thread.Major function is that through operation bottom data analog input card, image data is to input shared drive (" input Buffer ")
■ low layer quality information is analyzed submodule, and this module is the dynamic base card format, by the main program dynamic load, operates in the independent thread.Major function does, reads " input Buffer " and looks audio content, carries out the low layer quality analysis, and analysis result is saved in output shared drive (" output Buffer ").Through Socket, " output Buffer " content is outputted results to reception server (medium recovery system) simultaneously.The information that the low layer quality information is analyzed submodule to be provided has:
◆ video wavelet transformation domain coefficient
◆ audio frequency FFT coefficient in transform domain
◆ single frames defects detection provisioning information (being used for high layer information analyzing subsystem comprehensive analysis processing)
◆ video essential information (frame mean value, bandwidth, signal to noise ratio)
◆ audio frequency essential information (frame mean value, bandwidth, signal to noise ratio)
■ video defects detection submodule, this module is the dynamic base card format, by the main program dynamic load, operates in the independent thread.This module major function does; Look audio content based on reading " input Buffer "; Analyze submodule preanalysis partial information in conjunction with the low layer quality information, carry out video defective content detection, and testing result is saved in output shared drive (" output Buffer ").Through Socket, " output Buffer " content is outputted results to reception server (medium recovery system) simultaneously.Video defects detection submodule has:
◆ the inefficacy frame defect detects
◆ all kinds of capable inefficacy frames detect, comprise,
● the capable inefficacy frame of I type detects
● the capable inefficacy frame of II type detects.
● the capable inefficacy frame of III type detects
● the capable inefficacy frame of IV type detects.
◆ cut type defects detection.
◆ interframe roll type defects detection.
◆ cross-color type defects detection.
Fig. 2 illustrate main type of this enforcement use-case with and call and derived relation (solid line is " calling "; Dotted line is " derivation "), wherein,
◆ LibSocket.a and Libpthread.a are standard Socket and thread library under the Linux
◆ Thread is a C++ encapsulation to Libpthread
◆ Plugin is derived from by Thread, increases interfaces such as dynamic base loading, environment setting, execution, end
◆ FrameCapture is derived from by Plugin, realizes the video/audio acquisition function
◆ MediaInfo is derived from by Plugin, realizes low layer quality information analytic function
◆ MediaDefect is derived from by Plugin, realizes video defects detection function
◆ MediaAnalysis is a main program, can pass through the Socket Long-distance Control
◆ MTBuffer is responsible for data management.
Fig. 3 illustrates the system architecture of video defects detection.Can know that by figure system's frame defect that at first lost efficacy detects, detect like this frame and be the inefficacy frame, then detect and accomplish; Otherwise carry out different classes of defects detection respectively; At last, testing result is gathered and export.

Claims (3)

1. full-automatic multimedia material defects detection and mass analysis method is characterized in that this method comprises:
1st, the foundation of media materials defect model collection;
2nd, the foundation of media materials quality analysis index set;
3rd, the detection of media materials defective; The detection algorithm of described media materials defective is:
3.1st, inefficacy frame defect model detection algorithm utilizes inter-frame correlation information, detects failpoint set in the frame; According to the distribution and the density of failpoint, judge whether this frame is the inefficacy frame then;
3.2nd, the capable inefficacy frame defect of I type model detection algorithm is 1 dimensional signal with frame greyscale image transitions to be detected, and wherein line number is an independent variable, and every capable grey scale pixel value accumulated value is a dependent variable; On this basis of signals, investigate interframe, line-to-line correlation information, and combine motion compensation in the ranks then, the final inefficacy row of judging such defective that detects;
3.3rd, the capable inefficacy frame defect of II type model detection algorithm is 1 dimensional signal with frame greyscale image transitions to be detected, and wherein line number is an independent variable, and every capable grey scale pixel value accumulated value is a dependent variable; Then on this basis of signals,,, detect defective candidate row in the frame in conjunction with frame-to-frame correlation information according to correlation information in the ranks in the frame; From detecting the row beginning of losing efficacy, search up and down adopts the method for region growing to detect all defect zone in this frame at last;
3.4th, the capable inefficacy frame defect of III type model detection algorithm utilizes line-to-line correlation property and frame-to-frame correlation information, detects candidate row; Because this type of defective possesses displacement in the ranks, when calculating line-to-line correlation property, candidate row is searched in its adjacent ± 5 row intervals, and the correlation maximum between calculating two row is as line-to-line correlation property; This candidate row possesses the characteristics of interior high correlation of row and interframe low correlation; According to area distribution, the degree of correlation of candidate row, confirm the existence zone of such defective then;
3.5th, the capable inefficacy frame defect of IV type model detection algorithm through detecting left side black characteristic area in the frame, goes out the defective candidate regions with image segmentation, and promptly the left side detects the set of the row of black region; Utilize the interframe histogram comparison of candidate regions then, confirm the existence zone of such defective;
3.6th, cut type defect model detection algorithm in frame, detect the linear object of width less than 4 pixels, and binaryzation is as template; On this template basis, utilize the Hough conversion then, detect the x wire shaped object, filter out the linear object of all the other directions; At last, utilize morphology open-close operator to carry out motion compensation, x wire shaped object concentration filter falls because the line that object of which movement causes in the frame stays because the line that defective produces from detecting; Utilize median filter method to filter out isolated pixel at last, stay the position that scratch defects exists;
3.7th, interframe roll type defect model detection algorithm utilizes in the frame correlation in the ranks, the part that two frames are connected before and after detecting; In continuous frame group, follow the tracks of the position of detecting this part then, till this part disappears, thereby obtain the position of frame roll and the frame fragment of rolling thereof;
3.8th, cross-color type defect model detection algorithm is 1 dimensional signal with 2 dimension image transitions, and wherein line number is an independent variable, and every capable grey scale pixel value accumulated value is a dependent variable; Then on this basis, be unit with " OK ", according to frame-to-frame correlation, detect the zone of color exception;
4th, media materials quality analysis; Said media materials mass analysis method is:
4.1st, video signal frame mean value and effective coverage detection method; Frame interior pixel gray value histogram; With its 5% pixel value is decision threshold, investigates laterally and the longitudinal boundary district, if border row or be listed as all pixel values all less than this threshold value; Then be judged as the marginal zone of no signal, remaining area is an active zone; Calculating pixel average gray in active zone is vision signal mean value;
4.2nd, bandwidth of video signal evaluation method at first utilizes FFT by row rated output spectrum, then each row power spectrum in the frame is asked average; Obtain the bandwidth of this two field picture according to the frame inner average power spectrum: the low frequency of bandwidth is made as 0, and high frequency points is defined as the lower limit that makes average power spectra reach 95% frequency;
4.3rd, vision signal signal-to-noise ration estimation method at first utilizes the Daubechies small echo to carry out multiple dimensioned decomposition picture frame; Adopt two kinds of approach to carry out Noise Estimation according to the wavelet coefficient after decomposing is comprehensive: a kind of method that adopts the noise singular point, promptly investigate the correlation of the different scale coefficient of wavelet decomposition of same pixel point and confirm singular point; Another kind utilizes the method for threshold decision, and the noise variance of promptly estimating according to previous frame is as threshold parameter, investigates the coefficient after the wavelet decomposition; In conjunction with the result of two kinds of Noise Estimation, adopt its combined information, estimated noise energy calculates the signal to noise ratio of vision signal at last;
4.4th, audio signal frame mean value calculation method, audio signal mean value are defined as the mean value of amplitude of the audio fragment of corresponding certain frame of video;
4.5th, audio signal bandwidth evaluation method, audio signal bandwidth calculate based on the FFT conversion, the frequency between the power spectrum 5%~95% after the audio fragment FFT conversion are defined as the bandwidth of this audio fragment;
4.6th, audio signal signal-to-noise ration estimation method supposes that at first the HFS beyond the audio bandwidth is a noise bandwidth, utilizes audio bandwidth information then, and the audio power spectrum calculates noise power spectrum, thereby calculates the audio frequency signal to noise ratio;
5th, preserve the detection and the quality analysis result of media materials defective.
2. method according to claim 1 is characterized in that described media materials defect model collection of the 1st step comprises:
1.1st, inefficacy frame defect model, the video frame content of this model lacks fully, is substituted by some rambling signals;
1.2nd, the capable inefficacy frame defect of I type model, the video defective of this model is a unit with " OK ", impaired capable information lacks fully, non-impaired capable information keeps fully, and the row of damage with do not have special relevancy in the ranks;
1.3rd, the capable inefficacy frame defect of II type model, the video defective of this model is a unit with " OK ", impaired capable information lacks fully, and in the ranks information correlation is extremely strong in the affected area;
1.4th, the capable inefficacy frame defect of III type model, the video defective of this model is a unit with " OK ", impaired capable information lacks fully, and the capable internal information regularity of affected area squints to the right, forms the black triangle of a no signal thus on the affected area left side;
1.5th, the capable inefficacy frame defect of IV type model; The video defective characteristics of this model move to left for whole frame; Stay a no signal black region on whole frame the right, defective is a unit with " OK " simultaneously, impaired capable message part disappearance; And affected area is with respect to regional parallel the moving to right of full frame, and impaired capable left part also has a no signal black region simultaneously;
1.6th, cut type defect model, the video defective characteristics of this model are not lost for whole frame information fully, but increase the horizontal cut shape content of fixed-site or variation on the video image;
1.7th, interframe roll type defect model, the characteristics of the video defective of this model do, shows the parts of images of adjacent two frames in the frame simultaneously, and the motion up or down of rolling in time of two interframe partitioning portions, time remaining at 0.5 second between the several seconds;
1.8th, cross-color type defect model, the notable feature of the video defective of this model be a certain be that the field color of unit is unusual with " OK ", its reason is Sequential Color and Memory system formula signal section phase information disappearance.
3. method according to claim 1 is characterized in that described media materials quality analysis index set of the 2nd step comprises:
2.1st, video signal frame mean value and effective coverage are detected;
2.2nd, the bandwidth of video signal;
2.3rd, vision signal signal to noise ratio;
2.4th, audio signal frame mean value;
2.5th, audio signal bandwidth;
2.6th, audio signal signal to noise ratio.
CN201110167301XA 2011-06-21 2011-06-21 Automatic multimedia material defect detection and quality analysis method Expired - Fee Related CN102227127B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110167301XA CN102227127B (en) 2011-06-21 2011-06-21 Automatic multimedia material defect detection and quality analysis method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110167301XA CN102227127B (en) 2011-06-21 2011-06-21 Automatic multimedia material defect detection and quality analysis method

Publications (2)

Publication Number Publication Date
CN102227127A CN102227127A (en) 2011-10-26
CN102227127B true CN102227127B (en) 2012-11-14

Family

ID=44808082

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110167301XA Expired - Fee Related CN102227127B (en) 2011-06-21 2011-06-21 Automatic multimedia material defect detection and quality analysis method

Country Status (1)

Country Link
CN (1) CN102227127B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10659817B2 (en) 2013-07-15 2020-05-19 Hfi Innovation Inc. Method of sample adaptive offset processing for video coding
CN105808719B (en) * 2016-03-07 2019-09-27 广州酷狗计算机科技有限公司 Audio-frequency information recommended method and device
CN110750451A (en) * 2019-09-23 2020-02-04 惠州市德赛西威汽车电子股份有限公司 Vehicle-mounted multimedia UI (user interface) material automatic identification and detection system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0706496D0 (en) * 2007-04-03 2007-05-09 British Telecomm Method and system for video quality assessment
CN100559880C (en) * 2007-08-10 2009-11-11 中国传媒大学 A kind of highly-clear video image quality evaluation method and device based on self-adapted ST area
CN100584047C (en) * 2008-06-25 2010-01-20 厦门大学 Video quality automatic evaluation system oriented to wireless network and evaluation method thereof
CN101426150B (en) * 2008-12-08 2011-05-11 青岛海信电子产业控股股份有限公司 Video image quality evaluation method and system
CN101695141B (en) * 2009-10-20 2012-05-23 浙江大学 Method and device for evaluating video quality
CN102006499B (en) * 2010-12-10 2012-10-24 北京中科大洋科技发展股份有限公司 Method for detecting video and audio quality of digital television program file

Also Published As

Publication number Publication date
CN102227127A (en) 2011-10-26

Similar Documents

Publication Publication Date Title
CN111191576B (en) Personnel behavior target detection model construction method, intelligent analysis method and system
CN111784633A (en) Insulator defect automatic detection algorithm for power inspection video
CN104869421B (en) Saliency detection method based on overall motion estimation
CN102227127B (en) Automatic multimedia material defect detection and quality analysis method
CN103067702B (en) Video concentration method used for video with still picture
CN105791814A (en) Image-processing-technology-based monitoring video quality detection method and apparatus
CN103686148A (en) Automatic video image resolution detecting method based on image processing
CN106303158A (en) A kind of striped method for detecting abnormality in video image
CN104093021A (en) Monitoring video compression method
CN111027398A (en) Automobile data recorder video occlusion detection method
CN104539936A (en) System and method for monitoring snow noise of monitor video
CN101527786B (en) Method for strengthening definition of sight important zone in network video
CN103024328B (en) A kind of method improving screenshot quality of digital video recorder
KR101149522B1 (en) Apparatus and method for detecting scene change
CN102572499A (en) Non-reference image quality evaluation method based on wavelet-transformation multi-resolution prediction
CN101472177B (en) Detection method for block effect
CN112686186A (en) High-altitude parabolic recognition method based on deep learning and related components thereof
CN101841713A (en) Video coding method for reducing coding code rate and system
CN110019060B (en) Method and device for automatically synchronizing locomotive video file and operation record file
CN101459850A (en) Image compression quality prediction method and system
CN102098450B (en) Method for automatically detecting real-time signals or streams to realize full-automatic recording
CN104125430A (en) Method and device for detecting video moving objects as well as video monitoring system
Dosselmann et al. A prototype no-reference video quality system
CN115359399A (en) Underground drainage pipeline defect detection and identification method based on improved YOLOX
CN110798680A (en) Single-frame no-reference self-adaptive video snowflake noise detection method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20121114

Termination date: 20130621