CN102984539B - VGA video signal pattern recognition method - Google Patents

VGA video signal pattern recognition method Download PDF

Info

Publication number
CN102984539B
CN102984539B CN 201210522595 CN201210522595A CN102984539B CN 102984539 B CN102984539 B CN 102984539B CN 201210522595 CN201210522595 CN 201210522595 CN 201210522595 A CN201210522595 A CN 201210522595A CN 102984539 B CN102984539 B CN 102984539B
Authority
CN
Grant status
Grant
Patent type
Prior art keywords
vga
video
signal
pattern
recognition
Prior art date
Application number
CN 201210522595
Other languages
Chinese (zh)
Other versions
CN102984539A (en )
Inventor
不公告发明人
Original Assignee
四川爱特尔科技有限公司
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
Grant date

Links

Abstract

本发明公开了一种VGA视频信号模式识别方法,通过硬件来测量VGA信号的水平同步信号和垂直同步信号以获取HPer、VPer、VTotal、HPolarity及VPolarity五个信号参数,同时在标准VGA模式表中再新增加3个参数HPolarity(水平同步极性)、VPolarity(垂直同步极性)及ValidSyncPolarity(极性有效标志),将获取的HPer、VPer、VTotal、HPolarity及VPolarity五个信号参数与标准模式表中的参数进行查找匹配,从而得到准确的视频信号模式。 The present invention discloses a pattern recognition method of the VGA video signal, measuring the level of the VGA signal to the synchronization signal and vertical synchronization signals to acquire hardware HPer, VPer, VTotal, HPolarity VPolarity five signals and parameters, while the standard VGA mode table then the newly added three parameters HPolarity (horizontal sync polarity), VPolarity (vertical sync polarity) and ValidSyncPolarity (polar active flag), the acquired HPer, VPer, VTotal, HPolarity VPolarity five signal parameters and the standard mode table the parameters to find a match, to obtain an accurate video signal pattern. 本发明针对传统的VGA视频信号模式识别方法进行了改进,提高了VGA视频信号模式识别的准确率,以此也提高了VGA视频信号数字化处理之后的显示效果。 The present invention is a conventional VGA video signal for the pattern recognition method is improved to improve the accuracy of pattern recognition VGA video signal, thereby also improving the display effect of the VGA video signal after digital processing. <b/> <B />

Description

—种VGA视频信号模式识别方法 - kind of VGA video signal pattern recognition method

技术领域 FIELD

[0001] 本发明涉及一种模拟视频信号的采集及模拟视频信号的数字处理技术领域,尤其涉及到一种VGA视频信号模式识别方法。 [0001] The present invention relates to a technical field of digital processing an analog video signal acquisition and analog video signals, in particular, relates to a pattern recognition method of the VGA video signal. .

背景技术 Background technique

[0002] 在对VGA视频信号进行数字化处理时需要准确的识别模式,而一个VGA视频信号的模式可以由行频(HPer)、场频(VPer)、每场图像的总行数(VTotal)、每行数据的总像素个数(HTotal)四个信号参数进行唯一确定,即当这四个参数确定时,VGA视频信号的模式便已确定。 [0002] At the time of the VGA video signal is digitized require accurate recognition mode, and a mode VGA video signal may be frequency by the row (HPER), field frequency (Vper), number of rows per field image (Vtotal), each the total number of pixels (HTOTAL) line data uniquely determined four signal parameters, i.e., when it is determined that the four parameters, VGA video mode signal is already determined.

[0003] 在现有技术中,主要是通过硬件直接测量VGA视频信号的HPer、VPer及VTotal三个信号参数,并用这三个参数在一个标准模式表中去查找与其参数一致或最接近的VGA视频信号模式,然后以找到的模式参数来相应配置A/D转化器件,并以此对转换后的数据进行处理。 [0003] In the prior art, the main video signal is measured directly by hardware VGA HPer, VPer VTotal three signals and parameters, and using these three parameters in a standard pattern table to find the closest or parameters consistent with VGA a video signal pattern, and then to find the model parameter configuration corresponding a / D conversion device, and thus the data after conversion processing. 但是,在现有技术中采用此种方法,应用时会存在这些缺陷:由于VGA视频信号的4个信号参数中只有3个信号参数可以直接通过硬件测量获取,因此对部分VGA视频模式可能识别不准确,识别为与其近似的一种VGA视频模式,这样就会导致采样数据错误,最后导致显示效果不理想。 However, with such a method in the prior art, the application of these defects exist: Due to the four signal parameters VGA video signal only three signal parameters can be measured directly by hardware, so the part is not possible to identify the VGA video mode accuracy, which is approximated identified as a VGA video mode so that the sample will lead to data errors, leading to unsatisfactory display. 出现这种错误的原因主要是在标准VGA视频模式中存在一些近似模式,所谓近似模式就是它们的HPer、VPer及VTotal很接近,而HTotal存在较大差异,并且不同显卡输出时序会有微小差异,导致直接用硬件测量获取的这三个信号参数在标准VGA模式表中查找时可能会识别为与其近似的模式。 This error occurs because there are some approximate pattern mainly in the standard VGA video mode, the so-called approximation model is their HPer, VPer and VTotal very close, and HTotal there is a big difference, and different graphics output timing will be minor differences, directly in hardware resulting in the three measured parameters may be identified as a signal which is approximated in the standard mode VGA mode lookup table. 而在很多近似模式中它们的时序参数是有很大区别的,如1280*768@60Ηζ与1366*768@60Ηζ,这两种模式的HPer,VPer, VTotal非常接近,但是水平方向的前肩HFrontPorch、后肩HBackPorch、同步宽度HSyncWidth,垂直方向的前肩VFrontPorch、后肩VBackPorch、同步宽度VSyncWidth相差较大,所以常规方法无法对VGA视频信号模式进行非常准确的识别,而模式识别错误则会导致视频信号的采集及处理发生错误。 In many similar patterns in their timing parameters are very different, such as 1280 * 768 @ 60Ηζ with 1366 * 768 @ 60Ηζ, HPer these two modes, VPer, VTotal very close, but the horizontal front shoulder HFrontPorch after shoulder HBackPorch, sync width HSyncWidth, the front vertical shoulder VFrontPorch, the shoulder VBackPorch, VSyncWidth sync width difference is large, the conventional method can not be very accurate recognition of the VGA video signal pattern, and the error will cause the video pattern recognition signal acquisition and processing errors.

发明内容 SUMMARY

[0004] 为了克服现有技术中存在的问题,本发明提供了一种VGA视频信号模式识别方法,提高了VGA视频信号模式识别的准确率,以此也提高了VGA视频信号数字化处理之后的显示效果。 [0004] In order to overcome the problems in the prior art, the present invention provides a VGA video signal pattern recognition method improves the accuracy of the VGA video signal pattern recognition, thereby also improving the display of the VGA video signal after digitizing effect.

[0005] 为解决上述问题,本发明采用了如下技术方案。 [0005] In order to solve the above problems, the present invention employs the following technical solution.

[0006] 经过对标准VGA模式表中的所有VGA视频模式进行对比,发现在近似模式(HPer、VPer、VTotal三个信号参数非常接近,而HTotal差异较大的模式)中,水平同步极性HPolariy和垂直同步极性VPolarity有差异,因此可以通过额外的测量这两个信号参数来解决此问题,具体步骤如下。 [0006] After all the standard VGA video modes VGA mode table found by comparing the approximation mode (HPer, VPer, VTotal three signal parameters are very close, and the larger the difference HTotal mode), the horizontal sync polarity HPolariy and vertical sync polarity VPolarity differences, so this problem can be solved by additional measurement parameters of these two signals, the following steps.

[0007] I)、测量HPer、VPer、VTotal信号参数的同时测量HPolariy和VPolarity信号参数。 [0007] I), measured HPer, VPer, measured signal parameters at the same HPolariy and VPolarity VTotal signal parameters.

[0008] 2)、在标准VGA模式表中加入HPolarity、VPolarity这两个信号参数和一个极性有效标志ValidSyncPolarity,此标志量若为I则表示此模式在模式表中存在近似模式,若为O则表示不存在近似模式。 [0008] 2) added to the standard VGA mode table HPolarity, VPolarity two signal parameters and a valid flag polarity ValidSyncPolarity, this flag indicates if the amount of this mode I is present in the approximate pattern pattern table, as if O it indicates the absence of an approximate model.

[0009] 3)、使用测量到的HPer、VPer、VTotal信号参数在标准VGA模式表中进行查找匹配,当匹配到最接近的模式时,检测此模式的标志量ValidSyncPolarity是否为I,如果为O则表明已经识别到最佳模式,如果为I则表明此模式存在近似模式。 [0009] 3), using the measured HPer, VPer, VTotal signal parameters to find the matching table in a standard VGA mode, when the closest match to the pattern, the amount of this mode is detected whether the flag ValidSyncPolarity I, if O it indicates the best mode has been identified, if I indicates the presence of approximately mode this mode.

