Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
CN106067966B - Video 3 dimensional format automatic testing method - Google Patents
[go: Go Back, main page]

CN106067966B - Video 3 dimensional format automatic testing method - Google Patents

Video 3 dimensional format automatic testing method Download PDF

Info

Publication number
CN106067966B
CN106067966B CN201610374718.6A CN201610374718A CN106067966B CN 106067966 B CN106067966 B CN 106067966B CN 201610374718 A CN201610374718 A CN 201610374718A CN 106067966 B CN106067966 B CN 106067966B
Authority
CN
China
Prior art keywords
disparity
format
video
counter
less
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.)
Active
Application number
CN201610374718.6A
Other languages
Chinese (zh)
Other versions
CN106067966A (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.)
Shanghai Yiweishi Technology Co Ltd
Original Assignee
Shanghai Yiweishi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Yiweishi Technology Co Ltd filed Critical Shanghai Yiweishi Technology Co Ltd
Priority to CN201610374718.6A priority Critical patent/CN106067966B/en
Publication of CN106067966A publication Critical patent/CN106067966A/en
Application granted granted Critical
Publication of CN106067966B publication Critical patent/CN106067966B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/128Adjusting depth or disparity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/10Processing, recording or transmission of stereoscopic or multi-view image signals
    • H04N13/106Processing image signals
    • H04N13/139Format conversion, e.g. of frame-rate or size
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

本发明揭示了一种视频三维格式自动检测方法,利用了同一视频节目格式唯一这一事实条件,只是在每个新节目时做必要的计算/检测。同时,本发明方法根据3D视频垂直视差和水平视差的特点,通过提取图像角点的特征点、特征点集匹配的方式来快速估计视差,从而实现格式的初步判断;再次在时间域上进行多帧投票判别,最后输出当前视频节目的格式,控制显示装置按照检测出来的视频格式进行播放。使用该方法在保证高的检测准确率的前提下,大大减少了视频格式检测的计算复杂度。使得本发明的自动检测视频节目格式方法相比现有技术,特别适用于移动设备(平板电脑、笔记本电脑)这类对功耗、制造成本要求非常苛刻的系统。

This invention discloses an automatic video 3D format detection method that leverages the uniqueness of the format for the same video program, performing only necessary calculations/detection for each new program. Simultaneously, based on the characteristics of vertical and horizontal parallax in 3D video, this method rapidly estimates parallax by extracting feature points from image corners and matching feature point sets, thus achieving a preliminary format determination. Further, multi-frame voting is performed in the time domain to determine the format of the current video program, and finally, the format of the current video program is output, controlling the display device to play according to the detected video format. This method significantly reduces the computational complexity of video format detection while maintaining high detection accuracy. Therefore, compared to existing technologies, this automatic video program format detection method is particularly suitable for systems with stringent requirements for power consumption and manufacturing costs, such as mobile devices (tablets, laptops).

Description

视频三维格式自动检测方法Automatic Detecting Method of Video 3D Format

技术领域technical field

本发明属于视频格式检测技术领域,涉及一种视频格式检测方法,尤其涉及一种视频三维格式自动检测方法。The invention belongs to the technical field of video format detection, and relates to a video format detection method, in particular to a video three-dimensional format automatic detection method.

背景技术Background technique

随着三维(3D)视频的影片在视频网站上越来越普及和3D数字电视节目的开播,3D视频数量将成爆发式增长。在这些3D视频中有一大类是将3D内容排列2D帧中,以便于现有2D显示系统兼容。根据3D子帧在2D帧中的排列格式,此类3D视频分为以下几种格式:Along with the film of three-dimensional (3D) video becomes more and more popular on the video website and 3D digital television program broadcasts, the quantity of 3D video will become explosive growth. A large category of these 3D videos is to arrange 3D content in 2D frames so as to be compatible with existing 2D display systems. According to the arrangement format of 3D subframes in 2D frames, such 3D videos are divided into the following formats:

(1)左右3D格式(SBS):3D左右视图并排排列在2D帧中;(1) Left and right 3D format (SBS): 3D left and right views are arranged side by side in 2D frames;

(2)上下3D格式(TB):3D左右视图排列在2D帧中的上部和下部;(2) Top and bottom 3D format (TB): 3D left and right views are arranged in the upper and lower parts of the 2D frame;

(3)行交织3D格式(LI):交织3D左右视图的行让左右视图排列在2D帧中;(3) Line-interleaved 3D format (LI): Interleave the lines of the 3D left and right views so that the left and right views are arranged in a 2D frame;

(4)列交织3D格式(CI):交织3D左右视图的列让左右视图排列在2D帧中;(4) Column interleaved 3D format (CI): Interleave the columns of the 3D left and right views so that the left and right views are arranged in a 2D frame;

(5)方格-交错3D格式(CB):以方格模式交错让3D左右视图排列在2D帧中;(5) Grid-interleaved 3D format (CB): stagger the 3D left and right views in a 2D frame in a grid pattern;

(6)方格-并排3D格式(CBS):以方格模式让3D左右视图并排排列在2D帧中;(6) Grid-side-by-side 3D format (CBS): 3D left and right views are arranged side by side in a 2D frame in grid mode;

(7)2D+深度格式(2D+D):将2D子帧和深度信息子帧并排排列在2D帧中。(7) 2D+depth format (2D+D): 2D subframes and depth information subframes are arranged side by side in a 2D frame.

其中,左右3D格式和上下3D格式是最常见的2种3D格式。与此同时,2D视频内容将长期(并一直)存在。如何自动检测视频节目格式是2D还是3D,若是3D视频格式,又属于3D格式哪种,对于正确显示是不可缺少的。Among them, the left-right 3D format and the top-bottom 3D format are the two most common 3D formats. Meanwhile, 2D video content is here to stay (and always will). How to automatically detect whether the video program format is 2D or 3D, and if it is a 3D video format, which 3D format it belongs to is indispensable for correct display.

同时根据现有视频节目制作的惯例,每个节目的格式都是确定并唯一的。要么是2D视频,要么是3D视频采用左右格式,要么是3D视频采用上下格式。不存在一个节目里面包含多种视频格式。At the same time, according to the existing practice of video program production, the format of each program is determined and unique. Either 2D video, or 3D video in side-to-side format, or 3D video in top-bottom format. There is no such thing as a program that contains multiple video formats.

同时为保证观看的舒适性,三维视频内容制作时除了要求左右视图的亮度/色度等各方面特征具有高度一致性,还只允许存在水平视差,并且水平视差必须控制在一定范围,只有这样的左右图像对才能被融合成单一的立体图像;否则人的眼睛和大脑就无法协调晶状体调节、双眼会聚与双眼视差异多种生理立体视觉因素所提供的深度信息之间的关系,将左、右图像融合成单一的立体图像,其结果会给观看者造成很大的不舒适感。At the same time, in order to ensure viewing comfort, in addition to requiring a high degree of consistency in the brightness/chromaticity of the left and right views when producing 3D video content, only horizontal parallax is allowed, and the horizontal parallax must be controlled within a certain range. The left and right image pairs can be fused into a single stereoscopic image; otherwise, the human eye and the brain cannot coordinate the relationship between the depth information provided by various physiological stereoscopic factors such as lens adjustment, binocular convergence, and binocular vision difference. The images are fused into a single stereoscopic image, and the result is a great deal of discomfort for the viewer.

有鉴于此,如今迫切需要设计一种新的三维视频格式检测方式,以便克服现有格式检测方式存在的上述缺陷。In view of this, there is an urgent need to design a new 3D video format detection method in order to overcome the above-mentioned defects in the existing format detection methods.

发明内容Contents of the invention

本发明所要解决的技术问题是:提供一种视频三维格式自动检测方法,可提高检测准确率,同时减少视频格式检测的计算复杂度。The technical problem to be solved by the present invention is to provide an automatic detection method for a video three-dimensional format, which can improve the detection accuracy and reduce the computational complexity of video format detection.

为解决上述技术问题,本发明采用如下技术方案:In order to solve the problems of the technologies described above, the present invention adopts the following technical solutions:

一种视频三维格式自动检测方法,其特征在于,所述检测方法包括如下步骤:A method for automatic detection of a video three-dimensional format, characterized in that the detection method comprises the following steps:

步骤S1.新视频节目开始,对第一计数器、第二计数器清零;Step S1. When a new video program starts, the first counter and the second counter are cleared;

步骤S2.获取一帧图像,对输入图像进行视图划分;按左右3D格式化,第一左视图在左边,第一右视图在右边;按上下3D格式化,第二左视图在上边,第二右视图在下边;Step S2. Obtain a frame of image, and divide the input image into views; format according to left and right 3D, the first left view is on the left, and the first right view is on the right; according to up and down 3D format, the second left view is on the top, and the second The right view is below;

步骤S3.检测各个子区域的特征点,采用图像中的角点作为特征点进行检测,角点检测方法采用成熟的SUSAN或者Harris算法;得到第一左视图区域、第一右视图区域、第二左视图区域、第二右视图区域各自的角点集合C11、C12、C21、C22;Step S3. Detect the feature points of each sub-region, and use the corner points in the image as feature points for detection. The corner point detection method adopts mature SUSAN or Harris algorithm; obtain the first left view area, the first right view area, the second Corner sets C11, C12, C21, C22 of the left view area and the second right view area respectively;

步骤S4.全图角点集合用集合{C11,C12}近似,判断该集合中角点数目是否大于第一预设阈值;若是则认为是有效帧,执行步骤S5,否则执行步骤S2;Step S4. Approximate the set of corner points of the whole picture with the set {C11, C12}, and judge whether the number of corner points in the set is greater than the first preset threshold; if so, it is considered to be a valid frame, and step S5 is executed; otherwise, step S2 is executed;

步骤S5.对角点集合C11与C12、角点集合C21与C22进行特征点匹配;匹配原则根据特征点匹配对的垂直视差最小原则进行;Step S5. Perform feature point matching on the corner point sets C11 and C12, and on the corner point sets C21 and C22; the matching principle is based on the principle of minimum vertical parallax of feature point matching pairs;

