CN106954060B - A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart phone - Google Patents
A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart phone Download PDFInfo
- Publication number
- CN106954060B CN106954060B CN201710333255.3A CN201710333255A CN106954060B CN 106954060 B CN106954060 B CN 106954060B CN 201710333255 A CN201710333255 A CN 201710333255A CN 106954060 B CN106954060 B CN 106954060B
- Authority
- CN
- China
- Prior art keywords
- plane mirror
- image
- stereoscopic video
- video
- matching
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 229910001220 stainless steel Inorganic materials 0.000 claims abstract description 38
- 239000010935 stainless steel Substances 0.000 claims abstract description 38
- 230000009466 transformation Effects 0.000 claims abstract description 20
- 239000011159 matrix material Substances 0.000 claims abstract description 16
- 238000013507 mapping Methods 0.000 claims abstract description 15
- 238000009434 installation Methods 0.000 claims abstract description 13
- 239000013598 vector Substances 0.000 claims description 32
- 239000011521 glass Substances 0.000 claims description 11
- 238000012937 correction Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 4
- 238000012545 processing Methods 0.000 claims description 4
- 238000012360 testing method Methods 0.000 claims description 4
- 238000007654 immersion Methods 0.000 abstract description 6
- 238000013481 data capture Methods 0.000 abstract 1
- 230000000007 visual effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 7
- 238000003384 imaging method Methods 0.000 description 5
- 208000001692 Esotropia Diseases 0.000 description 2
- 230000003044 adaptive effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 210000004556 brain Anatomy 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000003997 social interaction Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/204—Image signal generators using stereoscopic image cameras
- H04N13/246—Calibration of cameras
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N13/00—Stereoscopic video systems; Multi-view video systems; Details thereof
- H04N13/20—Image signal generators
- H04N13/204—Image signal generators using stereoscopic image cameras
- H04N13/207—Image signal generators using stereoscopic image cameras using a single 2D image sensor
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Processing Or Creating Images (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及立体视频成像领域,特别是指一种面向智能手机的立体视频生成方法及辅助拍摄装置。The invention relates to the field of stereoscopic video imaging, in particular to a stereoscopic video generation method and an auxiliary shooting device for smart phones.
背景技术Background technique
视觉是人类感知外部环境的重要信息来源,因此图像和视频在娱乐、教育、社交等各种应用场景中发挥重要作用。然而,普通图像和视频本质上是对三维世界的二维投影,成像过程中丢失了场景深度信息,因此普通图像和视频难以给观察者带来身临其境的感觉。近年来,立体(stereoscopy)视频成像技术得以迅速发展,极大地增强了场景的立体感和真实感。立体视频可以向观察者左、右眼呈现具有视差的左、右视图,这两个视图经过观察者大脑合成之后可以为观察者提供完整的场景深度线索。目前,人们可以借助虚拟现实眼镜(virtual reality glasses)等辅助设备在智能手机上观看事先录制好的立体视频,为用户带来前所未有的沉浸感和极佳的影视欣赏体验。Vision is an important source of information for humans to perceive the external environment, so images and videos play an important role in various application scenarios such as entertainment, education, and social interaction. However, ordinary images and videos are essentially two-dimensional projections of the three-dimensional world, and the depth information of the scene is lost during the imaging process, so it is difficult for ordinary images and videos to bring an immersive feeling to the observer. In recent years, stereoscopic (stereoscopy) video imaging technology has developed rapidly, which greatly enhances the three-dimensionality and realism of scenes. Stereoscopic video can present left and right views with parallax to the observer's left and right eyes, and these two views can provide the observer with complete scene depth cues after being synthesized by the observer's brain. At present, people can watch pre-recorded stereoscopic videos on smartphones with the help of auxiliary devices such as virtual reality glasses, which brings users an unprecedented sense of immersion and an excellent experience of watching movies.
现有的立体图像和立体视频获取技术大致可以分为以下四类:利用计算机视觉和图像处理方法从普通单摄像头视频中提取场景的深度信息,在此基础上生成具有视差的左、右视图;使用两个并排、且相对位置固定的摄像机同时进行拍摄;采用双镜头摄像机进行立体视频拍摄;采用单个摄像头结合辅助装置进行拍摄。这些技术手段各自存在成本高、结构复杂、操作困难等问题,无法满足一般消费者利用普通智能手机拍摄立体视频的需求。Existing stereoscopic image and stereoscopic video acquisition technologies can be roughly divided into the following four categories: using computer vision and image processing methods to extract scene depth information from ordinary single-camera videos, and then generating left and right views with parallax on this basis; Use two side-by-side cameras with fixed relative positions for simultaneous shooting; use dual-lens cameras for stereoscopic video shooting; use a single camera with auxiliary devices for shooting. Each of these technical means has problems such as high cost, complex structure, and difficult operation, and cannot meet the needs of ordinary consumers to shoot stereoscopic videos with ordinary smartphones.
针对现有技术中立体视频拍摄成本高、结构复杂、操作困难的问题,目前尚未有有效的解决方案。Aiming at the problems of high cost, complex structure and difficult operation of stereoscopic video shooting in the prior art, there is currently no effective solution.
发明内容SUMMARY OF THE INVENTION
有鉴于此,本发明实施例的目的在于提出一种面向智能手机的立体视频生成方法及辅助拍摄装置,能够使一般消费者利用普通智能手机拍摄立体视频,降低成本、简化结构、且便于操作。In view of this, the purpose of the embodiments of the present invention is to provide a smart phone-oriented stereoscopic video generation method and auxiliary shooting device, which enables ordinary consumers to use ordinary smart phones to shoot stereoscopic videos, reduces cost, simplifies structure, and facilitates operation.
基于上述目的,本发明实施例提供了一种面向智能手机的立体视频生成方法,包括:Based on the above purpose, an embodiment of the present invention provides a method for generating a stereoscopic video for a smartphone, including:
构建立体视频辅助拍摄装置并将其安装在智能手机上;Build a stereoscopic video assist camera and mount it on a smartphone;
标定立体视频辅助拍摄装置的安装参数;Calibrate the installation parameters of the stereoscopic video auxiliary shooting device;
使用智能手机计算投影几何变换矩阵与灰度补偿映射函数;Use smartphone to calculate projection geometric transformation matrix and grayscale compensation mapping function;
使用智能手机拍摄视频数据;Capture video data with a smartphone;
将拍摄的视频数据转化为立体视频。Convert the captured video data into a stereoscopic video.
在一些实施方式中,所述立体视频辅助拍摄装置包括用于获取场景虚像的不锈钢平面镜,不锈钢平面镜所在平面与智能手机背面相垂直,不锈钢平面镜所在平面与智能手机背面相交于不锈钢平面镜内边缘,不锈钢平面镜内边缘与智能手机侧边相垂直;同时,不锈钢平面镜由平面镜固定架固定,平面镜固定架通过支架连接部件连接至支架固定架,支架固定架通过手机连接部件与智能手机相连接,平面镜固定架与支架连接部件之间、支架固定架与手机连接部件之间以紧固件固定或调节相对位置与角度。In some embodiments, the stereoscopic video auxiliary shooting device includes a stainless steel plane mirror for acquiring a virtual image of the scene, the plane where the stainless steel plane mirror is located is perpendicular to the back of the smartphone, the plane where the stainless steel plane mirror is located intersects with the back of the smartphone at the inner edge of the stainless steel plane mirror, and the stainless steel plane mirror is located at the inner edge of the stainless steel plane mirror. The inner edge of the plane mirror is perpendicular to the side of the smartphone; at the same time, the stainless steel plane mirror is fixed by the plane mirror fixing frame, the plane mirror fixing frame is connected to the bracket fixing frame through the bracket connecting part, the bracket fixing frame is connected with the smartphone through the mobile phone connecting part, and the plane mirror fixing frame Fasteners are used to fix or adjust the relative position and angle between the bracket connecting part and the bracket fixing frame and the mobile phone connecting part.
在一些实施方式中,所述标定立体视频辅助拍摄装置的安装参数包括:In some embodiments, the calibration of the installation parameters of the stereoscopic video auxiliary shooting device includes:
使用智能手机拍摄图像,其中,该图像对应的拍摄场景包含较丰富的纹理、颜色信息,并且不能是墙面、桌面等颜色单一的场景;Use a smartphone to shoot an image, where the shooting scene corresponding to the image contains rich texture and color information, and cannot be a single-color scene such as a wall or desktop;
从该图像中提取多个稀疏特征点并进行特征点匹配,生成特征点匹配集合;Extract multiple sparse feature points from the image and perform feature point matching to generate a feature point matching set;
多次重复随机选取两对特征点进行匹配,生成上述特征点匹配确定的平面镜法向量估计;Repeatedly select two pairs of feature points at random for matching, and generate the plane mirror normal vector estimation determined by the above-mentioned feature point matching;
根据多个法向量估计各分量的中值确定平面镜法向量作为安装参数。The normal vector of the plane mirror is determined as the installation parameter by estimating the median value of each component according to the plurality of normal vectors.
在一些实施方式中,所述从该图像中提取多个稀疏特征点并进行特征点匹配,生成特征点匹配集合包括:In some embodiments, extracting a plurality of sparse feature points from the image and performing feature point matching, and generating a feature point matching set includes:
根据图像局部特征检测和描述算法从该图像中提取多个稀疏特征点和每个稀疏特征点的描述向量;Extract a plurality of sparse feature points and a description vector of each sparse feature point from the image according to the image local feature detection and description algorithm;
根据距离比测试特征匹配方法将每个稀疏特征点与该图像中的其他特征点进行匹配,生成匹配特征点对;Match each sparse feature point with other feature points in the image according to the distance ratio test feature matching method to generate matching feature point pairs;
根据多个稀疏特征点对建立包括至少100个特征点对的特征点匹配集合。A feature point matching set including at least 100 feature point pairs is established according to the plurality of sparse feature point pairs.
在一些实施方式中,所述多次重复随机选取两对特征点进行匹配,生成上述特征点匹配确定的平面镜法向量包括:In some embodiments, the multiple repetitions of randomly selecting two pairs of feature points for matching, and generating the plane mirror normal vector determined by the above-mentioned feature point matching includes:
根据特征点对的数量确定随机选取两对特征点进行匹配的次数;Determine the number of times of randomly selecting two pairs of feature points for matching according to the number of feature point pairs;
每次随机选取两对特征点进行匹配,并根据两对特征点的图像坐标与智能手机摄像头的焦距长度生成上述特征点匹配确定的法向量。Two pairs of feature points are randomly selected for matching each time, and the normal vector determined by the above feature point matching is generated according to the image coordinates of the two pairs of feature points and the focal length of the smartphone camera.
在一些实施方式中,所述使用智能手机计算投影几何变换矩阵与灰度补偿映射函数包括:In some embodiments, calculating the projection geometric transformation matrix and the grayscale compensation mapping function using a smartphone includes:
根据视频帧的长度、宽度与平面镜的法向量生成图像变换矩阵;Generate an image transformation matrix according to the length and width of the video frame and the normal vector of the plane mirror;
根据智能手机摄像头的焦距长度获得特征点匹配集合中所有特征点对的一致性指标;Obtain the consistency index of all feature point pairs in the feature point matching set according to the focal length of the smartphone camera;
收集一致性指标大于预先指定阈值的所有特征点对,建立有效特征点匹配对集合;Collect all feature point pairs whose consistency index is greater than the pre-specified threshold, and establish a set of valid feature point matching pairs;
获取有效特征点匹配对集合中每个特征点位置的图像灰度,并根据三次多项式曲线拟合算法与每个特征点位置的图像灰度拟合灰度补偿映射函数。Obtain the image gray level of each feature point position in the effective feature point matching pair set, and fit the gray level compensation mapping function with the image gray level of each feature point position according to the cubic polynomial curve fitting algorithm.
在一些实施方式中,所述使用智能手机拍摄视频数据时,手机横向侧边与水平面夹角不超过30度。In some implementation manners, when using a smartphone to capture video data, the angle between the lateral side of the mobile phone and the horizontal plane does not exceed 30 degrees.
在一些实施方式中,所述将拍摄的视频数据转化为立体视频包括:In some embodiments, converting the captured video data into a stereoscopic video includes:
将视频数据按帧分解,并对每帧图像使用图像变换矩阵进行几何校正并裁切掉空白区域;Decompose the video data by frame, and use the image transformation matrix for each frame of image to perform geometric correction and crop out blank areas;
将每帧图像分割为相同大小左视图与右视图,并对右视图进行左右镜面变换;Divide each frame of image into left view and right view of the same size, and perform left and right mirror transformation on the right view;
根据灰度补偿映射对右视图中的每个像素进行颜色补偿;Color compensation for each pixel in the right view according to the grayscale compensation map;
根据立体视频观察方式适应性处理每一帧左视图与右视图,并将每一帧左视图与右视图合并为立体视频帧,再将所有立体视频帧合并为立体视频。The left and right views of each frame are adaptively processed according to the stereoscopic video observation mode, and the left and right views of each frame are merged into a stereoscopic video frame, and then all the stereoscopic video frames are merged into a stereoscopic video.
在一些实施方式中,所述立体视频观察方式包括以下至少之一:VR眼镜、红蓝眼镜、裸眼;所述根据立体视频观察方式适应性处理每一帧左视图与右视图,为根据立体视频观察方式指定的视频分辨率与纵横比对每一帧左视图与右视图进行适应性处理。In some embodiments, the stereoscopic video observation mode includes at least one of the following: VR glasses, red and blue glasses, naked eyes; the adaptive processing of the left view and right view of each frame according to the stereoscopic video observation mode is based on the stereoscopic video The video resolution and aspect ratio specified by the viewing mode are adaptively processed for the left and right views of each frame.
基于上述目的,本发明实施例提供了一种面向智能手机的立体视频辅助拍摄装置,包括用于获取场景虚像的不锈钢平面镜,不锈钢平面镜所在平面与智能手机背面相垂直,不锈钢平面镜所在平面与智能手机背面相交于不锈钢平面镜内边缘,不锈钢平面镜内边缘与智能手机侧边相垂直;同时,不锈钢平面镜由平面镜固定架固定,平面镜固定架通过支架连接部件连接至支架固定架,支架固定架通过手机连接部件与智能手机相连接,平面镜固定架与支架连接部件之间、支架固定架与手机连接部件之间以紧固件固定或调节相对位置与角度。Based on the above purpose, an embodiment of the present invention provides a stereoscopic video auxiliary shooting device oriented to a smartphone, including a stainless steel plane mirror for acquiring a virtual image of a scene, the plane where the stainless steel plane mirror is located is perpendicular to the back of the smartphone, and the plane where the stainless steel plane mirror is located is parallel to the smartphone. The back intersects with the inner edge of the stainless steel plane mirror, and the inner edge of the stainless steel plane mirror is perpendicular to the side of the smartphone; at the same time, the stainless steel plane mirror is fixed by the plane mirror fixing frame, and the plane mirror fixing frame is connected to the bracket fixing frame through the bracket connecting part, and the bracket fixing frame is connected by the mobile phone connecting part. It is connected with the smart phone, and the relative position and angle are fixed or adjusted by fasteners between the plane mirror fixing frame and the bracket connecting part, and between the bracket fixing frame and the mobile phone connecting part.
从上面所述可以看出,本发明实施例提供的面向智能手机的立体视频生成方法仅需一个摄像头就能拍摄立体视频,因此可避免两个摄像头不同步导致的左右画面不协调问题,且本发明立体视频辅助拍摄装置具有结构简单、成本低廉、便于携带和易于使用等优点。因此,本发明方法和装置可以帮助普通消费者利用智能手机获取沉浸感较强的立体视频,丰富智能手机视频形式、提升拍摄和观赏乐趣。It can be seen from the above that the stereoscopic video generation method for smartphones provided by the embodiments of the present invention only needs one camera to shoot stereoscopic videos, so the problem of uncoordinated left and right images caused by the two cameras being out of synchronization can be avoided, and the present invention The stereoscopic video auxiliary shooting device of the invention has the advantages of simple structure, low cost, easy portability and easy use. Therefore, the method and device of the present invention can help ordinary consumers to obtain a stereoscopic video with a strong sense of immersion by using a smart phone, enrich the video form of the smart phone, and improve the fun of shooting and viewing.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明提供的面向智能手机的立体视频生成方法的流程图;1 is a flow chart of a method for generating a stereoscopic video for a smartphone provided by the present invention;
图2为本发明提供的面向智能手机的立体视频生成方法中立体视频辅助拍摄装置的结构图;2 is a structural diagram of a stereoscopic video auxiliary shooting device in a smartphone-oriented stereoscopic video generation method provided by the present invention;
图3为本发明提供的面向智能手机的立体视频生成方法的成像原理图;3 is an imaging principle diagram of a smartphone-oriented stereoscopic video generation method provided by the present invention;
图4为本发明提供的面向智能手机的立体视频生成方法的一个实施例中,平面镜法向量的估计分布图;4 is an estimated distribution diagram of a plane mirror normal vector in an embodiment of the smartphone-oriented stereoscopic video generation method provided by the present invention;
图5为本发明提供的面向智能手机的立体视频生成方法的一个实施例中,灰度补偿函数的拟合结果图;5 is a graph of a fitting result of a grayscale compensation function in an embodiment of a smartphone-oriented stereoscopic video generation method provided by the present invention;
图6为本发明提供的面向智能手机的立体视频生成方法的一个实施例中,加装立体视频辅助拍摄装置的智能手机拍摄的视频帧与几何矫正结果图;6 is a diagram of a video frame and a geometric correction result captured by a smartphone equipped with a stereoscopic video auxiliary shooting device in an embodiment of the smartphone-oriented stereoscopic video generation method provided by the present invention;
图7为本发明提供的面向智能手机的立体视频生成方法的一个实施例中,几何矫正视频中切割获得的左视图、未经颜色补偿的右视图与颜色补偿后的右视图;Fig. 7 is an embodiment of the stereoscopic video generation method for smartphones provided by the present invention, the left view obtained by cutting out the geometric correction video, the right view without color compensation, and the right view after color compensation;
图8为本发明提供的面向智能手机的立体视频生成方法的一个实施例中,适合裸眼观察的交叉眼立体视频与适合采用VR眼镜观看的左右立体视频截图。FIG. 8 is a screenshot of a cross-eye stereoscopic video suitable for naked-eye viewing and a left-right stereoscopic video suitable for viewing with VR glasses, in an embodiment of the smartphone-oriented stereoscopic video generation method provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,以下结合具体实施例,并参照附图,对本发明实施例进一步详细说明。In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention will be further described in detail below with reference to the specific embodiments and the accompanying drawings.
需要说明的是,本发明实施例中所有使用“第一”和“第二”的表述均是为了区分两个相同名称非相同的实体或者非相同的参量,可见“第一”“第二”仅为了表述的方便,不应理解为对本发明实施例的限定,后续实施例对此不再一一说明。It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for the purpose of distinguishing two entities with the same name but not the same or non-identical parameters. It can be seen that "first" and "second" It is only for the convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and subsequent embodiments will not describe them one by one.
在本发明的一个实施例中,图1示出的是本发明提供的面向智能手机的立体视频生成方法的第一个实施例的流程示意图。In an embodiment of the present invention, FIG. 1 shows a schematic flowchart of a first embodiment of a method for generating stereoscopic video for a smartphone provided by the present invention.
如图1所示,面向智能手机的立体视频生成方法包括:As shown in Figure 1, the stereoscopic video generation method for smartphones includes:
步骤S101,构建立体视频辅助拍摄装置并将其安装在智能手机上;Step S101, constructing a stereoscopic video auxiliary shooting device and installing it on a smartphone;
步骤S103,标定立体视频辅助拍摄装置的安装参数;Step S103, calibrating the installation parameters of the stereoscopic video auxiliary shooting device;
步骤S105,使用智能手机计算投影几何变换矩阵与灰度补偿映射函数;Step S105, use the smartphone to calculate the projection geometric transformation matrix and the grayscale compensation mapping function;
步骤S107,使用智能手机拍摄视频数据;Step S107, using a smartphone to capture video data;
步骤S109,将拍摄的视频数据转化为立体视频。In step S109, the captured video data is converted into a stereoscopic video.
在一些实施方式中,所述立体视频辅助拍摄装置包括用于获取场景虚像的不锈钢平面镜1,不锈钢平面镜1所在平面与智能手机0背面相垂直,不锈钢平面镜1所在平面与智能手机0背面相交于不锈钢平面镜1内边缘,不锈钢平面镜1内边缘与智能手机0侧边相垂直;同时,不锈钢平面镜1由平面镜固定架2固定,平面镜固定架2通过支架连接部件3连接至支架固定架4,支架固定架4通过手机连接部件5与智能手机0相连接,平面镜固定架2与支架连接部件3之间、支架固定架4与手机连接部件5之间以紧固件6固定或调节相对位置与角度。In some embodiments, the stereoscopic video auxiliary shooting device includes a stainless steel plane mirror 1 for acquiring a virtual image of a scene, the plane where the stainless steel plane mirror 1 is located is perpendicular to the back of the smartphone 0, and the plane where the stainless steel plane mirror 1 is located intersects with the back of the smartphone 0 on the stainless steel plane. The inner edge of the plane mirror 1, the inner edge of the stainless steel plane mirror 1 is perpendicular to the side of the smartphone 0; at the same time, the stainless steel plane mirror 1 is fixed by the plane mirror fixing frame 2, and the plane mirror fixing frame 2 is connected to the bracket fixing frame 4 through the bracket connecting part 3, and the bracket fixing frame 4 is connected to the smartphone 0 through the mobile phone connecting part 5, and the relative position and angle are fixed or adjusted with fasteners 6 between the plane mirror fixing frame 2 and the bracket connecting part 3, and between the bracket fixing frame 4 and the mobile phone connecting part 5.
在一些实施方式中,所述标定立体视频辅助拍摄装置的安装参数包括:In some embodiments, the calibration of the installation parameters of the stereoscopic video auxiliary shooting device includes:
使用智能手机拍摄图像,其中,该图像对应的拍摄场景包含较丰富的纹理、颜色信息,并且不能是墙面、桌面等颜色单一的场景;Use a smartphone to shoot an image, where the shooting scene corresponding to the image contains rich texture and color information, and cannot be a single-color scene such as a wall or desktop;
从该图像中提取多个稀疏特征点并进行特征点匹配,生成特征点匹配集合;Extract multiple sparse feature points from the image and perform feature point matching to generate a feature point matching set;
多次重复随机选取两对特征点匹配,生成上述特征点匹配确定的平面镜法向量;Repeatedly select two pairs of feature points at random to match, and generate the plane mirror normal vector determined by the above-mentioned feature point matching;
根据多个特征点匹配法向量估计各分量的中值确定平面镜法向量作为安装参数。The normal vector of the plane mirror is determined as the installation parameter by estimating the median value of each component according to the matching normal vector of multiple feature points.
在一些实施方式中,所述从该图像中提取多个稀疏特征点并进行特征点匹配,生成特征点匹配集合包括:In some embodiments, extracting a plurality of sparse feature points from the image and performing feature point matching, and generating a feature point matching set includes:
根据图像局部特征检测和描述算法从该图像中提取多个稀疏特征点和每个稀疏特征点的描述向量;Extract a plurality of sparse feature points and a description vector of each sparse feature point from the image according to the image local feature detection and description algorithm;
根据距离比测试特征匹配方法将每个稀疏特征点与该图像中的其他特征点进行匹配,生成匹配特征点对;Match each sparse feature point with other feature points in the image according to the distance ratio test feature matching method to generate matching feature point pairs;
根据多个稀疏特征点对建立包括至少100个特征点对的特征点匹配集合。A feature point matching set including at least 100 feature point pairs is established according to the plurality of sparse feature point pairs.
在一些实施方式中,所述多次重复随机选取两对特征点进行匹配,生成上述特征点匹配确定的平面镜法向量包括:In some embodiments, the multiple repetitions of randomly selecting two pairs of feature points for matching, and generating the plane mirror normal vector determined by the above-mentioned feature point matching includes:
根据特征点对的数量确定随机选取两对特征点进行匹配的次数;Determine the number of times of randomly selecting two pairs of feature points for matching according to the number of feature point pairs;
每次随机选取两对特征点进行匹配,并根据两对特征点的图像坐标与智能手机摄像头的焦距长度生成上述特征点匹配确定的法向量。Two pairs of feature points are randomly selected for matching each time, and the normal vector determined by the above feature point matching is generated according to the image coordinates of the two pairs of feature points and the focal length of the smartphone camera.
在一些实施方式中,所述使用智能手机计算投影几何变换矩阵与灰度补偿映射函数包括:In some embodiments, calculating the projection geometric transformation matrix and the grayscale compensation mapping function using a smartphone includes:
根据视频帧的长度、宽度与平面镜的法向量生成图像变换矩阵;Generate an image transformation matrix according to the length and width of the video frame and the normal vector of the plane mirror;
根据智能手机摄像头的焦距长度获得特征点匹配集合中所有特征点对的一致性指标;Obtain the consistency index of all feature point pairs in the feature point matching set according to the focal length of the smartphone camera;
收集一致性指标大于预先指定阈值的所有特征点对,建立有效特征点匹配对集合;Collect all feature point pairs whose consistency index is greater than the pre-specified threshold, and establish a set of valid feature point matching pairs;
获取有效特征点匹配对集合中每个特征点位置的图像灰度,并根据三次多项式曲线拟合算法与每个特征点位置的图像灰度拟合灰度补偿映射函数。Obtain the image gray level of each feature point position in the effective feature point matching pair set, and fit the gray level compensation mapping function with the image gray level of each feature point position according to the cubic polynomial curve fitting algorithm.
在一些实施方式中,所述使用智能手机拍摄视频数据时,手机横向侧边与水平面夹角不超过30度。In some implementation manners, when using a smartphone to capture video data, the angle between the lateral side of the mobile phone and the horizontal plane does not exceed 30 degrees.
在一些实施方式中,所述将拍摄的视频数据转化为立体视频包括:In some embodiments, converting the captured video data into a stereoscopic video includes:
将视频数据按帧分解,并对每帧图像使用图像变换矩阵进行几何校正并裁切掉空白区域;Decompose the video data by frame, and use the image transformation matrix for each frame of image to perform geometric correction and crop out blank areas;
将每帧图像分割为相同大小左视图与右视图,并对右视图进行左右镜面变换;Divide each frame of image into left view and right view of the same size, and perform left and right mirror transformation on the right view;
根据灰度补偿映射对右视图中的每个像素进行颜色补偿;Color compensation for each pixel in the right view according to the grayscale compensation map;
根据立体视频观察方式适应性处理每一帧左视图与右视图,并将每一帧左视图与右视图合并为立体视频帧,再将所有立体视频帧合并为立体视频。The left and right views of each frame are adaptively processed according to the stereoscopic video observation mode, and the left and right views of each frame are merged into a stereoscopic video frame, and then all the stereoscopic video frames are merged into a stereoscopic video.
在一些实施方式中,所述立体视频观察方式包括以下至少之一:VR眼镜、红蓝眼镜、裸眼;所述根据立体视频观察方式适应性处理每一帧左视图与右视图,为根据立体视频观察方式指定的视频分辨率与纵横比对每一帧左视图与右视图进行适应性处理。In some embodiments, the stereoscopic video observation mode includes at least one of the following: VR glasses, red and blue glasses, naked eyes; the adaptive processing of the left view and right view of each frame according to the stereoscopic video observation mode is based on the stereoscopic video The video resolution and aspect ratio specified by the viewing mode are adaptively processed for the left and right views of each frame.
从上面所述可以看出,本发明实施例提供的面向智能手机的立体视频生成方法仅需一个摄像头就能拍摄立体视频,因此可避免两个摄像头不同步导致的左右画面不协调问题,且本发明立体视频辅助拍摄装置具有结构简单、成本低廉、便于携带和易于使用等优点。因此,本发明方法和装置可以帮助普通消费者利用智能手机获取沉浸感较强的立体视频,丰富智能手机视频形式、提升拍摄和观赏乐趣。It can be seen from the above that the stereoscopic video generation method for smartphones provided by the embodiments of the present invention only needs one camera to shoot stereoscopic videos, so the problem of uncoordinated left and right images caused by the two cameras being out of synchronization can be avoided, and the present invention The stereoscopic video auxiliary shooting device of the invention has the advantages of simple structure, low cost, easy portability and easy use. Therefore, the method and device of the present invention can help ordinary consumers to obtain a stereoscopic video with a strong sense of immersion by using a smart phone, enrich the video form of the smart phone, and improve the fun of shooting and viewing.
在本发明的另一个实施例中,所述面向智能手机的立体视频生成方法包括:In another embodiment of the present invention, the smartphone-oriented stereoscopic video generation method includes:
步骤S101,构建立体视频辅助拍摄装置并将其安装在智能手机上。In step S101, a stereoscopic video auxiliary shooting device is constructed and installed on a smart phone.
本发明实施例面向智能手机的立体视频辅助拍摄装置结构图如图2所示,包括:不锈钢平面镜1、平面镜固定架2、支架连接部件3、支架固定架4、手机连接部件5、紧固件6。其中,不锈钢平面镜1用于获取场景的虚像;平面镜固定架2用于固定不锈钢平面镜1;支架连接部件3用于连接平面镜固定架2和支架固定架4;支架固定架4用于固定支架连接部件3;手机连接部件5用于将立体视频辅助拍摄装置固定在智能手机0上;紧固件6用于固定、调节固定架4和连接部件5的相对位置和角度。The structure diagram of the stereoscopic video auxiliary shooting device for smartphones according to the embodiment of the present invention is shown in FIG. 2 , including: a stainless steel plane mirror 1 , a plane mirror fixing frame 2 , a bracket connecting part 3 , a bracket fixing frame 4 , a mobile phone connecting part 5 , a fastener 6. Among them, the stainless steel plane mirror 1 is used to obtain the virtual image of the scene; the plane mirror fixing frame 2 is used to fix the stainless steel plane mirror 1; the bracket connecting part 3 is used to connect the plane mirror fixing frame 2 and the bracket fixing frame 4; the bracket fixing frame 4 is used to fix the bracket connecting part 3; the mobile phone connecting part 5 is used to fix the stereoscopic video auxiliary shooting device on the smart phone 0; the fastener 6 is used to fix and adjust the relative position and angle of the fixing frame 4 and the connecting part 5.
本发明实施例采用的手机为iphone 4s手机,其具体方法如下:首先,将立体视频辅助拍摄装置通过手机连接部件固定在手机背面;然后,通过各紧固件调节并固定平面镜、支架连接部件和支架固定架;确保平面镜所在平面与手机背面大致垂直,平面镜边缘尽可能贴合手机背面,平面镜与手机背面的相交线距离手机背面摄像头中心的距离保持在1~3毫米左右,且平面镜与手机背面的相交线与手机长边大致垂直。通过上述连接、固定、和调节方法,最终确保从手机中能够同时观察到范围大小基本相同的场景实像和虚像。The mobile phone used in the embodiment of the present invention is the iphone 4s mobile phone, and the specific method is as follows: first, the stereoscopic video auxiliary shooting device is fixed on the back of the mobile phone through the mobile phone connecting part; then, the plane mirror, the bracket connecting part and the Bracket holder; ensure that the plane where the plane mirror is located is roughly perpendicular to the back of the phone, the edge of the plane mirror is as close as possible to the back of the phone, the intersection line between the plane mirror and the back of the phone is about 1-3 mm from the center of the camera on the back of the phone, and the plane mirror and the back of the phone The intersecting line is roughly perpendicular to the long side of the phone. Through the above connection, fixation, and adjustment methods, it is finally ensured that the real image and the virtual image of the scene with substantially the same range and size can be observed from the mobile phone at the same time.
步骤S103,标定立体视频辅助拍摄装置的安装参数。Step S103, calibrating installation parameters of the stereoscopic video auxiliary shooting device.
图3示出的是本发明实施例的面向智能手机的立体视频拍摄成像原理图。由于辅助拍摄装置的安装可能存在误差,平面镜法向量n与相机的X轴方向(即手机的长边方向)无法完全重合,因此在拍摄视频数据之前需要对立体视频辅助拍摄装置的平面镜法向量参数进行标定。标定过程仅需执行一次,标定完成后可以拍摄多次视频数据,直到人为对立体视频辅助拍摄装置进行了调节,或者光照条件或场景内容发生了较大变化的情况下才需重新进行标定。平面镜法向量标定的具体步骤如下:FIG. 3 shows a schematic diagram of stereoscopic video shooting and imaging for a smartphone according to an embodiment of the present invention. Due to possible errors in the installation of the auxiliary camera, the normal vector n of the plane mirror and the X-axis direction of the camera (that is, the direction of the long side of the mobile phone) cannot be completely coincident. Calibration is performed. The calibration process only needs to be performed once. After the calibration is completed, multiple video data can be captured. The calibration is not required until the stereoscopic video auxiliary shooting device is adjusted manually, or the lighting conditions or scene content have changed greatly. The specific steps of normal vector calibration of the plane mirror are as follows:
首先,利用加装了立体视频辅助拍摄装置的智能手机拍摄一张图像,记为上述图像对应的拍摄场景需要包含较丰富的纹理、颜色信息,不能是墙面、桌面等是颜色单一的场景。First, use a smartphone equipped with a stereoscopic video auxiliary camera to capture an image, denoted as The shooting scene corresponding to the above image needs to contain rich texture and color information, and cannot be a scene with a single color such as a wall or a desktop.
其次,利用SIFT图像局部特征检测和描述算法提取的稀疏特征点和每个特征点的描述向量。对于每个特征点,利用距离比测试特征匹配方法获取其在所有特征点(除去当前特征点自身)中的匹配特征点,距离比阈值τ的取值是0.6。记最终的特征点匹配数量为N,特征点匹配集合为其中,为图像特征点坐标(单位为像素),图像坐标系原点位于图像中心,x轴沿图像长边指向右、y轴沿图像短边指向下。如果N<100,则重新利用加装了立体视频辅助拍摄装置的智能手机拍摄一张图像,并重新执行本步骤。Secondly, using SIFT image local feature detection and description algorithm to extract sparse feature points and a description vector for each feature point. For each feature point, use the distance ratio test feature matching method to obtain its For matching feature points in all feature points (excluding the current feature point itself), the value of the distance ratio threshold τ is 0.6. Note that the final number of feature point matching is N, and the matching set of feature points is in, is the image feature point coordinates (unit is pixel), the origin of the image coordinate system is located at the center of the image, the x-axis points to the right along the long side of the image, and the y-axis points down along the short side of the image. If N<100, then use the smartphone equipped with the stereoscopic video auxiliary shooting device to shoot an image again, and perform this step again.
再次,重复执行Nit次平面镜候选法向量估计操作,第j次法向估计操作包含如下两个步骤(Nit=min(N(N-1)/2,1000),j={1,2,…Nit}):第一,随机选取两对特征点匹配,记为第二,计算由上述特征点匹配确定的法向量计算公式如下:Again, repeatedly perform N it times the plane mirror candidate normal vector estimation operation, the jth normal direction estimation operation includes the following two steps (N it =min(N(N-1)/2,1000), j={1,2 ,…N it }): First, randomly select two pairs of feature points to match, denoted as Second, calculate the normal vector determined by the above feature point matching Calculated as follows:
其中,f表示摄像头的焦距长度(单位为像素),符号“×”表示向量的叉乘。Among them, f represents the focal length of the camera (unit is pixel), and the symbol "×" represents the cross product of the vector.
最后,计算平面镜最终法向量n,计算公式如下:Finally, the final normal vector n of the plane mirror is calculated, and the calculation formula is as follows:
其中,符号“[·]k”表示向量的第k个元素。如果[n]1<0,则令n←-n。图4示出的是平面镜法向量估计的一个实施例。从图4中可以看出,候选法向量估计中存在许多噪声和错误,但中间区域比较集中。Here, the notation "[·] k " denotes the kth element of the vector. If [n] 1 < 0, let n←-n. FIG. 4 shows one embodiment of plane mirror normal vector estimation. As can be seen from Figure 4, there are many noises and errors in the candidate normal vector estimation, but the middle regions are concentrated.
步骤S105,使用智能手机计算投影几何变换矩阵与灰度补偿映射函数。Step S105, use the smartphone to calculate the projection geometric transformation matrix and the grayscale compensation mapping function.
首先,计算图像变换矩阵H,计算公式如下:First, calculate the image transformation matrix H, the calculation formula is as follows:
其中,w和h分别表示视频帧的宽度和高度(单位为像素),R表示绕旋转轴(0,[n]3,-[n]2)T旋转角度arccos([n]1)的旋转矩阵。Among them, w and h represent the width and height of the video frame (in pixels), respectively, and R represents the rotation around the rotation axis (0,[n] 3 ,-[n] 2 ) T rotation angle arccos([n] 1 ) matrix.
其次,灰度补偿映射函数估计,包含如下两个步骤:第一,获取有效特征点匹配对集合首先,令对有效特征点匹配对集合进行初始化。然后,按照如下公式计算每个特征点匹配对(i={1,2,…,N})的一致性指标δ:Secondly, the estimation of the grayscale compensation mapping function includes the following two steps: First, obtain a set of valid feature point matching pairs First, let Initialize the set of valid feature point matching pairs. Then, each feature point matching pair is calculated according to the following formula The consistency index δ of (i={1,2,...,N}):
如果则将从中删除。其中,参数θ的取值是3°。记最终有效特征点匹配对集合第二,构建虚实灰度补偿映射函数:首先,创建Nin个二元组(j=1,2,…,Nin)。其中,g(·)表示图像特征点所在位置的图像灰度值。采用三次多项式曲线拟合算法,根据二元组拟合灰度补偿映射函数s的取值区间是0~255,的取值区间是0~255。图5示出的是灰度补偿函数拟合结果的一个实施例。如图5所示,呈现非线性特性,且不同场景对应的各不相同。if will from deleted in . Among them, the value of the parameter θ is 3°. Record the final valid feature point matching pair set Second, construct the virtual-real grayscale compensation mapping function: First, create N in two-tuples (j=1,2,..., Nin ). Among them, g(·) represents the gray value of the image at the position of the image feature point. Using a cubic polynomial curve fitting algorithm, according to the two-tuple Fit grayscale compensation mapping function The value range of s is 0 to 255. The value range is 0 to 255. FIG. 5 shows an embodiment of the fitting result of the grayscale compensation function. As shown in Figure 5, Present nonlinear characteristics, and different scenarios correspond to vary.
步骤S107,使用智能手机拍摄视频数据。Step S107, using a smartphone to capture video data.
采用加装了立体视频辅助拍摄装置的智能手机拍摄视频,参数标定完成后,在保持摄像头焦距和立体视频辅助拍摄装置各部件相对位置不变的情况下,利用智能手机摄像头拍摄视频数据,拍摄过程中手机的长边与水平面的夹角小于30°。The video is shot by a smartphone equipped with a stereoscopic video auxiliary shooting device. After the parameter calibration is completed, the camera focal length of the camera and the relative position of each component of the stereoscopic video auxiliary shooting device are kept unchanged. The smartphone camera is used to shoot video data. The angle between the long side of the mobile phone and the horizontal plane is less than 30°.
步骤S109,将拍摄的视频数据转化为立体视频。In step S109, the captured video data is converted into a stereoscopic video.
对于拍摄视频的每一帧进行几何矫正、变换、裁切操作,获得立体视频帧的左右视图,并合成设备相关的立体视频,具体方法是:Perform geometric correction, transformation, and cropping operations on each frame of the captured video to obtain the left and right views of the stereoscopic video frame, and synthesize the device-related stereoscopic video. The specific methods are:
首先,对于视频中的任意帧(记为),按照如下步骤生成视频帧所对应的左右视图 First, for any frame in the video (denoted as ), follow the steps below to generate video frames Corresponding left and right view
第一,创建一个宽度为wp、高度为hp的几何矫正视频帧wp、hp分别由如下公式计算:First, create a geometrically rectified video frame of width w p and height h p w p and h p are respectively calculated by the following formulas:
其中,u′ll=H(-w/2,h/2,1)T、u′ul=H(-w/2,-h/2,1)T、u′lr=H(w/2,h/2,1)T、u′ur=H(w/2,-h/2,1)T。图像中任意像素位置(m,n)的颜色值等于中像素位置的颜色值。其中,Among them, u' ll =H(-w/2,h/2,1) T , u' ul =H(-w/2,-h/2,1) T , u' lr =H(w/2 , h/2,1) T , u′ ur =H(w/2,-h/2,1) T . image The color value of any pixel position (m,n) in is equal to middle pixel position color value. in,
本实施例采用的手机为iphone 4s手机,视频帧的长宽比为4:3。图6左图为加装本发明辅助拍摄装置的智能手机拍摄的视频帧示例,从图6左图可以看出,由于安装误差特征点匹配的连线并不平行,因此不能通过简单的图像旋转实现几何矫正。图6右图为利用本发明方法实现的视频帧几何矫正结果,获得了几乎没有水平视差的视频帧。The mobile phone used in this embodiment is an iphone 4s mobile phone, and the aspect ratio of the video frame is 4:3. The left picture of Fig. 6 is an example of a video frame captured by a smartphone equipped with an auxiliary photographing device of the present invention. It can be seen from the left picture of Fig. 6 that since the matching lines of the feature points of the installation error are not parallel, it cannot be rotated by a simple image. Realize geometric correction. The right picture of FIG. 6 shows the result of geometric correction of video frames realized by the method of the present invention, and a video frame with almost no horizontal parallax is obtained.
第二,创建视频帧对应的左右视图和 和分别对应于图像的左右两等分,然后对图像进行左右镜面变换。Second, create video frames Corresponding left and right view and and corresponding to the image The left and right halves of the Perform left and right mirror transformations.
第三,对于的每个像素,假定其RGB颜色值分别为R、G、B,则颜色补偿后该像素的RGB颜色值分别为其中t=0.299R+0.587G+0.114B。图7为从几何矫正视频中切割获得的左视图和右视图示例,其中,左图为左视图,中图为未经颜色补偿的右视图,右图为颜色补偿后的右视图。从图7中可以看出,本发明颜色矫正方法可以有效的补偿光线反射损失。Third, for For each pixel of , assuming that its RGB color values are R, G, and B, respectively, the RGB color values of the pixel after color compensation are where t=0.299R+0.587G+0.114B. Figure 7 shows examples of left and right views obtained by cutting from a geometrically rectified video, wherein the left picture is the left view, the middle picture is the right view without color compensation, and the right picture is the right view after color compensation. It can be seen from FIG. 7 that the color correction method of the present invention can effectively compensate for the loss of light reflection.
然后,针对立体视频观察方式(比如:VR眼镜、裸眼观察、红蓝眼镜),根据视频分辨率、纵横比等参数对左右视图和进行裁切,然后将每一帧左右视图合并为相应的立体视频帧,最后将所有立体视频帧合成为立体视频。图8展示了根据本发明方案所生成的长宽比为16:9的立体视频帧示例。其中,图8左图为适合裸眼观察的交叉眼(cross eye)立体视频,图8右图为适合采用VR眼镜观看的左右立体视频。Then, for stereoscopic video observation methods (such as VR glasses, naked-eye observation, red and blue glasses), the left and right views are compared according to the video resolution, aspect ratio and other parameters. and Crop, then merge the left and right views of each frame into corresponding stereoscopic video frames, and finally combine all stereoscopic video frames into a stereoscopic video. FIG. 8 shows an example of a stereoscopic video frame with an aspect ratio of 16:9 generated according to the solution of the present invention. The left picture of FIG. 8 is a cross-eye stereoscopic video suitable for naked eye observation, and the right picture of FIG. 8 is a left and right stereoscopic video suitable for viewing with VR glasses.
从上面所述可以看出,本发明实施例提供的面向智能手机的立体视频生成方法仅需一个摄像头就能拍摄立体视频,因此可避免两个摄像头不同步导致的左右画面不协调问题,且本发明立体视频辅助拍摄装置具有结构简单、成本低廉、便于携带和易于使用等优点。因此,本发明方法和装置可以帮助普通消费者利用智能手机获取沉浸感较强的立体视频,丰富智能手机视频形式、提升拍摄和观赏乐趣。It can be seen from the above that the stereoscopic video generation method for smartphones provided by the embodiments of the present invention only needs one camera to shoot stereoscopic videos, so the problem of uncoordinated left and right images caused by the two cameras being out of synchronization can be avoided, and the present invention The stereoscopic video auxiliary shooting device of the invention has the advantages of simple structure, low cost, easy portability and easy use. Therefore, the method and device of the present invention can help ordinary consumers to obtain a stereoscopic video with a strong sense of immersion by using a smart phone, enrich the video form of the smart phone, and improve the fun of shooting and viewing.
在本发明的又一个实施例中,面向智能手机的立体视频辅助拍摄装置结构图如图2所示,包括:不锈钢平面镜1、平面镜固定架2、支架连接部件3、支架固定架4、手机连接部件5、紧固件6。其中,不锈钢平面镜1用于获取场景的虚像;平面镜固定架2用于固定不锈钢平面镜1;支架连接部件3用于连接平面镜固定架2和支架固定架4;支架固定架4用于固定支架连接部件3;手机连接部件5用于将立体视频辅助拍摄装置固定在智能手机0上;紧固件6用于固定、调节固定架4和连接部件5的相对位置和角度。In yet another embodiment of the present invention, the structure diagram of the stereoscopic video auxiliary shooting device for smartphones is shown in FIG. 2 , including: a stainless steel plane mirror 1 , a plane mirror fixing frame 2 , a bracket connecting part 3 , a bracket fixing frame 4 , a mobile phone connection Part 5, Fastener 6. Among them, the stainless steel plane mirror 1 is used to obtain the virtual image of the scene; the plane mirror fixing frame 2 is used to fix the stainless steel plane mirror 1; the bracket connecting part 3 is used to connect the plane mirror fixing frame 2 and the bracket fixing frame 4; the bracket fixing frame 4 is used to fix the bracket connecting part 3; the mobile phone connecting part 5 is used to fix the stereoscopic video auxiliary shooting device on the smart phone 0; the fastener 6 is used to fix and adjust the relative position and angle of the fixing frame 4 and the connecting part 5.
从上面所述可以看出,本发明实施例提供的面向智能手机的立体视频生成方法仅需一个摄像头就能拍摄立体视频,因此可避免两个摄像头不同步导致的左右画面不协调问题,且本发明立体视频辅助拍摄装置具有结构简单、成本低廉、便于携带和易于使用等优点。因此,本发明方法和装置可以帮助普通消费者利用智能手机获取沉浸感较强的立体视频,丰富智能手机视频形式、提升拍摄和观赏乐趣。It can be seen from the above that the stereoscopic video generation method for smartphones provided by the embodiments of the present invention only needs one camera to shoot stereoscopic videos, so the problem of uncoordinated left and right images caused by the two cameras being out of synchronization can be avoided, and the present invention The stereoscopic video auxiliary shooting device of the invention has the advantages of simple structure, low cost, easy portability and easy use. Therefore, the method and device of the present invention can help ordinary consumers to obtain a stereoscopic video with a strong sense of immersion by using a smart phone, enrich the video form of the smart phone, and improve the fun of shooting and viewing.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710333255.3A CN106954060B (en) | 2017-05-12 | 2017-05-12 | A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart phone |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710333255.3A CN106954060B (en) | 2017-05-12 | 2017-05-12 | A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart phone |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106954060A CN106954060A (en) | 2017-07-14 |
| CN106954060B true CN106954060B (en) | 2019-03-19 |
Family
ID=59478499
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201710333255.3A Active CN106954060B (en) | 2017-05-12 | 2017-05-12 | A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart phone |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106954060B (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114786001B (en) * | 2022-05-20 | 2023-12-05 | 广东未来科技有限公司 | 3D picture shooting method and 3D shooting system |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| GB2436409A (en) * | 2006-03-20 | 2007-09-26 | Sharp Kk | Camera with reflector for forming images on different sensor portions |
| KR101391951B1 (en) * | 2013-02-04 | 2014-05-07 | 주식회사 고글텍 | Single lens camera and method for taking side by side stereo pictures |
| CN105892216A (en) * | 2015-12-14 | 2016-08-24 | 乐视网信息技术(北京)股份有限公司 | 3D video recording device, 3D video processing method and mobile equipment |
-
2017
- 2017-05-12 CN CN201710333255.3A patent/CN106954060B/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| CN106954060A (en) | 2017-07-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11076142B2 (en) | Real-time aliasing rendering method for 3D VR video and virtual three-dimensional scene | |
| CN106910247B (en) | Method and apparatus for generating three-dimensional avatar model | |
| CN109685913B (en) | Augmented Reality Realization Method Based on Computer Vision Positioning | |
| CN109308719B (en) | Binocular parallax estimation method based on three-dimensional convolution | |
| CN109997175B (en) | Determining the size of a virtual object | |
| US8908011B2 (en) | Three-dimensional video creating device and three-dimensional video creating method | |
| US20180137611A1 (en) | Novel View Synthesis Using Deep Convolutional Neural Networks | |
| US20150379720A1 (en) | Methods for converting two-dimensional images into three-dimensional images | |
| US20140035918A1 (en) | Techniques for producing baseline stereo parameters for stereoscopic computer animation | |
| CN106981078B (en) | Sight line correction method and device, intelligent conference terminal and storage medium | |
| JPWO2017094543A1 (en) | Information processing apparatus, information processing system, information processing apparatus control method, and parameter setting method | |
| CN109493282A (en) | A kind of stereo-picture joining method for eliminating movement ghost image | |
| US11758101B2 (en) | Restoration of the FOV of images for stereoscopic rendering | |
| Lan et al. | Development of a virtual reality teleconference system using distributed depth sensors | |
| CN116228855A (en) | Visual angle image processing method and device, electronic equipment and computer storage medium | |
| CN117333659A (en) | Multi-target detection method and system based on multi-camera and camera | |
| CN119629326A (en) | Naked-eye light field 3D display system, method, electronic device and storage medium based on human eye tracking | |
| GB2585197A (en) | Method and system for obtaining depth data | |
| CN106954060B (en) | A kind of three-dimensional video-frequency generation method and auxiliary filming apparatus towards smart phone | |
| CN119865594A (en) | Image rendering method and device, display device and naked eye 3D display system | |
| CN113382227A (en) | Naked eye 3D panoramic video rendering device and method based on smart phone | |
| CN116402878A (en) | Light field image processing method and device | |
| US12254131B1 (en) | Gaze-adaptive image reprojection | |
| Tran et al. | A personalised stereoscopic 3D gallery with virtual reality technology on smartphone | |
| CN119299648B (en) | Neural network-based 3D image generation method and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |