[go: up one dir, main page]

CN111246100A - Calibration method, device and electronic device for anti-shake parameters - Google Patents

Calibration method, device and electronic device for anti-shake parameters Download PDF

Info

Publication number
CN111246100A
CN111246100A CN202010065715.0A CN202010065715A CN111246100A CN 111246100 A CN111246100 A CN 111246100A CN 202010065715 A CN202010065715 A CN 202010065715A CN 111246100 A CN111246100 A CN 111246100A
Authority
CN
China
Prior art keywords
shake
image
target
value
motion information
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
Application number
CN202010065715.0A
Other languages
Chinese (zh)
Other versions
CN111246100B (en
Inventor
戴朋飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010065715.0A priority Critical patent/CN111246100B/en
Publication of CN111246100A publication Critical patent/CN111246100A/en
Application granted granted Critical
Publication of CN111246100B publication Critical patent/CN111246100B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/68Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
    • H04N23/681Motion detection
    • H04N23/6812Motion detection based on additional sensors, e.g. acceleration sensors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/80Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Studio Devices (AREA)

Abstract

The application relates to an anti-shake parameter calibration method and device, electronic equipment and a computer readable storage medium. The method comprises the steps of controlling a camera and a reference calibration object to perform relative motion, shooting the reference calibration object, and acquiring at least two frames of target images; respectively acquiring corresponding feature points from at least two frames of target images; acquiring motion information of each characteristic point; determining at least two cost values of the anti-shake parameters based on the motion information of the corresponding feature points in the at least two frames of target images; and calibrating the anti-shake parameters according to at least two cost values of the anti-shake parameters. The method and the device, the electronic equipment and the computer readable storage medium can improve the accuracy of calibrating the anti-shake parameters.

Description

防抖参数的标定方法、装置和电子设备Calibration method, device and electronic device for anti-shake parameters

技术领域technical field

本申请涉及影像技术领域,特别是涉及一种防抖参数的标定方法、装置、电子设备和计算机可读存储介质。The present application relates to the field of imaging technologies, and in particular, to a method, device, electronic device, and computer-readable storage medium for calibrating anti-shake parameters.

背景技术Background technique

随着智能手机和摄像机等拍摄设备的发展,出现了拍摄技术。在拍摄时,为了拍摄出更清晰更好看的图片或者视频,通常需要对智能手机和摄像机等拍照设备进行防抖处理。而为了使拍照设备更准确进行防抖处理,需要在拍摄设备出厂时对拍摄设备的各个防抖参数进行标定。With the development of shooting equipment such as smartphones and video cameras, shooting techniques have emerged. When shooting, in order to shoot clearer and better-looking pictures or videos, it is usually necessary to perform anti-shake processing on camera devices such as smartphones and cameras. In order to make the photographing device perform anti-shake processing more accurately, each anti-shake parameter of the photographing device needs to be calibrated when the photographing device leaves the factory.

然而,传统的防抖参数的标定方法,存在标定不准确的问题。However, the traditional calibration method of anti-shake parameters has the problem of inaccurate calibration.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种防抖参数的标定方法、装置、电子设备、计算机可读存储介质,可以提高防抖参数标定的准确性。Embodiments of the present application provide a method, device, electronic device, and computer-readable storage medium for calibrating anti-shake parameters, which can improve the accuracy of anti-shake parameter calibration.

一种防抖参数的标定方法,包括:A method for calibrating anti-shake parameters, comprising:

控制摄像头与参照标定物之间进行相对运动,并拍摄所述参照标定物,获取至少两帧目标图像;Controlling the relative movement between the camera and the reference calibration object, and photographing the reference calibration object to obtain at least two frames of target images;

从至少两帧所述目标图像中分别获取相对应的特征点;respectively obtain corresponding feature points from at least two frames of the target image;

获取各个所述特征点的运动信息;acquiring motion information of each of the feature points;

基于至少两帧所述目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值;Determine at least two cost values of the anti-shake parameter based on the motion information of the corresponding feature points in the at least two frames of the target image;

根据所述防抖参数的至少两个所述代价值对所述防抖参数进行标定。The anti-shake parameter is calibrated according to at least two of the cost values of the anti-shake parameter.

一种防抖参数的标定装置,包括:A device for calibrating anti-shake parameters, comprising:

拍摄模块,用于控制摄像头与参照标定物之间进行相对运动,并拍摄所述参照标定物,获取至少两帧目标图像;a shooting module, configured to control the relative movement between the camera and the reference calibration object, and shoot the reference calibration object to obtain at least two frames of target images;

特征点获取模块,用于从至少两帧所述目标图像中分别获取相对应的特征点;a feature point acquiring module, configured to acquire corresponding feature points from at least two frames of the target image respectively;

运动信息获取模块,用于获取各个所述特征点的运动信息;a motion information acquisition module for acquiring motion information of each of the feature points;

代价值确定模块,用于基于至少两帧所述目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值;A cost value determination module, configured to determine at least two cost values of the anti-shake parameter based on the motion information of the corresponding feature points in the at least two frames of the target image;

标定模块,用于根据所述防抖参数的至少两个所述代价值对所述防抖参数进行标定。A calibration module, configured to calibrate the anti-shake parameters according to at least two of the cost values of the anti-shake parameters.

一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行上述的防抖参数的标定方法的步骤。An electronic device includes a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps of the above-mentioned method for calibrating anti-shake parameters.

一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的方法的步骤。A computer-readable storage medium having a computer program stored thereon, the computer program implementing the steps of the above-described method when executed by a processor.

上述防抖参数的标定方法、装置、电子设备和计算机可读存储介质,控制摄像头与参照标定物之间进行相对运动,并拍摄参照标定物,获取至少两帧目标图像;从至少两帧目标图像中分别获取相对应的特征点;获取各个特征点的运动信息;基于至少两帧目标图像中相对应的特征点的运动信息,可以知道至少拍摄参照标定物的两帧目标图像之间的防抖情况,从而确定防抖参数的至少两个代价值;根据防抖参数的至少两个代价值可以对防抖参数进行更准确标定。The calibration method, device, electronic device and computer-readable storage medium for the above-mentioned anti-shake parameters control the relative movement between the camera and the reference calibration object, and shoot the reference calibration object to obtain at least two frames of target images; from at least two frames of target images Obtain the corresponding feature points in the target image respectively; obtain the motion information of each feature point; based on the motion information of the corresponding feature points in at least two frames of target images, it is possible to know the anti-shake between at least two frames of target images of the reference calibration object. Therefore, at least two cost values of the anti-shake parameters are determined; according to the at least two cost values of the anti-shake parameters, the anti-shake parameters can be calibrated more accurately.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为一个实施例中图像处理电路的示意图;1 is a schematic diagram of an image processing circuit in one embodiment;

图2为一个实施例中防抖参数的标定方法的流程图;2 is a flowchart of a method for calibrating anti-shake parameters in one embodiment;

图3为一个实施例中步骤确定防抖参数的代价值的流程图;Fig. 3 is a flow chart of steps to determine the cost value of anti-shake parameters in one embodiment;

图4为一个实施例中步骤确定目标拍摄策略的流程图;4 is a flowchart of steps in one embodiment to determine a target shooting strategy;

图5为一个实施例中防抖参数的标定方法装置的结构框图;5 is a structural block diagram of an apparatus for calibrating anti-shake parameters in one embodiment;

图6为一个实施例中电子设备的内部结构示意图。FIG. 6 is a schematic diagram of the internal structure of an electronic device in one embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application will be described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application, but not to limit the present application.

可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一图像称为第二图像,且类似地,可将第二图像称为第一图像。第一图像和第二图像两者都是图像,但其不是同一图像。It will be understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, a first image could be referred to as a second image, and, similarly, a second image could be referred to as a first image, without departing from the scope of this application. Both the first image and the second image are images, but they are not the same image.

本申请实施例还提供一种电子设备。上述电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图1为一个实施例中图像处理电路的示意图。如图1所示,为便于说明,仅示出与本申请实施例相关的图像处理技术的各个方面。The embodiments of the present application also provide an electronic device. The above electronic device includes an image processing circuit, and the image processing circuit may be implemented by hardware and/or software components, and may include various processing units that define an ISP (Image Signal Processing, image signal processing) pipeline. FIG. 1 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 1 , for the convenience of description, only various aspects of the image processing technology related to the embodiments of the present application are shown.

如图1所示,图像处理电路包括ISP处理器140和控制逻辑器150。成像设备110捕捉的图像数据首先由ISP处理器140处理,ISP处理器140对图像数据进行分析以捕捉可用于确定和/或成像设备110的一个或多个控制参数的图像统计信息。成像设备110可包括具有一个或多个透镜112和图像传感器114的照相机。图像传感器114可包括色彩滤镜阵列(如Bayer滤镜),图像传感器114可获取用图像传感器114的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器140处理的一组原始图像数据。传感器120(如陀螺仪)可基于传感器120接口类型把采集的图像处理的参数(如防抖参数)提供给ISP处理器140。传感器120接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口或上述接口的组合。As shown in FIG. 1 , the image processing circuit includes an ISP processor 140 and a control logic 150 . Image data captured by imaging device 110 is first processed by ISP processor 140 , which analyzes the image data to capture image statistics that can be used to determine and/or control one or more parameters of imaging device 110 . Imaging device 110 may include a camera having one or more lenses 112 and an image sensor 114 . Image sensor 114 may include an array of color filters (eg, Bayer filters), image sensor 114 may obtain light intensity and wavelength information captured with each imaging pixel of image sensor 114 and provide a set of raw materials that may be processed by ISP processor 140 . image data. The sensor 120 (eg, a gyroscope) may provide the acquired image processing parameters (eg, anti-shake parameters) to the ISP processor 140 based on the sensor 120 interface type. The sensor 120 interface may utilize a SMIA (Standard Mobile Imaging Architecture) interface, other serial or parallel camera interfaces, or a combination of the above interfaces.

此外,图像传感器114也可将原始图像数据发送给传感器120,传感器120可基于传感器120接口类型把原始图像数据提供给ISP处理器140,或者传感器120将原始图像数据存储到图像存储器130中。Additionally, image sensor 114 may also send raw image data to sensor 120 , sensor 120 may provide raw image data to ISP processor 140 based on the sensor 120 interface type, or sensor 120 may store the raw image data in image memory 130 .

ISP处理器140按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有8、10、12或14比特的位深度,ISP处理器140可对原始图像数据进行一个或多个图像处理操作、收集关于图像数据的统计信息。其中,图像处理操作可按相同或不同的位深度精度进行。The ISP processor 140 processes raw image data pixel by pixel in various formats. For example, each image pixel may have a bit depth of 8, 10, 12, or 14 bits, and the ISP processor 140 may perform one or more image processing operations on the raw image data, collecting statistical information about the image data. Among them, the image processing operations can be performed with the same or different bit depth precision.

ISP处理器140还可从图像存储器130接收图像数据。例如,传感器120接口将原始图像数据发送给图像存储器130,图像存储器130中的原始图像数据再提供给ISP处理器140以供处理。图像存储器130可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。The ISP processor 140 may also receive image data from the image memory 130 . For example, the sensor 120 interface sends the raw image data to the image memory 130, and the raw image data in the image memory 130 is provided to the ISP processor 140 for processing. The image memory 130 may be a part of a memory device, a storage device, or an independent dedicated memory in an electronic device, and may include a DMA (Direct Memory Access, direct memory access) feature.

当接收到来自图像传感器114接口或来自传感器120接口或来自图像存储器130的原始图像数据时,ISP处理器140可进行一个或多个图像处理操作,如时域滤波。处理后的图像数据可发送给图像存储器130,以便在被显示之前进行另外的处理。ISP处理器140还可从图像存储器130接收处理数据,对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。此外,ISP处理器140的输出还可发送给图像存储器130。在一个实施例中,图像存储器130可被配置为实现一个或多个帧缓冲器。When receiving raw image data from the image sensor 114 interface or from the sensor 120 interface or from the image memory 130, the ISP processor 140 may perform one or more image processing operations, such as temporal filtering. The processed image data may be sent to image memory 130 for additional processing before being displayed. The ISP processor 140 may also receive processed data from the image memory 130 on which to perform image data processing in the original domain and in the RGB and YCbCr color spaces. In addition, the output of the ISP processor 140 may also be sent to the image memory 130 . In one embodiment, image memory 130 may be configured to implement one or more frame buffers.

ISP处理器140处理图像数据的步骤包括:对图像数据进行VFE(Video Front End,视频前端)处理和CPP(Camera Post Processing,摄像头后处理)处理。对图像数据的VFE处理可包括修正图像数据的对比度或亮度、修改以数字方式记录的光照状态数据、对图像数据进行补偿处理(如白平衡,自动增益控制,γ校正等)、对图像数据进行滤波处理等。对图像数据的CPP处理可包括对图像进行缩放、向每个路径提供预览帧和记录帧。其中,CPP可使用不同的编解码器来处理预览帧和记录帧。The step of processing the image data by the ISP processor 140 includes: performing VFE (Video Front End, video front-end) processing and CPP (Camera Post Processing, camera post-processing) processing on the image data. VFE processing of image data may include correcting the contrast or brightness of the image data, modifying the digitally recorded lighting state data, performing compensation processing on the image data (such as white balance, automatic gain control, gamma correction, etc.), modifying the image data. filtering, etc. CPP processing of image data may include scaling the image, providing preview frames and recording frames to each path. Among them, CPP can use different codecs to process preview frames and record frames.

ISP处理器140确定的统计数据可发送给控制逻辑器150单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜112阴影校正等图像传感器114统计信息。控制逻辑器150可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备110的控制参数以及ISP处理器140的控制参数。例如,成像设备110的控制参数可包括传感器120控制参数(例如增益、曝光控制的积分时间)、照相机闪光控制参数、透镜112控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩校正矩阵,以及透镜112阴影校正参数。Statistics determined by the ISP processor 140 may be sent to the control logic 150 unit. For example, the statistics may include image sensor 114 statistics such as auto exposure, auto white balance, auto focus, flicker detection, black level compensation, lens 112 shading correction, and the like. Control logic 150 may include a processor and/or microcontroller executing one or more routines (eg, firmware) that may determine control parameters of imaging device 110 and ISP processing based on received statistics control parameters of the controller 140. For example, imaging device 110 control parameters may include sensor 120 control parameters (eg, gain, integration time for exposure control), camera flash control parameters, lens 112 control parameters (eg, focal length for focusing or zooming), or a combination of these parameters. ISP control parameters may include gain levels and color correction matrices for automatic white balance and color adjustment (eg, during RGB processing), and lens 112 shading correction parameters.

在一个实施例中,电子设备控制成像设备(照相机)110即摄像头与参照标定物之间进行相对运动,并通过控制逻辑器150控制成像设备(照相机)110拍摄参照标定物,获取至少两帧目标图像,并通过成像设备(照相机)110将至少两帧目标图像发送至ISP处理器140。ISP处理器140接收到至少两帧目标图像之后,从至少两帧目标图像中分别获取相对应的特征点;获取各个特征点的运动信息。其中,各个特征点的运动信息可以通过传感器120获取并发送至ISP处理器140。ISP处理器140基于至少两帧目标图像中相对应的特征点的运动信息,可以知道至少拍摄参照标定物的两帧目标图像之间的防抖情况,从而确定防抖参数的至少两个代价值;根据防抖参数的至少两个代价值可以对防抖参数进行更准确标定。In one embodiment, the electronic device controls the imaging device (camera) 110 to perform relative movement between the camera and the reference calibration object, and controls the imaging device (camera) 110 to shoot the reference calibration object through the control logic 150 to obtain at least two frames of the target image, and at least two frames of target images are sent to the ISP processor 140 through the imaging device (camera) 110 . After receiving the at least two frames of target images, the ISP processor 140 obtains corresponding feature points respectively from the at least two frames of target images, and obtains motion information of each feature point. The motion information of each feature point may be acquired by the sensor 120 and sent to the ISP processor 140 . Based on the motion information of the corresponding feature points in the at least two target images, the ISP processor 140 can know the anti-shake situation between at least two target images of the reference calibration object, thereby determining at least two cost values of the anti-shake parameters. ; The anti-shake parameters can be calibrated more accurately according to at least two cost values of the anti-shake parameters.

图2为一个实施例中防抖参数的标定方法的流程图。如图2所示,防抖参数的标定方法包括步骤202至步骤210。FIG. 2 is a flowchart of a method for calibrating anti-shake parameters in one embodiment. As shown in FIG. 2 , the method for calibrating anti-shake parameters includes steps 202 to 210 .

步骤202,控制摄像头与参照标定物之间进行相对运动,并拍摄参照标定物,获取至少两帧目标图像。Step 202 , controlling the camera to perform relative movement with the reference calibration object, and photographing the reference calibration object to acquire at least two frames of target images.

摄像头安装在电子设备上,可以安装在电子设备的正面侧作为前置摄像头,也可以安装在电子设备的背面侧作为后置摄像头,还可以安装在电子设备的其他地方。安装在电子设备上的摄像头的数量可以为一个,也可以是多个。任一个摄像头的类型可以是深度摄像头、长焦摄像头、广角摄像头、激光摄像头、毫米波摄像头等其中的一种。The camera is installed on the electronic device, and can be installed on the front side of the electronic device as a front camera, or on the back side of the electronic device as a rear camera, and can also be installed in other places of the electronic device. The number of cameras installed on the electronic device may be one or more. The type of any camera can be one of a depth camera, a telephoto camera, a wide-angle camera, a laser camera, a millimeter-wave camera, and the like.

需要指出的是,本申请所述的摄像头既可以指的是透镜、也可以指的是摄像头模组。摄像头模组中包括透镜、图像传感器、马达等部件。It should be pointed out that the camera described in this application may refer to both a lens and a camera module. The camera module includes components such as lenses, image sensors, and motors.

参照标定物指的是用于对防抖参数进行标定的参照物。例如,参照标定物可以是标定板、标定图画、人物等其中的至少一种。The reference calibration object refers to the reference object used to calibrate the anti-shake parameters. For example, the reference calibration object may be at least one of a calibration plate, a calibration picture, a person, and the like.

可选地,可以控制摄像头保持静止,并控制参照标定物进行运动;也可以控制参照标定物保持静止,并控制摄像头进行运动;还可以控制参照标定物与摄像头同时进行运动,并且参照标定物的运动速度与摄像头的运动速度不同。Optionally, the camera can be controlled to remain still, and the reference calibration object can be controlled to move; the reference calibration object can also be controlled to remain stationary and the camera can be controlled to move; the reference calibration object and the camera can also be controlled to move at the same time, and the reference calibration object can be controlled to move at the same time. The speed of movement is not the same as the speed of movement of the camera.

进一步地,参照标定物和摄像头均可以从前后、左右、上下三个移动自由度中的至少一个进行移动,也均可以从roll(翻滚角)、pitch(俯仰角)、yaw(偏航角)三个旋转自由度中的至少一个进行转动,还可以既从移动自由度进行移动,也从旋转自由度进行转动。Further, both the reference calibration object and the camera can move from at least one of the three moving degrees of freedom, front, back, left and right, and up and down, and can also move from roll (roll angle), pitch (pitch angle), and yaw (yaw angle). At least one of the three rotational degrees of freedom rotates, and it is also possible to move from both a movement degree of freedom and a rotation from a rotational degree of freedom.

当控制摄像头与参照标定物之间进行相对运动时,电子设备控制摄像头拍摄该参照标定物,获取至少两帧目标图像。When a relative movement is performed between the control camera and the reference calibration object, the electronic device controls the camera to photograph the reference calibration object to acquire at least two frames of target images.

步骤204,从至少两帧目标图像中分别获取相对应的特征点。Step 204, respectively acquiring corresponding feature points from at least two frames of target images.

特征点指的是目标图像中存在某种特征的点。例如,参照标定物为标定板时,特征点可以是目标图像中标定板的黑色方格和相邻的白色方格之间的角点;当参照标定物为人物时,特征点可以是人物的眼睛、鼻子等。Feature points refer to the points in the target image where certain features exist. For example, when the reference calibration object is a calibration plate, the feature point can be the corner point between the black square of the calibration plate and the adjacent white square in the target image; when the reference calibration object is a person, the feature point can be the character's eyes, nose, etc.

在每一帧目标图像中,获取的特征点的数量并不限定,可以是一个,也可以是多个。在各个目标图像中,特征点相对应。例如,目标图像1获取的特征点为A1和B1,目标图像2获取的特征点为A2和B2,特征点A1与特征点A2相对应,特征点B1与特征点B2相对应;又如,目标图像1获取的特征点为眼睛,目标图像2获取的特征点为相对应的眼睛。In each frame of the target image, the number of acquired feature points is not limited, and may be one or multiple. In each target image, feature points correspond. For example, the feature points obtained from target image 1 are A1 and B1, the feature points obtained from target image 2 are A2 and B2, the feature point A1 corresponds to the feature point A2, and the feature point B1 corresponds to the feature point B2; for another example, the target The feature points acquired in image 1 are eyes, and the feature points acquired in target image 2 are the corresponding eyes.

步骤206,获取各个特征点的运动信息。Step 206, acquiring motion information of each feature point.

特征点的运动信息可以是特征点在所在的目标图像中的坐标位置;也可以是特征点在拍摄时的运动方向,该运动方向可以通过电子设备中的陀螺仪获取;还可以是特征点在拍摄时的运动速度,该运动速度可以通过电子设备中的姿态传感器获取。The motion information of the feature point can be the coordinate position of the feature point in the target image; it can also be the motion direction of the feature point when shooting, and the motion direction can be obtained by the gyroscope in the electronic device; it can also be the feature point in the The movement speed when shooting, the movement speed can be obtained by the attitude sensor in the electronic device.

步骤208,基于至少两帧目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值。Step 208: Determine at least two cost values of the anti-shake parameter based on the motion information of the corresponding feature points in the at least two frames of the target image.

防抖参数指的是在摄像头拍摄过程中用于摄像头防抖的参数。防抖参数可以包括陀螺仪采集的角速度数据、陀螺仪的采样频率、陀螺仪的零漂值和温漂值、陀螺仪的采集时间戳与拍摄图像的时间戳之间的延迟、图像传感器读出图像的时间、陀螺仪模组与图像传感器之间的旋转矩阵等中的至少一种。代价值用于表示采用防抖参数实际拍摄得到的目标图像与采用防抖参数拍摄应当得到的目标图像之间的相差程度。代价值越大,表示防抖参数越不准确;代价值越小,表示防抖参数防抖越准确。Anti-shake parameters refer to parameters used for camera anti-shake during camera shooting. The anti-shake parameters can include the angular velocity data collected by the gyroscope, the sampling frequency of the gyroscope, the zero drift value and the temperature drift value of the gyroscope, the delay between the time stamp of the collection of the gyroscope and the time stamp of the captured image, and the readout of the image sensor. At least one of the time of the image, the rotation matrix between the gyroscope module and the image sensor, and the like. The cost value is used to indicate the degree of difference between the target image actually shot with the anti-shake parameter and the target image that should be shot with the anti-shake parameter. The larger the cost value, the less accurate the anti-shake parameters; the smaller the cost value, the more accurate the anti-shake parameters.

从至少两帧目标图像中选取两帧目标图像,基于该选取的两帧目标图像中相对应的特征点的运动信息,可以确定防抖参数的一个代价值。再从至少两帧目标图像中选取另外两帧目标图像,基于该选取的另外两帧目标图像中相对应的特征点的运动信息,可以确定防抖参数的另一个代价值。确定的代价值越多,可以越准确对防抖参数进行标定。Two frames of target images are selected from at least two frames of target images, and based on the motion information of the corresponding feature points in the selected two frames of target images, a cost value of the anti-shake parameter can be determined. Another two target images are selected from the at least two target images, and another cost value of the anti-shake parameter can be determined based on the motion information of the corresponding feature points in the selected other two target images. The more cost values are determined, the more accurate the anti-shake parameters can be calibrated.

步骤210,根据防抖参数的至少两个代价值对防抖参数进行标定。In step 210, the anti-shake parameter is calibrated according to at least two cost values of the anti-shake parameter.

标定,主要是指使用标准的计量仪器对所使用仪器的准确度(精度)进行检测是否符合标准。对防抖参数进行标定,即对防抖参数进行校准。可以理解的是,在电子设备出厂之前,需要对电子设备的防抖参数进行标定,使得用户在使用电子设备进行拍摄时,可以拍摄得到更清晰更稳定的图像或者视频。Calibration mainly refers to the use of standard measuring instruments to test whether the accuracy (precision) of the instruments used meets the standards. To calibrate the anti-shake parameters, that is, to calibrate the anti-shake parameters. It is understandable that, before the electronic device leaves the factory, the anti-shake parameters of the electronic device need to be calibrated, so that the user can obtain a clearer and more stable image or video when shooting with the electronic device.

上述防抖参数的标定方法,控制摄像头与参照标定物之间进行相对运动,并拍摄参照标定物,获取至少两帧目标图像;从至少两帧目标图像中分别获取相对应的特征点;获取各个特征点的运动信息;基于至少两帧目标图像中相对应的特征点的运动信息,可以知道至少拍摄参照标定物的两帧目标图像之间的防抖情况,从而确定防抖参数的至少两个代价值;根据防抖参数的至少两个代价值可以对防抖参数进行更准确标定。The above-mentioned method for calibrating anti-shake parameters, controls the relative movement between the camera and the reference calibration object, and shoots the reference calibration object to obtain at least two frames of target images; respectively obtains corresponding feature points from the at least two frames of target images; obtains each The motion information of the feature points; based on the motion information of the corresponding feature points in at least two frames of target images, it is possible to know the anti-shake situation between at least two frames of target images of the reference calibration object, thereby determining at least two of the anti-shake parameters. Cost value; the anti-shake parameter can be calibrated more accurately according to at least two cost values of the anti-shake parameter.

在一个实施例中,如图3所示,基于至少两帧目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值,包括:In one embodiment, as shown in FIG. 3 , based on the motion information of corresponding feature points in at least two frames of target images, at least two cost values of anti-shake parameters are determined, including:

步骤302,从至少两帧目标图像中确定第一图像和第二图像;第二图像的拍摄时刻晚于第一图像的拍摄时刻,第一图像的特征点作为第一特征点,第二图像的特征点作为第二特征点。Step 302: Determine a first image and a second image from at least two frames of target images; the shooting time of the second image is later than the shooting time of the first image, the feature points of the first image are used as the first feature points, and the second image is taken as the first feature point. The feature point is used as the second feature point.

第一图像和第二图像可以是相邻的两帧目标图像,也可以与间隔预设数量帧的目标图像。The first image and the second image may be two adjacent frames of target images, or may be separated from target images by a preset number of frames.

步骤304,获取第一图像和第二图像之间的防抖参数的参考值。Step 304: Obtain reference values of anti-shake parameters between the first image and the second image.

防抖参数的参考值用于对第二图像进行防抖处理,得到防抖处理后的第二图像;将防抖处理后的第二图像与第一图像进行比较可以确定更加准确的防抖参数。其中防抖处理可以包括EIS(Electric Image Stabilization,电子防抖)、OIS(Optical ImageStabilization,光学防抖)中的至少一种。The reference value of the anti-shake parameter is used to perform anti-shake processing on the second image to obtain the second image after anti-shake processing; more accurate anti-shake parameters can be determined by comparing the second image after anti-shake processing with the first image . The anti-shake processing may include at least one of EIS (Electric Image Stabilization, electronic image stabilization) and OIS (Optical Image Stabilization, optical image stabilization).

具体地,获取第一图像的拍摄时刻和第二图像的拍摄时刻;根据第一图像的拍摄时刻获取防抖参数的第一参考值,根据第二图像的拍摄时刻获取防抖参数的第二参考值;基于第一参考值和第二参考值确定第一图像和第二图像之间的防抖参数的参考值。Specifically, the shooting time of the first image and the shooting time of the second image are obtained; the first reference value of the anti-shake parameter is obtained according to the shooting time of the first image, and the second reference of the anti-shake parameter is obtained according to the shooting time of the second image value; the reference value of the anti-shake parameter between the first image and the second image is determined based on the first reference value and the second reference value.

可选地,可以将第一参考值和第二参考值进行差值处理,将得到的差值作为第一图像和第二图像之间的防抖参数的参考值;也可以获取第一参考值的第一权重,以及第二参考值的第二权重,将第一参考值与第一权重相乘得到第一乘积,将第二参考值与第二权重相乘得到第二乘积,再将第一乘积与第二乘积进行差值处理,将得到的差值作为第一图像和第二图像之间的防抖参数的参考值。获取第一图像和第二图像之间的防抖参数的参考值的方式并不限定。Optionally, difference processing may be performed on the first reference value and the second reference value, and the obtained difference value may be used as the reference value of the anti-shake parameter between the first image and the second image; the first reference value may also be obtained. The first weight of , and the second weight of the second reference value, multiply the first reference value and the first weight to obtain the first product, multiply the second reference value and the second weight to obtain the second product, and then multiply the Difference processing is performed on the first product and the second product, and the obtained difference is used as a reference value of the anti-shake parameter between the first image and the second image. The manner of acquiring the reference value of the anti-shake parameter between the first image and the second image is not limited.

步骤306,基于防抖参数的参考值、第一特征点的运动信息和第二特征点的运动信息,确定防抖参数的代价值。Step 306: Determine the cost value of the anti-shake parameter based on the reference value of the anti-shake parameter, the motion information of the first feature point and the motion information of the second feature point.

代价值用于表示采用防抖参数实际拍摄得到的目标图像与采用防抖参数拍摄应当得到的目标图像之间的相差程度。代价值越大,表示防抖参数越不准确;代价值越小,表示防抖参数防抖越准确。The cost value is used to indicate the degree of difference between the target image actually shot with the anti-shake parameter and the target image that should be shot with the anti-shake parameter. The larger the cost value, the less accurate the anti-shake parameters; the smaller the cost value, the more accurate the anti-shake parameters.

步骤308,改变防抖参数的参考值,得到新的防抖参数的参考值,返回执行上一个步骤,直到确定的防抖参数的代价值小于第一代价值阈值,或者得到的防抖参数的代价值的数量达到第一数量阈值为止。Step 308: Change the reference value of the anti-shake parameter, obtain a new reference value of the anti-shake parameter, and return to the previous step until the determined cost value of the anti-shake parameter is less than the first generation value threshold, or the obtained anti-shake parameter is less than the value of the first generation value. The amount of the cost value reaches the first amount threshold.

改变防抖参数的参考值,可以提高防抖参数的参考值,也可以降低防抖参数的参考值。得到新的防抖参数的参考值之后,返回执行上一个步骤,即基于防抖参数的参考值、第一特征点的运动信息和第二特征点的运动信息,确定防抖参数的代价值,可以得到新的防抖参数的代价值。Changing the reference value of the anti-shake parameter can increase the reference value of the anti-shake parameter, or decrease the reference value of the anti-shake parameter. After obtaining the reference value of the new anti-shake parameter, return to the previous step, that is, determine the cost value of the anti-shake parameter based on the reference value of the anti-shake parameter, the motion information of the first feature point and the motion information of the second feature point, The cost value of the new anti-shake parameter can be obtained.

在本实施例中,从至少两帧目标图像中确定第一图像和第二图像;第二图像的拍摄时刻晚于第一图像的拍摄时刻,第一图像的特征点作为第一特征点,第二图像的特征点作为第二特征点;获取第一图像和第二图像之间的防抖参数的参考值;基于防抖参数的参考值、第一特征点的运动信息和第二特征点的运动信息,确定防抖参数的代价值;改变防抖参数的参考值,得到新的防抖参数的参考值,返回执行上一个步骤,直到确定的防抖参数的代价值小于第一代价值阈值,或者得到的防抖参数的代价值的数量达到第一数量阈值为止。通过改变防抖参数的参考值,从而获取多个防抖参数的代价值,可以确定更准确的防抖参数,从而对防抖参数进行更准确地标定。In this embodiment, the first image and the second image are determined from at least two frames of target images; the shooting time of the second image is later than the shooting time of the first image, and the feature points of the first image are used as the first feature points, and the second image is taken as the first feature point. The feature point of the two images is used as the second feature point; the reference value of the anti-shake parameter between the first image and the second image is obtained; based on the reference value of the anti-shake parameter, the motion information of the first feature point and the second feature point Motion information to determine the cost value of the anti-shake parameter; change the reference value of the anti-shake parameter to obtain a new reference value of the anti-shake parameter, and return to the previous step until the determined cost value of the anti-shake parameter is less than the first generation value threshold , or until the number of the obtained cost values of the anti-shake parameters reaches the first number threshold. By changing the reference value of the anti-shake parameter to obtain the cost value of multiple anti-shake parameters, more accurate anti-shake parameters can be determined, so that the anti-shake parameters can be calibrated more accurately.

在一个实施例中,基于防抖参数的参考值、第一特征点的运动信息和第二特征点的运动信息,确定防抖参数的代价值,包括:基于防抖参数的参考值和第二特征点的运动信息,对第二特征点进行投影变换,得到新的第二特征点以及新的第二特征点的运动信息;将新的第二特征点的运动信息和相对应的第一特征点的运动信息进行比较,确定防抖参数的代价值。In one embodiment, determining the cost value of the anti-shake parameter based on the reference value of the anti-shake parameter, the motion information of the first feature point and the motion information of the second feature point includes: based on the reference value of the anti-shake parameter and the second feature point The motion information of the feature point, the second feature point is projected and transformed to obtain a new second feature point and the motion information of the new second feature point; the motion information of the new second feature point and the corresponding first feature The motion information of the points is compared to determine the cost value of the anti-shake parameters.

投影变换(projection transformation)是将一个图像中点的坐标变换为另一个图像中点的坐标的过程。对第二图像进行防抖处理时,即采用防抖参数对第二图像中的第二特征点进行投影变换,得到新的第二特征点。Projection transformation is the process of transforming the coordinates of a point in one image to the coordinates of a point in another image. When the anti-shake processing is performed on the second image, the anti-shake parameters are used to perform projection transformation on the second feature points in the second image to obtain new second feature points.

同样地,新的第二特征点的运动信息可以是新的第二特征点在所在的新的第二图像中的坐标位置;也可以是新的第二特征点在拍摄时的运动方向,该运动方向可以通过电子设备中的陀螺仪获取;还可以是新的第二特征点在拍摄时的运动速度,该运动速度可以通过电子设备中的姿态传感器获取。Similarly, the motion information of the new second feature point can be the coordinate position of the new second feature point in the new second image; it can also be the motion direction of the new second feature point when shooting, the The movement direction can be obtained by a gyroscope in the electronic device; it can also be the movement speed of the new second feature point when shooting, and the movement speed can be obtained by an attitude sensor in the electronic device.

可以理解的是,第二图像中的第二特征点与第一图像中的第一特征点相对应,对第二特征点进行投影变换得到新的第二特征点,当该新的第二特征点的运动信息与相对应的第一特征点的运动信息相同时,则防抖参数的代价值最小,进行该投影变换的防抖参数的参考值最准确;而当该新的第二特征带你的运动信息与相对应的第一特征点的运动信息相差越大时,则防抖参数的代价值越大,进行该投影变换的防抖参数的参考值越不准确。It can be understood that the second feature point in the second image corresponds to the first feature point in the first image, and a new second feature point is obtained by performing projection transformation on the second feature point. When the motion information of the point is the same as the motion information of the corresponding first feature point, the cost value of the anti-shake parameter is the smallest, and the reference value of the anti-shake parameter for the projection transformation is the most accurate; and when the new second feature band The greater the difference between your motion information and the motion information of the corresponding first feature point, the greater the cost value of the anti-shake parameter, and the less accurate the reference value of the anti-shake parameter for performing the projection transformation.

例如,当新的第二特征点的坐标与相对应的第一特征点的坐标相同,则防抖参数的代价值最小,进行该投影变换的防抖参数的参考值最准确;当心的第二特征点的坐标与相对应的第一特征点的坐标相差越大,则防抖参数的代价值越大,进行该投影变换的防抖参数的参考值越不准确。For example, when the coordinates of the new second feature point are the same as the coordinates of the corresponding first feature point, the cost value of the anti-shake parameter is the smallest, and the reference value of the anti-shake parameter for the projection transformation is the most accurate; The larger the difference between the coordinates of the feature point and the coordinates of the corresponding first feature point, the greater the cost value of the anti-shake parameter, and the less accurate the reference value of the anti-shake parameter for performing the projection transformation.

代价值可以通过以下的代价函数计算得到:The cost value can be calculated by the following cost function:

Figure BDA0002375907250000121
Figure BDA0002375907250000121

其中,J是代价值,

Figure BDA0002375907250000122
是第一图像t中的特征点i的运动信息,
Figure BDA0002375907250000123
是第二图像t+1中相对应的特征点i的运动信息,
Figure BDA0002375907250000124
是对第二特征点
Figure BDA0002375907250000125
进行投影变换之后得到新的第二特征点的运动信息。where J is the cost value,
Figure BDA0002375907250000122
is the motion information of the feature point i in the first image t,
Figure BDA0002375907250000123
is the motion information of the corresponding feature point i in the second image t+1,
Figure BDA0002375907250000124
is the second feature point
Figure BDA0002375907250000125
After the projection transformation is performed, the motion information of the new second feature point is obtained.

在本实施例中,基于防抖参数的参考值和第二特征点的运动信息,对第二特征点进行投影变换,得到新的第二特征点以及新的第二特征点的运动信息;将新的第二特征点的运动信息和相对应的第一特征点的运动信息进行比较,可以确定更加准确的防抖参数的代价值。In this embodiment, based on the reference value of the anti-shake parameter and the motion information of the second feature point, a projection transformation is performed on the second feature point to obtain a new second feature point and motion information of the new second feature point; By comparing the motion information of the new second feature point with the motion information of the corresponding first feature point, a more accurate cost value of the anti-shake parameter can be determined.

在一个实施例中,根据防抖参数的至少两个代价值对防抖参数进行标定,包括:从至少两个代价值中确定目标代价值,并将目标代价值对应的参考值作为防抖参数的目标值;根据防抖参数的目标值对防抖参数进行标定。In one embodiment, calibrating the anti-shake parameter according to at least two cost values of the anti-shake parameter includes: determining a target cost value from the at least two cost values, and using a reference value corresponding to the target cost value as the anti-shake parameter The target value of the anti-shake parameter; the anti-shake parameter is calibrated according to the target value of the anti-shake parameter.

可选地,可以从至少两个代价值中将最小的代价值确定为目标代价值,也可以将次小的代价值确定为目标代价值,不限于此。Optionally, the smallest cost value may be determined as the target cost value from the at least two cost values, and the next smallest cost value may also be determined as the target cost value, which is not limited thereto.

确定目标代价值之后,则目标代价值对应的防抖参数的参考值即防抖参数的目标值为最终确定的对防抖参数进行标定的数值,也就是说,当用户在拍摄时,采用的防抖参数的数值为防抖参数的目标值。After the target cost value is determined, the reference value of the anti-shake parameter corresponding to the target cost value, that is, the target value of the anti-shake parameter is the final value for calibrating the anti-shake parameter, that is, when the user is shooting, the The value of the anti-shake parameter is the target value of the anti-shake parameter.

在一个实施例中,从至少两个代价值中确定目标代价值,包括:将至少两个代价值进行比较,将最小的代价值作为目标代价值。In one embodiment, determining the target cost value from the at least two cost values includes: comparing the at least two cost values, and taking the smallest cost value as the target cost value.

最小的代价值对应的防抖参数的参考值最准确,将最小的代价值作为目标代价值,从而可以根据最准确的防抖参数的目标值对防抖参数进行标定。The reference value of the anti-shake parameter corresponding to the smallest cost value is the most accurate, and the smallest cost value is used as the target cost value, so that the anti-shake parameter can be calibrated according to the target value of the most accurate anti-shake parameter.

在其他实施例中,也可以从至少两个代价值的其他代价值作为目标代价值,如将次小的代价值作为目标代价值,将处于中位数位置的代价值作为目标代价值等,不限于此。In other embodiments, other cost values of at least two cost values can also be used as the target cost value, such as taking the next smallest cost value as the target cost value, and taking the cost value at the median position as the target cost value, etc., Not limited to this.

在其他实施例中。还可以通过梯度下降法、最小二乘法、粒子群算法等方法从至少两个代价值中确定目标代价值。in other embodiments. The target cost value can also be determined from the at least two cost values by a gradient descent method, a least square method, a particle swarm algorithm, or the like.

在一个实施例中,上述方法还包括:从至少两帧目标图像中确定新的第一图像和新的第二图像,返回执行获取第一图像和第二图像之间的防抖参数的参考值步骤,直到确定的防抖参数的代价值小于第二代价值阈值,或者确定的第一图像的数量达到第二数量阈值为止。In one embodiment, the above-mentioned method further includes: determining a new first image and a new second image from at least two frames of target images, and returning a reference value for obtaining the anti-shake parameter between the first image and the second image. step until the determined cost value of the anti-shake parameter is less than the second cost value threshold, or the determined number of the first images reaches the second number threshold.

从至少两帧目标图像中确定第一图像和第二图像之后,可以根据第一图像和第二图像确定防抖参数对应的一个或者多个代价值。当对该第一图像和第二图像处理完成之后,可以再从至少两帧目标图像中确定新的第一图像和新的第二图像,再根据新的第一图像和新的第二图像确定防抖参数对应的一个或者多个代价值,直到确定的防抖参数的代价值小于第二代价值阈值,或者确定的第一图像的数量达到第二数量阈值为止。After the first image and the second image are determined from the at least two frames of target images, one or more cost values corresponding to the anti-shake parameter may be determined according to the first image and the second image. After the first image and the second image are processed, a new first image and a new second image can be determined from at least two frames of target images, and then determined according to the new first image and the new second image. One or more cost values corresponding to the anti-shake parameter, until the determined cost value of the anti-shake parameter is less than the second generation value threshold, or the determined number of first images reaches the second number threshold.

在本实施例中,根据不同的第一图像和第二图像,确定防抖参数对应的代价值,可以提高确定的防抖参数对应的代价值的普遍性和稳定性,并且增加了该防抖参数的更多的代价值,可以从更多的代价值中确定更准确的目标代价值,从而更准确对防抖参数进行标定。In this embodiment, determining the cost value corresponding to the anti-shake parameter according to different first images and second images can improve the universality and stability of the cost value corresponding to the determined anti-shake parameter, and increase the anti-shake parameter. With more cost values of parameters, a more accurate target cost value can be determined from more cost values, so that the anti-shake parameters can be calibrated more accurately.

在一个实施例中,如图4所示,上述方法还包括:In one embodiment, as shown in Figure 4, the above method further includes:

步骤402,当防抖参数的数量至少为两个时,确定目标拍摄策略。Step 402, when the number of anti-shake parameters is at least two, determine the target shooting strategy.

防抖参数可以包括陀螺仪采集的角速度数据、陀螺仪的采样频率、陀螺仪的零漂值和温漂值、陀螺仪的采集时间戳与拍摄图像的时间戳之间的延迟、图像传感器读出图像的时间、陀螺仪模组与图像传感器之间的旋转矩阵等中的至少一种。The anti-shake parameters can include the angular velocity data collected by the gyroscope, the sampling frequency of the gyroscope, the zero drift value and the temperature drift value of the gyroscope, the delay between the time stamp of the collection of the gyroscope and the time stamp of the captured image, and the readout of the image sensor. At least one of the time of the image, the rotation matrix between the gyroscope module and the image sensor, and the like.

目标拍摄策略指的是拍摄参照标定物时的策略。目标拍摄策略可以包括设定拍摄时长、拍摄帧率、拍摄成像视野范围等。例如,目标拍摄策略可以是拍摄时长为5秒的视频、拍摄帧率为10帧/秒。The target shooting strategy refers to the strategy when shooting the reference calibration object. The target shooting strategy may include setting the shooting duration, shooting frame rate, shooting imaging field of view, and the like. For example, the target shooting strategy may be to shoot a video with a duration of 5 seconds and a shooting frame rate of 10 frames per second.

步骤404,针对至少两个防抖参数中的任意一个进行标定时,均采用目标拍摄策略拍摄参照标定物。Step 404 , when calibrating any one of the at least two anti-shake parameters, the target shooting strategy is used to shoot the reference calibration object.

传统的防抖参数标定方法,通常为不同的防抖参数制定不同的拍摄策略,存在标定效率低的问题。在本实施例中,当防抖参数的数量至少为两个时,针对至少两个防抖参数中的任意一个防抖参数进行标定时,均采用目标拍摄策略拍摄参照标定物,可以避免在对不同防抖参数进行标定时拍摄策略的切换,提高了标定的效率。The traditional anti-shake parameter calibration method usually formulates different shooting strategies for different anti-shake parameters, which has the problem of low calibration efficiency. In this embodiment, when the number of anti-shake parameters is at least two, when calibrating any one of the at least two anti-shake parameters, the target shooting strategy is used to shoot the reference calibration object, which can avoid The switching of shooting strategies during calibration with different anti-shake parameters improves the efficiency of calibration.

在一个实施例中,拍摄参照标定物,获取至少两帧目标图像,包括:拍摄参照标定物,得到至少两帧候选图像;从至少两帧候选图像中确定相邻的至少两帧目标图像。In one embodiment, photographing a reference calibrator to obtain at least two frames of target images includes: photographing a reference calibrator to obtain at least two frames of candidate images; and determining at least two adjacent frames of target images from the at least two frames of candidate images.

候选图像指的是拍摄得到的图像。目标图像指的是从候选图像中确定的图像。从至少两帧候选图像中确定相邻的至少两帧目标图像,则相邻两帧目标图像之间的拍摄场景较接近,可以更准确地确定目标图像中相对应的特征点,从而更准确对防抖参数进行标定。A candidate image refers to an image obtained by shooting. The target image refers to an image determined from candidate images. If at least two adjacent target images are determined from the at least two candidate images, then the shooting scene between the two adjacent target images is closer, and the corresponding feature points in the target image can be determined more accurately, so that the corresponding feature points in the target image can be more accurately determined. Anti-shake parameters are calibrated.

在另一个实施例中,还可以从至少两帧候选图像中确定间隔预设帧数量的候选图像作为至少两帧目标图像。In another embodiment, candidate images separated by a preset number of frames may also be determined from the at least two candidate images as the at least two target images.

在其他的实施例中,以上的防抖参数的标定方法,还可以应用在工厂中其他自动化测试或者工厂中的其他参数的标定,进一步提高工厂流水线的效率。In other embodiments, the above method for calibrating anti-shake parameters can also be applied to other automated tests in the factory or the calibration of other parameters in the factory, to further improve the efficiency of the factory assembly line.

应该理解的是,虽然图2至图4的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2至图4中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIG. 2 to FIG. 4 are shown in sequence according to the arrows, these steps are not necessarily executed in the sequence shown by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order, and these steps may be performed in other orders. Moreover, at least a part of the steps in FIG. 2 to FIG. 4 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed and completed at the same time, but may be executed at different times. These sub-steps or stages may be executed at different times. The order of execution of the stages is also not necessarily sequential, but may be performed alternately or alternately with other steps or sub-steps of other steps or at least a portion of a stage.

图5为一个实施例的防抖参数的标定装置的结构框图。如图5所示,一种防抖参数的标定装置500,包括:拍摄模块502、特征点获取模块504、运动信息获取模块506、代价值确定模块508和标定模块510,其中:FIG. 5 is a structural block diagram of an apparatus for calibrating anti-shake parameters according to an embodiment. As shown in FIG. 5 , a device 500 for calibrating anti-shake parameters includes: a shooting module 502, a feature point acquisition module 504, a motion information acquisition module 506, a cost value determination module 508, and a calibration module 510, wherein:

拍摄模块502,用于控制摄像头与参照标定物之间进行相对运动,并拍摄参照标定物,获取至少两帧目标图像。The shooting module 502 is configured to control the relative movement between the camera and the reference calibration object, and shoot the reference calibration object to obtain at least two frames of target images.

特征点获取模块504,用于从至少两帧目标图像中分别获取相对应的特征点。The feature point obtaining module 504 is configured to obtain corresponding feature points respectively from at least two frames of target images.

运动信息获取模块506,用于获取各个特征点的运动信息。The motion information acquisition module 506 is configured to acquire motion information of each feature point.

代价值确定模块508,用于基于至少两帧目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值。The cost value determination module 508 is configured to determine at least two cost values of the anti-shake parameter based on the motion information of the corresponding feature points in the at least two frames of target images.

标定模块510,用于根据防抖参数的至少两个代价值对防抖参数进行标定。The calibration module 510 is configured to calibrate the anti-shake parameter according to at least two cost values of the anti-shake parameter.

上述防抖参数的标定装置,控制摄像头与参照标定物之间进行相对运动,并拍摄参照标定物,获取至少两帧目标图像;从至少两帧目标图像中分别获取相对应的特征点;获取各个特征点的运动信息;基于至少两帧目标图像中相对应的特征点的运动信息,可以知道至少拍摄参照标定物的两帧目标图像之间的防抖情况,从而确定防抖参数的至少两个代价值;根据防抖参数的至少两个代价值可以对防抖参数进行更准确标定。The above-mentioned anti-shake parameter calibration device controls the relative movement between the camera and the reference calibration object, and shoots the reference calibration object to obtain at least two frames of target images; respectively obtains corresponding feature points from the at least two frames of target images; obtains each The motion information of the feature points; based on the motion information of the corresponding feature points in at least two frames of target images, it is possible to know the anti-shake situation between at least two frames of target images of the reference calibration object, thereby determining at least two of the anti-shake parameters. Cost value; the anti-shake parameter can be calibrated more accurately according to at least two cost values of the anti-shake parameter.

在一个实施例中,上述代价值确定模块508还用于从至少两帧目标图像中确定第一图像和第二图像;第二图像的拍摄时刻晚于第一图像的拍摄时刻,第一图像的特征点作为第一特征点,第二图像的特征点作为第二特征点;获取第一图像和第二图像之间的防抖参数的参考值;基于防抖参数的参考值、第一特征点的运动信息和第二特征点的运动信息,确定防抖参数的代价值;改变防抖参数的参考值,得到新的防抖参数的参考值,返回执行上一个步骤,直到确定的防抖参数的代价值小于第一代价值阈值,或者得到的防抖参数的代价值的数量达到第一数量阈值为止。In one embodiment, the cost value determination module 508 is further configured to determine the first image and the second image from at least two frames of target images; the shooting time of the second image is later than the shooting time of the first image, and the The feature point is used as the first feature point, and the feature point of the second image is used as the second feature point; the reference value of the anti-shake parameter between the first image and the second image is obtained; based on the reference value of the anti-shake parameter, the first feature point and the motion information of the second feature point to determine the cost value of the anti-shake parameter; change the reference value of the anti-shake parameter to obtain a new reference value of the anti-shake parameter, and return to the previous step until the determined anti-shake parameter The cost value of is less than the first generation value threshold, or the number of obtained anti-shake parameter cost values reaches the first number threshold.

在一个实施例中,上述代价值确定模块508还用于基于防抖参数的参考值和第二特征点的运动信息,对第二特征点进行投影变换,得到新的第二特征点以及新的第二特征点的运动信息;将新的第二特征点的运动信息和第一特征点的运动信息进行比较,确定防抖参数的代价值。In one embodiment, the above-mentioned cost value determination module 508 is further configured to perform projective transformation on the second feature point based on the reference value of the anti-shake parameter and the motion information of the second feature point to obtain a new second feature point and a new motion information of the second feature point; comparing the motion information of the new second feature point with the motion information of the first feature point to determine the cost value of the anti-shake parameter.

在一个实施例中,上述标定模块510还用于从至少两个代价值中确定目标代价值,并将目标代价值对应的参考值作为防抖参数的目标值;根据防抖参数的目标值对防抖参数进行标定。In one embodiment, the calibration module 510 is further configured to determine a target cost value from at least two cost values, and use a reference value corresponding to the target cost value as the target value of the anti-shake parameter; Anti-shake parameters are calibrated.

在一个实施例中,上述标定模块510还用于将至少两个代价值进行比较,将最小的代价值作为目标代价值。In one embodiment, the above-mentioned calibration module 510 is further configured to compare at least two cost values, and use the smallest cost value as the target cost value.

在一个实施例中,上述代价值确定模块508还用于从至少两帧目标图像中确定新的第一图像和新的第二图像,返回执行获取第一图像和第二图像之间的防抖参数的参考值步骤,直到确定的防抖参数的代价值小于第二代价值阈值,或者确定的第一图像的数量达到第二数量阈值为止。In one embodiment, the above-mentioned cost value determination module 508 is further configured to determine a new first image and a new second image from at least two frames of target images, and return to perform anti-shake between acquiring the first image and the second image The reference value step of the parameter, until the determined cost value of the anti-shake parameter is less than the second cost value threshold, or the determined number of the first images reaches the second number threshold.

在一个实施例中,上述防抖参数的标定装置还包括目标拍摄策略确定模块,用于当防抖参数的数量至少为两个时,确定目标拍摄策略;针对至少两个防抖参数中的任意一个进行标定时,均采用目标拍摄策略拍摄参照标定物。In one embodiment, the apparatus for calibrating anti-shake parameters further includes a target shooting strategy determination module for determining a target shooting strategy when the number of anti-shake parameters is at least two; for any of the at least two anti-shake parameters When one is calibrating, the target shooting strategy is used to shoot the reference calibration object.

在一个实施例中,上述拍摄模块502还用于拍摄参照标定物,得到至少两帧候选图像;从至少两帧候选图像中确定相邻的至少两帧目标图像。In one embodiment, the above-mentioned photographing module 502 is further configured to photograph a reference calibration object to obtain at least two frames of candidate images; and to determine at least two adjacent frames of target images from the at least two frames of candidate images.

上述防抖参数的标定装置中各个模块的划分仅用于举例说明,在其他实施例中,可将防抖参数的标定装置按照需要划分为不同的模块,以完成上述防抖参数的标定装置的全部或部分功能。The division of each module in the above-mentioned anti-shake parameter calibration device is only used for illustration. full or partial functionality.

关于防抖参数的标定装置的具体限定可以参见上文中对于防抖参数的标定方法的限定,在此不再赘述。上述防抖参数的标定装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the apparatus for calibrating the anti-shake parameter, reference may be made to the definition of the method for calibrating the anti-shake parameter above, which will not be repeated here. Each module in the above-mentioned anti-shake parameter calibration device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

图6为一个实施例中电子设备的内部结构示意图。如图6所示,该电子设备包括通过系统总线连接的处理器和存储器。其中,该处理器用于提供计算和控制能力,支撑整个电子设备的运行。存储器可包括非易失性存储介质及内存储器。非易失性存储介质存储有操作系统和计算机程序。该计算机程序可被处理器所执行,以用于实现以下各个实施例所提供的一种防抖参数的标定方法。内存储器为非易失性存储介质中的操作系统计算机程序提供高速缓存的运行环境。该电子设备可以是手机、平板电脑、PDA(Personal DigitalAssistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备。FIG. 6 is a schematic diagram of the internal structure of an electronic device in one embodiment. As shown in FIG. 6, the electronic device includes a processor and a memory connected by a system bus. Among them, the processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include non-volatile storage media and internal memory. The nonvolatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an anti-shake parameter calibration method provided by the following embodiments. Internal memory provides a cached execution environment for operating system computer programs in non-volatile storage media. The electronic device may be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, and a wearable device.

本申请实施例中提供的防抖参数的标定装置中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在电子设备的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the apparatus for calibrating anti-shake parameters provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or server. The program modules constituted by the computer program can be stored on the memory of the electronic device. When the computer program is executed by the processor, the steps of the methods described in the embodiments of the present application are implemented.

本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行防抖参数的标定方法的步骤。Embodiments of the present application also provide a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to perform the method of calibrating anti-shake parameters. step.

一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行防抖参数的标定方法。A computer program product containing instructions, when run on a computer, causes the computer to perform a method for calibrating anti-shake parameters.

本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database, or other medium as used herein may include non-volatile and/or volatile memory. Nonvolatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. By way of illustration and not limitation, RAM is available in various forms such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only represent several embodiments of the present application, and the descriptions thereof are relatively specific and detailed, but should not be construed as a limitation on the scope of the patent of the present application. It should be noted that, for those skilled in the art, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. Therefore, the scope of protection of the patent of the present application shall be subject to the appended claims.

Claims (11)

1.一种防抖参数的标定方法,其特征在于,包括:1. a calibration method of anti-shake parameter, is characterized in that, comprises: 控制摄像头与参照标定物之间进行相对运动,并拍摄所述参照标定物,获取至少两帧目标图像;Controlling the relative movement between the camera and the reference calibration object, and photographing the reference calibration object to obtain at least two frames of target images; 从至少两帧所述目标图像中分别获取相对应的特征点;respectively obtain corresponding feature points from at least two frames of the target image; 获取各个所述特征点的运动信息;acquiring motion information of each of the feature points; 基于至少两帧所述目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值;Determine at least two cost values of the anti-shake parameter based on the motion information of the corresponding feature points in the at least two frames of the target image; 根据所述防抖参数的至少两个所述代价值对所述防抖参数进行标定。The anti-shake parameter is calibrated according to at least two of the cost values of the anti-shake parameter. 2.根据权利要求1所述的方法,其特征在于,所述基于至少两帧所述目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值,包括:2. The method according to claim 1, wherein, determining at least two cost values of anti-shake parameters based on the motion information of corresponding feature points in at least two frames of the target image, comprising: 从至少两帧所述目标图像中确定第一图像和第二图像;所述第二图像的拍摄时刻晚于所述第一图像的拍摄时刻,所述第一图像的特征点作为第一特征点,所述第二图像的特征点作为第二特征点;A first image and a second image are determined from at least two frames of the target image; the shooting time of the second image is later than the shooting time of the first image, and the feature points of the first image are used as the first feature points , the feature points of the second image are used as the second feature points; 获取所述第一图像和所述第二图像之间的防抖参数的参考值;obtaining the reference value of the anti-shake parameter between the first image and the second image; 基于所述防抖参数的参考值、所述第一特征点的运动信息和所述第二特征点的运动信息,确定所述防抖参数的代价值;Determine the cost value of the anti-shake parameter based on the reference value of the anti-shake parameter, the motion information of the first feature point and the motion information of the second feature point; 改变所述防抖参数的参考值,得到新的防抖参数的参考值,返回执行上一个步骤,直到确定的所述防抖参数的代价值小于第一代价值阈值,或者得到的所述防抖参数的代价值的数量达到第一数量阈值为止。Change the reference value of the anti-shake parameter to obtain a new reference value of the anti-shake parameter, and return to the previous step until the determined cost value of the anti-shake parameter is less than the first generation value threshold, or the obtained anti-shake parameter The number of cost values of the dithering parameter reaches the first number threshold. 3.根据权利要求2所述的方法,其特征在于,所述基于所述防抖参数的参考值、所述第一特征点的运动信息和所述第二特征点的运动信息,确定所述防抖参数的代价值,包括:3 . The method according to claim 2 , wherein the determination of the The cost value of anti-shake parameters, including: 基于所述防抖参数的参考值和所述第二特征点的运动信息,对所述第二特征点进行投影变换,得到新的第二特征点以及新的所述第二特征点的运动信息;Based on the reference value of the anti-shake parameter and the motion information of the second feature point, projective transformation is performed on the second feature point to obtain a new second feature point and new motion information of the second feature point ; 将新的所述第二特征点的运动信息和所述第一特征点的运动信息进行比较,确定所述防抖参数的代价值。Comparing the motion information of the new second feature point with the motion information of the first feature point, the cost value of the anti-shake parameter is determined. 4.根据权利要求2所述的方法,其特征在于,所述根据所述防抖参数的至少两个所述代价值对所述防抖参数进行标定,包括:4 . The method according to claim 2 , wherein the calibrating the anti-shake parameters according to at least two of the cost values of the anti-shake parameters comprises: 5 . 从至少两个所述代价值中确定目标代价值,并将所述目标代价值对应的参考值作为所述防抖参数的目标值;Determine a target cost value from at least two of the cost values, and use the reference value corresponding to the target cost value as the target value of the anti-shake parameter; 根据所述防抖参数的目标值对所述防抖参数进行标定。The anti-shake parameter is calibrated according to the target value of the anti-shake parameter. 5.根据权利要求4所述的方法,其特征在于,所述从至少两个所述代价值中确定目标代价值,包括:5. The method according to claim 4, wherein the determining a target cost value from at least two of the cost values comprises: 将至少两个所述代价值进行比较,将最小的代价值作为目标代价值。At least two of the cost values are compared, and the smallest cost value is taken as the target cost value. 6.根据权利要求2所述的方法,其特征在于,所述方法还包括:6. The method according to claim 2, wherein the method further comprises: 从至少两帧所述目标图像中确定新的第一图像和新的第二图像,返回执行所述获取所述第一图像和所述第二图像之间的防抖参数的参考值步骤,直到确定的所述防抖参数的代价值小于第二代价值阈值,或者确定的第一图像的数量达到第二数量阈值为止。Determine a new first image and a new second image from at least two frames of the target image, and return to executing the step of obtaining the reference value of the anti-shake parameter between the first image and the second image, until The determined cost value of the anti-shake parameter is less than the second cost value threshold, or the determined number of first images reaches the second number threshold. 7.根据权利要求1所述的方法,其特征在于,所述方法还包括:7. The method of claim 1, wherein the method further comprises: 当所述防抖参数的数量至少为两个时,确定目标拍摄策略;When the number of the anti-shake parameters is at least two, determine the target shooting strategy; 针对至少两个所述防抖参数中的任意一个进行标定时,均采用所述目标拍摄策略拍摄所述参照标定物。When calibrating any one of the at least two anti-shake parameters, the target shooting strategy is used to shoot the reference calibration object. 8.根据权利要求1所述的方法,其特征在于,所述拍摄所述参照标定物,获取至少两帧目标图像,包括:8. The method according to claim 1, wherein the photographing of the reference calibration object to obtain at least two frames of target images comprises: 拍摄所述参照标定物,得到至少两帧候选图像;photographing the reference calibration object to obtain at least two candidate images; 从至少两帧候选图像中确定相邻的至少两帧目标图像。At least two adjacent target images are determined from the at least two candidate images. 9.一种防抖参数的标定装置,其特征在于,包括:9. A calibration device for anti-shake parameters, characterized in that, comprising: 拍摄模块,用于控制摄像头与参照标定物之间进行相对运动,并拍摄所述参照标定物,获取至少两帧目标图像;a shooting module, used to control the relative movement between the camera and the reference calibration object, and shoot the reference calibration object to obtain at least two frames of target images; 特征点获取模块,用于从至少两帧所述目标图像中分别获取相对应的特征点;a feature point acquiring module, configured to acquire corresponding feature points from at least two frames of the target image respectively; 运动信息获取模块,用于获取各个所述特征点的运动信息;a motion information acquisition module for acquiring motion information of each of the feature points; 代价值确定模块,用于基于至少两帧所述目标图像中相对应的特征点的运动信息,确定防抖参数的至少两个代价值;A cost value determination module, configured to determine at least two cost values of the anti-shake parameter based on the motion information of the corresponding feature points in the at least two frames of the target image; 标定模块,用于根据所述防抖参数的至少两个所述代价值对所述防抖参数进行标定。A calibration module, configured to calibrate the anti-shake parameters according to at least two of the cost values of the anti-shake parameters. 10.一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至8中任一项所述的防抖参数的标定方法的步骤。10. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is made to execute any one of claims 1 to 8 The steps of the method for calibrating anti-shake parameters. 11.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述的方法的步骤。11. A computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
CN202010065715.0A 2020-01-20 2020-01-20 Anti-shake parameter calibration method and device and electronic equipment Active CN111246100B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010065715.0A CN111246100B (en) 2020-01-20 2020-01-20 Anti-shake parameter calibration method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010065715.0A CN111246100B (en) 2020-01-20 2020-01-20 Anti-shake parameter calibration method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111246100A true CN111246100A (en) 2020-06-05
CN111246100B CN111246100B (en) 2022-03-18

Family

ID=70864921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010065715.0A Active CN111246100B (en) 2020-01-20 2020-01-20 Anti-shake parameter calibration method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111246100B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438409A (en) * 2021-05-18 2021-09-24 影石创新科技股份有限公司 Delay calibration method, delay calibration device, computer equipment and storage medium
CN113452919A (en) * 2021-07-21 2021-09-28 杭州海康威视数字技术股份有限公司 Camera for realizing cooperative anti-shake by using optical anti-shake and electronic anti-shake
CN113763485A (en) * 2021-09-28 2021-12-07 北京的卢深视科技有限公司 Temperature drift coefficient acquisition method, electronic device, storage medium, and image correction method
CN114500842A (en) * 2022-01-25 2022-05-13 维沃移动通信有限公司 Visual inertia calibration method and device
CN115866400A (en) * 2021-09-24 2023-03-28 北京小米移动软件有限公司 Anti-shake control method, device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104376572A (en) * 2014-12-02 2015-02-25 成都理工大学 Mobile terminal camera calibrating method
CN105450907A (en) * 2014-07-31 2016-03-30 北京展讯高科通信技术有限公司 Intelligent terminal and video image stabilization system model parameter calibration method and device thereof
US20190020821A1 (en) * 2013-07-12 2019-01-17 Hanwha Techwin Co., Ltd. Image stabilizing method and apparatus
CN110225335A (en) * 2019-06-20 2019-09-10 中国石油大学(北京) Camera stability assessment method and device
CN110337668A (en) * 2018-04-27 2019-10-15 深圳市大疆创新科技有限公司 Image stability augmentation method and apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190020821A1 (en) * 2013-07-12 2019-01-17 Hanwha Techwin Co., Ltd. Image stabilizing method and apparatus
CN105450907A (en) * 2014-07-31 2016-03-30 北京展讯高科通信技术有限公司 Intelligent terminal and video image stabilization system model parameter calibration method and device thereof
CN104376572A (en) * 2014-12-02 2015-02-25 成都理工大学 Mobile terminal camera calibrating method
CN110337668A (en) * 2018-04-27 2019-10-15 深圳市大疆创新科技有限公司 Image stability augmentation method and apparatus
CN110225335A (en) * 2019-06-20 2019-09-10 中国石油大学(北京) Camera stability assessment method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113438409A (en) * 2021-05-18 2021-09-24 影石创新科技股份有限公司 Delay calibration method, delay calibration device, computer equipment and storage medium
CN113452919A (en) * 2021-07-21 2021-09-28 杭州海康威视数字技术股份有限公司 Camera for realizing cooperative anti-shake by using optical anti-shake and electronic anti-shake
CN113452919B (en) * 2021-07-21 2022-04-19 杭州海康威视数字技术股份有限公司 Camera for realizing cooperative anti-shake by using optical anti-shake and electronic anti-shake
CN115866400A (en) * 2021-09-24 2023-03-28 北京小米移动软件有限公司 Anti-shake control method, device and electronic equipment
CN113763485A (en) * 2021-09-28 2021-12-07 北京的卢深视科技有限公司 Temperature drift coefficient acquisition method, electronic device, storage medium, and image correction method
CN113763485B (en) * 2021-09-28 2022-07-26 合肥的卢深视科技有限公司 Temperature drift coefficient acquisition method, electronic device, storage medium, and image correction method
CN114500842A (en) * 2022-01-25 2022-05-13 维沃移动通信有限公司 Visual inertia calibration method and device

Also Published As

Publication number Publication date
CN111246100B (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN111147741B (en) Anti-shake method and device based on focus processing, electronic device, storage medium
CN110610465B (en) Image correction method and device, electronic equipment and computer readable storage medium
CN111246089B (en) Jitter compensation method and apparatus, electronic device, computer-readable storage medium
CN109089047B (en) Method and device for controlling focus, storage medium, and electronic device
CN110536057B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN111246100B (en) Anti-shake parameter calibration method and device and electronic equipment
CN110166695A (en) Camera anti-shake method, device, electronic device and computer-readable storage medium
WO2020259474A1 (en) Focus tracking method and apparatus, terminal device, and computer-readable storage medium
CN109194876A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN109963080B (en) Image acquisition method, device, electronic device and computer storage medium
CN110166697A (en) Camera anti-shake method and device, electronic equipment and computer readable storage medium
US12141947B2 (en) Image processing method, electronic device, and computer-readable storage medium
CN109598764A (en) Camera calibration method and device, electronic equipment and computer-readable storage medium
CN109598763B (en) Camera calibration method, apparatus, electronic device and computer-readable storage medium
CN110233970A (en) Image processing method and device, electronic equipment and computer readable storage medium
CN109584312B (en) Camera calibration method, apparatus, electronic device and computer-readable storage medium
CN110290323A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110266966A (en) Image generation method and device, electronic equipment and computer readable storage medium
CN110213494A (en) Photographing method and device, electronic equipment and computer readable storage medium
CN110493522A (en) Anti-fluttering method and device, electronic equipment, computer readable storage medium
CN110475067A (en) Image processing method and device, electronic equipment, computer readable storage medium
CN112087571A (en) Image acquisition method and device, electronic equipment and computer readable storage medium
CN112866553B (en) Focusing method and device, electronic equipment and computer readable storage medium
CN112019734B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
CN109660718B (en) Image processing method and apparatus, electronic device, computer-readable 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