步骤S6.根据角点集合C11与C12特征点匹配对统计垂直视差Disparity_1v和Disparity_1h,根据C21与C22特征点匹配对统计垂直视差Disparity_2v和Disparity_2h;Step S6. According to the matching of the corner point set C11 and the C12 feature point, the vertical disparity Disparity_1v and Disparity_1h are counted, and according to the C21 and C22 feature point matching, the vertical disparity Disparity_2v and Disparity_2h are counted;

步骤S7.如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值加1;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值加1;Step S7. If Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value plus 1; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value plus 1 ;

步骤S8.重复步骤S2~S7,直至判别步骤S7被执行了m次;Step S8. Repeat steps S2 to S7 until the determination step S7 is executed m times;

步骤S9.若第一计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为左右3D视频格式;Step S9. If the value of the first counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a left-right 3D video format;

步骤S10.若第二计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为上下3D视频格式;Step S10. If the value of the second counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a top-bottom 3D video format;

步骤S11.若以上两个计数器的值都不满足条件,则检测到的当前视频节目为2D视频格式。Step S11. If the values of the above two counters do not meet the conditions, the detected current video program is in 2D video format.

一种视频三维格式自动检测方法,所述检测方法包括如下步骤:A method for automatically detecting a video three-dimensional format, the detection method comprising the steps of:

步骤S1.新视频节目开始,对第一计数器、第二计数器清零;Step S1. When a new video program starts, the first counter and the second counter are cleared;

步骤S2.获取一帧图像,对输入图像进行视图划分;按左右3D格式化,第一左视图在左边,第一右视图在右边;按上下3D格式化,第二左视图在上边,第二右视图在下边;Step S2. Obtain a frame of image, and divide the input image into views; format according to left and right 3D, the first left view is on the left, and the first right view is on the right; according to up and down 3D format, the second left view is on the top, and the second The right view is below;

步骤S3.检测各个子区域的特征点,采用图像中的角点作为特征点进行检测,得到第一左视图区域、第一右视图区域、第二左视图区域、第二右视图区域各自的角点集合C11、C12、C21、C22;Step S3. Detect the feature points of each sub-area, use the corner points in the image as feature points for detection, and obtain the respective corners of the first left view area, the first right view area, the second left view area, and the second right view area Point set C11, C12, C21, C22;

步骤S4.全图角点集合用集合{C11,C12}近似,判断该集合中角点数目是否大于第一预设阈值;若是则认为是有效帧,执行步骤S5,否则执行步骤S2;Step S4. Approximate the set of corner points of the whole picture with the set {C11, C12}, and judge whether the number of corner points in the set is greater than the first preset threshold; if so, it is considered to be a valid frame, and step S5 is executed; otherwise, step S2 is executed;

步骤S5.对角点集合C11与C12、角点集合C21与C22进行特征点匹配;匹配原则根据特征点匹配对的垂直视差最小原则进行;Step S5. Perform feature point matching on the corner point sets C11 and C12, and on the corner point sets C21 and C22; the matching principle is based on the principle of minimum vertical parallax of feature point matching pairs;

步骤S6.根据角点集合C11与C12特征点匹配对统计垂直视差Disparity_1v和Disparity_1h,根据C21与C22特征点匹配对统计垂直视差Disparity_2v和Disparity_2h;Step S6. According to the matching of the corner point set C11 and the C12 feature point, the vertical disparity Disparity_1v and Disparity_1h are counted, and according to the C21 and C22 feature point matching, the vertical disparity Disparity_2v and Disparity_2h are counted;

步骤S7.如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值增加;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值增加;Step S7. If Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value increases; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value increases;

步骤S8.重复步骤S2~S7,直至判别步骤S7被执行了设定次数;Step S8. Repeat steps S2 to S7 until the determination step S7 has been executed for a set number of times;

步骤S9.若第一计数器的值大于等于设定值,则检测到的当前视频节目格式为左右3D视频格式;Step S9. If the value of the first counter is greater than or equal to the set value, the detected current video program format is a left-right 3D video format;

步骤S10.若第二计数器的值大于等于设定值,则检测到的当前视频节目格式为上下3D视频格式;Step S10. If the value of the second counter is greater than or equal to the set value, the detected current video program format is a top-bottom 3D video format;

步骤S11.若以上两个计数器的值都不满足条件,则检测到的当前视频节目为2D视频格式。Step S11. If the values of the above two counters do not meet the conditions, the detected current video program is in 2D video format.

作为本发明的一种优选方案,步骤S3中,角点检测方法采用成熟的SUSAN或者Harris算法。As a preferred solution of the present invention, in step S3, the corner point detection method adopts mature SUSAN or Harris algorithm.

作为本发明的一种优选方案,所述步骤S7中,如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值加1;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值加1;As a preferred solution of the present invention, in the step S7, if Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value plus 1; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than Horizontal parallax threshold Thh, then the second counter value plus 1;

所述步骤S8中,重复步骤S2~S7,直至判别步骤S7被执行了m次;In the step S8, steps S2-S7 are repeated until the determination step S7 is executed m times;

所述步骤S9中,若第一计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为左右3D视频格式;In the step S9, if the value of the first counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a left-right 3D video format;