[0010] 4)、当通过上一步发现存在近似模式时,再次判断VGA视频信号中的HPolarity和VPolarity信号参数是否与标准VGA模式表中的HPolarity和VPolarity信号参数相同,如果相同则表明已识别到最佳模式,如果不相同则在标准VGA模式表中继续查找,直至查找到与HPolarity、VPolarity两个参数相同的最佳模式。 [0010] 4), when passing through the step found similar patterns, again determined VGA video signal HPolarity and VPolarity signal parameters are the same as the standard VGA mode table HPolarity and VPolarity signal parameters, if the same indicates that has recognized best mode, if not identical then searched for in the standard VGA mode table, until you find the HPolarity, VPolarity two identical parameters the best mode.

[0011] 本发明针对传统的VGA视频信号模式识别方法进行了改进,可以识别到HPer、VPer, VTotal相近而HTotal不同的模式,并且识别方法非常简单,极大的提高了VGA视频信号模式识别的准确率,以此提高了VGA视频信号数字化处理之后的显示效果。 [0011] The present invention is a conventional VGA video signal for the pattern recognition method is improved, it is possible to identify HPer, VPer, VTotal similar but different modes HTotal and recognition method is very simple, greatly improves the VGA video signal pattern recognition accuracy, thereby improving the display effect of the VGA video signal after digital processing.

附图说明 BRIEF DESCRIPTION

[0012] 图1为本发明具体实施方式流程图。 [0012] DETAILED DESCRIPTION FIG 1 a flow chart of the present invention.

具体实施方式 detailed description

[0013] 为了使本技术领域的人员更好的理解本发明实施方式的方案,下面结合附图对本发明的具体实施方式作进一步详细的说明。 [0013] In order to make those skilled in the art better understand the embodiments of the present invention, the following drawings of specific embodiments of the present invention will be further described in detail in conjunction.

[0014] 一般的标准VGA模式表中必要的参数有:行频HPer、水平方向前肩HFrontPorch、水平同步宽度HSyncWidth、水平方向后肩HBackPorch、水平有效像素个数HActivePixel、场频VPer、垂直方向前肩VFrontPorch、垂直同步宽度VSyncWidth、垂直方向后肩VBackPorch、每场数据的有效行数VActiveLine等这些信号参数。 [0014] General Standard VGA mode table of required parameters are: line frequency HPer, horizontal front shoulder HFrontPorch, the horizontal sync width HSyncWidth, the horizontal shoulder HBackPorch, the number of horizontal effective pixels HActivePixel, field frequency VPer, the vertical direction of the front shoulder VFrontPorch, the width of the vertical synchronizing signal parameters VSyncWidth, vertical rear shoulder VBackPorch, the number of effective lines per field data VActiveLine the like. 本方法则在标准VGA模式表中再新增加3个信号参数:水平同步极性HPolarity、垂直同步极性VPolarity及极性有效标志ValidSyncPolarity(此标志量用I和O表示,I表示在此模式表中存在近似模式,O表示不存在近似模式)。 This method is the standard VGA mode table 3 and then newly added signal parameters: a horizontal sync polarity HPolarity, vertical sync valid flag polar and polar VPolarity ValidSyncPolarity (this flag is represented by I and the amount of O, I indicates the pattern table presence approximation mode, O for approximate pattern does not exist).

[0015] 具体的,参见图1,本发明实施流程如下。 [0015] Specifically, referring to Figure 1, the process embodiment of the present invention is as follows.

[0016] I)、设置模式匹配时的误差允许范围Tolerance,一般VTotal的误差范围为3行,HPer的误差范围为lOOnS,VPer的误差范围为2uS。 [0016] I), a pattern matching error allowable range setting Tolerance, the error range is generally VTotal 3 rows, HPer error range lOOnS, the error range is VPer 2uS.

[0017] 2)、通过硬件来测量VGA信号的水平同步信号和垂直同步信号以获取HPer、VPer、VTotal、HPolarity 及VPolarity 五个信号参数。 [0017] 2), measured by hardware VGA signal horizontal sync signal and a vertical synchronizing signal to obtain HPer, VPer, VTotal, HPolarity VPolarity five signals and parameters.

