CN109194877B - Image compensation method and apparatus, computer-readable storage medium, and electronic device - Google Patents
Image compensation method and apparatus, computer-readable storage medium, and electronic device Download PDFInfo
- Publication number
- CN109194877B CN109194877B CN201811290317.8A CN201811290317A CN109194877B CN 109194877 B CN109194877 B CN 109194877B CN 201811290317 A CN201811290317 A CN 201811290317A CN 109194877 B CN109194877 B CN 109194877B
- Authority
- CN
- China
- Prior art keywords
- image
- exposure
- offset
- exposure information
- camera
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000006870 function Effects 0.000 claims description 101
- 238000003384 imaging method Methods 0.000 claims description 38
- 230000035945 sensitivity Effects 0.000 claims description 25
- 230000003287 optical effect Effects 0.000 claims description 23
- 230000006641 stabilisation Effects 0.000 claims description 21
- 238000011105 stabilization Methods 0.000 claims description 21
- 238000013507 mapping Methods 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 8
- 230000000750 progressive effect Effects 0.000 claims description 5
- 238000010276 construction Methods 0.000 claims description 3
- 238000006073 displacement reaction Methods 0.000 description 31
- 238000012545 processing Methods 0.000 description 24
- 238000012887 quadratic function Methods 0.000 description 13
- 238000012360 testing method Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 238000005516 engineering process Methods 0.000 description 5
- 238000012937 correction Methods 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 3
- 230000005355 Hall effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 239000000872 buffer Substances 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 238000007667 floating Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002245 particle Substances 0.000 description 1
- 239000002994 raw material Substances 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/68—Control of cameras or camera modules for stable pick-up of the scene, e.g. compensating for camera body vibrations
- H04N23/682—Vibration or motion blur correction
- H04N23/685—Vibration or motion blur correction performed by mechanical compensation
- H04N23/687—Vibration or motion blur correction performed by mechanical compensation by shifting the lens or sensor position
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本申请涉及计算机技术领域,特别是涉及图像补偿方法和装置、计算机可读存储介质和电子设备。The present application relates to the field of computer technology, and in particular, to an image compensation method and apparatus, a computer-readable storage medium, and an electronic device.
背景技术Background technique
光学防抖(Optical Image Stabilization,光学图像稳定)作为目前被公众认可的一种防抖技术,主要是通过镜头的浮动透镜来纠正“光轴偏移”,其原理是通过镜头内的陀螺仪侦测到微小的移动,然后将信号传至微处理器,处理器立即计算需要补偿的位移量,然后通过补偿镜片组,根据镜头的抖动方向及位移量加以补偿;从而有效的克服因摄像头的振动产生的影像模糊。Optical Image Stabilization (Optical Image Stabilization), as an anti-shake technology currently recognized by the public, mainly corrects the "optical axis shift" through the floating lens of the lens. The tiny movement is detected, and then the signal is sent to the microprocessor. The processor immediately calculates the amount of displacement that needs to be compensated, and then compensates according to the shaking direction and displacement of the lens through the compensation lens group; thus effectively overcome the vibration caused by the camera. The resulting image is blurry.
但是,在抖动的过程中会产生图像的偏移,镜头的移动会对图像带来实际的影响,一般的光学防抖技术无法解决图像偏移的问题。However, in the process of shaking, an image shift will occur, and the movement of the lens will actually affect the image, and the general optical image stabilization technology cannot solve the problem of image shift.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供一种图像补偿方法和装置、计算机可读存储介质和电子设备,可以对抖动产生的图像偏移进行补偿,提高图像的清晰度。Embodiments of the present application provide an image compensation method and apparatus, a computer-readable storage medium, and an electronic device, which can compensate for image shift caused by shaking and improve image clarity.
一种图像补偿方法,所述方法包括:An image compensation method, the method comprising:
控制摄像头采集图像,并获取采集所述图像的曝光信息;所述摄像头包括光学图像稳定系统;Controlling a camera to collect images, and acquiring exposure information for collecting the images; the camera includes an optical image stabilization system;
当检测到摄像头发生抖动时,获取采集所述图像时所述摄像头的镜头偏移;When it is detected that the camera shakes, obtain the lens offset of the camera when the image is captured;
根据所述曝光信息确定目标标定函数,并获取与所述镜头偏移量相对应的图像偏移量;Determine a target calibration function according to the exposure information, and acquire an image offset corresponding to the lens offset;
根据所述曝光信息和所述图像偏移量对所述图像进行补偿。The image is compensated according to the exposure information and the image offset.
一种图像补偿装置,所述装置,包括:An image compensation device, the device includes:
曝光信息获取模块,用于控制摄像头采集图像,并获取采集所述图像的曝光信息;所述摄像头包括光学图像稳定系统;an exposure information acquisition module, configured to control a camera to collect images and acquire exposure information for collecting the images; the camera includes an optical image stabilization system;
镜头偏移获取模块,用于当检测到摄像头发生抖动时,获取采集所述图像时所述摄像头的镜头偏移;a lens offset acquisition module, configured to acquire the lens offset of the camera when the image is captured when it is detected that the camera shakes;
图像偏移获取模块,用于根据所述曝光信息确定目标标定函数,并获取与所述镜头偏移量相对应的图像偏移量;an image offset acquisition module, configured to determine a target calibration function according to the exposure information, and acquire an image offset corresponding to the lens offset;
图像补偿模块,用于根据所述曝光信息和所述图像偏移量对所述图像进行补偿。An image compensation module, configured to compensate the image according to the exposure information and the image offset.
一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现图像补偿方法的步骤。A computer-readable storage medium on which a computer program is stored, the computer program implementing the steps of an image compensation method when executed by a processor.
一种电子设备,包括存储器及处理器,所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行图像补偿方法的步骤。An electronic device includes a memory and a processor, wherein computer-readable instructions are stored in the memory, and when executed by the processor, the instructions cause the processor to perform steps of an image compensation method.
上述图像补偿方法和装置、计算机可读存储介质和电子设备,可以控制摄像头采集图像,并获取采集所述图像的曝光信息;当检测到摄像头发生抖动时,获取采集所述图像时所述摄像头的镜头偏移;根据所述曝光信息确定目标标定函数,并获取与所述镜头偏移量相对应的图像偏移量;根据所述曝光信息和所述图像偏移量对所述图像进行补偿,可以根据曝光信息更为精准的获取图像偏移,进而在对图像进行补偿,可以提高图像的清晰度。The above-mentioned image compensation method and device, computer-readable storage medium and electronic device can control the camera to collect images, and obtain exposure information of the collected images; lens offset; determine a target calibration function according to the exposure information, and obtain an image offset corresponding to the lens offset; compensate the image according to the exposure information and the image offset, The image offset can be obtained more accurately according to the exposure information, and then the image can be compensated to improve the clarity of the image.
附图说明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 block diagram of an electronic device in one embodiment;
图2为一个实施例中图像补偿方法的流程图;2 is a flowchart of an image compensation method in one embodiment;
图3为一个实施例中根据曝光信息确定目标标定函数,并获取与镜头偏移量相对应的图像偏移量的流程图;3 is a flowchart of determining a target calibration function according to exposure information and acquiring an image offset corresponding to the lens offset in one embodiment;
图4为一个实施例中针对每档标准曝光信息,确定与标准曝光信息相匹配的预设标定函数的流程图;4 is a flowchart of determining a preset calibration function matching the standard exposure information for each level of standard exposure information in one embodiment;
图5为一个实施例中根据曝光信息和图像偏移量对图像进行补偿的流程图;5 is a flow chart of compensating an image according to exposure information and an image offset in one embodiment;
图6为另一个实施例中根据曝光信息和图像偏移量对图像进行补偿的流程图;6 is a flow chart of compensating an image according to exposure information and an image offset in another embodiment;
图7为一个实施例中当检测到摄像头发生抖动时,获取采集图像时摄像头的镜头偏移的流程图;7 is a flow chart of acquiring the lens shift of the camera when capturing an image when it is detected that the camera shakes in one embodiment;
图8为一个实施例中图像补偿装置的结构图;8 is a structural diagram of an image compensation device in one embodiment;
图9为一个实施例中图像处理电路的示意图。FIG. 9 is a schematic diagram of an image processing circuit 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.
电子设备可通过成像设备对场景内的所有景物、人等进行拍摄。其中,成像设备包括OIS(Optical Image Stabilization,光学防抖)系统,也即,成像设备包括携带OIS系统的摄像头。光学防抖是依靠特殊的镜头或者CCD感光元件的结构在最大程度的降低操作者在使用过程中由于抖动造成影像不稳定。具体地,当摄像头内的陀螺仪侦测到微小的移动时,会将信号传至微处理器立即计算需要补偿的位移量,然后通过补偿镜片组,根据镜头的抖动方向及位移量加以补偿,从而有效的克服因摄像头的抖动产生的影像模糊。The electronic device can photograph all the scenes, people, etc. in the scene through the imaging device. The imaging device includes an OIS (Optical Image Stabilization, optical image stabilization) system, that is, the imaging device includes a camera carrying the OIS system. Optical image stabilization relies on a special lens or the structure of the CCD photosensitive element to minimize the image instability caused by the operator's shaking during use. Specifically, when the gyroscope in the camera detects a slight movement, it will transmit the signal to the microprocessor to immediately calculate the displacement amount that needs to be compensated, and then compensate according to the shaking direction and displacement of the lens through the compensation lens group. This effectively overcomes image blurring caused by camera shake.
可选的,本方案还可以适用于包括两个或两个以上的摄像头的成像设备,其中,两个或两个以上的摄像头中至少包括一个具备OIS功能的摄像头。Optionally, this solution can also be applied to an imaging device including two or more cameras, wherein the two or more cameras include at least one camera with an OIS function.
上述成像设备可以应用在电子设备中,电子设备可以为手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备、数码相机等具备拍照、摄像功能的任意终端设备。需要说明的是,成像设备可设置在电子设备上,也可不设置在电子设备上但与电子设备连接,电子设备的屏幕上可展示成像设备采集的图像。The above imaging device can be applied to electronic devices, and the electronic devices can be mobile phones, tablet computers, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, sales terminal), vehicle computer, wearable device, digital camera, etc. Any terminal device with photo and video functions. It should be noted that the imaging device may be provided on the electronic device, or may not be provided on the electronic device but connected to the electronic device, and the screen of the electronic device may display the image collected by the imaging device.
成像设备可以控制摄像头采集图像,并获取采集图像的曝光信息;摄像头包括光学图像稳定系统;当检测到摄像头发生抖动时,获取摄像头的镜头偏移;根据曝光信息确定目标标定函数,并获取与镜头偏移量相对应的图像偏移量;根据曝光信息和图像偏移量对发生抖动时摄像头采集的图像进行补偿。The imaging device can control the camera to collect images and obtain the exposure information of the collected images; the camera includes an optical image stabilization system; when it is detected that the camera shakes, the lens offset of the camera is obtained; the target calibration function is determined according to the exposure information, and the correlation with the lens is obtained. The image offset corresponding to the offset; compensate the image captured by the camera when shaking occurs according to the exposure information and the image offset.
图1为一个实施例中电子设备的框图。如图1所示,该电子设备包括通过系统总线连接的处理器、存储器、显示屏和输入装置。其中,存储器可包括非易失性存储介质及处理器。电子设备的非易失性存储介质存储有操作系统及计算机程序,该计算机程序被处理器执行时以实现本申请实施例中提供的一种图像补偿方法。该处理器用于提供计算和控制能力,支撑整个电子设备的运行。电子设备中的内存储器为非易失性存储介质中的计算机程序的运行提供环境。电子设备的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该电子设备可以是手机、平板电脑、PDA(PersonalDigital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备、数码相机等具备拍照、摄像功能的任意终端设备。本领域技术人员可以理解,图1中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Figure 1 is a block diagram of an electronic device in one embodiment. As shown in FIG. 1, the electronic device includes a processor, a memory, a display screen and an input device connected through a system bus. Among them, the memory may include a non-volatile storage medium and a processor. The non-volatile storage medium of the electronic device stores an operating system and a computer program, and when the computer program is executed by the processor, an image compensation method provided in the embodiments of the present application is implemented. The processor is used to provide computing and control capabilities that support the operation of the entire electronic device. Internal memory in an electronic device provides an environment for the execution of computer programs in non-volatile storage media. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, etc., and the input device can be a touch layer covered on the display screen, or a button, a trackball or a touchpad set on the shell of the electronic equipment, or a An external keyboard, trackpad, or mouse, etc. The electronic device may be any terminal device with photographing and video recording functions, such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant, a personal digital assistant), a POS (Point of Sales, a sales terminal), a vehicle-mounted computer, a wearable device, and a digital camera. Those skilled in the art can understand that the structure shown in FIG. 1 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the electronic device to which the solution of the present application is applied. The specific electronic device may be Include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
图2为一个实施例中图像补偿方法的流程图。。在一个实施例中图像补偿方法,包括步骤202-步骤208。其中,FIG. 2 is a flowchart of an image compensation method in one embodiment. . In one embodiment, the image compensation method includes steps 202-208. in,
步骤202,控制摄像头采集图像,并获取采集图像的曝光信息。Step 202: Control the camera to capture images, and acquire exposure information of the captured images.
摄像头包括光学图像稳定系统(Optical Image Stabilization,OIS)。摄像头包括镜头、音圈马达、红外滤光片、图像传感器(Sensor IC)和数字信号处理(DSP)及PCB电路板。其中,镜头通常由多个镜片组成,其成像作用,若镜头具备OIS功能时,在有抖动的情况下,控制镜头相对于图像传感器平移而将手抖造成的图像偏移抵消补偿掉。The camera includes an optical image stabilization system (Optical Image Stabilization, OIS). The camera includes lens, voice coil motor, infrared filter, image sensor (Sensor IC) and digital signal processing (DSP) and PCB circuit board. Among them, the lens is usually composed of multiple lenses, and its imaging function, if the lens has the OIS function, in the case of shaking, the lens is controlled to translate relative to the image sensor to offset the image shift caused by the hand shake.
当成像设备进入图像预览界面时,成像设备可以控制摄像头实时预览采集各个视角范围的图像,或者,当成像设备进入图像预览界面时,成像设备可以拍摄各个视角范围的图像。When the imaging device enters the image preview interface, the imaging device can control the camera to preview and capture images in various viewing angle ranges in real time, or when the imaging device enters the image preview interface, the imaging device can capture images in various viewing angle ranges.
成像设备在采集图像的过程中,也会采集该图像的曝光信息。其中,曝光可指成像设备的感光元件接收外界的光线,再形成图像的过程,该过程直接决定了画面的亮/暗。曝光三要素分别为光圈、快门、感光度(ISO)。During the process of acquiring an image, the imaging device will also acquire exposure information of the image. Among them, exposure can refer to the process in which the photosensitive element of the imaging device receives external light and then forms an image, and this process directly determines the brightness/darkness of the image. The three elements of exposure are aperture, shutter, and ISO.
曝光信息可理解为曝光三要素中的快门或感光度。其中,快门速度通常简称为快门,是指成像设备快门从开启到关闭的时间,通过快门来控制CCD的感光时间。快门速度通常用分数形式来表示,习惯上呈倍数关系,按1秒、1/2秒....1/1000秒的序列排列。比如1/100表示快门开启到关闭是0.01秒,1/10是0.1秒。感光度,又称为ISO值,可指底片对于光的灵敏程度,在光圈和快门不变的情况下,感光度越高,成像设备的感光能力越强,拍出来的图像就会越亮;反之就会越暗。Exposure information can be understood as the shutter or sensitivity among the three elements of exposure. Among them, the shutter speed is usually abbreviated as the shutter, which refers to the time from the opening to the closing of the shutter of the imaging device, and the light-sensitive time of the CCD is controlled by the shutter. Shutter speed is usually expressed in fractional form, and it is customary to be a multiple, arranged in the sequence of 1 second, 1/2 second....1/1000 second. For example, 1/100 means that the shutter is open to close in 0.01 seconds, and 1/10 is 0.1 seconds. Sensitivity, also known as ISO value, can refer to the sensitivity of the film to light. Under the condition that the aperture and shutter remain unchanged, the higher the sensitivity, the stronger the sensitivity of the imaging device, and the brighter the image will be. Otherwise, it will be darker.
步骤204,当检测到摄像头发生抖动时,获取摄像头的镜头偏移量。
成像设备中还包括用于检测摄像头是否发生抖动的陀螺仪传感器。当陀螺仪传感器采集的角速度信息发生变化时,则可认为该摄像头发生了抖动。当摄像头发生抖动时,可以获取该摄像头的镜头偏移。The imaging device also includes a gyroscope sensor to detect camera shake. When the angular velocity information collected by the gyro sensor changes, it can be considered that the camera shakes. When the camera shakes, the lens offset of the camera can be obtained.
可选的,基于成像设备中的陀螺仪传感器或基于电子设备原有中的陀螺仪传感器和/或加速度传感器可以检测摄像头是否发生抖动。Optionally, whether the camera shakes can be detected based on the gyro sensor in the imaging device or based on the gyro sensor and/or acceleration sensor in the original electronic device.
在一个实施例中,可以以摄像头的图像传感器所在平面为XY平面,建立二维坐标系,其二维坐标系的原点位置在本申请中不做进一步的限定。镜头偏移可以理解为镜头抖动后的当前位置与镜头抖动前的起始位置在二维坐标系中的矢量偏移,也即,镜头抖动后的当前位置相对于镜头抖动前的初始位置的矢量距离。其中,初始位置可以理解为镜头与图像传感器之间的距离为镜头的一倍焦距时的镜头位置。镜头偏移指的是镜头(凸透镜)移动前后,光心之间的矢量距离。In one embodiment, a two-dimensional coordinate system can be established by taking the plane where the image sensor of the camera is located as the XY plane, and the origin of the two-dimensional coordinate system is not further limited in this application. The lens offset can be understood as the vector offset between the current position after the lens shake and the initial position before the lens shake in the two-dimensional coordinate system, that is, the vector of the current position after the lens shake relative to the initial position before the lens shake distance. The initial position can be understood as the position of the lens when the distance between the lens and the image sensor is one focal length of the lens. Lens offset refers to the vector distance between the optical centers before and after the lens (convex lens) moves.
进一步的,可以基于摄像头中的霍尔传感器或激光技术来采集摄像头中镜头的移动量,也即,镜头偏移。其中,陀螺仪传感器采集的角速度信息与霍尔传感器采集的霍尔值在时序上对应。在本申请实施例中,已知霍尔传感器采集的霍尔值的大小,即可确定出当前时刻该镜头偏移量的大小。在OIS系统中,该镜头偏移量数量级在微米级别。Further, the movement amount of the lens in the camera, that is, the lens shift, can be collected based on the Hall sensor or laser technology in the camera. The angular velocity information collected by the gyroscope sensor corresponds to the Hall value collected by the Hall sensor in time series. In the embodiment of the present application, the size of the lens offset at the current moment can be determined by knowing the size of the Hall value collected by the Hall sensor. In OIS systems, this lens offset is on the order of microns.
需要说明的是,控制摄像头采集图像的同时,也会同步判断获取镜头偏移量,其霍尔传感器的采集频率高于获取摄像头采集图像的频率。也即,当摄像头采集一帧图像的同时,可以同步获取多个镜头偏移量。例如,摄像头以30Hz进行图像采集,同一时刻霍尔传感器以200Hz进行霍尔值的采集,则采集一帧图像的时间,在时序上将对应采集6-7个霍尔值,以及可以采集多个镜头偏移量。It should be noted that, while controlling the camera to capture images, it will also synchronously determine and acquire the lens offset, and the acquisition frequency of the Hall sensor is higher than the frequency of acquisition of images by the camera. That is, when the camera captures one frame of image, multiple lens offsets can be acquired simultaneously. For example, if the camera collects images at 30Hz, and the Hall sensor collects Hall values at 200Hz at the same time, the time to collect one frame of image will correspond to 6-7 Hall values in time series, and multiple Lens offset.
步骤206,根据曝光信息确定目标标定函数,并获取与镜头偏移量相对应的图像偏移量。Step 206: Determine the target calibration function according to the exposure information, and acquire the image offset corresponding to the lens offset.
目标标定函数可以理解为与当前曝光信息相匹配的标定函数,不同的曝光信息所对应的目标标定函数可能相同,也可能不相同。由于镜头偏移量的单位为code,图像偏移量的单位为像素(pixel),基于该目标标定函数将镜头偏移量转换为图像偏移量,可以将镜头偏移量转换为图像偏移量。The target calibration function can be understood as a calibration function matching the current exposure information, and the target calibration functions corresponding to different exposure information may or may not be the same. Since the unit of lens offset is code and the unit of image offset is pixel (pixel), the lens offset can be converted into image offset based on the target calibration function, and the lens offset can be converted into image offset quantity.
图像偏移量可以理解为一次采集图像的过程中,在同一视野范围内,同一特征点在镜头抖动前和抖动后的位移量。例如,成像设备在抖动前,即镜头在第一位置时采集第一图像并记录第一图像中各个像素点在XY平面的坐标位置。当成像设备发生抖动时,镜头会在XY平面发生移动,即镜头在第二位置(发生移动后的当前位置)时,采集第二图像并记录第二图像中各个像素点在XY平面的坐标位置,可将第二图像相对于第一图像的偏移称之为图像偏移量。Image offset can be understood as the displacement of the same feature point before and after the lens shakes within the same field of view during the process of capturing an image once. For example, before the imaging device shakes, that is, when the lens is in the first position, the first image is collected and the coordinate positions of each pixel in the first image on the XY plane are recorded. When the imaging device shakes, the lens will move in the XY plane, that is, when the lens is in the second position (the current position after the movement), the second image is collected and the coordinate position of each pixel in the second image on the XY plane is recorded. , the offset of the second image relative to the first image can be referred to as an image offset.
其中,目标标定函数可以根据特定的标定方式获取,目标标定函数可以为一元二次函数、二元二次函数或二元多次函数,其中,可以将镜头在XY平面沿x轴的偏移量与沿y轴的偏移量带入至目标标定函数中,通过计算,以获取对应的图像偏移量d1。采集一帧图像会对应多个镜头偏移量,则根据该目标标定函数,可以对应获取多个图像偏移量。The target calibration function can be obtained according to a specific calibration method, and the target calibration function can be a one-dimensional quadratic function, a two-dimensional quadratic function, or a two-variable multiple function, wherein the offset of the lens in the XY plane along the x-axis can be calculated. The offset along the y-axis is brought into the target calibration function, and the corresponding image offset d1 is obtained through calculation. Collecting one frame of image corresponds to multiple lens offsets, and according to the target calibration function, multiple image offsets can be obtained correspondingly.
步骤208,根据曝光信息和图像偏移量对图像进行补偿。Step 208: Compensate the image according to the exposure information and the image offset.
根据获取的曝光信息和图像偏移量对图像进行补偿。不同的曝光信息其对应的补偿策略不同,例如,补偿策略可包括逐帧或隔帧补偿、分块补偿、逐行或隔行补偿等等。其中,逐帧或隔帧补偿可对不同帧图像的全部区域采用一个图像偏移量进行统一补偿;分块补偿、逐行或隔行补偿可针对同一帧图像的不同区域进行分区补偿,也即,可以对不同的区域采用不同的图像偏移量进行补偿。The image is compensated according to the acquired exposure information and image offset. Different exposure information corresponds to different compensation strategies. For example, the compensation strategies may include frame-by-frame or inter-frame compensation, block compensation, progressive or inter-line compensation, and so on. Among them, frame-by-frame or frame-by-frame compensation can use one image offset to uniformly compensate all areas of different frame images; block compensation, progressive or interlace compensation can be used to compensate different areas of the same frame image, that is, Different areas can be compensated with different image offsets.
上述图像补偿方法,可以控制摄像头采集图像,并获取采集所述图像的曝光信息;当检测到摄像头发生抖动时,获取采集所述图像时所述摄像头的镜头偏移;根据所述曝光信息确定目标标定函数,并获取与所述镜头偏移量相对应的图像偏移量;根据所述曝光信息和所述图像偏移量对所述图像进行补偿,可以根据曝光信息更为精准的获取图像偏移,进而在对图像进行补偿,可以提高图像的清晰度。The above-mentioned image compensation method can control the camera to collect images, and obtain exposure information of the collected images; when it is detected that the camera shakes, obtain the lens shift of the camera when collecting the image; determine the target according to the exposure information calibration function, and obtain the image offset corresponding to the lens offset; the image is compensated according to the exposure information and the image offset, and the image offset can be more accurately obtained according to the exposure information Shifting, and then compensating for the image, which can improve the clarity of the image.
图3为一个实施例中根据曝光信息确定目标标定函数,并获取与镜头偏移量相对应的图像偏移量的流程图。在一个实施例中,根据曝光信息确定目标标定函数,并获取与镜头偏移量相对应的图像偏移量,包括:FIG. 3 is a flowchart of determining a target calibration function according to exposure information and acquiring an image offset corresponding to a lens offset in one embodiment. In one embodiment, the target calibration function is determined according to the exposure information, and the image offset corresponding to the lens offset is obtained, including:
步骤302,构建多个档位的标准曝光信息与多个预设标定函数的映射关系。
在一个实施例中,曝光信息为感光度,感光度是衡量底片对于光的灵敏程度,由敏感度测量学及测量数个数值来决定。其中,感光度包括ISO100、ISO200、ISO400、ISO800、ISO1000、ISO1600、ISO3200、ISO6400、ISO12800多个档位等。在采集图像的过程中,可以直接获取当前采集图像的感光度,例如ISO400。In one embodiment, the exposure information is sensitivity, which is a measure of the sensitivity of the negative to light, and is determined by sensitivity measurement and measurement of several values. Among them, the sensitivity includes ISO100, ISO200, ISO400, ISO800, ISO1000, ISO1600, ISO3200, ISO6400, ISO12800 and so on. In the process of capturing an image, the sensitivity of the currently captured image, such as ISO400, can be directly obtained.
电子设备可以预先存储多个档位的标准曝光信息,其中,可以将标准曝光信息的档位设置为五个档位,其分别ISO100(一档)、ISO500(二档)、ISO1000(三档)、ISO2000(四档)、ISO4000(五档)。The electronic device can pre-store standard exposure information of multiple gears, wherein the gears of the standard exposure information can be set to five gears, which are ISO100 (first gear), ISO500 (second gear), and ISO1000 (third gear). , ISO2000 (four gears), ISO4000 (five gears).
可选的,也可以将标准曝光信息的档位设置为六个档位,其分别ISO100(一档)、ISO200(二档)、ISO400(三档)、ISO800(四档)、ISO1000(五档)、ISO1600(六档)。在本申请实施例中,可以根据实际需求来设定标准曝光信息的档位数量以及每个档位的具体数值,在此不做进一步的限定。Optionally, the standard exposure information can also be set to six gears, which are ISO100 (first gear), ISO200 (second gear), ISO400 (third gear), ISO800 (fourth gear), and ISO1000 (fifth gear). ), ISO1600 (sixth gear). In the embodiment of the present application, the number of gears of the standard exposure information and the specific value of each gear may be set according to actual needs, which is not further limited herein.
例如,当电子设备将标准曝光信息的档位设置为五个档位,其分别SO100、ISO500、ISO1000、ISO2000、ISO4000时,电子设备可分别在ISO100、ISO500、ISO1000、ISO2000、ISO4000的情况下,按照预设标定模型以确定具有标定系数的预设标定函数。其中,每个档位的标准曝光信息对应一个预设标定模型,根据该预设标定模块就可以确定唯一的预设标定函数。若包括五个档位的标准曝光信息则对应的,也可以确定五个相应的预设标定函数可分别记为F1(ΔX,ΔY)、F2(ΔX,ΔY)、F3(ΔX,ΔY)、(ΔX,ΔY)、F5(ΔX,ΔY)。For example, when the electronic device sets the standard exposure information gears to five gears, which are SO100, ISO500, ISO1000, ISO2000, and ISO4000, respectively, the electronic device can set the standard exposure information to ISO100, ISO500, ISO1000, ISO2000, and ISO4000, respectively. A preset calibration function with calibration coefficients is determined according to a preset calibration model. The standard exposure information of each gear corresponds to a preset calibration model, and a unique preset calibration function can be determined according to the preset calibration module. Correspondingly, if the standard exposure information of five gears is included, it can also be determined that five corresponding preset calibration functions can be denoted as F 1 (ΔX, ΔY), F 2 (ΔX, ΔY), F 3 (ΔX, ΔY), respectively. ΔY), (ΔX, ΔY), F 5 (ΔX, ΔY).
例如,映射关系可表示为ISO100→F1(ΔX,ΔY)、ISO500→F2(ΔX,ΔY)、ISO1000→F3(ΔX,ΔY)、ISO2000F4→(ΔX,ΔY)、ISO4000→F5(ΔX,ΔY)。For example, the mapping relationship can be expressed as ISO100→F 1 (ΔX,ΔY), ISO500→F 2 (ΔX,ΔY), ISO1000→F 3 (ΔX,ΔY), ISO2000F 4 →(ΔX,ΔY), ISO4000→F 5 (ΔX,ΔY).
具体地,预设标定函数可以为一元二次函数、二元二次函数、二元多次函数等等,其感光度的数值越低,其对应的预设标定函数的次元也就越复杂,其感光度的数值越高,其对应的预设标定函数的次元也就越简单。Specifically, the preset calibration function may be a univariate quadratic function, a binary quadratic function, a binary multiple function, etc. The lower the value of its sensitivity, the more complex the dimension of the corresponding preset calibration function. The higher the value of its sensitivity, the simpler the dimension of the corresponding preset calibration function.
在同一光圈的条件下,若需获取同一曝光值,其感光度与快门速度成反比,也即,感光度越高,其对应的开门速度也就也小,反之,若感光度越小,其对应的开门速度也就也大。Under the condition of the same aperture, if you need to obtain the same exposure value, the sensitivity is inversely proportional to the shutter speed, that is, the higher the sensitivity, the smaller the corresponding door opening speed. On the contrary, if the sensitivity is smaller, the The corresponding opening speed is also large.
可选的,在一个实施例中,曝光信息还可以快门速度。快门速度代表着曝光时间的长短,通常在光线充足的条件下,所需要的曝光时间越短,光线不足的状况下,所需的曝光时间越长。快门速度通常用分数形式来表示,习惯上呈倍数关系,按1秒、1/2秒....1/1000秒的序列排列。电子设备可以预先存储多个档位的标准曝光信息,其中,可以将标准曝光信息的档位设置为五个档位,其分别1秒、1/2秒、1/4秒、1/8秒、1/16秒。电子设备可分别在1秒、1/2秒、1/4秒、1/8秒、1/16秒的情况下,按照预设标定模型以确定具有标定系数的预设标定函数。其中,每个档位的标准曝光信息对应一个预设标定模型,根据该预设标定模块就可以确定唯一的预设标定函数。若包括五个档位的标准曝光信息,则对应的,也可以确定五个相应的预设标定函数。其快门速度越快,其对应的预设标定函数的次元也就越简单,其快门速度越慢,其对应的预设标定函数的次元也就越复杂。Optionally, in one embodiment, the exposure information may also be a shutter speed. The shutter speed represents the length of the exposure time. Generally, the shorter the exposure time is required under the condition of sufficient light, and the longer the exposure time is required under the condition of insufficient light. Shutter speed is usually expressed in fractional form, and it is customary to be a multiple, arranged in the sequence of 1 second, 1/2 second....1/1000 second. The electronic device can pre-store standard exposure information of multiple gears, wherein the gears of the standard exposure information can be set to five gears, which are 1 second, 1/2 second, 1/4 second, and 1/8 second respectively. , 1/16 second. The electronic device may determine a preset calibration function with a calibration coefficient according to a preset calibration model under the conditions of 1 second, 1/2 second, 1/4 second, 1/8 second, and 1/16 second, respectively. The standard exposure information of each gear corresponds to a preset calibration model, and a unique preset calibration function can be determined according to the preset calibration module. If the standard exposure information of five gears is included, correspondingly, five corresponding preset calibration functions may also be determined. The faster the shutter speed, the simpler the dimension of the corresponding preset calibration function, and the slower the shutter speed, the more complex the dimension of the corresponding preset calibration function.
步骤304,根据多个档位的标准曝光信息确定曝光信息的档位。Step 304: Determine the gear of the exposure information according to the standard exposure information of the multiple gears.
电子设备可以获取采集图像时的曝光信息,将曝光信息与多个档位的标准曝光信息进行对比,以确定与该曝光信息最接近的标准曝光信息。例如,采集图像时的曝光信息为ISO400,其标准曝光信息的档位设置为五个档位,其分别ISO100、ISO500、ISO1000、ISO2000、ISO4000,则可以确定,与该与该曝光信息最接近的标准曝光信息为ISO500,其对应的档位为二档,也即,当前曝光信息的档位也为二挡。相应的,若曝光信息为快门速度,也可以确定与该快门速度最接近的标准曝光信息,进而确定该快门速度的档位。The electronic device can acquire the exposure information when the image is captured, and compare the exposure information with the standard exposure information of multiple gears to determine the standard exposure information that is closest to the exposure information. For example, if the exposure information when capturing an image is ISO400, and the standard exposure information is set to five gears, which are ISO100, ISO500, ISO1000, ISO2000, and ISO4000, it can be determined that the exposure information closest to the exposure information The standard exposure information is ISO500, and the corresponding gear is the second gear, that is, the gear of the current exposure information is also the second gear. Correspondingly, if the exposure information is the shutter speed, the standard exposure information closest to the shutter speed can also be determined, and then the gear of the shutter speed can be determined.
步骤306,根据映射关系,在多个预设标定函数中确定与曝光信息的档位相匹配的目标标定函数。
若电子设备中的映射关系为ISO100→F1(ΔX,ΔY)、ISO500→F2(ΔX,ΔY)、ISO1000→F3(ΔX,ΔY)、ISO2000F4→(ΔX,ΔY)、ISO4000→F5(ΔX,ΔY),根据确定的曝光信息的档位,可以从五个预设标定函数中确定目标标定函数。若曝光信息ISO400的档位为二档,其二档标准曝光信息ISO500对应的预设标定函数为F2(ΔX,ΔY),则将该二档标准曝光信息所对应的预设标定函数称之为目标标定函数。If the mapping relationship in the electronic device is ISO100→F 1 (ΔX,ΔY), ISO500→F 2 (ΔX,ΔY), ISO1000→F 3 (ΔX,ΔY), ISO2000F 4 →(ΔX,ΔY), ISO4000→F 5 (ΔX, ΔY), according to the determined gear of exposure information, the target calibration function can be determined from five preset calibration functions. If the exposure information ISO400 is in the second gear, and the preset calibration function corresponding to the second-grade standard exposure information ISO500 is F 2 (ΔX,ΔY), then the preset calibration function corresponding to the second-grade standard exposure information is called as Calibration function for the target.
步骤308,根据目标标定函数确定与镜头偏移量相对应的图像偏移量。Step 308: Determine the image offset corresponding to the lens offset according to the target calibration function.
在一个实施例中,预设标定函数可以为一元二次函数、二元二次函数、二元多次函数等等。例如,预设标定函数F1(ΔX,ΔY)可以表示为:In one embodiment, the preset calibration function may be a one-variable quadratic function, a two-variable quadratic function, a two-variable multiple function, and the like. For example, the preset calibration function F 1 (ΔX,ΔY) can be expressed as:
F1(ΔX,ΔY)=ax(n)+by(n)+...+cxy+dx+ey+f;F 1 (ΔX,ΔY)=ax (n) +by (n) +...+cxy+dx+ey+f;
预设标定函数F2(ΔX,ΔY)可以表示为:The preset calibration function F2(ΔX,ΔY) can be expressed as:
F2(ΔX,ΔY)=ax2+by2+cxy+dx+ey+fF 2 (ΔX,ΔY)=ax 2 +by 2 +cxy+dx+ey+f
预设标定函数F3(ΔX,ΔY)可以表示为:The preset calibration function F3(ΔX,ΔY) can be expressed as:
F3(ΔX,ΔY)=ax2+by2+cx+dy+eF 3 (ΔX,ΔY)=ax 2 +by 2 +cx+dy+e
预设标定函数F4(ΔX,ΔY)可以表示为:The preset calibration function F4(ΔX,ΔY) can be expressed as:
F4(ΔX,ΔY)=axy+bx+cy+dF 4 (ΔX,ΔY)=axy+bx+cy+d
预设标定函数F5(ΔX,ΔY)可以表示为:The preset calibration function F5(ΔX,ΔY) can be expressed as:
F5(ΔX,ΔY)=ax+by+cF 5 (ΔX,ΔY)=ax+by+c
上述各式中,a、b、c、d、e、f分别为标定系数,为已知系数。Fi(ΔX,ΔY)(i=1、2、3、4、5)用于表示当前图像偏移量,x、y分别表示当前镜头偏移量的横轴坐标、纵轴坐标。In the above formulas, a, b, c, d, e, and f are calibration coefficients, which are known coefficients. F i (ΔX, ΔY) (i=1, 2, 3, 4, 5) is used to represent the current image offset, and x and y represent the horizontal and vertical coordinates of the current lens offset, respectively.
上述预设标定函数,是根据预设规则来获取的。需要说明的是,预设标定函数的表达式不限于上述举例说明,还可以用其他表达式进行表示。The above-mentioned preset calibration function is obtained according to a preset rule. It should be noted that the expression of the preset calibration function is not limited to the above examples, and can also be expressed by other expressions.
若目标标定函数为预设标定函数F2(ΔX,ΔY),则根据目标标定函数F2(ΔX,ΔY)可以获取图像偏移量。例如,若当前的镜头偏移量为p(2,1),则对应的图像偏移量F2(ΔX,ΔY)为4a+b+2c+2d+e+f,根据确定的标定系数,则可以获取图像偏移量F2(ΔX,ΔY),该图像偏移量为标量偏移。该预设标定函数为二元二次函数,其综合考虑镜头偏移量的x轴偏移和y轴偏移两个维度的信息,可以更为精准、高效的将镜头偏移量转换为图像偏移量。If the target calibration function is the preset calibration function F2 (ΔX, ΔY), the image offset can be obtained according to the target calibration function F2 (ΔX, ΔY). For example, if the current lens offset is p(2,1), the corresponding image offset F2(ΔX,ΔY) is 4a+b+2c+2d+e+f. According to the determined calibration coefficient, then The image offset F2 (ΔX, ΔY) can be obtained, which is a scalar offset. The preset calibration function is a binary quadratic function, which comprehensively considers the information of the x-axis offset and the y-axis offset of the lens offset, and can convert the lens offset into an image more accurately and efficiently. Offset.
在一个实施例中,构建标准曝光信息与预设标定函数的映射关系前,还包括步骤300,针对每档标准曝光信息,确定与标准曝光信息相匹配的预设标定函数。In one embodiment, before constructing the mapping relationship between the standard exposure information and the preset calibration function, the method further includes
图4为一个实施例中针对每档标准曝光信息,确定与标准曝光信息相匹配的预设标定函数的流程图。具体的,针对每档标准曝光信息,确定与标准曝光信息相匹配的预设标定函数,包括:FIG. 4 is a flowchart of determining a preset calibration function matching the standard exposure information for each level of standard exposure information in one embodiment. Specifically, for each level of standard exposure information, determine a preset calibration function that matches the standard exposure information, including:
步骤402,针对每档标准曝光信息,驱动马达按照预设轨迹移动摄像头,预设轨迹包括多个位移点。
将测试标板固定在摄像头的成像范围内,并控制马达按照预设轨迹移动摄像头的镜头驱动镜头。其中,测试标板可以为CTF(Contrast Transfer Function)标板、SFR(Spatial Frequency Response)标板、DB标板或其他自定义标板。预设轨迹可以为圆周、椭圆、矩形或其他预设轨迹。在预设轨迹上设定了多个位移点,其中,相邻两个位移点的距离可以相同,也可以不相同。其位移点的位置信息可以在XY平面中用坐标位置进行表示。例如,位移点qi的位置信息可以在XY平面中用坐标位置qi(xi,yj)进行表示,也即,位移点的第一位置信息可以用坐标qi(xi,yj)进行表示。Fix the test target plate in the imaging range of the camera, and control the motor to move the lens of the camera according to the preset trajectory to drive the lens. The test target can be a CTF (Contrast Transfer Function) target, an SFR (Spatial Frequency Response) target, a DB target or other custom targets. Preset tracks can be circles, ellipses, rectangles or other preset tracks. A plurality of displacement points are set on the preset track, wherein the distance between two adjacent displacement points may be the same or different. The position information of the displacement point can be represented by the coordinate position in the XY plane. For example, the position information of the displacement point qi can be represented by the coordinate position q i (x i , y j ) in the XY plane, that is, the first position information of the displacement point can be represented by the coordinate position q i (x i , y j ) ) to indicate.
若标准曝光信息的档位设置为五个档位,其分别ISO100、ISO500、ISO1000、ISO2000、ISO4000。则在分别在ISO100、ISO500、ISO1000、ISO2000、ISO4000的标准曝光信息下驱动,马达按照预设轨迹移动摄像头,并分组记录存储相应的图像数据。If the gears of the standard exposure information are set to five gears, they are ISO100, ISO500, ISO1000, ISO2000, and ISO4000 respectively. Then it is driven under the standard exposure information of ISO100, ISO500, ISO1000, ISO2000, and ISO4000, respectively. The motor moves the camera according to the preset trajectory, and records and stores the corresponding image data in groups.
步骤404,当镜头移动至每个位移点时,对应采集测试标板的图像信息。
当驱动马达推动摄像头的镜头按照预设轨迹移动时,在每个位移点对对应采集测试标板的图像信息。一个位移点对应一幅测试标板的图像信息,该图像信息可以理解为构成该图像的多个像素点的位置信息。例如,当位移点的数量为六个时,其需要对应采集六幅测试标板的图像信息。When the driving motor pushes the lens of the camera to move according to the preset trajectory, the image information of the test target is correspondingly collected at each displacement point. A displacement point corresponds to the image information of a test target, and the image information can be understood as the position information of a plurality of pixel points constituting the image. For example, when the number of displacement points is six, it needs to collect image information of six test targets correspondingly.
步骤406,对应获取每个位移点的第一位置信息及在每个位移点采集的图像信息中同一特征点相对于初始位置的图像偏移量。
电子设备可以在图像信息中选取一个特征点pi,以获取在特征点pi的第二位置信息,特征点pi的第二位置信息也可以在XY平面中用坐标pi(Xi,Yj)进行表示。The electronic device can select a feature point p i in the image information to obtain the second position information of the feature point p i , and the second position information of the feature point p i can also be used in the XY plane using the coordinates p i (X i, Y j ) is represented.
其中,特征点pi可以为该图像信息中靠近中心位置的像素点对应的拍摄目标物,也可以为该图像信息中亮度最亮的像素点或其他具有突出意义的像素点对应的拍摄目标物,在此,对特征点的具体位置及定义不做进一步的限定。Among them, the feature point p i may be the shooting target corresponding to the pixel point near the center position in the image information, or may be the shooting target corresponding to the pixel point with the brightest brightness or other pixel points with prominent significance in the image information , here, the specific positions and definitions of the feature points are not further limited.
需要说明的是,多个测试标板的图像信息中的特征点所对应的拍摄目标物相同,也即,在不同位移点采集的图像信息中的特征点的位置信息不同,但同一特征点对应的拍摄目标物相同。It should be noted that the shooting targets corresponding to the feature points in the image information of multiple test targets are the same, that is, the position information of the feature points in the image information collected at different displacement points is different, but the same feature point corresponds to the same shooting target.
在一个实施例中,镜头在初始位置处的位移点q0(x0,y0)可以为原点。当镜头在初始位置q0(x0,y0)时,可获取的测试标板的图像信息中特征点,该特征点也可用p0(X0,Y0)表示。In one embodiment, the displacement point q 0 (x 0 , y 0 ) of the lens at the initial position may be the origin. When the lens is at the initial position q 0 (x 0 , y 0 ), the characteristic points in the acquired image information of the test target can also be represented by p 0 (X 0 , Y 0 ).
当镜头移动至位移点q1(x1,y1)时,对应获取测试标板的图像信息中的特征点p1(X1,Y1),以及该特征点p1(X1,Y1)相对于在初始位置获取的特征点p0(X0,Y0)的图像偏移量d1;依次类推,当镜头移动至位移点q6(x6,y6)时,对应获取测试标板的图像信息中的特征点p6(X6,Y6)以及在该特征点p6(X6,Y6)相对于在初始位置获取的特征点p0(X0,Y0)的图像偏移量d6。When the lens moves to the displacement point q 1 (x 1 , y 1 ), the characteristic point p 1 (X 1 , Y 1 ) in the image information of the test target is obtained correspondingly, and the characteristic point p 1 (X 1 , Y 1 ) 1 ) The image offset d1 relative to the feature point p 0 (X 0 , Y 0 ) acquired at the initial position; and so on, when the lens moves to the shift point q 6 (x 6, y 6 ), the corresponding acquisition test The feature point p 6 (X 6 , Y 6 ) in the image information of the target and the feature point p 6 (X 6 , Y 6 ) at the feature point p 6 (X 6 , Y 6 ) relative to the feature point p 0 (X 0 , Y 0 ) acquired at the initial position The image offset d6.
步骤408,将第一位置信息和图像偏移输入至预设偏移转换模型,以确定具有标定系数的预设偏移转换函数,其中,位移点的数量与标定系数的数量相关联。
不同的档位的标准曝光信息对应于不同的预设标定模型,不同的预设标定模型具有不同的标定系数。其中,预设标定模型不同,其需要获取的位移点的数量也不相同,且预设标定模型中的未知系数的数量小于等于位移点的数量。The standard exposure information of different gears corresponds to different preset calibration models, and different preset calibration models have different calibration coefficients. Wherein, different preset calibration models require different numbers of displacement points, and the number of unknown coefficients in the preset calibration model is less than or equal to the number of displacement points.
预设标定模型可以为一元二次函数模型,二元二次函数模型,也可以为二元多次函数模型,其该预设标定模型的设定,是通过学习的方式来获取的。The preset calibration model may be a univariate quadratic function model, a binary quadratic function model, or a binary multiple function model, and the setting of the preset calibration model is obtained by learning.
可以根据当前的标准曝光信息的档位来确定对应的预设标定模型,并将获取的特征移动点的第一位置信息,与该位移点相对应的特征点的第二位置信息以及图像偏移量均输入值预设标定模型,通过分析运算,即确定该预设标定模型中的各个系数,进而具有标定系数的预设标定函数。相应的,可以获取每个档位的标准曝光信息所对应的预设标定函数。The corresponding preset calibration model can be determined according to the gear position of the current standard exposure information, and the acquired first position information of the characteristic movement point, the second position information of the characteristic point corresponding to the displacement point, and the image offset A preset calibration model for the average input value, through analysis and operation, each coefficient in the preset calibration model is determined, and then there is a preset calibration function of the calibration coefficients. Correspondingly, the preset calibration function corresponding to the standard exposure information of each gear can be obtained.
需要说明的是,预设标定模型与预设标定函数的表达式一致,对于预设标定模型,其中的标定系数为未知数,而对于预设标定函数,其对应的标定系数为已知数。It should be noted that the preset calibration model is consistent with the expression of the preset calibration function. For the preset calibration model, the calibration coefficient is an unknown number, and for the preset calibration function, the corresponding calibration coefficient is a known number.
例如,当预设标定模型为二元二次函数模型时,可以用如下公式进行表示:For example, when the preset calibration model is a binary quadratic function model, it can be expressed by the following formula:
F(ΔX,ΔY)=ax2+by2+cxy+dx+ey+fF(ΔX,ΔY)=ax 2 +by 2 +cxy+dx+ey+f
式中,(ΔX,ΔY)表示图像偏移量,该图像偏移量表示当前位移点q(xi,yj)相对于在初始位置q(x0,y0)处获取的同一特征点的图像偏移量,该图像偏移量为标量偏移,也即,当前位移点q(xi,yj)与初始位置q(x0,y0)的同一特征点之间的距离。x表示位移点横轴x的坐标参数;y表示位移点纵轴y的坐标参数。In the formula, (ΔX,ΔY) represents the image offset, which represents the current displacement point q(x i , y j ) relative to the same feature point obtained at the initial position q(x 0 , y 0 ) The image offset is a scalar offset, that is, the distance between the current displacement point q(x i , y j ) and the same feature point at the initial position q(x 0 , y 0 ). x represents the coordinate parameter of the horizontal axis x of the displacement point; y represents the coordinate parameter of the vertical axis y of the displacement point.
其中,二元二次函数模型中包括六个未知系数a、b、c、d、e、f,将获取的六个位移点q1(x1,y1)-q6(x6,y6)以及与该六个特征点p1(X1,Y1)-p6(X6,Y6)对应的图像偏移量d1-d6分别输入至二元二次函数模型,就可以解析出上述等式中的a、b、c、d、e、f,其中,获取的系数a、b、c、d、e、f带入二元二次函数模型,则可以获取对应的预设标定函数,其中,a、b、c、d、e、f为预设标定函数的标定系数。Among them, the binary quadratic function model includes six unknown coefficients a, b, c, d, e, f, and the obtained six displacement points q 1 (x 1 , y 1 )-q 6 (x 6 , y 6 ) and the image offsets d 1 -d 6 corresponding to the six feature points p 1 (X 1 , Y 1 )-p 6 (X 6 , Y 6 ) are respectively input into the binary quadratic function model, then The a, b, c, d, e, and f in the above equation can be parsed, and the obtained coefficients a, b, c, d, e, and f are brought into the binary quadratic function model, and the corresponding A preset calibration function, wherein a, b, c, d, e, and f are calibration coefficients of the preset calibration function.
本实施例中的图像补偿方法,根据预设标定模型、多个位移点以及对应的多个特征点,可以获取对应的预设标定函数,该预设标定函数可以直接基于镜头偏移量准确、高效的获取图像偏移量值,标定效率、精准度更高,为补偿图像奠定了好的基础。In the image compensation method in this embodiment, a corresponding preset calibration function can be obtained according to a preset calibration model, a plurality of displacement points, and a plurality of corresponding feature points. Efficient acquisition of image offset values, higher calibration efficiency and higher accuracy, laying a good foundation for compensating images.
图5为一个实施例中根据曝光信息和图像偏移量对图像进行补偿的流程图。在一个实施例中,根据曝光信息和图像偏移量对图像进行补偿,包括:FIG. 5 is a flowchart of image compensation based on exposure information and image offset in one embodiment. In one embodiment, the image is compensated according to the exposure information and the image offset, including:
步骤502,确定曝光信息的曝光等级,曝光等级包括一级曝光、二级曝光和三级曝光。Step 502: Determine the exposure level of the exposure information, where the exposure level includes primary exposure, secondary exposure and tertiary exposure.
在一个实施例中,若曝光信息为感光度,其可以根据感光度来设定其曝光等级。电子设备的感光度包括ISO100、ISO200、ISO400、ISO800、ISO1000、ISO1600、ISO3200、ISO6400、ISO12800等等,可以根据感光度来划分曝光等径。例如,可以将小于或等于ISO500的感光度作为一级曝光,将大于ISO500且小于或等于ISO1000的感光度作为二级曝光,将大于ISO1000的感光度作为三级曝光。电子设备可以根据设定的一级曝光、二级曝光和三级曝光来确定当前曝光信息的曝光等级。In one embodiment, if the exposure information is the sensitivity, the exposure level can be set according to the sensitivity. The sensitivity of electronic equipment includes ISO100, ISO200, ISO400, ISO800, ISO1000, ISO1600, ISO3200, ISO6400, ISO12800, etc. The exposure equal diameter can be divided according to the sensitivity. For example, the sensitivity less than or equal to ISO500 can be regarded as primary exposure, the sensitivity greater than ISO500 and less than or equal to ISO1000 can be regarded as secondary exposure, and the sensitivity greater than ISO1000 can be regarded as tertiary exposure. The electronic device may determine the exposure level of the current exposure information according to the set primary exposure, secondary exposure and tertiary exposure.
在一个实施例中,若曝光信息为快门速度,其可以根据快门速度来设定其曝光等级。电子设备的快门速度包括1秒、1/2秒、1/4秒、1/8秒、1/16秒等等,可以根据快门速度来划分曝光等径。例如,可以将大于1/2秒的快门速度小于或等于1/8秒的快门速度作为一级曝光,将大于1/8秒且小于或等于1/2秒的快门速度作为二级曝光,将大于1/2秒的快门速度为三级曝光。电子设备可以根据设定的一级曝光、二级曝光和三级曝光来确定当前曝光信息的曝光等级。In one embodiment, if the exposure information is the shutter speed, the exposure level can be set according to the shutter speed. The shutter speed of the electronic device includes 1 second, 1/2 second, 1/4 second, 1/8 second, 1/16 second, etc., and the exposure equal diameter can be divided according to the shutter speed. For example, a shutter speed greater than 1/2 second and a shutter speed less than or equal to 1/8 second can be regarded as primary exposure, a shutter speed greater than 1/8 second and less than or equal to 1/2 second can be regarded as secondary exposure, and Shutter speeds greater than 1/2 second are triple exposures. The electronic device may determine the exposure level of the current exposure information according to the set primary exposure, secondary exposure and tertiary exposure.
需要说明的是,电子设备根据曝光信息来划分曝光等级,其具体的划分规则不限于上述举例说明,还可以根据实际需求来设定各个曝光等级的曝光信息的范围。It should be noted that the electronic device divides the exposure levels according to the exposure information, and the specific division rules are not limited to the above examples, and the range of exposure information for each exposure level can also be set according to actual needs.
步骤504,根据曝光等级确定相应的补偿策略。Step 504: Determine a corresponding compensation strategy according to the exposure level.
每个曝光等级对应的图像补偿策略不同。具体地,当曝光等级为一级曝光时,对应的补偿策略为逐帧或隔帧补偿;当曝光等级为二级曝光时,对应的补偿策略为分块补偿;当曝光等级为三级曝光时,对应的补偿策略为逐行或隔行补偿。The image compensation strategy corresponding to each exposure level is different. Specifically, when the exposure level is primary exposure, the corresponding compensation strategy is frame-by-frame or frame-by-frame compensation; when the exposure level is secondary exposure, the corresponding compensation strategy is block compensation; when the exposure level is tertiary exposure , the corresponding compensation strategy is progressive or interlaced compensation.
步骤506,根据图像偏移量和补偿策略对图像进行补偿。Step 506: Compensate the image according to the image offset and the compensation strategy.
在一个实施例中,若曝光信息对应的曝光等级为一级曝光时,则可以采用逐帧或隔帧补偿。电子设备采集一帧图像时,其对应获取的图像偏移量为多个。当采用逐帧或隔帧补偿策略对图像进行补偿时,可以在多个图像偏移量中获取最小图像偏移量、导数最小的图像偏移量、与平均抖动量相差最小的图像偏移量作为目标图像偏移量对每帧图像或隔帧图像的所有像素点进行补偿。In one embodiment, if the exposure level corresponding to the exposure information is primary exposure, frame-by-frame or frame-by-frame compensation may be used. When the electronic device collects one frame of image, the corresponding obtained image offsets are multiple. When the frame-by-frame or frame-by-frame compensation strategy is used to compensate the image, the smallest image offset, the image offset with the smallest derivative, and the image offset with the smallest difference from the average jitter can be obtained among multiple image offsets Compensate all pixels of each frame or every other frame as the target image offset.
在一个实施例中,若曝光信息对应的曝光等级为二级曝光时,则可以分块补偿。电子设备采集一帧图像时,其对应获取的图像偏移量为多个。例如,目前有hall1-hall6共六个霍尔值,每一个霍尔值对应唯一一个图像偏移量,记为biaspixel1-biaspixel6,此时,若CMOS扫描了60行,则可进行分块修正,即60行分为6块,一块包含10行,分别用biaspixel1-biaspixel6对此6块图像进行逐块修正,即,第一块包含的10行均采用biaspixel1作为修正参数进行补偿修正,第二块包含的10行采用biaspixel2作为修正参数进行补偿修正。In one embodiment, if the exposure level corresponding to the exposure information is secondary exposure, the compensation can be performed in blocks. When the electronic device collects one frame of image, the corresponding obtained image offsets are multiple. For example, there are currently six Hall values of hall1-hall6, each of which corresponds to a unique image offset, which is recorded as biaspixel1-biaspixel6. At this time, if the CMOS scans 60 lines, it can be corrected in blocks. That is, the 60 lines are divided into 6 blocks, one block contains 10 lines, and the 6 blocks of images are corrected block by block with biaspixel1-biaspixel6 respectively, that is, the 10 lines contained in the first block are all compensated and corrected by using biaspixel1 as the correction parameter, and the second block The 10 lines included use biaspixel2 as the correction parameter for compensation correction.
在一个实施例中,若曝光信息对应的曝光等级为三级曝光时,则可以逐行或隔行补偿。电子设备采集一帧图像时,其对应获取的图像偏移量为多个。例如,有hall1-hall6共六个霍尔值,每一个霍尔值对应唯一一个图像偏移量,6个图像偏移量可分别记为biaspixel1-biaspixel6,此时,若CMOS扫描了6行,则可用biaspixel1对第1行像素点进行补偿,用biaspixel2对第2行像素点进行补偿,可用biaspixel3对第3行像素点进行补偿,用biaspixel4对第4行像素点进行补偿,可用biaspixel,5对第5行像素点进行补偿,用biaspixel6对第6行像素点进行补偿,也即,采用biaspixel1-biaspixel6对1-6行像素点进行逐行补偿,依次类推,以完成对这个图像的补偿In one embodiment, if the exposure level corresponding to the exposure information is three-level exposure, the compensation can be performed line by line or interlace. When the electronic device collects one frame of image, the corresponding obtained image offsets are multiple. For example, there are six Hall values in hall1-hall6, and each Hall value corresponds to a unique image offset. The six image offsets can be recorded as biaspixel1-biaspixel6. At this time, if the CMOS scans 6 lines, Then you can use biaspixel1 to compensate the first row of pixels, use biaspixel2 to compensate for the second row of pixels, use biaspixel3 to compensate for the third row of pixels, use biaspixel4 to compensate for the fourth row of pixels, you can use biaspixel, 5 pairs Compensate the pixels in the 5th row, use biaspixel6 to compensate the pixels in the 6th row, that is, use biaspixel1-biaspixel6 to compensate the pixels in rows 1-6 row by row, and so on, to complete the compensation of this image
可选的,还可以基于获取的6个图像偏移量biaspixel1-biaspixel6,任意选择1个、2个或3个图像偏移量分别对第1行、第3行、第5行像素点进行隔行补偿,或,分别对第2行、第4行、第6行像素点进行隔行补偿,依次类推,以完成对这个图像的补偿。Optionally, based on the obtained 6 image offsets biaspixel1-biaspixel6, arbitrarily select 1, 2 or 3 image offsets to interlace the pixels in the first row, the third row, and the fifth row respectively. Compensation, or, interlace compensation is performed on the pixel points of the second row, the fourth row, and the sixth row, and so on, to complete the compensation of this image.
本实施例中,可以基于不同的曝光等级自适应采用不同的补偿策略对图像进行补偿,可以提高不同曝光等级下的图像清晰度。In this embodiment, different compensation strategies can be adaptively used to compensate the image based on different exposure levels, which can improve the image clarity under different exposure levels.
图6为一个实施例中当曝光等级为二级曝光时,根据图像偏移量和补偿策略对图像进行补偿的流程图。在一个实施例中,当曝光等级为二级曝光时,根据图像偏移量和补偿策略对图像进行补偿,包括:FIG. 6 is a flow chart of compensating an image according to an image offset amount and a compensation strategy when the exposure level is secondary exposure in one embodiment. In one embodiment, when the exposure level is secondary exposure, the image is compensated according to the image offset and the compensation strategy, including:
步骤602,对图像进行识别,以识别待补偿区域与非补偿区域,其中,非补偿区域的各个像素点的颜色相同,且所述非补偿区域占图像的比例大于或等于预设值。Step 602: Identify the image to identify the to-be-compensated area and the non-compensated area, wherein the color of each pixel in the non-compensated area is the same, and the proportion of the non-compensated area to the image is greater than or equal to a preset value.
在一个实施例中,电子设备可以获取图像中各个像素点的颜色值;基于所述各个像素点的颜色值,对各像素点进行聚类。其中,每个像素点类别中的像素点的颜色值相同;针对聚类处理后的每类像素点,确定由该类像素点中的像素点构成的各个连通区域的轮廓,得到轮廓集合,进而获取各个轮廓集合的面积,以筛选出具有最大面积的轮廓,并将该轮廓对应的区域作为非补偿区域。In one embodiment, the electronic device may acquire the color value of each pixel point in the image; and cluster each pixel point based on the color value of each pixel point. Among them, the color values of the pixels in each pixel category are the same; for each category of pixels after clustering, determine the contours of each connected region formed by the pixels in this category to obtain a contour set, and then Obtain the area of each contour set to filter out the contour with the largest area, and use the area corresponding to the contour as the non-compensated area.
其中,非补偿区域与待补偿区域的合集为整个图像,获取非补偿区域后,判断该非补偿区域占整个图像比例,若该比例大于或等于预设值,则认为该非补偿区域有效,进而获取待补偿区域。若该比例小于预设值,则认为该非补偿区域有效,则将整个图像作为待补偿区域。The combination of the non-compensated area and the to-be-compensated area is the entire image. After the non-compensated area is acquired, it is determined that the non-compensated area accounts for the proportion of the entire image. If the proportion is greater than or equal to the preset value, the non-compensated area is considered valid, and then Get the area to be compensated. If the ratio is smaller than the preset value, it is considered that the non-compensated area is valid, and the entire image is used as the area to be compensated.
进一步的,预设值可以为二分之一,五分之三、七分之四等数据,其具体预设值不做进一步的限定,可以根据实际需求来设定。Further, the preset value may be data such as one-half, three-fifth, four-seventh, etc. The specific preset value is not further limited, and can be set according to actual needs.
例如,若采集的图像为夜景图像,其图像中大部分区域为纯黑色区域,而只有相对较小部分为亮光区域,则可以将黑色区域作为非补偿区域,而将亮光区域作为待补偿区域。若采集的图像为人像+背景图,其中,人像为前景区域,其背景区域为具有相同颜色的区域,做该背景区域占整个图像的比例大于或等于预设值,则将背景区域作为非补偿区域,将人像前景区域作为带补偿区域,该背景区域占整个图像的比例小于预设值,则将整个图像作为待补偿区域。For example, if the collected image is a night scene image, most of the area in the image is a pure black area, and only a relatively small part is a bright area, the black area can be used as the non-compensated area, and the bright area can be used as the area to be compensated. If the collected image is a portrait + background image, in which the portrait is the foreground area, and the background area is the area with the same color, if the proportion of the background area to the entire image is greater than or equal to the preset value, the background area will be regarded as non-compensated If the proportion of the background area in the whole image is less than the preset value, the whole image is regarded as the area to be compensated.
需要说明的是,其图像识别的方式不限于上述举例说明,还可以采用颜色特征提取纹理特征提取边缘特征提取的算法进行识别,在此,对识别待补偿区域与非补偿区域的方式不做进一步的限定。It should be noted that the method of image recognition is not limited to the above-mentioned examples, and can also be identified by using color feature extraction, texture feature extraction, and edge feature extraction algorithms. limit.
步骤604,根据图像偏移量和补偿策略对补偿区域进行补偿。Step 604: Compensate the compensation area according to the image offset and the compensation strategy.
二级曝光等级对应的补偿策略为分块补偿,也即,根据图像偏移量,可以对待补偿区域进行分块补偿,也即,可以对待补偿区域进行精细化补偿,而对非补偿区域不做任何处理,以提高待补偿区域的清晰度,同时提高图像处理的效率。The compensation strategy corresponding to the secondary exposure level is block compensation, that is, according to the image offset, block compensation can be performed on the area to be compensated, that is, fine compensation can be performed on the area to be compensated, but not on the non-compensated area. Any processing to improve the sharpness of the area to be compensated and at the same time improve the efficiency of image processing.
图7为一个实施例中当检测到摄像头发生抖动时,获取采集图像时摄像头的镜头偏移的流程图。在一个实施例中,当检测到摄像头发生抖动时,获取采集图像时摄像头的镜头偏移,包括:FIG. 7 is a flow chart of acquiring the lens shift of the camera when capturing an image when it is detected that the camera shakes in one embodiment. In one embodiment, when it is detected that the camera shakes, the lens offset of the camera when capturing the image is acquired, including:
步骤702,当检测到摄像头发生抖动时,同步获取采集一帧图像时摄像头的多个抖动量。
具体地,获取摄像头采集图像的第一频率以及陀螺仪传感器采集角速度信息的第二频率;也即,当摄像头采集一帧图像的同时,同步获取陀螺仪传感器采集的多个角速度信息。其中,陀螺仪传感器的采集频率高于获取摄像头采集图像的频率。例如,摄像头以30Hz进行图像采集,同一时刻以陀螺仪传感器以200Hz进行角速度信息的采集,则采集一帧图像的时间,在时序上将对应采集6-7个角速度信息。Specifically, the first frequency at which the camera collects images and the second frequency at which the gyro sensor collects angular velocity information is obtained; that is, when the camera collects one frame of image, multiple pieces of angular velocity information collected by the gyro sensor are simultaneously obtained. Among them, the acquisition frequency of the gyroscope sensor is higher than the frequency of acquiring the image acquired by the camera. For example, if the camera collects images at 30Hz, and the gyroscope sensor collects angular velocity information at 200Hz at the same time, the time to collect one frame of image will correspond to 6-7 pieces of angular velocity information in time series.
根据获取的多个角速度信息确定对应的抖动量,其中,抖动量与角速度信息一一对应,每个角速度信息对应一个抖动量,则采集的6~7角速度信息对应的6~7个抖动量。抖动量可以理解为角速度信息积分后的角度信息。其中,积分时间与陀螺仪传感器采集角速度信息的频率相关。The corresponding jitter amount is determined according to the acquired multiple angular velocity information, wherein the jitter amount corresponds to the angular velocity information one-to-one, each angular velocity information corresponds to a jitter amount, and the collected 6-7 angular velocity information corresponds to 6-7 jitter amounts. The amount of jitter can be understood as the angle information after the angular velocity information is integrated. Among them, the integration time is related to the frequency at which the angular velocity information is collected by the gyro sensor.
步骤704,根据多个抖动量控制马达驱动摄像头镜头的移动。
其中,该成像设备中还包括用于驱动摄像头的镜头移动的马达以及用于控制马达运动的OIS控制器。当陀螺仪传感器检测到摄像头发生抖动时,电子设备可以根据获取的多个抖动量控制马达以驱动摄像头的镜头移动,其镜头的移动量与该抖动量的方向相反,以消除因抖动引起的偏移。Wherein, the imaging device further includes a motor for driving the movement of the lens of the camera and an OIS controller for controlling the movement of the motor. When the gyro sensor detects that the camera shakes, the electronic device can control the motor to drive the lens of the camera to move according to the obtained multiple shakes, and the movement of the lens is opposite to the direction of the shake to eliminate the bias caused by the shake shift.
步骤706,基于霍尔传感器的霍尔值确定摄像头的镜头偏移量,角速度信息与霍尔值同步采集。
其中,该成像设备中还包括用于记录镜片移动量的霍尔传感器,霍尔传感器是根据霍尔效应制作的一种磁场传感器,霍尔效应从本质上讲是运动的带电粒子在磁场中受洛仑兹力作用引起的偏转。其中,陀螺仪传感器采集的角速度信息与霍尔传感器采集的霍尔值在时序上对应。Among them, the imaging device also includes a Hall sensor for recording the movement of the lens. The Hall sensor is a magnetic field sensor made according to the Hall effect. The Hall effect is essentially that moving charged particles are affected by the magnetic field. Deflection due to the action of the Lorentz force. The angular velocity information collected by the gyroscope sensor corresponds to the Hall value collected by the Hall sensor in time series.
成像设备可以通过霍尔传感器或激光记录摄像头的镜头在XY平面上的偏移刻度,并记录偏移刻度的同时,还可以记录偏移的方向,根据每个刻度对应的距离,以及偏移方向,继而得到镜头偏移量p(xi,yj)。The imaging device can record the offset scale of the camera lens on the XY plane through a Hall sensor or a laser, and while recording the offset scale, it can also record the direction of the offset, the distance corresponding to each scale, and the direction of the offset , and then the lens offset p(x i , y j ) is obtained.
本实施例中,基于陀螺仪传感器与霍尔传感器采集数据的频率在时序上对应,同时,摄像头采集拍摄对象与陀螺仪传感器采集数据在时间戳上同步且频率不同,采集一帧图像的时间可以对应采集多个角速度信息,进而可以在多个角速度信息中确定多个镜头偏移量,从而转换为多个图像偏移量,继而可以提高了图像补偿的精度和效果。In this embodiment, based on the frequency at which the data collected by the gyro sensor and the Hall sensor correspond in time sequence, and at the same time, the data collected by the camera and the data collected by the gyro sensor are synchronized in time stamps and have different frequencies, so the time for collecting one frame of image can be Correspondingly, a plurality of angular velocity information is collected, and then a plurality of lens offsets can be determined from the plurality of angular velocity information, so as to be converted into a plurality of image offsets, and then the accuracy and effect of image compensation can be improved.
应该理解的是,虽然图2-7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowcharts of FIGS. 2-7 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 FIGS. 2-7 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 are not necessarily completed at the same time. The order of execution of the steps is not necessarily sequential, but may be performed alternately or alternately with other steps or at least part of sub-steps or stages of other steps.
图8为一个实施例中图像补偿装置的结构图。本申请实施例还提供了一种图像补偿装置,应用于包括光学图像稳定系统的成像设备,成像设备设有携带光学图像稳定系统的摄像头,图像补偿装置,包括:曝光信息获取模块810、镜头偏移获取模块820、图像偏移获取模块830及图像补偿模块840。其中,FIG. 8 is a structural diagram of an image compensation apparatus in an embodiment. The embodiment of the present application also provides an image compensation device, which is applied to an imaging device including an optical image stabilization system. The imaging device is provided with a camera carrying an optical image stabilization system. The image compensation device includes: an exposure
曝光信息获取模块810,用于控制摄像头采集图像,并获取采集图像的曝光信息;摄像头包括光学图像稳定系统;The exposure
镜头偏移获取模块820,用于当检测到摄像头发生抖动时,获取摄像头的镜头偏移;a lens offset
图像偏移获取模块830,用于根据曝光信息确定目标标定函数,并获取与镜头偏移量相对应的图像偏移量;an image offset
图像补偿模块840,用于根据曝光信息和图像偏移量对图像进行补偿。The
上述图像补偿装置,可以控制摄像头采集图像,并获取采集所述图像的曝光信息;当检测到摄像头发生抖动时,获取采集所述图像时所述摄像头的镜头偏移;根据所述曝光信息确定目标标定函数,并获取与所述镜头偏移量相对应的图像偏移量;根据所述曝光信息和所述图像偏移量对所述图像进行补偿,可以根据曝光信息更为精准的获取图像偏移,进而在对图像进行补偿,可以提高图像的清晰度。The above-mentioned image compensation device can control the camera to collect images, and obtain exposure information for collecting the images; when it is detected that the camera shakes, obtain the lens shift of the camera when collecting the image; determine the target according to the exposure information calibration function, and obtain the image offset corresponding to the lens offset; the image is compensated according to the exposure information and the image offset, and the image offset can be more accurately obtained according to the exposure information Shifting, and then compensating for the image, which can improve the clarity of the image.
在一个实施例中,所述曝光信息包括快门速度或感光度;图像偏移获取模块830,包括:In one embodiment, the exposure information includes shutter speed or sensitivity; the image offset
构建单元,用于构建多个档位的标准曝光信息与多个预设标定函数的映射关系,其中,每一档位的所述标准曝光信息对应于一个所述预设标定函数;a construction unit, configured to construct a mapping relationship between the standard exposure information of multiple gears and a plurality of preset calibration functions, wherein the standard exposure information of each gear corresponds to one of the preset calibration functions;
档位确定单元,用于根据所述多个档位的标准曝光信息确定所述曝光信息的档位;a gear determination unit, configured to determine the gear of the exposure information according to the standard exposure information of the multiple gears;
匹配单元,用于根据所述映射关系,在所述多个预设标定函数中确定与所述曝光信息的档位相匹配的所述目标标定函数;a matching unit, configured to determine, according to the mapping relationship, the target calibration function that matches the gear of the exposure information among the plurality of preset calibration functions;
偏移获取单元,用于根据所述目标标定函数确定与所述镜头偏移量相对应的图像偏移量。An offset acquisition unit, configured to determine an image offset corresponding to the lens offset according to the target calibration function.
在一个实施例中,图像偏移获取模块830,还包括:In one embodiment, the image offset
函数确定单元,用于针对每档所述标准曝光信息,确定与所述标准曝光信息相匹配的预设标定函数。The function determination unit is configured to determine, for each file of the standard exposure information, a preset calibration function matching the standard exposure information.
本实施例中的图像补偿方法,根据预设标定模型、多个位移点以及对应的多个特征点,可以获取对应的预设标定函数,该预设标定函数可以直接基于镜头偏移量准确、高效的获取图像偏移量值,标定效率、精准度更高,为补偿图像奠定了好的基础。In the image compensation method in this embodiment, a corresponding preset calibration function can be obtained according to a preset calibration model, a plurality of displacement points, and a plurality of corresponding feature points. Efficient acquisition of image offset values, higher calibration efficiency and higher accuracy, laying a good foundation for compensating images.
在一个实施例中,图像补偿模块840,包括:In one embodiment, the
等级确定单元,用于确定所述曝光信息的曝光等级,所述曝光等级包括一级曝光、二级曝光和三级曝光;a level determination unit, configured to determine an exposure level of the exposure information, where the exposure level includes primary exposure, secondary exposure and tertiary exposure;
策略单元,用于根据所述曝光等级确定相应的补偿策略;a strategy unit, configured to determine a corresponding compensation strategy according to the exposure level;
补偿单元,用于根据所述图像偏移量和所述补偿策略对所述图像进行补偿。A compensation unit, configured to compensate the image according to the image offset and the compensation strategy.
在一个实施例中,策略单元,还用于:In one embodiment, the strategy unit is also used to:
当所述曝光等级为一级曝光时,对应的补偿策略为逐帧或隔帧补偿;When the exposure level is primary exposure, the corresponding compensation strategy is frame-by-frame or frame-by-frame compensation;
当所述曝光等级为二级曝光时,对应的补偿策略为分块补偿;When the exposure level is secondary exposure, the corresponding compensation strategy is block compensation;
当所述曝光等级为三级曝光时,对应的补偿策略为逐行或隔行补偿。When the exposure level is three-level exposure, the corresponding compensation strategy is progressive or interlaced compensation.
本实施例中,可以基于不同的曝光等级自适应采用不同的补偿策略对图像进行补偿,可以提高不同曝光等级下的图像清晰度。In this embodiment, different compensation strategies can be adaptively used to compensate the image based on different exposure levels, which can improve the image clarity under different exposure levels.
在一个实施例中,当所述曝光等级为二级曝光时,补偿单元,还用于:对所述图像进行识别,以识别待补偿区域与非补偿区域,其中,所述非补偿区域的各个像素点的颜色相同,且所述非补偿区域占图像的比例大于或等于预设值;根据所述图像偏移量和所述补偿策略对所述补偿区域进行补偿。In one embodiment, when the exposure level is secondary exposure, the compensation unit is further configured to: identify the image to identify an area to be compensated and a non-compensated area, wherein each of the non-compensated areas The colors of the pixels are the same, and the proportion of the non-compensated area in the image is greater than or equal to a preset value; the compensated area is compensated according to the image offset and the compensation strategy.
本实施例中,可以对待补偿区域进行精细化补偿,而对非补偿区域不做任何处理,以提高待补偿区域的清晰度,同时提高图像处理的效率。In this embodiment, fine compensation can be performed on the area to be compensated, and no processing is performed on the non-compensated area, so as to improve the definition of the area to be compensated and improve the efficiency of image processing.
在一个实施例中,镜头偏移获取模块820,包括:In one embodiment, the lens offset
抖动采集单元,用于当检测到摄像头发生抖动时,同步获取采集一帧所述图像时所述摄像头的多个抖动量;a jitter acquisition unit, configured to synchronously acquire multiple jitter amounts of the camera when a frame of the image is collected when it is detected that the camera shakes;
驱动单元,用于根据所述多个抖动量控制马达驱动所述摄像头镜头的移动;a driving unit, configured to control the motor to drive the movement of the camera lens according to the plurality of shaking amounts;
计算单元,用于基于霍尔传感器的霍尔值确定所述摄像头的镜头偏移量,所述抖动量与所述霍尔值同步采集。A calculation unit, configured to determine the lens shift amount of the camera based on the Hall value of the Hall sensor, and the jitter amount is collected synchronously with the Hall value.
本实施例中,基于陀螺仪传感器与霍尔传感器采集数据的频率在时序上对应,同时,摄像头采集拍摄对象与陀螺仪传感器采集数据在时间戳上同步且频率不同,采集一帧图像的时间可以对应采集多个角速度信息,进而可以在多个角速度信息中确定多个镜头偏移量,从而转换为多个图像偏移量,继而可以提高了图像补偿的精度和效果。In this embodiment, based on the frequency at which the data collected by the gyro sensor and the Hall sensor correspond in time sequence, and at the same time, the data collected by the camera and the data collected by the gyro sensor are synchronized in time stamps and have different frequencies, the time for collecting one frame of image can be Correspondingly, a plurality of angular velocity information is collected, and then a plurality of lens offsets can be determined from the plurality of angular velocity information, so as to be converted into a plurality of image offsets, and then the accuracy and effect of image compensation can be improved.
上述图像补偿装置中各个模块的划分仅用于举例说明,在其他实施例中,可将图像补偿装置按照需要划分为不同的模块,以完成上述图像补偿装置的全部或部分功能。The division of each module in the above image compensation apparatus is only for illustration. In other embodiments, the image compensation apparatus may be divided into different modules as required to complete all or part of the functions of the above image compensation apparatus.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行上述任一实施例中的图像补偿方法。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 that, when executed by one or more processors, cause the processors to perform any of the above-described embodiments. Image compensation method.
本申请实施例还提供一种电子设备。电子设备包括光学图像稳定系统的成像设备、存储器及处理器,所述成像设备包括携带光学图像稳定系统的摄像;所述存储器中储存有计算机可读指令,所述指令被所述处理器执行时,使得所述处理器执行上述任一实施例中的图像补偿方法。电子设备中包括图像处理电路,图像处理电路可以利用硬件和/或软件组件实现,可包括定义ISP(Image Signal Processing,图像信号处理)管线的各种处理单元。图9为一个实施例中图像处理电路的示意图。如图9所示,为便于说明,仅示出与本申请实施例相关的图像补偿技术的各个方面。The embodiments of the present application also provide an electronic device. The electronic device includes an imaging device of an optical image stabilization system, a memory and a processor, the imaging device includes a camera carrying the optical image stabilization system; the memory stores computer-readable instructions, and when the instructions are executed by the processor , so that the processor executes the image compensation method in any of the above embodiments. The 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. 9 is a schematic diagram of an image processing circuit in one embodiment. As shown in FIG. 9 , for the convenience of description, only various aspects of the image compensation technology related to the embodiments of the present application are shown.
如图9所示,图像处理电路包括ISP处理器940和控制逻辑器950。成像设备910捕捉的图像数据首先由ISP处理器940处理,ISP处理器940对图像数据进行分析以捕捉可用于确定和/或成像设备910的一个或多个控制参数的图像统计信息。成像设备910可包括具有一个或多个透镜912和图像传感器914的照相机。图像传感器914可包括色彩滤镜阵列(如Bayer滤镜),图像传感器914可获取用图像传感器914的每个成像像素捕捉的光强度和波长信息,并提供可由ISP处理器940处理的一组原始图像数据。传感器920(如陀螺仪)可基于传感器920接口类型把采集的图像补偿的参数(如防抖参数)提供给ISP处理器940。传感器920接口可以利用SMIA(Standard Mobile Imaging Architecture,标准移动成像架构)接口、其它串行或并行照相机接口、或上述接口的组合。As shown in FIG. 9 , the image processing circuit includes an
此外,图像传感器914也可将原始图像数据发送给传感器920,传感器920可基于传感器920接口类型把原始图像数据提供给ISP处理器940进行处理,或者传感器920将原始图像数据存储到图像存储器930中。In addition, the
ISP处理器940按多种格式逐个像素地处理原始图像数据。例如,每个图像像素可具有9、10、12或14比特的位深度,ISP处理器940可对原始图像数据进行一个或多个图像补偿操作、收集关于图像数据的统计信息。其中,图像补偿操作可按相同或不同的位深度精度进行。The
ISP处理器940还可从图像存储器930接收像素数据。例如,传感器920接口将原始图像数据发送给图像存储器930,图像存储器930中的原始图像数据再提供给ISP处理器940以供处理。图像存储器930可为存储器装置的一部分、存储设备、或电子设备内的独立的专用存储器,并可包括DMA(Direct Memory Access,直接直接存储器存取)特征。
当接收到来自图像传感器914接口或来自传感器920接口或来自图像存储器930的原始图像数据时,ISP处理器940可进行一个或多个图像补偿操作,如时域滤波。ISP处理器940处理后的图像数据可发送给图像存储器930,以便在被显示之前进行另外的处理。ISP处理器940从图像存储器930接收处理数据,并对所述处理数据进行原始域中以及RGB和YCbCr颜色空间中的图像数据处理。处理后的图像数据可输出给显示器980,以供用户观看和/或由图形引擎或GPU(Graphics Processing Unit,图形处理器)进一步处理。此外,ISP处理器940的输出还可发送给图像存储器930,且显示器980可从图像存储器930读取图像数据。在一个实施例中,图像存储器930可被配置为实现一个或多个帧缓冲器。此外,ISP处理器940的输出可发送给编码器/解码器970,以便编码/解码图像数据。编码的图像数据可被保存,并在显示于显示器980设备上之前解压缩。When receiving raw image data from the
ISP处理后的图像数据可发送给编码器/解码器970,以便编码/解码图像数据。编码的图像数据可被保存,并在显示与显示器980设备上之前解压缩。ISP处理器940处理后的图像数据还可以先经过编码器/解码器970处理。其中,编码器/解码器970可为移动终端中CPU(Central Processing Unit,中央处理器)或GPU(Graphics Processing Unit,图形处理器)等。The ISP-processed image data may be sent to the encoder/
ISP处理器940确定的统计数据可发送给控制逻辑器950单元。例如,统计数据可包括自动曝光、自动白平衡、自动聚焦、闪烁检测、黑电平补偿、透镜912阴影补偿等图像传感器914统计信息。控制逻辑器950可包括执行一个或多个例程(如固件)的处理器和/或微控制器,一个或多个例程可根据接收的统计数据,确定成像设备910的控制参数以及ISP处理器940的控制参数。例如,成像设备910的控制参数可包括传感器920控制参数(例如增益、曝光控制的积分时间、防抖参数等)、照相机闪光控制参数、透镜912控制参数(例如聚焦或变焦用焦距)、或这些参数的组合。ISP控制参数可包括用于自动白平衡和颜色调整(例如,在RGB处理期间)的增益水平和色彩补偿矩阵,以及透镜912阴影补偿参数。Statistics determined by the
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium , when the program is executed, it may include the flow of the above-mentioned method embodiments. The storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or the like.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。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 pointed out 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 (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811290317.8A CN109194877B (en) | 2018-10-31 | 2018-10-31 | Image compensation method and apparatus, computer-readable storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811290317.8A CN109194877B (en) | 2018-10-31 | 2018-10-31 | Image compensation method and apparatus, computer-readable storage medium, and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109194877A CN109194877A (en) | 2019-01-11 |
CN109194877B true CN109194877B (en) | 2021-03-02 |
Family
ID=64941282
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811290317.8A Active CN109194877B (en) | 2018-10-31 | 2018-10-31 | Image compensation method and apparatus, computer-readable storage medium, and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109194877B (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110012224B (en) * | 2019-03-26 | 2021-07-09 | Oppo广东移动通信有限公司 | Camera anti-shake system, method, electronic device and computer-readable storage medium |
WO2020227998A1 (en) * | 2019-05-15 | 2020-11-19 | 深圳市大疆创新科技有限公司 | Image stability augmentation control method, photography device and movable platform |
CN112129317B (en) * | 2019-06-24 | 2022-09-02 | 南京地平线机器人技术有限公司 | Information acquisition time difference determining method and device, electronic equipment and storage medium |
CN110166697B (en) * | 2019-06-28 | 2021-08-31 | Oppo广东移动通信有限公司 | Camera anti-shake method, device, electronic device and computer-readable storage medium |
CN110177223B (en) * | 2019-06-28 | 2021-10-22 | Oppo广东移动通信有限公司 | Image processing method and apparatus, electronic device, computer-readable storage medium |
CN111028191B (en) * | 2019-12-10 | 2023-07-04 | 上海闻泰电子科技有限公司 | Anti-shake method and device for video image, electronic equipment and storage medium |
CN113840093B (en) * | 2020-06-24 | 2023-07-25 | 北京小米移动软件有限公司 | Image generation method and device |
CN115022540B (en) * | 2022-05-30 | 2024-06-25 | Oppo广东移动通信有限公司 | Anti-shake control method, device and system and electronic equipment |
CN115100209B (en) * | 2022-08-28 | 2022-11-08 | 电子科技大学 | Camera-based image quality correction method and correction system |
CN115379123B (en) * | 2022-10-26 | 2023-01-31 | 山东华尚电气有限公司 | Transformer fault detection method for unmanned aerial vehicle inspection |
CN115942620B (en) * | 2023-01-09 | 2023-08-29 | 广州诺顶智能科技有限公司 | Crimping machine control method and system, crimping machine and readable medium |
CN118509720B (en) * | 2023-12-15 | 2024-12-20 | 荣耀终端有限公司 | Image processing method, electronic device, storage medium and program product |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102098438A (en) * | 2009-12-15 | 2011-06-15 | 索尼公司 | Image capturing apparatus and image capturing method |
CN102176106A (en) * | 2008-07-15 | 2011-09-07 | 佳能株式会社 | Image stabilization control apparatus and imaging apparatus |
CN102455567A (en) * | 2010-10-19 | 2012-05-16 | 佳能株式会社 | Optical apparatus, image capturing apparatus, and method for controlling optical apparatus |
CN103685950A (en) * | 2013-12-06 | 2014-03-26 | 华为技术有限公司 | Method and device for preventing shaking of video image |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090231708A1 (en) * | 2006-07-21 | 2009-09-17 | Satoru Shibata | Zoom lens system, imaging apparatus, and method for zooming the zoom lens system |
-
2018
- 2018-10-31 CN CN201811290317.8A patent/CN109194877B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102176106A (en) * | 2008-07-15 | 2011-09-07 | 佳能株式会社 | Image stabilization control apparatus and imaging apparatus |
CN102098438A (en) * | 2009-12-15 | 2011-06-15 | 索尼公司 | Image capturing apparatus and image capturing method |
CN102455567A (en) * | 2010-10-19 | 2012-05-16 | 佳能株式会社 | Optical apparatus, image capturing apparatus, and method for controlling optical apparatus |
CN103685950A (en) * | 2013-12-06 | 2014-03-26 | 华为技术有限公司 | Method and device for preventing shaking of video image |
Also Published As
Publication number | Publication date |
---|---|
CN109194877A (en) | 2019-01-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109194877B (en) | Image compensation method and apparatus, computer-readable storage medium, and electronic device | |
CN108737734B (en) | Image compensation method and apparatus, computer-readable storage medium, and electronic device | |
CN109194876B (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium | |
CN108769528B (en) | Image compensation method and apparatus, computer-readable storage medium, and electronic device | |
CN110290289B (en) | Image noise reduction method, device, electronic device and storage medium | |
CN109842753B (en) | Camera anti-shake system, camera anti-shake method, electronic device and storage medium | |
CN109544620B (en) | Image processing method and apparatus, computer-readable storage medium, and electronic device | |
CN110072052B (en) | Image processing method and device based on multi-frame image and electronic equipment | |
CN110248106B (en) | Image noise reduction method, device, electronic device and storage medium | |
CN102378015B (en) | Use the image capture of brightness and chromaticity transducer | |
CN108712608B (en) | Terminal equipment shooting method and device | |
WO2021047345A1 (en) | Image noise reduction method and apparatus, and storage medium and electronic device | |
CN110191291B (en) | Image processing method and device based on multi-frame images | |
CN109672819B (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium | |
CN109951638B (en) | Camera anti-shake system, method, electronic device and computer-readable storage medium | |
CN110636216B (en) | Image processing method and device, electronic equipment and computer readable storage medium | |
US12039767B2 (en) | Subject detection method and apparatus, electronic device, and computer-readable storage medium | |
CN109348088A (en) | Image noise reduction method and device, electronic equipment and computer readable storage medium | |
CN110660090A (en) | Subject detection method and apparatus, electronic device, and computer-readable storage medium | |
CN107613216A (en) | Focusing method, device, computer-readable recording medium and electronic equipment | |
CN111246100B (en) | Anti-shake parameter calibration method and device and electronic equipment | |
US20110052070A1 (en) | Image processing apparatus, image processing method and computer readable-medium | |
JP2015012482A (en) | Image processing apparatus and image processing method | |
CN110276730B (en) | Image processing method and device and electronic equipment | |
CN110519513B (en) | Anti-shake 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 |