所述步骤S10中,若第二计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为上下3D视频格式。In the step S10, if the value of the second counter is greater than or equal to k*m,(k∈(0.5,1]), the detected current video program format is a top-bottom 3D video format.

本发明的有益效果在于:本发明提出的视频三维格式自动检测方法,首先利用了同一视频节目格式唯一这一事实条件,只是在每个新节目时做必要的计算/检测。The beneficial effect of the present invention is that: the method for automatically detecting the video three-dimensional format proposed by the present invention first utilizes the fact that the format of the same video program is unique, and only performs necessary calculation/detection for each new program.

同时,根据3D视频垂直视差和水平视差的特点,通过提取图像角点的特征点、特征点集匹配的方式来快速估计视差,从而实现格式的初步判断;再次在时间域上进行多帧投票判别,最后输出当前视频节目的格式,控制显示装置按照检测出来的视频格式进行播放。使用该方法在保证高的检测准确率的前提下,大大减少了视频格式检测的计算复杂度。使得本发明的自动检测视频节目格式方法相比现有技术,特别适用于移动设备(平板电脑、笔记本电脑)这类对功耗、制造成本要求非常苛刻的系统。At the same time, according to the characteristics of 3D video vertical disparity and horizontal disparity, the disparity is quickly estimated by extracting the feature points of the image corners and the matching of feature point sets, so as to realize the preliminary judgment of the format; again, multi-frame voting discrimination is performed in the time domain , and finally output the format of the current video program, and control the display device to play according to the detected video format. Using this method greatly reduces the computational complexity of video format detection under the premise of ensuring high detection accuracy. Compared with the prior art, the method for automatically detecting the video program format of the present invention is especially suitable for systems such as mobile devices (tablet computers and notebook computers) that have very strict requirements on power consumption and manufacturing cost.

本发明根据左右视图估计视差可以基于图像的特征点匹配完成,由于左右视图是对同一场景同一时刻的采样,成像条件高度一致,因此左右视图检测到的特征点也具有高度一致性,这一点跟普通2D视频具有显著差异。因此可以通过左右视图特征点集合估计水平视差和垂直视差,检测出视频的3D/2D格式。According to the present invention, the parallax estimation based on the left and right views can be completed based on the feature point matching of the image. Since the left and right views are samples of the same scene at the same time, and the imaging conditions are highly consistent, the feature points detected by the left and right views are also highly consistent. This is the same as Normal 2D video has significant differences. Therefore, the horizontal disparity and vertical disparity can be estimated through the left and right view feature point sets, and the 3D/2D format of the video can be detected.

附图说明Description of drawings

图1为本发明视频三维格式自动检测方法的流程图。FIG. 1 is a flow chart of the method for automatically detecting a three-dimensional format of a video according to the present invention.

具体实施方式Detailed ways

下面结合附图详细说明本发明的优选实施例。Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

实施例一Embodiment one

请参阅图1,本发明揭示了一种视频三维格式自动检测方法,所述检测方法包括如下步骤:Please refer to Fig. 1, the present invention discloses a kind of video three-dimensional format automatic detection method, described detection method comprises the following steps:

【步骤S1】新视频节目开始,对第一计数器、第二计数器清零;[Step S1] A new video program starts, and the first counter and the second counter are cleared;

【步骤S2】获取一帧图像,对输入图像进行视图划分;按左右3D格式化,第一左视图在左边,第一右视图在右边;按上下3D格式化,第二左视图在上边,第二右视图在下边;[Step S2] Obtain a frame of image, divide the input image into views; format according to left and right 3D, the first left view is on the left, and the first right view is on the right; format according to up and down 3D, the second left view is on the top, the second Two right view below;

【步骤S3】检测各个子区域的特征点,采用图像中的角点作为特征点,角点检测方法采用成熟的SUSAN或者Harris算法;得到第一左视图区域、第一右视图区域、第二左视图区域、第二右视图区域各自的角点集合C11、C12、C21、C22;[Step S3] Detect the feature points of each sub-region, using the corner points in the image as feature points, and the corner point detection method adopts the mature SUSAN or Harris algorithm; get the first left view area, the first right view area, the second left view area Corner sets C11, C12, C21, C22 of the view area and the second right view area respectively;

【步骤S4】全图角点集合用集合{C11,C12}近似,判断该集合中角点数目是否大于第一预设阈值;若是则认为是有效帧,执行步骤S5,否则执行步骤S2;[Step S4] Approximate the set of corner points of the whole image with the set {C11, C12}, and judge whether the number of corner points in the set is greater than the first preset threshold; if it is considered to be a valid frame, execute step S5; otherwise, execute step S2;

【步骤S5】对角点集合C11与C12、角点集合C21与C22进行特征点匹配;匹配原则根据特征点匹配对的垂直视差最小原则进行;[Step S5] Perform feature point matching on the corner point sets C11 and C12, and on the corner point sets C21 and C22; the matching principle is based on the principle of minimum vertical parallax of feature point matching pairs;

【步骤S6】根据角点集合C11与C12特征点匹配对统计垂直视差Disparity_1v和Disparity_1h,根据C21与C22特征点匹配对统计垂直视差Disparity_2v和Disparity_2h;[Step S6] Statistical vertical disparity Disparity_1v and Disparity_1h according to the matching pair of corner point set C11 and C12 feature point, and statistical vertical disparity Disparity_2v and Disparity_2h according to the matching pair of C21 and C22 feature point;

