CN111325798A - Camera model correction method, device, AR implementation device and readable storage medium - Google Patents
Camera model correction method, device, AR implementation device and readable storage medium Download PDFInfo
- Publication number
- CN111325798A CN111325798A CN201811524847.4A CN201811524847A CN111325798A CN 111325798 A CN111325798 A CN 111325798A CN 201811524847 A CN201811524847 A CN 201811524847A CN 111325798 A CN111325798 A CN 111325798A
- Authority
- CN
- China
- Prior art keywords
- shooting
- target
- real
- camera model
- parameter
- 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.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T19/00—Manipulating 3D models or images for computer graphics
- G06T19/006—Mixed reality
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Graphics (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请涉及AR(Augmented Reality,增强现实)实现技术领域,具体而言,涉及一种相机模型纠正方法、装置、AR实现设备及可读存储介质。The present application relates to the technical field of AR (Augmented Reality, augmented reality) implementation, and in particular, to a camera model correction method, apparatus, AR implementation device, and readable storage medium.
背景技术Background technique
随着科学技术的不断发展,AR技术的应用领域愈发广泛,其中视频监控领域便是众多AR技术应用领域的一个重要组成部分。目前,AR效果通常需要对真实相机采集到的图像进行全景特征提取,并将提取出的全景特征完全匹配到虚拟相机模型所构建的虚拟场景中的方式来实现。现有的AR效果实现方式在实施过程中会尽量地将虚拟相机模型标准化,以通过虚拟相机模型的标准化来得到更好的AR效果,但这种AR效果实现方式并未考虑到因真实相机自身的物理区别(例如,镜头拍摄精度不同)而在虚拟相机模型与真实相机之间存在融合偏差,从而导致最终的实时视频上的AR叠加效果存在偏差,具体的AR效果不佳。With the continuous development of science and technology, the application fields of AR technology are becoming more and more extensive, among which the field of video surveillance is an important part of many application fields of AR technology. At present, AR effects usually need to extract panoramic features from images collected by real cameras, and fully match the extracted panoramic features to the virtual scene constructed by the virtual camera model. The existing AR effect implementation method will try to standardize the virtual camera model as much as possible in the implementation process, so as to obtain better AR effect through the standardization of the virtual camera model, but this AR effect implementation method does not take into account the real camera itself. There is a fusion deviation between the virtual camera model and the real camera due to the physical difference (for example, different shooting accuracy of the lens), which leads to the deviation of the AR overlay effect on the final real-time video, and the specific AR effect is not good.
发明内容SUMMARY OF THE INVENTION
为了克服现有技术中的上述不足,本申请的目的在于提供一种相机模型纠正方法、装置、AR实现设备及可读存储介质,所述相机模型纠正方法能够根据真实相机当前的物理特征对虚拟相机模型进行纠正,以使所述虚拟相机模型与所述真实相机实时匹配,增加AR融合精准度,提高AR效果。In order to overcome the above deficiencies in the prior art, the purpose of this application is to provide a camera model correction method, device, AR implementation device and readable storage medium, the camera model correction method can The camera model is corrected to match the virtual camera model with the real camera in real time, so as to increase the accuracy of AR fusion and improve the AR effect.
就方法而言,本申请实施例提供一种相机模型纠正方法,所述方法应用于增强现实AR实现设备,所述AR实现设备与用于拍摄图像的真实相机连接,所述AR实现设备中存储有拍摄操作与所述真实相机的拍摄操作同步的虚拟相机模型,所述方法包括:In terms of method, an embodiment of the present application provides a camera model correction method, the method is applied to an augmented reality AR implementation device, the AR implementation device is connected with a real camera used for capturing images, and the AR implementation device stores There is a virtual camera model whose shooting operation is synchronized with the shooting operation of the real camera, and the method includes:
实时检测所述真实相机当前的成像倍率数值;Real-time detection of the current imaging magnification value of the real camera;
根据存储的所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,获取与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数;According to the stored parameter correction curve between the imaging magnification of the real camera and the corrected shooting parameters of the virtual camera model, obtain target correction shooting parameters that match the current imaging magnification value of the real camera;
按照所述目标纠正拍摄参数对所述虚拟相机模型当前使用的拍摄参数数值进行调整,以使所述虚拟相机模型与所述真实相机对应匹配。The values of the shooting parameters currently used by the virtual camera model are adjusted according to the target-corrected shooting parameters, so that the virtual camera model is correspondingly matched with the real camera.
可选地,在本申请实施例中,上述方法还包括:Optionally, in this embodiment of the present application, the above method further includes:
测试所述虚拟相机模型在所述真实相机的不同成像倍率下所对应的纠正拍摄参数;testing the corrected shooting parameters of the virtual camera model under different imaging magnifications of the real camera;
基于测试得到的纠正拍摄参数绘制形成所述参数纠正曲线。The parameter correction curve is drawn and formed based on the corrected shooting parameters obtained by testing.
可选地,在本申请实施例中,上述测试所述虚拟相机模型在所述真实相机的不同成像倍率下所对应的纠正拍摄参数的步骤包括:Optionally, in the embodiment of the present application, the above-mentioned step of testing the correction shooting parameters corresponding to the virtual camera model under different imaging magnifications of the real camera includes:
在每次调整所述真实相机的成像倍率后,获取当前成像倍率下的目标实物在所述真实相机对应的屏幕坐标系中对应的第一拍摄位置;After each adjustment of the imaging magnification of the real camera, obtain the first shooting position corresponding to the object object under the current imaging magnification in the screen coordinate system corresponding to the real camera;
控制所述真实相机与所述虚拟相机模型按照相同的拍摄操作进行转动拍摄,以使所述目标实物在所述屏幕坐标系中对应的第一拍摄位置被移动至目标第一拍摄位置处;Controlling the real camera and the virtual camera model to rotate and shoot according to the same shooting operation, so that the first shooting position corresponding to the real object in the screen coordinate system is moved to the first shooting position of the target;
当所述目标实物在所述屏幕坐标系中处于所述目标第一拍摄位置时,获取所述虚拟相机模型当前使用的拍摄参数下的所述目标实物在所述虚拟相机模型对应的世界坐标系中对应的第二拍摄位置;When the target object is at the first shooting position of the target in the screen coordinate system, obtain the world coordinate system corresponding to the virtual camera model of the target object under the shooting parameters currently used by the virtual camera model The corresponding second shooting position in ;
根据世界坐标与屏幕坐标之间的转换关系得到所述第二拍摄位置在所述屏幕坐标系中对应的目标第二拍摄位置;Obtaining the second shooting position of the target corresponding to the second shooting position in the screen coordinate system according to the conversion relationship between the world coordinates and the screen coordinates;
将所述目标第一拍摄位置与当前拍摄参数下的所述目标第二拍摄位置进行位置比较,并在位置不重合时对所述虚拟相机模型当前使用的拍摄参数进行调整,直至调整后的拍摄参数下的所述目标第二拍摄位置与所述目标第一拍摄位置重合为止;Comparing the first shooting position of the target with the second shooting position of the target under the current shooting parameters, and adjusting the shooting parameters currently used by the virtual camera model when the positions do not overlap, until the adjusted shooting The second shooting position of the target under the parameter coincides with the first shooting position of the target;
将所述目标第二拍摄位置与所述目标第一拍摄位置重合时所使用的拍摄参数,作为与当前成像倍率对应的纠正拍摄参数。The shooting parameters used when the second shooting position of the target coincides with the first shooting position of the target are used as the corrected shooting parameters corresponding to the current imaging magnification.
可选地,在本申请实施例中,上述基于测试得到的纠正拍摄参数绘制形成所述参数纠正曲线的步骤包括:Optionally, in the embodiment of the present application, the above-mentioned step of drawing and forming the parameter correction curve based on the corrected shooting parameters obtained by testing includes:
将测试得到的所有纠正拍摄参数按照每个纠正拍摄参数所对应的成像倍率数值进行排序,得到排序后的多组参数纠正数据,其中每组参数纠正数据包括对应的成像倍率数值及纠正拍摄参数;Sort all the corrected shooting parameters obtained by the test according to the imaging magnification value corresponding to each corrected shooting parameter, and obtain multiple sets of parameter correction data after sorting, wherein each group of parameter correction data includes the corresponding imaging magnification value and corrected shooting parameters;
对排序后的多组参数纠正数据中相邻两组参数纠正数据之间的线性变化曲线进行绘制,并对绘制出的多条线性变化曲线进行曲线调整,以得到所述参数纠正曲线。Drawing linear change curves between adjacent two groups of parameter correction data in the sorted sets of parameter correction data, and performing curve adjustment on the drawn linear change curves to obtain the parameter correction curves.
就装置而言,本申请实施例提供一种相机模型纠正装置,所述装置应用于AR实现设备,所述AR实现设备与用于拍摄图像的真实相机连接,所述AR实现设备中存储有拍摄操作与所述真实相机的拍摄操作同步的虚拟相机模型,所述装置包括:As far as the device is concerned, an embodiment of the present application provides a camera model correction device, the device is applied to an AR implementation device, the AR implementation device is connected to a real camera used for capturing images, and the AR implementation device stores the captured images. Operating a virtual camera model synchronized with the shooting operation of the real camera, the apparatus includes:
倍率检测模块,用于实时检测所述真实相机当前的成像倍率数值;A magnification detection module, used for real-time detection of the current imaging magnification value of the real camera;
参数获取模块,用于根据存储的所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,获取与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数;A parameter acquisition module, configured to obtain a target correction shooting parameter that matches the current imaging magnification value of the real camera according to the stored parameter correction curve between the imaging magnification of the real camera and the corrected shooting parameters of the virtual camera model ;
参数调整模块,用于按照所述目标纠正拍摄参数对所述虚拟相机模型当前使用的拍摄参数数值进行调整,以使所述虚拟相机模型与所述真实相机对应匹配。A parameter adjustment module, configured to correct the shooting parameters according to the target and adjust the values of the shooting parameters currently used by the virtual camera model, so that the virtual camera model corresponds to the real camera.
可选地,在本申请实施例中,上述装置还包括:Optionally, in this embodiment of the present application, the above-mentioned device further includes:
参数测试模块,用于测试所述虚拟相机模型在所述真实相机的不同成像倍率下所对应的纠正拍摄参数;a parameter testing module, used for testing the corrected shooting parameters of the virtual camera model under different imaging magnifications of the real camera;
曲线绘制模块,用于基于测试得到的纠正拍摄参数绘制形成所述参数纠正曲线。The curve drawing module is used for drawing and forming the parameter correction curve based on the corrected shooting parameters obtained by the test.
可选地,在本申请实施例中,上述参数测试模块具体用于:Optionally, in the embodiment of the present application, the above-mentioned parameter testing module is specifically used for:
在每次调整所述真实相机的成像倍率后,获取当前成像倍率下的目标实物在所述真实相机对应的屏幕坐标系中对应的第一拍摄位置;After each adjustment of the imaging magnification of the real camera, obtain the first shooting position corresponding to the object object under the current imaging magnification in the screen coordinate system corresponding to the real camera;
控制所述真实相机与所述虚拟相机模型按照相同的拍摄操作进行转动拍摄,以使所述目标实物在所述屏幕坐标系中对应的第一拍摄位置被移动至目标第一拍摄位置处;Controlling the real camera and the virtual camera model to rotate and shoot according to the same shooting operation, so that the first shooting position corresponding to the real object in the screen coordinate system is moved to the first shooting position of the target;
当所述目标实物在所述屏幕坐标系中处于所述目标第一拍摄位置时,获取所述虚拟相机模型当前使用的拍摄参数下的所述目标实物在所述虚拟相机模型对应的世界坐标系中对应的第二拍摄位置;When the target object is at the first shooting position of the target in the screen coordinate system, obtain the world coordinate system corresponding to the virtual camera model of the target object under the shooting parameters currently used by the virtual camera model The corresponding second shooting position in ;
根据世界坐标与屏幕坐标之间的转换关系得到所述第二拍摄位置在所述屏幕坐标系中对应的目标第二拍摄位置;Obtaining the second shooting position of the target corresponding to the second shooting position in the screen coordinate system according to the conversion relationship between the world coordinates and the screen coordinates;
将所述目标第一拍摄位置与当前拍摄参数下的所述目标第二拍摄位置进行位置比较,并在位置不重合时对所述虚拟相机模型当前使用的拍摄参数进行调整,直至调整后的拍摄参数下的所述目标第二拍摄位置与所述目标第一拍摄位置重合为止;Comparing the first shooting position of the target with the second shooting position of the target under the current shooting parameters, and adjusting the shooting parameters currently used by the virtual camera model when the positions do not overlap, until the adjusted shooting The second shooting position of the target under the parameter coincides with the first shooting position of the target;
将所述目标第二拍摄位置与所述目标第一拍摄位置重合时所使用的拍摄参数,作为与当前成像倍率对应的纠正拍摄参数。The shooting parameters used when the second shooting position of the target coincides with the first shooting position of the target are used as the corrected shooting parameters corresponding to the current imaging magnification.
可选地,在本申请实施例中,上述曲线绘制模块具体用于:Optionally, in this embodiment of the present application, the above-mentioned curve drawing module is specifically used for:
将测试得到的所有纠正拍摄参数按照每个纠正拍摄参数所对应的成像倍率数值进行排序,得到排序后的多组参数纠正数据,其中每组参数纠正数据包括对应的成像倍率数值及纠正拍摄参数;Sort all the corrected shooting parameters obtained by the test according to the imaging magnification value corresponding to each corrected shooting parameter, and obtain multiple sets of parameter correction data after sorting, wherein each group of parameter correction data includes the corresponding imaging magnification value and corrected shooting parameters;
对排序后的多组参数纠正数据中相邻两组参数纠正数据之间的线性变化曲线进行绘制,并对绘制出的多条线性变化曲线进行曲线调整,以得到所述参数纠正曲线。Drawing linear change curves between adjacent two groups of parameter correction data in the sorted sets of parameter correction data, and performing curve adjustment on the drawn linear change curves to obtain the parameter correction curves.
就设备而言,本申请实施例还提供一种AR实现设备,所述AR实现设备包括处理器及存储有计算机指令的非易失性存储器,所述计算机指令被所述处理器执行时,所述AR实现设备执行任意一种上述的相机模型纠正方法,其中所述AR实现设备与用于拍摄图像的真实相机连接,所述AR实现设备中存储有拍摄操作与所述真实相机的拍摄操作同步的虚拟相机模型。As far as the device is concerned, an embodiment of the present application also provides an AR implementation device, where the AR implementation device includes a processor and a non-volatile memory storing computer instructions. When the computer instructions are executed by the processor, the The AR implementation device executes any one of the above-mentioned camera model correction methods, wherein the AR implementation device is connected to a real camera for capturing images, and the AR implementation device stores a shooting operation synchronized with the shooting operation of the real camera virtual camera model.
就存储介质而言,本申请实施例还提供一种可读存储介质,所述可读存储介质包括计算机程序,所述计算机程序运行时控制所述可读存储介质所在AR实现设备执行任意一种上述的相机模型纠正方法。As far as the storage medium is concerned, an embodiment of the present application also provides a readable storage medium, where the readable storage medium includes a computer program, and when the computer program runs, it controls the AR implementation device where the readable storage medium is located to execute any one of the The camera model correction method described above.
相对于现有技术而言,本申请实施例提供的相机模型纠正方法、装置、AR实现设备及可读存储介质具有以下有益效果:所述相机模型纠正方法能够根据真实相机当前的物理特征对虚拟相机模型进行纠正,以使所述虚拟相机模型与所述真实相机实时匹配,增加AR融合精准度,提高AR效果。首先,所述方法实时检测所述真实相机当前的成像倍率数值;接着,所述方法根据存储的所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,获取与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数;最后,所述方法按照所述目标纠正拍摄参数对所述虚拟相机模型当前使用的拍摄参数数值进行调整,以使所述虚拟相机模型与所述真实相机实时匹配,减小所述虚拟相机模型与所述真实相机之间的融合偏差,增加AR融合精准度,从而提高对应的AR效果。Compared with the prior art, the camera model correction method, device, AR implementation device, and readable storage medium provided by the embodiments of the present application have the following beneficial effects: the camera model correction method can The camera model is corrected to match the virtual camera model with the real camera in real time, so as to increase the accuracy of AR fusion and improve the AR effect. First, the method detects the current imaging magnification value of the real camera in real time; then, the method obtains a parameter correction curve between the stored imaging magnification of the real camera and the corrected shooting parameters of the virtual camera model. The target correcting shooting parameters that match the current imaging magnification value of the real camera; finally, the method adjusts the shooting parameter values currently used by the virtual camera model according to the target correcting shooting parameters, so that the virtual camera The model is matched with the real camera in real time, the fusion deviation between the virtual camera model and the real camera is reduced, the AR fusion accuracy is increased, and the corresponding AR effect is improved.
为使本申请的上述目的、特征和优点能更明显易懂,下文特举本申请较佳实施例,并配合所附附图,作详细说明如下。In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, the preferred embodiments of the present application are exemplified below, and are described in detail as follows in conjunction with the accompanying drawings.
附图说明Description of drawings
为了更清楚地说明本申请实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对本申请权利要求保护范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to illustrate the technical solutions of the embodiments of the present application more clearly, the following drawings will briefly introduce the drawings that need to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application, and therefore do not It should be regarded as a limitation on the protection scope of the claims of the present application. For those of ordinary skill in the art, other related drawings can also be obtained from these drawings without any creative effort.
图1为本申请实施例提供的AR实现设备的一种方框示意图。FIG. 1 is a schematic block diagram of an AR implementation device provided by an embodiment of the present application.
图2为本申请实施例提供的相机模型纠正方法的第一种流程示意图。FIG. 2 is a schematic flowchart of a first type of camera model correction method provided by an embodiment of the present application.
图3为本申请实施例提供的相机模型纠正方法的第二种流程示意图。FIG. 3 is a schematic flowchart of a second type of camera model correction method provided by an embodiment of the present application.
图4为图3中所示的步骤S210包括的子步骤的流程示意图。FIG. 4 is a schematic flowchart of sub-steps included in step S210 shown in FIG. 3 .
图5为图3中所示的步骤S220包括的子步骤的流程示意图。FIG. 5 is a schematic flowchart of sub-steps included in step S220 shown in FIG. 3 .
图6为本申请实施例提供的相机模型纠正装置的第一种方框示意图。FIG. 6 is a first block schematic diagram of the apparatus for correcting a camera model provided by an embodiment of the present application.
图7为本申请实施例提供的相机模型纠正装置的第二种方框示意图。FIG. 7 is a second schematic block diagram of the apparatus for correcting a camera model provided by an embodiment of the present application.
图标:10-AR实现设备;11-存储器;12-处理器;13-通信单元;100-相机模型纠正装置;130-倍率检测模块;140-参数获取模块;150-参数调整模块;110-参数测试模块;120-曲线绘制模块。Icon: 10-AR realization device; 11-memory; 12-processor; 13-communication unit; 100-camera model correction device; 130-magnification detection module; 140-parameter acquisition module; 150-parameter adjustment module; 110-parameter Test module; 120-Curve drawing module.
具体实施方式Detailed ways
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. The components of the embodiments of the present application generally described and illustrated in the drawings herein may be arranged and designed in a variety of different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Thus, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that like numerals and letters refer to like items in the following figures, so once an item is defined in one figure, it does not require further definition and explanation in subsequent figures.
在本申请的描述中,需要说明的是,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。In the description of the present application, it should be noted that the terms "first", "second", "third", etc. are only used to distinguish descriptions, and cannot be understood as indicating or implying relative importance.
在本申请的描述中,还需要说明的是,除非另有明确的规定和限定,术语“设置”、“安装”、“相连”、“连接”应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或一体地连接;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通。对于本领域的普通技术人员而言,可以具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should also be noted that, unless otherwise expressly specified and limited, the terms "arrangement", "installation", "connection" and "connection" should be interpreted in a broad sense, for example, it may be a fixed connection, It can also be a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or an indirect connection through an intermediate medium, or the internal communication between the two components. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood in specific situations.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
请参照图1,是本申请实施例提供的AR实现设备10的一种方框示意图。在本申请实施例中,所述AR实现设备10通过有线网络或无线网络与用于拍摄图像的真实相机通信连接,所述AR实现设备10中存储有拍摄操作与所述真实相机的拍摄操作同步的虚拟相机模型,所述AR实现设备10通过所述虚拟相机模型与所述真实相机之间的配合实现AR效果。当所述真实相机发生转动拍摄时,所述虚拟相机模型也会随之进行转动拍摄,且所述虚拟相机模型的转动方向及转动幅度分别与所述真实相机的转动方向及转动幅度相同,即所述虚拟相机模型的拍摄操作与所述真实相机的拍摄操作同步。在本实施例中,所述AR实现设备10可根据真实相机当前表现出的如成像倍率的物理特征,对虚拟相机模型进行纠正,以使所述虚拟相机模型与所述真实相机实时匹配,减小所述虚拟相机模型与所述真实相机之间的融合偏差,增加AR融合精准度,从而提高对应的AR效果。其中,所述AR实现设备10可以是,但不限于,智能手机、个人电脑(personal computer,PC)、平板电脑、个人数字助理(personal digital assistant,PDA)、移动上网设备(mobile Internet device,MID)等。Please refer to FIG. 1 , which is a schematic block diagram of an
在本实施例中,所述AR实现设备10包括相机模型纠正装置100、存储器11、处理器12及通信单元13。所述存储器11、处理器12及通信单元13各个元件相互之间直接或间接地电性连接,以实现数据的传输或交互。例如,所述存储器11、处理器12及通信单元13这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。In this embodiment, the
在本实施例中,所述存储器11是非易失性存储器,所述存储器11可用于存储拍摄操作与所述真实相机的拍摄操作同步的虚拟相机模型,所述存储器11还可用于存储所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,所述参数纠正曲线用于表示所述虚拟相机模型当前使用的拍摄参数随着所述真实相机的成像倍率的变化而变化的适配规律,以确保所述虚拟相机模型能够基于所述参数纠正曲线与所述真实相机实时匹配,从而减小所述虚拟相机模型与所述真实相机之间的融合偏差,增加AR融合精准度,提高对应的AR效果。其中,所述拍摄参数可以是所述虚拟相机模型的拍摄焦距,也可以是所述虚拟相机模型的拍摄视场角。在本实施例中,所述存储器11还可用于存储程序,所述处理器12在接收到执行指令后,可相应地执行所述程序。In this embodiment, the
在本实施例中,所述处理器12可以是一种具有信号的处理能力的集成电路芯片。所述处理器12可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、图形处理器(Graphics Processing Unit,GPU)、网络处理器(Network Processor,NP)等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。In this embodiment, the
在本实施例中,所述通信单元13用于通过网络建立所述AR实现设备10与其他电子设备之间的通信连接,并通过所述网络收发数据。In this embodiment, the
在本实施例中,所述相机模型纠正装置100包括至少一个能够以软件或固件的形式存储于所述存储器11中或固化在所述AR实现设备10的操作系统中的软件功能模块。所述处理器12可用于执行所述存储器11存储的可执行模块,例如所述相机模型纠正装置100所包括的软件功能模块及计算机程序等。所述AR实现设备10通过所述相机模型纠正装置100对虚拟相机模型进行实时纠正,以使所述虚拟相机模型与所述真实相机实时匹配,减小所述虚拟相机模型与所述真实相机之间的融合偏差,增加AR融合精准度,从而提高对应的AR效果。In this embodiment, the camera
可以理解的是,图1所示的框图仅为AR实现设备10的一种结构组成示意图,所述AR实现设备10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the block diagram shown in FIG. 1 is only a schematic structural composition diagram of the
请参照图2,是本申请实施例提供的相机模型纠正方法的第一种流程示意图。在本申请实施例中,所述相机模型纠正方法应用于AR实现设备10,所述AR实现设备10与用于拍摄图像的真实相机连接,所述AR实现设备10中存储有拍摄操作与所述真实相机的拍摄操作同步的虚拟相机模型。下面对图2所示的相机模型纠正方法的具体流程和步骤进行详细阐述。Please refer to FIG. 2 , which is a schematic flowchart of a first method for correcting a camera model provided by an embodiment of the present application. In the embodiment of the present application, the camera model correction method is applied to the
步骤S230,实时检测真实相机当前的成像倍率数值。In step S230, the current imaging magnification value of the real camera is detected in real time.
在本实施例中,所述AR实现设备10可通过实时地向所述真实相机发送用于获取该真实相机当前使用的成像倍率数值的倍率获取请求的方式,实时检测并获取所述真实相机当前的成像倍率数值,以判断所述真实相机的成像倍率数值是否发生改变。In this embodiment, the
步骤S240,根据存储的所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,获取与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数。Step S240, according to the stored parameter correction curve between the imaging magnification of the real camera and the corrected shooting parameters of the virtual camera model, obtain target correction shooting parameters that match the current imaging magnification value of the real camera.
在本实施例中,当所述AR实现设备10获取到所述真实相机当前的成像倍率数值后,通过在存储的所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线中,查找与所述真实相机当前的成像倍率数值匹配的纠正拍摄参数的方式,得到与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数。In this embodiment, after the
步骤S250,按照所述目标纠正拍摄参数对所述虚拟相机模型当前使用的拍摄参数数值进行调整,以使所述虚拟相机模型与所述真实相机对应匹配。Step S250, adjusting the value of the shooting parameter currently used by the virtual camera model according to the target correction shooting parameter, so that the virtual camera model and the real camera are correspondingly matched.
在本实施例中,当所述真实相机的成像倍率数值发生改变,且所述AR实现设备10在参数纠正曲线中获取到与变化后的所述真实相机当前的成像倍率数值匹配的纠正拍摄参数时,所述AR实现设备10通过将所述虚拟相机模型当前使用的拍摄参数数值调整为所述目标纠正拍摄参数的数值的方式,实现对所述虚拟相机模型当前使用的拍摄参数的纠正,以使拍摄参数纠正后的所述虚拟相机模型与所述真实相机实时匹配,所述真实相机拍摄到的目标事物在所述真实相机的屏幕坐标系中的位置坐标,与该目标事物在拍摄参数纠正后的所述虚拟相机模型的世界坐标系中的位置坐标之间的融合偏差更小,以减小所述虚拟相机模型与所述真实相机之间的整体融合偏差,增加AR融合精准度,从而在以纠正后的所述拍摄参数及当前的成像倍率数值刷新该AR实现设备10的显示页面后,可对应得到AR效果更好的显示画面。In this embodiment, when the imaging magnification value of the real camera changes, and the
请参照图3,是本申请实施例提供的相机模型纠正方法的第二种流程示意图。在本申请实施例中,在所述步骤S230之前,所述相机模型纠正方法还可以包括步骤S210及步骤S220。Please refer to FIG. 3 , which is a schematic flowchart of a second type of camera model correction method provided by an embodiment of the present application. In this embodiment of the present application, before the step S230, the camera model correction method may further include steps S210 and S220.
步骤S210,测试所述虚拟相机模型在所述真实相机的不同成像倍率下所对应的纠正拍摄参数。Step S210, testing the corrected shooting parameters of the virtual camera model under different imaging magnifications of the real camera.
可选地,请参照图4,是图3中所示的步骤S210包括的子步骤的流程示意图。在本实施例中,所述步骤S210可以包括子步骤S211-子步骤S216。Optionally, please refer to FIG. 4 , which is a schematic flowchart of the sub-steps included in step S210 shown in FIG. 3 . In this embodiment, the step S210 may include sub-step S211-sub-step S216.
子步骤S211,在每次调整所述真实相机的成像倍率后,获取当前成像倍率下的目标实物在所述真实相机对应的屏幕坐标系中对应的第一拍摄位置。Sub-step S211, after each adjustment of the imaging magnification of the real camera, obtain the first shooting position corresponding to the real object under the current imaging magnification in the screen coordinate system corresponding to the real camera.
在本实施例中,所述AR实现设备10可通过在所述真实相机的屏幕中心处创建一图像识别区域,以通过所述图像识别区域确定某个目标实物的图像,并相应获取该目标实物的图像特征,及该目标实物在所述真实相机对应的屏幕坐标系中对应的第一拍摄位置的位置坐标。所述AR实现设备10在每次按照不同成像倍率数值对所述真实相机当前的成像倍率进行调整后,均会基于所述图像识别区域确定一个当前图像位于所述图像识别区域内的目标实物,并得到该目标实物在当前成像倍率下处于所述真实相机对应的屏幕坐标系中的第一拍摄位置。In this embodiment, the
子步骤S212,控制所述真实相机与所述虚拟相机模型按照相同的拍摄操作进行转动拍摄,以使所述目标实物在所述屏幕坐标系中对应的第一拍摄位置被移动至目标第一拍摄位置处。Sub-step S212, controlling the real camera and the virtual camera model to rotate and shoot according to the same shooting operation, so that the first shooting position corresponding to the real object in the screen coordinate system is moved to the first shooting position of the target location.
在本实施例中,所述目标第一拍摄位置可以是位于所述真实相机的屏幕边缘处,也可以是位于所述真实相机的屏幕左上角,具体的位置信息可根据需求进行不同的配置。In this embodiment, the first shooting position of the target may be located at the edge of the screen of the real camera, or may be located at the upper left corner of the screen of the real camera, and the specific position information can be configured differently according to requirements.
子步骤S213,当所述目标实物在所述屏幕坐标系中处于所述目标第一拍摄位置时,获取所述虚拟相机模型当前使用的拍摄参数下的所述目标实物在所述虚拟相机模型对应的世界坐标系中对应的第二拍摄位置。Sub-step S213, when the target object is in the first shooting position of the target in the screen coordinate system, obtain the corresponding target object in the virtual camera model under the shooting parameters currently used by the virtual camera model. The corresponding second shooting position in the world coordinate system of .
在本实施例中,当所述真实相机与所述虚拟相机模型按照相同的拍摄操作进行转动拍摄时,所述虚拟相机模型当前使用的拍摄参数的作用下的所述目标实物在所述虚拟相机模型对应的世界坐标系中对应的位置必定会发生变化。而当所述目标实物在所述屏幕坐标系中处于所述目标第一拍摄位置并停止移动时,所述虚拟相机模型当前使用的拍摄参数下的所述目标实物在所述世界坐标系中的位置也必将停止移动,此时所述目标实物在所述世界坐标系中的位置即为所述第二拍摄位置。In this embodiment, when the real camera and the virtual camera model rotate and shoot according to the same shooting operation, the actual target object under the action of shooting parameters currently used by the virtual camera model is displayed in the virtual camera. The corresponding position in the world coordinate system corresponding to the model must change. And when the target object is in the first shooting position of the target in the screen coordinate system and stops moving, the target object under the shooting parameters currently used by the virtual camera model is in the world coordinate system. The position will also stop moving. At this time, the position of the target object in the world coordinate system is the second shooting position.
子步骤S214,根据世界坐标与屏幕坐标之间的转换关系得到所述第二拍摄位置在所述屏幕坐标系中对应的目标第二拍摄位置。Sub-step S214, obtaining a target second shooting position corresponding to the second shooting position in the screen coordinate system according to the conversion relationship between the world coordinates and the screen coordinates.
在本实施例中,所述AR实现设备10通过根据所述世界坐标与所述屏幕坐标之间的转换关系,对所述第二拍摄位置进行坐标转换的方式,得到所述第二拍摄位置在所述屏幕坐标系中对应的目标第二拍摄位置。其中,若所述屏幕坐标系中的坐标(x1,y1)与所述世界坐标系中的原点坐标(0,0)相互对应,则所述屏幕坐标系中的第一目标坐标(X1,Y1)在转换到所述世界坐标系中时对应的位置坐标为(X1-x1,Y1-y1),所述世界坐标系中的第二目标坐标(X2,Y2)在转换到所述屏幕坐标系中时对应的位置坐标为(X2+x1,Y2+y1)。在本实施例的一种实施方式中,所述AR实现设备10以所述真实相机在屏幕坐标系中的屏幕中心坐标,与所述虚拟相机模型在世界坐标系中的原点坐标相互对应。In this embodiment, the
子步骤S215,将所述目标第一拍摄位置与当前拍摄参数下的所述目标第二拍摄位置进行位置比较,并在位置不重合时对所述虚拟相机模型当前使用的拍摄参数进行调整,直至调整后的拍摄参数下的所述目标第二拍摄位置与所述目标第一拍摄位置重合为止。Sub-step S215, compare the position of the first shooting position of the target with the second shooting position of the target under the current shooting parameters, and adjust the shooting parameters currently used by the virtual camera model when the positions do not overlap, until The second shooting position of the target under the adjusted shooting parameters and the first shooting position of the target coincide.
在本实施例中,当所述当前拍摄参数下的所述目标第二拍摄位置处于所述真实相机的屏幕覆盖范围内,且与目标第一拍摄位置不重合时,所述AR实现设备10将调小所述虚拟相机模型当前使用的拍摄视场角或调大所述虚拟相机模型当前使用的拍摄焦距,并基于调整后的拍摄参数重新得到该目标实物当前对应的目标第二拍摄位置,再次进行所述目标第二拍摄位置与所述目标第一拍摄位置之间的位置比较,直至调整后的拍摄参数下的所述目标第二拍摄位置与所述目标第一拍摄位置重合为止。In this embodiment, when the second shooting position of the target under the current shooting parameters is within the screen coverage of the real camera and does not overlap with the first shooting position of the target, the
当所述当前拍摄参数下的所述目标第二拍摄位置处于所述真实相机的屏幕覆盖范围外,且与目标第一拍摄位置不重合时,所述AR实现设备10将调大所述虚拟相机模型当前使用的拍摄视场角或调小所述虚拟相机模型当前使用的拍摄焦距,并基于调整后的拍摄参数重新得到该目标实物当前对应的目标第二拍摄位置,再次进行所述目标第二拍摄位置与所述目标第一拍摄位置之间的位置比较,直至调整后的拍摄参数下的所述目标第二拍摄位置与所述目标第一拍摄位置重合为止。When the second shooting position of the target under the current shooting parameters is outside the screen coverage of the real camera and does not coincide with the first shooting position of the target, the
子步骤S216,将所述目标第二拍摄位置与所述目标第一拍摄位置重合时所使用的拍摄参数,作为与当前成像倍率对应的纠正拍摄参数。Sub-step S216, taking the shooting parameters used when the second shooting position of the target coincides with the first shooting position of the target as the corrected shooting parameters corresponding to the current imaging magnification.
请再次参照图3,步骤S220,基于测试得到的纠正拍摄参数绘制形成所述参数纠正曲线。Please refer to FIG. 3 again, step S220, drawing and forming the parameter correction curve based on the corrected shooting parameters obtained by testing.
可选地,请参照图5,是图3中所示的步骤S220包括的子步骤的流程示意图。在本实施例中,所述步骤S220可以包括子步骤S221及子步骤S222。Optionally, please refer to FIG. 5 , which is a schematic flowchart of the sub-steps included in step S220 shown in FIG. 3 . In this embodiment, the step S220 may include sub-step S221 and sub-step S222.
子步骤S221,将测试得到的所有纠正拍摄参数按照每个纠正拍摄参数所对应的成像倍率数值进行排序,得到排序后的多组参数纠正数据,其中每组参数纠正数据包括对应的成像倍率数值及纠正拍摄参数。Sub-step S221, sort all the corrected shooting parameters obtained by the test according to the imaging magnification value corresponding to each corrected shooting parameter, and obtain multiple sets of parameter correction data after sorting, wherein each group of parameter correction data includes the corresponding imaging magnification value and Correct the shooting parameters.
子步骤S222,对排序后的多组参数纠正数据中相邻两组参数纠正数据之间的线性变化曲线进行绘制,并对绘制出的多条线性变化曲线进行曲线调整,以得到所述参数纠正曲线。Sub-step S222, draw linear change curves between adjacent two groups of parameter correction data in the sorted sets of parameter correction data, and perform curve adjustment on the drawn multiple linear change curves to obtain the parameter correction curve.
在本实施例中,所述线性变化曲线是以成像倍率为自变量并以纠正拍摄参数为因变量的线性曲线,所述AR实现设备10在得到排序后的多组参数纠正数据中相邻两组参数纠正数据之间的线性变化曲线后,通过在同一坐标系下对绘制出的多条线性变化曲线进行曲线拼接的方式,得到包括所有的所述线性变化曲线的所述参数纠正曲线。其中,所述AR实现设备10可采用升序的方式实现对测试得到的所有纠正拍摄参数的排序过程,也可采用降序的方式实现对测试得到的所有纠正拍摄参数的排序过程,具体的排序方式可根据需求进行不同的配置。In this embodiment, the linear change curve is a linear curve with the imaging magnification as the independent variable and the corrected shooting parameter as the dependent variable. The
在本实施例的一种实施方式中,所述曲线调整除了曲线拼接外还包括曲线平滑,当所述AR实现设备10在对多条线性变化曲线进行曲线拼接处理后,会通过对拼接形成的曲线进行曲线平滑处理的方式,得到所述参数纠正曲线。In an implementation of this embodiment, the curve adjustment includes curve smoothing in addition to curve splicing. When the
请参照图6,是本申请实施例提供的相机模型纠正装置100的第一种方框示意图。在本申请实施例中,所述相机模型纠正装置100包括倍率检测模块130、参数获取模块140及参数调整模块150。Please refer to FIG. 6 , which is a first block schematic diagram of a camera
所述倍率检测模块130,用于实时检测真实相机当前的成像倍率数值。The
在本实施例中,所述倍率检测模块130可以执行图2中的步骤S230,具体的描述可参照上文中对步骤S230的详细描述。In this embodiment, the
所述参数获取模块140,用于根据存储的所述真实相机的成像倍率与虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,获取与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数。The
在本实施例中,所述参数获取模块140可以执行图2中的步骤S240,具体的描述可参照上文中对步骤S240的详细描述。In this embodiment, the
所述参数调整模块150,用于按照所述目标纠正拍摄参数对所述虚拟相机模型当前使用的拍摄参数数值进行调整,以使所述虚拟相机模型与所述真实相机对应匹配。The
在本实施例中,所述参数调整模块150可以执行图2中的步骤S250,具体的描述可参照上文中对步骤S250的详细描述。In this embodiment, the
请参照图7,是本申请实施例提供的相机模型纠正装置100的第二种方框示意图。在本申请实施例中,所述相机模型纠正装置100还可以包括参数测试模块110及曲线绘制模块120。Please refer to FIG. 7 , which is a second block schematic diagram of a camera
所述参数测试模块110,用于测试所述虚拟相机模型在所述真实相机的不同成像倍率下所对应的纠正拍摄参数。The
在本实施例中,所述参数测试模块110测试所述虚拟相机模型在所述真实相机的不同成像倍率下所对应的纠正拍摄参数的方式包括:In this embodiment, the method for testing the correction shooting parameters of the virtual camera model under different imaging magnifications of the real camera by the
在每次调整所述真实相机的成像倍率后,获取当前成像倍率下的目标实物在所述真实相机对应的屏幕坐标系中对应的第一拍摄位置;After each adjustment of the imaging magnification of the real camera, obtain the first shooting position corresponding to the object object under the current imaging magnification in the screen coordinate system corresponding to the real camera;
控制所述真实相机与所述虚拟相机模型按照相同的拍摄操作进行转动拍摄,以使所述目标实物在所述屏幕坐标系中对应的第一拍摄位置被移动至目标第一拍摄位置处;Controlling the real camera and the virtual camera model to rotate and shoot according to the same shooting operation, so that the first shooting position corresponding to the real object in the screen coordinate system is moved to the first shooting position of the target;
当所述目标实物在所述屏幕坐标系中处于所述目标第一拍摄位置时,获取所述虚拟相机模型当前使用的拍摄参数下的所述目标实物在所述虚拟相机模型对应的世界坐标系中对应的第二拍摄位置;When the target object is at the first shooting position of the target in the screen coordinate system, obtain the world coordinate system corresponding to the virtual camera model of the target object under the shooting parameters currently used by the virtual camera model The corresponding second shooting position in ;
根据世界坐标与屏幕坐标之间的转换关系得到所述第二拍摄位置在所述屏幕坐标系中对应的目标第二拍摄位置;Obtaining the second shooting position of the target corresponding to the second shooting position in the screen coordinate system according to the conversion relationship between the world coordinates and the screen coordinates;
将所述目标第一拍摄位置与当前拍摄参数下的所述目标第二拍摄位置进行位置比较,并在位置不重合时对所述虚拟相机模型当前使用的拍摄参数进行调整,直至调整后的拍摄参数下的所述目标第二拍摄位置与所述目标第一拍摄位置重合为止;Comparing the first shooting position of the target with the second shooting position of the target under the current shooting parameters, and adjusting the shooting parameters currently used by the virtual camera model when the positions do not overlap, until the adjusted shooting The second shooting position of the target under the parameter coincides with the first shooting position of the target;
将所述目标第二拍摄位置与所述目标第一拍摄位置重合时所使用的拍摄参数,作为与当前成像倍率对应的纠正拍摄参数。The shooting parameters used when the second shooting position of the target coincides with the first shooting position of the target are used as the corrected shooting parameters corresponding to the current imaging magnification.
其中,所述参数测试模块110可以执行图3中的步骤S210及图4中的子步骤S211-子步骤S216,具体的描述可参照上文中对步骤S210及子步骤S211-子步骤S216的详细描述。Wherein, the
所述曲线绘制模块120,用于基于测试得到的纠正拍摄参数绘制形成所述参数纠正曲线。The
在本实施例中,所述曲线绘制模块120基于测试得到的纠正拍摄参数绘制形成所述参数纠正曲线的方式包括:In this embodiment, the manner in which the
将测试得到的所有纠正拍摄参数按照每个纠正拍摄参数所对应的成像倍率数值进行排序,得到排序后的多组参数纠正数据,其中每组参数纠正数据包括对应的成像倍率数值及纠正拍摄参数;Sort all the corrected shooting parameters obtained by the test according to the imaging magnification value corresponding to each corrected shooting parameter, and obtain multiple sets of parameter correction data after sorting, wherein each group of parameter correction data includes the corresponding imaging magnification value and corrected shooting parameters;
对排序后的多组参数纠正数据中相邻两组参数纠正数据之间的线性变化曲线进行绘制,并对绘制出的多条线性变化曲线进行曲线调整,以得到所述参数纠正曲线。Drawing linear change curves between adjacent two groups of parameter correction data in the sorted sets of parameter correction data, and performing curve adjustment on the drawn linear change curves to obtain the parameter correction curves.
其中,所述曲线绘制模块120可以执行图3中的步骤S220及图4中的子步骤S221和子步骤S222,具体的描述可参照上文中对步骤S220、子步骤S221及子步骤S222的详细描述。The
本申请实施例还提供一种可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序运行时控制所述可读存储介质所在AR实现设备10执行上述的奖励发放方法。其中,所述可读存储介质可以是AR实现设备10(比如,个人计算机、服务器等)能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等各种可以存储程序代码的介质。Embodiments of the present application further provide a readable storage medium, where a computer program is stored in the readable storage medium, and the computer program controls the
综上所述,在本申请实施例提供的相机模型纠正方法、装置、AR实现设备及可读存储介质中,所述相机模型纠正方法能够根据真实相机当前的物理特征对虚拟相机模型进行纠正,以使所述虚拟相机模型与所述真实相机实时匹配,增加AR融合精准度,提高AR效果。首先,所述方法实时检测所述真实相机当前的成像倍率数值;接着,所述方法根据存储的所述真实相机的成像倍率与所述虚拟相机模型的纠正拍摄参数之间的参数纠正曲线,获取与所述真实相机当前的成像倍率数值匹配的目标纠正拍摄参数;最后,所述方法按照所述目标纠正拍摄参数对所述虚拟相机模型当前使用的拍摄参数数值进行调整,以使所述虚拟相机模型与所述真实相机实时匹配,减小所述虚拟相机模型与所述真实相机之间的融合偏差,增加AR融合精准度,从而提高对应的AR效果。To sum up, in the camera model correction method, device, AR implementation device, and readable storage medium provided in the embodiments of the present application, the camera model correction method can correct the virtual camera model according to the current physical characteristics of the real camera, In order to match the virtual camera model with the real camera in real time, the AR fusion accuracy can be increased, and the AR effect can be improved. First, the method detects the current imaging magnification value of the real camera in real time; then, the method obtains a parameter correction curve between the stored imaging magnification of the real camera and the corrected shooting parameters of the virtual camera model. The target correcting shooting parameters that match the current imaging magnification value of the real camera; finally, the method adjusts the shooting parameter values currently used by the virtual camera model according to the target correcting shooting parameters, so that the virtual camera The model is matched with the real camera in real time, the fusion deviation between the virtual camera model and the real camera is reduced, the AR fusion accuracy is increased, and the corresponding AR effect is improved.
以上所述仅为本申请的优选实施例而已,并不用于限制本申请,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811524847.4A CN111325798B (en) | 2018-12-13 | 2018-12-13 | Camera model correction method, device, AR implementation equipment and readable storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811524847.4A CN111325798B (en) | 2018-12-13 | 2018-12-13 | Camera model correction method, device, AR implementation equipment and readable storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111325798A true CN111325798A (en) | 2020-06-23 |
| CN111325798B CN111325798B (en) | 2023-08-18 |
Family
ID=71172253
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811524847.4A Active CN111325798B (en) | 2018-12-13 | 2018-12-13 | Camera model correction method, device, AR implementation equipment and readable storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111325798B (en) |
Cited By (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112132909A (en) * | 2020-09-23 | 2020-12-25 | 字节跳动有限公司 | Parameter acquisition method and device, media data processing method and storage medium |
| CN113905145A (en) * | 2021-10-11 | 2022-01-07 | 浙江博采传媒有限公司 | LED circular screen virtual-real camera focus matching method and system |
| CN114040090A (en) * | 2021-08-25 | 2022-02-11 | 先壤影视制作(上海)有限公司 | Method, device, equipment, storage medium, acquisition part and system for synchronizing virtuality and reality |
| WO2022040983A1 (en) * | 2020-08-26 | 2022-03-03 | 南京翱翔智能制造科技有限公司 | Real-time registration method based on projection marking of cad model and machine vision |
| CN114422696A (en) * | 2022-01-19 | 2022-04-29 | 浙江博采传媒有限公司 | Virtual shooting method and device and storage medium |
| CN116320363A (en) * | 2023-05-25 | 2023-06-23 | 四川中绳矩阵技术发展有限公司 | Multi-angle virtual reality shooting method and system |
Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102157011A (en) * | 2010-12-10 | 2011-08-17 | 北京大学 | Method for carrying out dynamic texture acquisition and virtuality-reality fusion by using mobile shooting equipment |
| US20140300635A1 (en) * | 2011-11-09 | 2014-10-09 | Sony Corporation | Information processing apparatus, display control method, and program |
| US20150304531A1 (en) * | 2012-11-26 | 2015-10-22 | Brainstorm Multimedia, S.L. | A method for obtaining and inserting in real time a virtual object within a virtual scene from a physical object |
| US20170301137A1 (en) * | 2016-04-15 | 2017-10-19 | Superd Co., Ltd. | Method, apparatus, and smart wearable device for fusing augmented reality and virtual reality |
| CN108492356A (en) * | 2017-02-13 | 2018-09-04 | 苏州宝时得电动工具有限公司 | Augmented reality system and its control method |
| CN108520552A (en) * | 2018-03-26 | 2018-09-11 | 广东欧珀移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
| CN108537889A (en) * | 2018-03-26 | 2018-09-14 | 广东欧珀移动通信有限公司 | Adjustment method, device, storage medium and electronic device for augmented reality model |
| CN108553889A (en) * | 2018-03-29 | 2018-09-21 | 广州汉智网络科技有限公司 | Dummy model exchange method and device |
| CN108986199A (en) * | 2018-06-14 | 2018-12-11 | 北京小米移动软件有限公司 | Dummy model processing method, device, electronic equipment and storage medium |
-
2018
- 2018-12-13 CN CN201811524847.4A patent/CN111325798B/en active Active
Patent Citations (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102157011A (en) * | 2010-12-10 | 2011-08-17 | 北京大学 | Method for carrying out dynamic texture acquisition and virtuality-reality fusion by using mobile shooting equipment |
| US20140300635A1 (en) * | 2011-11-09 | 2014-10-09 | Sony Corporation | Information processing apparatus, display control method, and program |
| US20150304531A1 (en) * | 2012-11-26 | 2015-10-22 | Brainstorm Multimedia, S.L. | A method for obtaining and inserting in real time a virtual object within a virtual scene from a physical object |
| US20170301137A1 (en) * | 2016-04-15 | 2017-10-19 | Superd Co., Ltd. | Method, apparatus, and smart wearable device for fusing augmented reality and virtual reality |
| CN108492356A (en) * | 2017-02-13 | 2018-09-04 | 苏州宝时得电动工具有限公司 | Augmented reality system and its control method |
| CN108520552A (en) * | 2018-03-26 | 2018-09-11 | 广东欧珀移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
| CN108537889A (en) * | 2018-03-26 | 2018-09-14 | 广东欧珀移动通信有限公司 | Adjustment method, device, storage medium and electronic device for augmented reality model |
| CN108553889A (en) * | 2018-03-29 | 2018-09-21 | 广州汉智网络科技有限公司 | Dummy model exchange method and device |
| CN108986199A (en) * | 2018-06-14 | 2018-12-11 | 北京小米移动软件有限公司 | Dummy model processing method, device, electronic equipment and storage medium |
Cited By (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2022040983A1 (en) * | 2020-08-26 | 2022-03-03 | 南京翱翔智能制造科技有限公司 | Real-time registration method based on projection marking of cad model and machine vision |
| CN112132909A (en) * | 2020-09-23 | 2020-12-25 | 字节跳动有限公司 | Parameter acquisition method and device, media data processing method and storage medium |
| CN112132909B (en) * | 2020-09-23 | 2023-12-22 | 字节跳动有限公司 | Parameter acquisition method and device, media data processing method and storage medium |
| CN114040090A (en) * | 2021-08-25 | 2022-02-11 | 先壤影视制作(上海)有限公司 | Method, device, equipment, storage medium, acquisition part and system for synchronizing virtuality and reality |
| CN113905145A (en) * | 2021-10-11 | 2022-01-07 | 浙江博采传媒有限公司 | LED circular screen virtual-real camera focus matching method and system |
| CN114422696A (en) * | 2022-01-19 | 2022-04-29 | 浙江博采传媒有限公司 | Virtual shooting method and device and storage medium |
| CN116320363A (en) * | 2023-05-25 | 2023-06-23 | 四川中绳矩阵技术发展有限公司 | Multi-angle virtual reality shooting method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111325798B (en) | 2023-08-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111325798B (en) | Camera model correction method, device, AR implementation equipment and readable storage medium | |
| CN109242913B (en) | Method, device, equipment and medium for calibrating relative parameters of collector | |
| US9727775B2 (en) | Method and system of curved object recognition using image matching for image processing | |
| WO2019042419A1 (en) | Image tracking point acquisition method and device, and storage medium | |
| TWI485650B (en) | Method and arrangement for multi-camera calibration | |
| CN109816769A (en) | Scene map generation method, device and equipment based on depth camera | |
| US20150103183A1 (en) | Method and apparatus for device orientation tracking using a visual gyroscope | |
| US20110311100A1 (en) | Method, Apparatus and Computer Program Product for Providing Object Tracking Using Template Switching and Feature Adaptation | |
| WO2019152144A1 (en) | Object detection based on neural network | |
| CN114298902B (en) | Image alignment method and device, electronic equipment and storage medium | |
| WO2022105277A1 (en) | Projection control method and apparatus, projection optical machine, and readable storage medium | |
| WO2019128504A1 (en) | Method and apparatus for image processing in billiards game, and terminal device | |
| CN112559341A (en) | Picture testing method, device, equipment and storage medium | |
| JP2016212784A (en) | Image processing apparatus and image processing method | |
| CN108229281B (en) | Neural network generation method, face detection device and electronic equipment | |
| US20180114339A1 (en) | Information processing device and method, and program | |
| WO2018058476A1 (en) | Image correction method and device | |
| CN111091513B (en) | Image processing method, device, computer-readable storage medium, and electronic device | |
| CN115362481A (en) | Motion Blur Robust Image Feature Descriptor | |
| WO2024016715A1 (en) | Method and apparatus for testing imaging consistency of system, and computer storage medium | |
| CN114092905A (en) | Lane line detection method, device, electronic device and storage medium | |
| CN111784607B (en) | Image tone mapping method, device, terminal equipment and storage medium | |
| CN118781623A (en) | Document image extraction method, device, storage medium and electronic device | |
| CN118488329A (en) | Pixel dead pixel correction method and device, electronic equipment and storage medium | |
| CN114529491A (en) | Image quality detection method, device, electronic equipment and storage medium |
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 |