[0018] 3)、设置标准VGA模式表中有X项,从标准VGA模式表中N=O项开始比较HPer、VPer,VTotal是否在允许误差范围内,如果不在允许误差范围内则继续比较N=N+1 (N〈X)项模式,如果在允许误差范围内则检查此模式的ValidSyncPolarity是否为1,如果不为I则此模式便为最佳显示模式,如果为I则继续判断HPolarity和VPolarity信号参数是否与标准VGA模式表中的HPolarity和VPolarity信号参数相同,如果相同则此模式为最佳显示模式,如果不同则放弃此模式继续比较下一个模式,反复直至找到最佳VGA信号模式。 [0018] 3), set the standard VGA mode table has X entries from the standard VGA mode table N = O item starts comparison HPer, VPer, VTotal is within the allowable error range, if not within the permissible error range continues comparing N = N + 1 (N <X) entry mode, if the allowable error range in this mode, it is checked whether the ValidSyncPolarity 1, if the mode is not an I will display the best mode, if it is determined that the continued and I HPolarity VPolarity signal parameter is the same as the standard VGA mode table and VPolarity HPolarity signal parameters, if the same pattern as the best in this display mode, this mode is discarded if different comparison continues to the next mode, the best mode signal is repeated until you find the VGA.

[0019] 按照本发明具体实施例的方法对VGA视频信号模式进行识别,方法简单,提高了VGA视频信号模式识别的准确率,以此也提高了VGA视频信号数字化处理之后的显示效果,适合VGA视频信号的采集及VGA视频信号的数字转化技术领域广泛使用。 [0019] The identification of the VGA video signal patterns according to a method embodiment of the present invention, the method is simple, improves the accuracy of the VGA video signal pattern recognition, thereby also improving the display effect after the VGA video signal is digitized, for VGA VGA video signals and digital acquisition of the video signal conversion BACKGROUND widely used.

[0020] 本发明不局限于上述具体实施方式,所属技术领域的技术人员,在不脱离本发明技术方案范围内,在形式上和细节上对本发明做出各种变化,均为本发明的保护范围。 [0020] The present invention is not limited to the above specific embodiments, those skilled in the art, without departing from the technical scope of the present invention, the present invention is that various changes in form and details of the invention are the protection range.

Claims (1)

  1. 1.一种VGA视频信号模式识别方法,其特征在于,设置模式匹配时HPer、VPer, VTotal信号参数的误差允许范围;其步骤包括: 1)、测量HPer、VPer、VTotal信号参数的同时测量HPolariy和VPolarity信号参数; 2)、在标准VGA模式表中加入HPolariy、VPolarity这两个信号参数和一个极性有效标志ValidSyncPolarity,此标志量若为I则表示此模式在模式表中存在近似模式,若为O则表示不存在近似模式; 3)、使用测量到的HPer、VPer、VTotal信号参数在标准VGA模式表中进行查找匹配,当匹配到最接近的模式时,检测此模式的标志量ValidSyncPolarity是否为1,如果为O则表明已经识别到最佳模式,如果为I则表明此模式存在近似模式; 4)、当通过上一步发现存在近似模式时,在次判断VGA视频信号中的HPolariy和VPolarity信号参数是否与标准VGA模式表中的HPolariy和VPolarity信号参数相同,如果相同则表明已识别 A VGA video signal pattern recognition method, wherein, when pattern matching is provided HPer, VPer, VTotal error signal parameters permissible range; comprising the steps of: 1), HPER measurement, measurement HPolariy VPer, while signal parameters VTotal and VPolarity signal parameters; 2), added to the standard VGA mode table HPolariy, VPolarity two signal parameters and a valid flag polarity ValidSyncPolarity, this flag indicates if the amount of this mode I is present in the approximate pattern pattern table, if indicates the absence of O approximate pattern; 3), using the measured HPer, VPer, VTotal signal parameters to find the matching table in a standard VGA mode, when the closest match to the pattern detection flag whether the amount of this mode ValidSyncPolarity 1, O indicates that if the best mode has been identified, if I indicates the presence of approximately mode this mode; 4), when the approximation found by the previous step mode, the secondary VGA video signal is determined and VPolarity HPolariy HPolariy signal parameter is the same as the standard VGA signal parameters and VPolarity pattern table, and if the same indicates that the identified 最佳模式,如果不相同则在标准VGA模式表中继续查找,直到查找到与HPoIariy、VPolarity两个参数相同的最佳模式; 其中,HPer为行频;VPer为场频;VTotal为每场图像的总行数;HPolariy为水平同步极性;VPolarity为垂直同步极性。 Best mode, if not identical then searched for in the standard VGA mode table until the look and HPoIariy, VPolarity two identical parameters the best mode; wherein, HPER line frequency; Vper field rate; per field image Vtotal the total number of rows; HPolariy horizontal sync polarity; VPolarity vertical sync polarity.
CN 201210522595 2012-12-08 2012-12-08 VGA video signal pattern recognition method CN102984539B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201210522595 CN102984539B (en) 2012-12-08 2012-12-08 VGA video signal pattern recognition method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201210522595 CN102984539B (en) 2012-12-08 2012-12-08 VGA video signal pattern recognition method

Publications (2)

Publication Number Publication Date
CN102984539A true CN102984539A (en) 2013-03-20
CN102984539B true CN102984539B (en) 2015-06-17

Family

ID=47858220

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201210522595 CN102984539B (en) 2012-12-08 2012-12-08 VGA video signal pattern recognition method

Country Status (1)

Country Link
CN (1) CN102984539B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592358A (en) * 2015-12-29 2016-05-18 合肥宏晶微电子科技股份有限公司 Software and hardware cooperative VGA mode identification method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0399649A2 (en) * 1989-05-22 1990-11-28 Hewlett-Packard Company Microprocessor controlled universal video monitor
US6504533B1 (en) * 1999-04-19 2003-01-07 Sony Corporation Image display apparatus
KR20040025408A (en) * 2002-09-19 2004-03-24 엘지전자 주식회사 Method and apparatus for automatic sensing input mode of a display device
CN1602071A (en) * 2003-09-25 2005-03-30 四川长虹电器股份有限公司 Method of auto recognizing high resolution TV and personal computer signal format
CN101329857A (en) * 2007-06-22 2008-12-24 索尼株式会社 Picture signal processing device and picture signal processing method
CN101944007A (en) * 2010-09-29 2011-01-12 广东威创视讯科技股份有限公司 Method for automatically identifying and correcting VGA signal display

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1294479C (en) * 2004-03-25 2007-01-10 四川长虹电器股份有限公司 Auto recognition method of simulating video signal mode

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0399649A2 (en) * 1989-05-22 1990-11-28 Hewlett-Packard Company Microprocessor controlled universal video monitor
US6504533B1 (en) * 1999-04-19 2003-01-07 Sony Corporation Image display apparatus
KR20040025408A (en) * 2002-09-19 2004-03-24 엘지전자 주식회사 Method and apparatus for automatic sensing input mode of a display device
CN1602071A (en) * 2003-09-25 2005-03-30 四川长虹电器股份有限公司 Method of auto recognizing high resolution TV and personal computer signal format
CN101329857A (en) * 2007-06-22 2008-12-24 索尼株式会社 Picture signal processing device and picture signal processing method
CN101944007A (en) * 2010-09-29 2011-01-12 广东威创视讯科技股份有限公司 Method for automatically identifying and correcting VGA signal display

Also Published As

Publication number Publication date Type
CN102984539A (en) 2013-03-20 application

Similar Documents

Publication Publication Date Title
US20130050116A1 (en) Touch sensing device
US6504533B1 (en) Image display apparatus
CN102026003A (en) Method and device for correcting colors of multi-screen splicing wall
CN101872004A (en) Calibrating test device of electronic type transformer checking instrument
CN102033415A (en) Stereoscopic digital imaging synchronization device and method
Lü et al. Leaf area measurement based on image processing
US20080297511A1 (en) Mode detecting circuit and method thereof
CN102158728A (en) Delay test method for video image processing system
CN101980292A (en) Regular octagonal template-based board camera intrinsic parameter calibration method
CN101742357A (en) Method for measuring audio/video synchronous error of digital television device
CN102043084A (en) Method for detecting resistive current of lightning arrester
CN102061517A (en) Czochralski single crystal silicon diameter measurement method
CN104469351A (en) Method for detecting LVDS video signals generated by video source
CN103196574A (en) Method and device for measuring environment temperatures
CN201935964U (en) Automatic intelligent detection device for quartz oscillator instrument
CN201594889U (en) Digital television drive board debugging device
CN102435391A (en) Apparatus for detecting precision of pressure scan system sensor in real time
CN101566676A (en) Magnetic field measurement system and method for measuring magnetic field
CN102419947A (en) Color temperature debugging method of liquid crystal display screen
CN101063660A (en) Method for detecting textile defect and device thereof
CN102499471A (en) Cigarette loose-end detection method based on machine vision technology
CN103698602A (en) Large dynamic high-precision synchronization continuous frequency measurement method
US20150116256A1 (en) Capacitive touch device and sensing method thereof
CN104299215A (en) Feature point calibrating and matching image splicing method
CN201689168U (en) Calibration test device of an electronic transformer calibration instrument

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model