【步骤S7】如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值加1;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值加1;[Step S7] If Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value is added by 1; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value is added 1;

【步骤S8】重复步骤S2~S7,直至判别步骤S7被执行了m次;【Step S8】Repeat steps S2~S7 until the determination step S7 is executed m times;

【步骤S9】若第一计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为左右3D视频格式;[Step S9] If the value of the first counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a left-right 3D video format;

【步骤S10】若第二计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为上下3D视频格式;[Step S10] If the value of the second counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a top-bottom 3D video format;

【步骤S11】若以上两个计数器的值都不满足条件,则检测到的当前视频节目为2D视频格式。[Step S11] If the values of the above two counters do not meet the conditions, the detected current video program is in 2D video format.

实施例二Embodiment two

一种视频三维格式自动检测方法,所述检测方法包括如下步骤:A method for automatically detecting a video three-dimensional format, the detection method comprising the steps of:

步骤S1.新视频节目开始,对第一计数器、第二计数器清零;Step S1. When a new video program starts, the first counter and the second counter are cleared;

步骤S2.获取一帧图像,对输入图像进行视图划分;按左右3D格式化,第一左视图(11)在左边,第一右视图(12)在右边;按上下3D格式化,第二左视图(21)在上边,第二右视图(22)在下边;Step S2. Obtain a frame of image, and divide the input image into views; format according to left and right 3D, the first left view (11) is on the left, and the first right view (12) is on the right; format according to up and down 3D, the second left The view (21) is on the top, and the second right view (22) is on the bottom;

步骤S3.检测各个子区域的特征点,采用图像中的角点作为特征点进行检测,得到第一左视图区域、第一右视图区域、第二左视图区域、第二右视图区域各自的角点集合C11、C12、C21、C22;Step S3. Detect the feature points of each sub-area, use the corner points in the image as feature points for detection, and obtain the respective corners of the first left view area, the first right view area, the second left view area, and the second right view area Point set C11, C12, C21, C22;

步骤S4.全图角点集合用集合{C11,C12}近似,判断该集合中角点数目是否大于第一预设阈值;若是则认为是有效帧,执行步骤S5,否则执行步骤S2;Step S4. Approximate the set of corner points of the whole picture with the set {C11, C12}, and judge whether the number of corner points in the set is greater than the first preset threshold; if so, it is considered to be a valid frame, and step S5 is executed; otherwise, step S2 is executed;

步骤S5.对角点集合C11与C12、角点集合C21与C22进行特征点匹配;匹配原则根据特征点匹配对的垂直视差最小原则进行;Step S5. Perform feature point matching on the corner point sets C11 and C12, and on the corner point sets C21 and C22; the matching principle is based on the principle of minimum vertical parallax of feature point matching pairs;

步骤S6.根据角点集合C11与C12特征点匹配对统计垂直视差Disparity_1v和Disparity_1h,根据C21与C22特征点匹配对统计垂直视差Disparity_2v和Disparity_2h;Step S6. According to the matching of the corner point set C11 and the C12 feature point, the vertical disparity Disparity_1v and Disparity_1h are counted, and according to the C21 and C22 feature point matching, the vertical disparity Disparity_2v and Disparity_2h are counted;

步骤S7.如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值增加;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值增加;Step S7. If Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value increases; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value increases;

步骤S8.重复步骤S2~S7,直至判别步骤S7被执行了设定次数;Step S8. Repeat steps S2 to S7 until the determination step S7 has been executed for a set number of times;

步骤S9.若第一计数器的值大于等于设定值,则检测到的当前视频节目格式为左右3D视频格式;Step S9. If the value of the first counter is greater than or equal to the set value, the detected current video program format is a left-right 3D video format;

步骤S10.若第二计数器的值大于等于设定值,则检测到的当前视频节目格式为上下3D视频格式;Step S10. If the value of the second counter is greater than or equal to the set value, the detected current video program format is a top-bottom 3D video format;

步骤S11.若以上两个计数器的值都不满足条件,则检测到的当前视频节目为2D视频格式。Step S11. If the values of the above two counters do not meet the conditions, the detected current video program is in 2D video format.

综上所述,本发明提出的视频三维格式自动检测方法,首先利用了同一视频节目格式唯一这一事实条件,只是在每个新节目时做必要的计算/检测。To sum up, the automatic three-dimensional video format detection method proposed by the present invention first utilizes the fact that the format of the same video program is unique, and only performs necessary calculation/detection for each new program.

同时,根据3D视频垂直视差和水平视差的特点,通过提取图像角点的特征点、特征点集匹配的方式来快速估计视差,从而实现格式的初步判断;再次在时间域上进行多帧投票判别,最后输出当前视频节目的格式,控制显示装置按照检测出来的视频格式进行播放。使用该方法在保证高的检测准确率的前提下,大大减少了视频格式检测的计算复杂度。使得本发明的自动检测视频节目格式方法相比现有技术,特别适用于移动设备(平板电脑、笔记本电脑)这类对功耗、制造成本要求非常苛刻的系统。At the same time, according to the characteristics of 3D video vertical disparity and horizontal disparity, the disparity is quickly estimated by extracting the feature points of the image corners and the matching of feature point sets, so as to realize the preliminary judgment of the format; again, multi-frame voting discrimination is performed in the time domain , and finally output the format of the current video program, and control the display device to play according to the detected video format. Using this method greatly reduces the computational complexity of video format detection under the premise of ensuring high detection accuracy. Compared with the prior art, the method for automatically detecting the video program format of the present invention is especially suitable for systems such as mobile devices (tablet computers and notebook computers) that have very strict requirements on power consumption and manufacturing cost.

这里本发明的描述和应用是说明性的,并非想将本发明的范围限制在上述实施例中。这里所披露的实施例的变形和改变是可能的,对于那些本领域的普通技术人员来说实施例的替换和等效的各种部件是公知的。本领域技术人员应该清楚的是,在不脱离本发明的精神或本质特征的情况下,本发明可以以其它形式、结构、布置、比例,以及用其它组件、材料和部件来实现。在不脱离本发明范围和精神的情况下,可以对这里所披露的实施例进行其它变形和改变。The description and application of the invention herein is illustrative and is not intended to limit the scope of the invention to the above-described embodiments. Variations and changes to the embodiments disclosed herein are possible, and substitutions and equivalents for various components of the embodiments are known to those of ordinary skill in the art. It should be clear to those skilled in the art that the present invention can be realized in other forms, structures, arrangements, proportions, and with other components, materials and components without departing from the spirit or essential characteristics of the present invention. Other modifications and changes may be made to the embodiments disclosed herein without departing from the scope and spirit of the invention.

Claims (4)

1.一种视频三维格式自动检测方法,其特征在于,所述检测方法包括如下步骤:1. a video three-dimensional format automatic detection method, is characterized in that, described detection method comprises the steps: 步骤S1.新视频节目开始,对第一计数器、第二计数器清零;Step S1. When a new video program starts, the first counter and the second counter are cleared; 步骤S2.获取一帧图像,对输入图像进行视图划分;按左右3D格式化,第一左视图(11)在左边,第一右视图(12)在右边;按上下3D格式化,第二左视图(21)在上边,第二右视图(22)在下边;Step S2. Obtain a frame of image, and divide the input image into views; format according to left and right 3D, the first left view (11) is on the left, and the first right view (12) is on the right; format according to up and down 3D, the second left The view (21) is on the top, and the second right view (22) is on the bottom; 步骤S3.检测各个子区域的特征点,采用图像中的角点作为特征点进行检测,角点检测方法采用成熟的SUSAN或者Harris算法;得到第一左视图区域、第一右视图区域、第二左视图区域、第二右视图区域各自的角点集合C11、C12、C21、C22;Step S3. Detect the feature points of each sub-region, and use the corner points in the image as feature points for detection. The corner point detection method adopts mature SUSAN or Harris algorithm; obtain the first left view area, the first right view area, the second Corner sets C11, C12, C21, C22 of the left view area and the second right view area respectively; 步骤S4.全图角点集合用集合{C11,C12}近似,判断该集合中角点数目是否大于第一预设阈值;若是则认为是有效帧,执行步骤S5,否则执行步骤S2;Step S4. Approximate the set of corner points of the whole picture with the set {C11, C12}, and judge whether the number of corner points in the set is greater than the first preset threshold; if so, it is considered to be a valid frame, and step S5 is executed; otherwise, step S2 is executed; 步骤S5.对角点集合C11与C12、角点集合C21与C22进行特征点匹配;匹配原则根据特征点匹配对的垂直视差最小原则进行;Step S5. Perform feature point matching on the corner point sets C11 and C12, and on the corner point sets C21 and C22; the matching principle is based on the principle of minimum vertical parallax of feature point matching pairs; 步骤S6.根据角点集合C11与C12特征点匹配对统计垂直视差Disparity_1v和水平视差Disparity_1h,根据C21与C22特征点匹配对统计垂直视差Disparity_2v和水平视差Disparity_2h;Step S6. According to the matching of the corner point set C11 and the C12 feature point, the vertical disparity Disparity_1v and the horizontal disparity Disparity_1h are counted, and according to the C21 and C22 feature point matching, the vertical disparity Disparity_2v and the horizontal disparity Disparity_2h are counted; 步骤S7.如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值加1;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值加1;Step S7. If Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value plus 1; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value plus 1 ; 步骤S8.重复步骤S2~S7,直至判别步骤S7被执行了m次;Step S8. Repeat steps S2 to S7 until the determination step S7 is executed m times; 步骤S9.若第一计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为左右3D视频格式;Step S9. If the value of the first counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a left-right 3D video format; 步骤S10.若第二计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为上下3D视频格式;Step S10. If the value of the second counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a top-bottom 3D video format; 步骤S11.若以上两个计数器的值都不满足条件,则检测到的当前视频节目为2D视频格式。Step S11. If the values of the above two counters do not meet the conditions, the detected current video program is in 2D video format. 2.一种视频三维格式自动检测方法,其特征在于,所述检测方法包括如下步骤:2. A video three-dimensional format automatic detection method, is characterized in that, described detection method comprises the steps: 步骤S1.新视频节目开始,对第一计数器、第二计数器清零;Step S1. When a new video program starts, the first counter and the second counter are cleared; 步骤S2.获取一帧图像,对输入图像进行视图划分;按左右3D格式化,第一左视图(11)在左边,第一右视图(12)在右边;按上下3D格式化,第二左视图(21)在上边,第二右视图(22)在下边;Step S2. Obtain a frame of image, and divide the input image into views; format according to left and right 3D, the first left view (11) is on the left, and the first right view (12) is on the right; format according to up and down 3D, the second left The view (21) is on the top, and the second right view (22) is on the bottom; 步骤S3.检测各个子区域的特征点,采用图像中的角点作为特征点进行检测,得到第一左视图区域、第一右视图区域、第二左视图区域、第二右视图区域各自的角点集合C11、C12、C21、C22;Step S3. Detect the feature points of each sub-area, use the corner points in the image as feature points for detection, and obtain the respective corners of the first left view area, the first right view area, the second left view area, and the second right view area Point set C11, C12, C21, C22; 步骤S4.全图角点集合用集合{C11,C12}近似,判断该集合中角点数目是否大于第一预设阈值;若是则认为是有效帧,执行步骤S5,否则执行步骤S2;Step S4. Approximate the set of corner points of the whole picture with the set {C11, C12}, and judge whether the number of corner points in the set is greater than the first preset threshold; if so, it is considered to be a valid frame, and step S5 is executed; otherwise, step S2 is executed; 步骤S5.对角点集合C11与C12、角点集合C21与C22进行特征点匹配;匹配原则根据特征点匹配对的垂直视差最小原则进行;Step S5. Perform feature point matching on the corner point sets C11 and C12, and on the corner point sets C21 and C22; the matching principle is based on the principle of minimum vertical parallax of feature point matching pairs; 步骤S6.根据角点集合C11与C12特征点匹配对统计垂直视差Disparity_1v和水平视差Disparity_1h,根据C21与C22特征点匹配对统计垂直视差Disparity_2v和水平视差Disparity_2h;Step S6. According to the matching of the corner point set C11 and the C12 feature point, the vertical disparity Disparity_1v and the horizontal disparity Disparity_1h are counted, and according to the C21 and C22 feature point matching, the vertical disparity Disparity_2v and the horizontal disparity Disparity_2h are counted; 步骤S7.如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值增加;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值增加;Step S7. If Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value increases; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value increases; 步骤S8.重复步骤S2~S7,直至判别步骤S7被执行了设定次数;Step S8. Repeat steps S2 to S7 until the determination step S7 has been executed for a set number of times; 步骤S9.若第一计数器的值大于等于设定值,则检测到的当前视频节目格式为左右3D视频格式;Step S9. If the value of the first counter is greater than or equal to the set value, the detected current video program format is a left-right 3D video format; 步骤S10.若第二计数器的值大于等于设定值,则检测到的当前视频节目格式为上下3D视频格式;Step S10. If the value of the second counter is greater than or equal to the set value, the detected current video program format is a top-bottom 3D video format; 步骤S11.若以上两个计数器的值都不满足条件,则检测到的当前视频节目为2D视频格式。Step S11. If the values of the above two counters do not meet the conditions, the detected current video program is in 2D video format. 3.根据权利要求2所述的视频三维格式自动检测方法,其特征在于:3. The video three-dimensional format automatic detection method according to claim 2, characterized in that: 所述步骤S3中,角点检测方法采用成熟的SUSAN或者Harris算法。In the step S3, the corner detection method adopts mature SUSAN or Harris algorithm. 4.根据权利要求2所述的视频三维格式自动检测方法,其特征在于:4. The video three-dimensional format automatic detection method according to claim 2, characterized in that: 所述步骤S7中,如果Disparity_1v小于垂直视差阈值Thv,并且Disparity_1h小于水平视差阈值Thh,则第一计数器值加1;如果Disparity_2v小于垂直视差阈值Thv,并且Disparity_2h小于水平视差阈值Thh,则第二计数器值加1;In the step S7, if Disparity_1v is less than the vertical parallax threshold Thv, and Disparity_1h is less than the horizontal parallax threshold Thh, then the first counter value plus 1; if Disparity_2v is less than the vertical parallax threshold Thv, and Disparity_2h is less than the horizontal parallax threshold Thh, then the second counter value plus 1; 所述步骤S8中,重复步骤S2~S7,直至判别步骤S7被执行了m次;In the step S8, steps S2-S7 are repeated until the determination step S7 is executed m times; 所述步骤S9中,若第一计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为左右3D视频格式;In the step S9, if the value of the first counter is greater than or equal to k*m, (k∈(0.5,1]), the detected current video program format is a left-right 3D video format; 所述步骤S10中,若第二计数器的值大于等于k*m,(k∈(0.5,1]),则检测到的当前视频节目格式为上下3D视频格式。In the step S10, if the value of the second counter is greater than or equal to k*m,(k∈(0.5,1]), the detected current video program format is a top-bottom 3D video format.
CN201610374718.6A 2016-05-31 2016-05-31 Video 3 dimensional format automatic testing method Active CN106067966B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610374718.6A CN106067966B (en) 2016-05-31 2016-05-31 Video 3 dimensional format automatic testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610374718.6A CN106067966B (en) 2016-05-31 2016-05-31 Video 3 dimensional format automatic testing method

Publications (2)

Publication Number Publication Date
CN106067966A CN106067966A (en) 2016-11-02
CN106067966B true CN106067966B (en) 2018-08-28

Family

ID=57420166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610374718.6A Active CN106067966B (en) 2016-05-31 2016-05-31 Video 3 dimensional format automatic testing method

Country Status (1)

Country Link
CN (1) CN106067966B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106534825B (en) * 2016-11-29 2018-09-07 宁波易维视显示技术有限公司 The method of automatic detection panoramic video, picture based on the projection of center line edge feature
CN106851168A (en) * 2017-02-23 2017-06-13 宁波视睿迪光电有限公司 Video format recognition methods, device and player
CN109743566B (en) * 2018-12-21 2021-01-15 重庆爱奇艺智能科技有限公司 A method and device for identifying VR video format

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231829A (en) * 2011-06-27 2011-11-02 深圳超多维光电子有限公司 Display format identification method and device of video file as well as video player
WO2011162737A1 (en) * 2010-06-24 2011-12-29 Thomson Licensing Detection of frame sequential stereoscopic 3d video format based on the content of successive video frames
CN102461185A (en) * 2009-06-23 2012-05-16 三星电子株式会社 Method and apparatus for automatic conversion of three-dimensional video
CN102769766A (en) * 2012-07-16 2012-11-07 上海大学 A method for automatic detection of 3D left-right format video
CN104994374A (en) * 2015-07-03 2015-10-21 宁波易维视显示技术有限公司 Method for automatically detecting three-dimensional format of video
CN105049824A (en) * 2015-07-03 2015-11-11 无锡易维视显示技术有限公司 Method for automatically detecting three-dimensional video format

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120242792A1 (en) * 2009-12-09 2012-09-27 Tao Zhang Method and apparatus for distinguishing a 3d image from a 2d image and for identifying the presence of a 3d image format by image difference determination

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102461185A (en) * 2009-06-23 2012-05-16 三星电子株式会社 Method and apparatus for automatic conversion of three-dimensional video
WO2011162737A1 (en) * 2010-06-24 2011-12-29 Thomson Licensing Detection of frame sequential stereoscopic 3d video format based on the content of successive video frames
CN102231829A (en) * 2011-06-27 2011-11-02 深圳超多维光电子有限公司 Display format identification method and device of video file as well as video player
CN102769766A (en) * 2012-07-16 2012-11-07 上海大学 A method for automatic detection of 3D left-right format video
CN104994374A (en) * 2015-07-03 2015-10-21 宁波易维视显示技术有限公司 Method for automatically detecting three-dimensional format of video
CN105049824A (en) * 2015-07-03 2015-11-11 无锡易维视显示技术有限公司 Method for automatically detecting three-dimensional video format

Also Published As

Publication number Publication date
CN106067966A (en) 2016-11-02

Similar Documents

Publication Publication Date Title
US8654182B2 (en) Display device and control method of display device
CN105739707B (en) Electronic equipment, face recognition tracking and 3 D displaying method
US9838673B2 (en) Method and apparatus for adjusting viewing area, and device capable of three-dimension displaying video signal
CN102360489B (en) Method and device for realizing conversion from two-dimensional image to three-dimensional image
US10074343B2 (en) Three-dimensional image output apparatus and three-dimensional image output method
CN102724521A (en) Method and apparatus for stereoscopic display
CN106067966B (en) Video 3 dimensional format automatic testing method
CN104159099B (en) The method to set up of binocular stereo camera during a kind of 3D three-dimensional film makes
CN105049824A (en) Method for automatically detecting three-dimensional video format
CN104820981A (en) Image three-dimensional representation method based on parallax hierarchical segmentation, and system
TWI532363B (en) Improved naked eye 3D display crosstalk method and naked eye 3D display
CN102289841B (en) Method for regulating audience perception depth of three-dimensional image
CN104168469B (en) Stereoscopic image preview device and stereoscopic image preview method
CN102026012A (en) Generation method and device of depth map through three-dimensional conversion to planar video
CN102932661A (en) Median filtering matching error correction method for disparity map, and circuit for implementing method
CN103841403B (en) A kind of undeformed stereo image parallax quickly regulating method
CN106683072B (en) A PUP map-based 3D image comfort quality evaluation method and system
CN102368824B (en) Video stereo vision conversion method
CN104767985A (en) Method for automatically detecting three-dimensional image format using area distribution analysis
CN105898270A (en) Video format distinguishing method and system
CN109194944B (en) Image processing method, device and system, and display device
CN106507088A (en) Receive the 3 D image display method of upper and lower and left-right format piece source signal
CN105578171A (en) Image signal processing method and device
US20140085434A1 (en) Image signal processing device and image signal processing method
CN108712642B (en) A method for automatic selection of stereoscopic subtitle adding position suitable for stereoscopic video

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant